/* Footer (rich, multi-column), growth components and the cookie note. Loaded by partials/footer.html on every page.
   Neutral UI, one accent (the brand token), no gradients. Tokens come from app.css. */
.foot-rich { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }
.foot-rich nav { min-width: 0; }
.foot-rich h2 { margin-bottom: 4px; }
.foot-rich nav a { padding: 7px 0; }
.foot-contact { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.foot-contact li { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); }
.foot-contact .i { margin-top: 2px; flex: none; color: var(--muted); }
.foot-contact a { display: inline; padding: 0; }
.foot-social { list-style: none; margin: 14px 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.foot-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); }
.foot-social a:hover { background: var(--surface-2); text-decoration: none; border-color: var(--muted); }
.foot-brand .foot-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.footer .foot-install, .foot-install { box-sizing: border-box; display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; width: auto; max-width: 100%;
  min-height: 44px; margin: 0; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-btn); background: var(--surface); color: var(--ink);
  font: 600 var(--fs-2)/1.2 var(--font); white-space: nowrap; text-decoration: none; cursor: pointer; }
.footer .foot-install .i { flex: none; margin: 0; }
.footer .foot-install:hover { background: var(--surface-2); border-color: var(--muted); text-decoration: none; color: var(--ink); }
.footer .foot-install:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.foot-rich nav a { overflow-wrap: anywhere; }
.foot-region { margin: 0; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.foot-region a { display: inline; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 640px) { .foot-rich { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .foot-rich { grid-template-columns: minmax(240px, 1.7fr) repeat(5, minmax(0, 1fr)); gap: var(--s-5) var(--s-6); } .foot-rich .foot-brand { grid-column: auto; } }

/* ---------- growth: welcome ribbon ---------- */
.gr-ribbon { display: flex; align-items: center; justify-content: center; gap: 10px 16px; flex-wrap: wrap; padding: 10px var(--pad); background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: var(--fs-2); color: var(--ink); text-align: center; position: relative; }
.gr-ribbon b { font-weight: 700; }
.gr-ribbon a.go { font-weight: 700; color: var(--brand-t); text-decoration: underline; text-underline-offset: 3px; }
.gr-ribbon .x { position: absolute; right: calc(var(--pad) - 10px); top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--muted); cursor: pointer; border-radius: 50%; }
.gr-ribbon .x:hover { color: var(--ink); background: var(--line-2); }
.gr-ribbon.is-gone { display: none; }
.gr-ribbon .i { vertical-align: -3px; }
@media (max-width: 640px) { .gr-ribbon { padding-right: 52px; text-align: left; justify-content: flex-start; } }

/* ---------- growth: sticky prompt (mobile) ---------- */
.gr-prompt { position: fixed; z-index: 43; left: 12px; right: 12px; bottom: calc(var(--nav-h) + var(--safe-b) + 10px + var(--gr-lift, 0px)); display: none; align-items: center; gap: 12px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r-m); padding: 10px 10px 10px 14px; box-shadow: var(--shadow-up);
  transform: translateY(16px); opacity: 0; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.gr-prompt.show { display: flex; transform: none; opacity: 1; }
.gr-prompt .t { flex: 1; min-width: 0; font-size: var(--fs-2); line-height: 1.35; }
.gr-prompt .t b { display: block; font-size: var(--fs-3); }
.gr-prompt .btn { flex: none; }
.gr-prompt .x { flex: none; width: 36px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--muted); cursor: pointer; }
@media (min-width: 900px) { .gr-prompt { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .gr-prompt { transition: none; } }

/* ---------- growth: signup card + social proof ---------- */
.gr-card { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); padding: 16px; display: grid; gap: 10px; margin-top: 14px; }
.gr-card h3 { font-size: var(--fs-4); letter-spacing: -.01em; }
.gr-card p { margin: 0; color: var(--ink-2); font-size: var(--fs-2); }
.gr-card .code { display: inline-block; font-weight: 700; letter-spacing: .06em; border: 1px dashed var(--line-strong); border-radius: 8px; padding: 2px 8px; color: var(--ink); }
.gr-card .alt { font-size: var(--fs-2); color: var(--muted); text-align: center; }
.gr-card .alt a { color: var(--brand-t); font-weight: 600; }
.gr-proof { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-2); color: var(--ink-2); }
.gr-proof b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.gr-proof .i { vertical-align: -3px; color: var(--muted); margin-right: 4px; }
.gr-proof .star { color: var(--star); }

/* ---------- cookie / privacy info note ---------- */
.st-note { position: fixed; z-index: 42; left: 12px; right: 12px; bottom: calc(var(--nav-h) + var(--safe-b) + 10px); display: none; align-items: center; gap: 10px; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-m); padding: 10px 6px 10px 14px; box-shadow: var(--shadow-up); font-size: var(--fs-2); color: var(--ink-2); }
.st-note.show { display: flex; }
.st-note .t { flex: 1; min-width: 0; } .st-note a { color: var(--brand-t); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.st-note button { flex: none; min-height: 44px; padding: 0 14px; border: 0; background: none; color: var(--ink); font: 700 var(--fs-2)/1 var(--font); cursor: pointer; border-radius: var(--r-btn); }
.st-note button:hover { background: var(--surface-2); }
html.gr-prompt-on .st-note { display: none !important; }
@media (min-width: 900px) { .st-note { left: 24px; right: auto; bottom: 24px; width: 420px; } }
