/* Saval marketing site -- shared component styles. Pairs with tokens.css.
   Loaded on every page; page-specific styles go in a <style> block or a
   dedicated page stylesheet, never redefine tokens locally. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--sv-ground);
  color: var(--sv-ink);
  font-family: var(--sv-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 {
  font-family: var(--sv-display);
  font-weight: 700;
  font-stretch: condensed;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
  color: var(--sv-ink);
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--sv-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sv-forest);
}
.num { font-family: var(--sv-mono); font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--sv-ground) 88%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--sv-line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand img { height: 46px; width: auto; }
.nav-brand span { font-family: var(--sv-display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.01em; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 0.92rem; font-weight: 500; text-decoration: none; color: var(--sv-ink-soft); transition: color .15s ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--sv-forest); }
.nav-links a[aria-current="page"] { color: var(--sv-forest); }

/* Static (non-animating, by design -- see Impact page count-up work) hint
   that Impact has real, updating totals. Reuses the same 6px dot look as
   .status-badge .dot elsewhere on the site. */
.nav-live-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--sv-forest); margin-left: 6px; vertical-align: middle;
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--sv-forest); color: var(--sv-forest);
  background: transparent; font-family: var(--sv-body); font-weight: 600; font-size: 0.9rem;
  padding: 9px 18px; border-radius: var(--sv-radius-pill); text-decoration: none;
  transition: background .15s ease, color .15s ease; white-space: nowrap;
}
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--sv-forest); color: var(--sv-surface); outline: 2px solid var(--sv-forest); outline-offset: 2px; }
/* Pre-existing bug, not from today's changes (both rules date to the site's
   original Phase 1 foundation commit): inside .nav-links, ".nav-links
   a:hover" (class+element+pseudo) outranks ".btn-ghost:hover" (class+pseudo)
   on specificity, so "Join Saval" kept its dark hover text color against the
   now-green hover background -- invisible. This compound selector outranks
   both to guarantee the white hover text actually wins. */
.nav-links a.btn-ghost:hover, .nav-links a.btn-ghost:focus-visible { color: var(--sv-surface); }
#navToggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--sv-ink); }
#navToggle svg { display: block; }

/* ---- primary CTA -- one accent, used once per screen ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sv-trailblaze); color: var(--sv-on-accent);
  font-family: var(--sv-body); font-weight: 700; font-size: 1rem;
  padding: 15px 30px; border-radius: var(--sv-radius-control); text-decoration: none;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary:hover, .btn-primary:focus-visible { transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(0,0,0,0.5); outline: 2px solid var(--sv-on-accent); outline-offset: 2px; }

/* ---- danger CTA -- irreversible actions only (e.g. delete account) ---- */
.btn-danger {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--sv-danger); color: var(--sv-danger);
  background: transparent; font-family: var(--sv-body); font-weight: 600; font-size: 0.9rem;
  padding: 9px 18px; border-radius: var(--sv-radius-pill); text-decoration: none; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn-danger:hover, .btn-danger:focus-visible { background: var(--sv-danger); color: var(--sv-on-accent); outline: 2px solid var(--sv-danger); outline-offset: 2px; }

/* ---- generic page header (non-home pages) ---- */
.page-hero { padding: 56px 0 44px; border-bottom: 1px solid var(--sv-line); }
.page-hero .eyebrow { display: block; margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3rem); margin-bottom: 14px; }
.page-hero p { color: var(--sv-ink-soft); font-size: 1.05rem; max-width: 60ch; margin: 0; }

.section-head { margin-bottom: 36px; max-width: 640px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 10px; }
.section-head p { color: var(--sv-ink-soft); margin: 12px 0 0; font-size: 1.02rem; }

section { padding: var(--sv-gap-block) 0; }

.card {
  background: var(--sv-surface); border: 1px solid var(--sv-line);
  border-radius: var(--sv-radius-card); padding: 26px 22px;
}
.sheet {
  background: var(--sv-surface); border: 1px solid var(--sv-line);
  border-radius: var(--sv-radius-sheet); padding: 32px 28px;
}
.band-quiet {
  background: var(--sv-sunken); border: 1px solid var(--sv-line);
  border-radius: var(--sv-radius-sheet); padding: 44px 40px;
}

.status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sv-sunken); color: var(--sv-forest);
  font-family: var(--sv-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 7px 14px; border-radius: var(--sv-radius-pill); margin-bottom: 16px;
}
.status-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sv-forest); }

/* ---- generic form styling -- shared across all Phase 3 forms ---- */
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field label {
  font-family: var(--sv-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--sv-forest);
}
.form-field input, .form-field select, .form-field textarea {
  background: var(--sv-sunken); border: 1px solid var(--sv-line); border-radius: var(--sv-radius-control);
  padding: 12px 14px; font-family: var(--sv-body); font-size: 0.95rem; color: var(--sv-ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--sv-forest);
}

/* ---- footer ---- */
footer { border-top: 1px solid var(--sv-line); padding: 44px 0 28px; }
.footer-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 30px; }
.footer-brand span { font-family: var(--sv-display); font-weight: 700; font-size: 1rem; }
.footer-legal { color: var(--sv-ink-soft); font-size: 0.85rem; margin-top: 10px; max-width: 34ch; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col-title {
  font-family: var(--sv-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--sv-ink-soft); margin-bottom: 14px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 0.9rem; text-decoration: none; color: var(--sv-ink-soft); font-weight: 500; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--sv-forest); }
.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--sv-line);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.footer-legal-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.footer-legal-links a { font-size: 0.82rem; color: var(--sv-ink-soft); text-decoration: none; }
.footer-legal-links a:hover, .footer-legal-links a:focus-visible { color: var(--sv-forest); }
.footer-app-links { display: flex; gap: 10px; margin-top: 16px; }
.footer-app-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--sv-line); background: var(--sv-sunken); color: var(--sv-ink);
  font-size: 0.78rem; font-weight: 600; padding: 7px 12px; border-radius: var(--sv-radius-control);
  text-decoration: none;
}

.footer-social-links { display: flex; gap: 10px; margin-top: 14px; }
.footer-social-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--sv-forest); border: 1.5px solid var(--sv-forest);
  opacity: 0.88; transition: opacity .15s ease, transform .15s ease;
}
.footer-social-badge svg { width: 16px; height: 16px; fill: var(--sv-on-accent); }
.footer-social-badge:hover, .footer-social-badge:focus-visible {
  opacity: 1; transform: translateY(-1px);
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 860px) {
  /* Scoped to #navLinks (the desktop nav specifically), not the shared
     .nav-links class -- the mobile dropdown's own <ul> also carries
     .nav-links, so a blanket ".nav-links { display: none }" here was
     hiding it too even after #navLinksMobile got toggled open, making the
     hamburger look broken (it correctly opened an empty wrapper). */
  #navLinks { display: none; }
  #navToggle { display: block; }
  .band-quiet { padding: 32px 24px; }
}

/* ---- get-app landing page (/get-app/) ---- */
.get-app-hero { text-align: center; padding: 72px 0 24px; }
.get-app-hero .eyebrow { display: block; margin-bottom: 12px; }
.get-app-hero p { color: var(--sv-ink-soft); font-size: 1.02rem; max-width: 48ch; margin: 14px auto 0; }
.get-app-panel {
  max-width: 380px; margin: 0 auto; text-align: center;
}
.get-app-qr { width: 168px; height: 168px; margin: 0 auto 24px; background: var(--sv-surface); }
.get-app-qr img, .get-app-qr svg { width: 100%; height: 100%; }
.get-app-badges { display: flex; gap: 14px; justify-content: center; margin-bottom: 22px; flex-wrap: wrap; }
.get-app-badge {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--sv-line); background: var(--sv-surface); color: var(--sv-ink);
  font-family: var(--sv-body); font-size: 1.05rem; font-weight: 700;
  padding: 14px 26px; border-radius: var(--sv-radius-card); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.get-app-badge:hover, .get-app-badge:focus-visible {
  border-color: var(--sv-forest); color: var(--sv-forest); transform: translateY(-1px);
  outline: 2px solid var(--sv-forest); outline-offset: 2px;
}
.get-app-web-link { font-size: 0.82rem; color: var(--sv-ink-soft); text-decoration: underline; }
.get-app-web-link:hover, .get-app-web-link:focus-visible { color: var(--sv-forest); }
