/* ============================================================================
   Brosky web system — palette "FIELD LIME", mirrored 1:1 from the app's
   `app/src/theme.ts`. Change a value there and here together; the two surfaces
   plus the admin console are one system. The ramp is derived from the app icon:
   --brand IS the lime the mark is drawn in, sampled from the master in brand/.

   Two greens, two jobs:
     --brand-deep  #62730D  structural olive. FILL ONLY (3.59:1 as text on
                            --bg, below the 4.5:1 body floor). Carries #FFF.
     --brand       #A8C60D  interactive lime. Legible as text on dark (9.71:1)
                            and as a fill under #0E1111 (9.71:1).
   No blue anywhere, including status roles — blue reads corporate.

   Ratios below are measured (WCAG 2.1), against --bg unless noted. Type is the
   native system UI stack on purpose: no webfont is fetched, so no page can ever
   render blank waiting on one.
   ============================================================================ */
:root {
  /* Surfaces */
  --bg: #0E1111;           /* canvas — forest floor */
  --surface: #1A1F1F;      /* cards, inputs, footer (1.14x above canvas) */
  --surface-2: #232A29;    /* hover fill / nested surface */
  --elevated: #2C3433;     /* highest surface step */
  /* Lines */
  --border: #2F3837;       /* decorative hairline, 1.38:1 on --surface */
  --border-strong: #616D6C;/* interactive control boundary, 3.11:1 — WCAG 1.4.11 */
  /* Text */
  --text: #F5F5F5;         /* headings + body, 17.40:1 */
  --text-2: #A8B0B0;       /* supporting copy, 8.58:1 / 7.54:1 on --surface */
  --text-3: #8B9796;       /* captions + eyebrows, 6.29:1 / 5.53:1 on --surface */

  /* Brand */
  --brand: #A8C60D;        /* links, icons, active states — 9.71:1 */
  --brand-bright: #C0DD2C; /* hover, high-emphasis link text — 12.30:1 */
  --brand-deep: #62730D;   /* deep fills only, never text on dark */
  --accent: #DEE9A5;       /* palest brand tone, quiet emphasis — 14.73:1 */
  --steel: #A8B0B0;        /* neutral stone (was a blue-grey; blue is banned) */
  /* Every stop clears 4.5:1 against the #0E1111 label that sits on it
     (12.30 / 9.71 / 6.12) — which is why --brand-deep is not a stop. */
  --brand-grad: linear-gradient(135deg, #C0DD2C, #A8C60D 48%, #869C11);
  --on-brand: #0E1111;     /* text/icon drawn on any brand fill */

  /* Status — tuned as text/icon ON dark, matching the app tokens */
  --success: #3DD68C;      /* 10.11:1 */
  --warning: #E8A93C;      /*  9.19:1 */
  --danger: #FF6B5E;       /*  6.79:1 */

  --font-head: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1260px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 14px 40px -12px rgba(0,0,0,.6);
  /* Focus ring: brand @55%, compositing to #63750F — 3.67:1 against the canvas,
     clearing the 3:1 non-text floor (WCAG 2.4.11/1.4.11). */
  --ring: 0 0 0 3px rgba(168,198,13,.55);
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  color-scheme: dark;
}
body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(900px 480px at 50% -240px, rgba(168,198,13,.10), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: .1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.marketing {
  background:
    radial-gradient(980px 560px at 84% -160px, rgba(168,198,13,.14), transparent 68%),
    radial-gradient(820px 480px at 12% -180px, rgba(168,198,13,.14), transparent 70%),
    linear-gradient(180deg, #0E1111 0%, #141918 48%, #0E1111 100%);
}
h1, h2, h3, .brand { font-family: var(--font-head); letter-spacing: -.02em; }
a { color: var(--brand-bright); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--brand); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Visible keyboard focus everywhere (WCAG 2.4.7) */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, .cat:focus-visible {
  outline: none; box-shadow: var(--ring); border-radius: var(--r-sm);
}

/* Skip link (WCAG 2.4.1) */
.skip { position: absolute; left: -9999px; top: 8px; background: var(--brand); color: var(--on-brand);
  padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 100; }
.skip:focus { left: 16px; }

/* ── Header ───────────────────────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14,17,17,.72); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { position: relative; display: flex; align-items: center; gap: 18px; height: 72px; }
.nav .logo { display: flex; align-items: center; gap: 11px; color: var(--text); min-height: 44px; }
.nav .logo img { height: 40px; width: auto; object-fit: contain; }
.nav .logo .brand { font-weight: 700; font-size: 20px; letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav a { color: var(--text-2); font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); }
.nav a.active::after {
  content: ""; display: block; width: 100%; height: 2px; margin-top: 4px;
  border-radius: 999px; background: var(--brand);
}
.nav a.open-app {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; color: var(--on-brand); background: var(--brand-grad);
  padding: 0 18px; border-radius: 999px; box-shadow: var(--shadow-1);
  transition: transform .15s var(--ease), filter .15s var(--ease);
}
.nav a.open-app:hover { transform: translateY(-1px); filter: brightness(1.05); color: var(--on-brand); }
.menu-toggle, .mobile-menu { display: none; }
.menu-toggle {
  position: relative;
  width: 44px; height: 44px; padding: 0; border: 1px solid var(--border-strong);
  border-radius: 999px; background: rgba(255,255,255,.04); color: var(--text);
  align-items: center; justify-content: center; cursor: pointer;
  transition: border-color .16s var(--ease), background .16s var(--ease), transform .16s var(--ease);
}
.menu-toggle:hover { border-color: rgba(168,198,13,.66); background: rgba(168,198,13,.09); }
.menu-toggle span {
  position: absolute; left: 50%; top: 50%;
  display: block; width: 16px; height: 2px; margin: -1px 0 0 -8px;
  border-radius: 999px; background: currentColor;
  transition: transform .18s var(--ease), opacity .18s var(--ease);
}
.menu-toggle span:nth-child(1) { transform: translateY(-6px); }
.menu-toggle span:nth-child(3) { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] {
  border-color: rgba(168,198,13,.7);
  background: rgba(168,198,13,.10);
}

@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .nav { height: 64px; gap: 10px; }
  .nav .logo img { height: 34px; }
  .nav .logo .brand { font-size: 18px; }
  .nav-links { display: none; }
  .nav a.open-app { margin-left: auto; padding: 0 14px; font-size: 14px; }
  .menu-toggle { display: inline-flex; flex-direction: column; flex: 0 0 44px; }
  .mobile-menu {
    position: absolute; top: calc(100% + 10px); left: 18px; right: 18px; z-index: 30;
    display: grid; gap: 4px; padding: 10px;
    border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
    background: rgba(26,31,31,.96); box-shadow: 0 22px 70px -24px rgba(0,0,0,.82);
    backdrop-filter: saturate(140%) blur(18px);
    opacity: 0; transform: translateY(-8px) scale(.98); visibility: hidden; pointer-events: none;
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s var(--ease);
  }
  .mobile-menu.open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
  .mobile-menu a {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 46px; padding: 0 14px; border-radius: 11px;
    color: var(--text); font-weight: 700; font-size: 15px;
  }
  .mobile-menu a:hover, .mobile-menu a.active {
    color: var(--text); background: rgba(168,198,13,.12);
  }
  .mobile-menu a.active::after {
    content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--brand);
  }
}

@media (max-width: 360px) {
  .nav .logo .brand { display: none; }
  .nav a.open-app { padding: 0 12px; }
}

/* ── Marketing landing page ───────────────────────────────────────────────── */
.landing-hero {
  position: relative; display: flex; align-items: center; overflow: hidden;
  min-height: calc(100svh - 132px);
  padding: clamp(58px, 10vh, 96px) 0 clamp(52px, 8vh, 84px);
  background: #0E1111;
}
.landing-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 520px at 72% 18%, rgba(168,198,13,.18), transparent 70%),
    linear-gradient(135deg, #0E1111 0%, #161C1B 62%, #0E1111 100%);
}
/* Full-bleed hero image behind .landing-hero. Currently unused: index.html has no
   <picture class="hero-media"> because no Brosky hero art exists yet. Kept so the
   markup can be re-added unchanged. TODO(brosky): supply hero imagery. */
.hero-media {
  position: absolute; inset: 0; z-index: 0; display: block; overflow: hidden;
  background: #0E1111;
}
.hero-media img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 82% center;
  transform: scale(1.01);
}
.landing-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(14,17,17,.96) 0%, rgba(14,17,17,.86) 38%, rgba(14,17,17,.34) 70%, rgba(14,17,17,.20) 100%),
    linear-gradient(180deg, rgba(14,17,17,.38) 0%, rgba(14,17,17,.08) 42%, rgba(14,17,17,.76) 100%);
}
.landing-grid { position: relative; z-index: 2; display: block; width: 100%; }
.hero-copy { max-width: 690px; }
.hero-copy .eyebrow {
  display: inline-flex; align-items: center; min-height: 34px;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-2);
  padding: 6px 13px; border: 1px solid rgba(168,198,13,.38);
  border-radius: 999px; background: rgba(168,198,13,.12); margin-bottom: 22px;
}
.hero-copy h1 {
  font-size: clamp(40px, 6.3vw, 72px); line-height: .94; margin: 0 0 18px;
  font-weight: 800; letter-spacing: -.035em; max-width: 720px;
}
.hero-copy .sub {
  color: var(--text-2); font-size: clamp(17px, 2.3vw, 21px);
  line-height: 1.55; margin: 0 0 28px; max-width: 620px;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 18px; }
.primary-cta, .secondary-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 800;
  transition: transform .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease), color .16s var(--ease);
}
.primary-cta { color: var(--on-brand); background: var(--brand-grad); box-shadow: 0 16px 34px -20px rgba(168,198,13,.82); }
.primary-cta:hover { color: var(--on-brand); transform: translateY(-2px); }
.secondary-cta { color: var(--text); border: 1px solid var(--border-strong); background: rgba(255,255,255,.04); }
.secondary-cta:hover { color: var(--text); border-color: rgba(168,198,13,.7); background: rgba(168,198,13,.08); transform: translateY(-2px); }

.signal-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: clamp(56px, 8vw, 92px);
  border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--border);
}
.signal-strip div { padding: 22px; background: rgba(26,31,31,.92); }
.signal-strip strong { display: block; font-family: var(--font-head); font-size: 18px; color: var(--text); margin-bottom: 6px; }
.signal-strip span { display: block; color: var(--text-2); font-size: 14px; line-height: 1.5; }

.landing-section { padding: 0 24px clamp(64px, 8vw, 100px); }
.section-head { max-width: 680px; margin-bottom: 26px; }
.section-head h2, .safety-grid h2, .final-cta h2 {
  font-family: var(--font-head); font-size: clamp(30px, 4.5vw, 50px);
  line-height: 1.02; margin: 0; letter-spacing: -.03em;
}
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  border: 1px solid var(--border); border-radius: 18px; padding: 24px; min-height: 236px;
}
.feature-card .step {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 14px; background: rgba(168,176,176,.12); color: var(--steel);
  font-family: var(--font-head); font-weight: 800; margin-bottom: 22px;
}
.feature-card h3 { font-size: 22px; margin: 0 0 10px; letter-spacing: -.02em; }
.feature-card p { color: var(--text-2); margin: 0; font-size: 15px; line-height: 1.62; }

.safety-band {
  padding: clamp(66px, 8vw, 104px) 0;
  background:
    radial-gradient(680px 360px at 78% 20%, rgba(168,198,13,.10), transparent 72%),
    linear-gradient(180deg, #141918 0%, #1A1F1F 100%);
  color: var(--text);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(62px, 8vw, 102px);
}
.safety-band .section-eyebrow { color: var(--brand-bright); }
.safety-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(360px, 1fr); gap: clamp(34px, 6vw, 86px); align-items: center; }
.safety-grid h2 { color: var(--text); margin-bottom: 18px; }
.safety-grid p { color: var(--text-2); font-size: 17px; line-height: 1.72; margin: 0; max-width: 630px; }
.safety-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.safety-list a {
  display: block; min-height: 132px; padding: 20px; border-radius: 16px; color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.060), rgba(255,255,255,.025));
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px -34px rgba(0,0,0,.85);
}
.safety-list a:hover { color: var(--text); border-color: rgba(168,198,13,.55); background: rgba(168,198,13,.070); }
.safety-list strong { display: block; font-family: var(--font-head); font-size: 18px; margin-bottom: 8px; }
.safety-list span { display: block; color: var(--text-2); font-size: 14px; line-height: 1.48; }

.final-cta { text-align: center; max-width: 800px; }
.final-cta p:not(.section-eyebrow) { color: var(--text-2); margin: 14px auto 26px; max-width: 620px; }
.final-cta .hero-actions { justify-content: center; }

@media (max-width: 860px) {
  .landing-hero { min-height: calc(100svh - 116px); }
  .hero-media img { object-position: 72% center; }
  .landing-hero::after {
    background:
      linear-gradient(90deg, rgba(14,17,17,.96) 0%, rgba(14,17,17,.86) 54%, rgba(14,17,17,.58) 100%),
      linear-gradient(180deg, rgba(14,17,17,.28) 0%, rgba(14,17,17,.12) 42%, rgba(14,17,17,.82) 100%);
  }
  .safety-grid { grid-template-columns: 1fr; }
  .signal-strip, .feature-grid, .safety-list { grid-template-columns: 1fr; }
  .landing-section { padding-left: 18px; padding-right: 18px; }
}

/* ── Hero + search ────────────────────────────────────────────────────────── */
.hero { text-align: center; padding: clamp(48px, 9vw, 96px) 0 clamp(28px, 5vw, 48px); }
.hero .eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--brand);
  padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--surface); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 6.4vw, 58px); font-weight: 800; line-height: 1.02; margin: 0 0 14px; letter-spacing: -.03em; }
.hero .sub { color: var(--text-2); font-size: clamp(15px, 2.2vw, 18px); margin: 0 auto 30px; max-width: 540px; }

.search { max-width: 640px; margin: 0 auto; position: relative; }
.section-search { margin: 16px 0 8px; }
.search input {
  width: 100%; height: 58px; padding: 0 18px 0 52px; font-size: 16px; font-family: var(--font-body);
  color: var(--text); background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 16px; outline: none; box-shadow: var(--shadow-1);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.search input::placeholder { color: var(--text-3); }
.search input:focus { border-color: var(--brand); box-shadow: var(--ring); }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
#results { max-width: 640px; margin: 10px auto 0; text-align: left; padding: 0; list-style: none; }
#results li { padding: 0; }
#results li a {
  display: block; padding: 13px 16px; color: var(--text); border: 1px solid var(--border);
  border-radius: var(--r-sm); margin-top: 8px; background: var(--surface); transition: border-color .15s var(--ease), background .15s var(--ease);
}
#results li a:hover { border-color: var(--brand); background: var(--surface-2); }

/* ── Category tiles ───────────────────────────────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-3); margin: 8px 0 16px;
}
.cats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 8px 0 56px;
}
@media (min-width: 860px) { .cats { grid-template-columns: repeat(4, 1fr); } }
.cat {
  position: relative; display: flex; flex-direction: column; gap: 14px; text-align: left;
  padding: 24px; min-height: 168px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); color: var(--text); overflow: hidden;
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.cat::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 80% at 100% 0, rgba(168,198,13,.10), transparent 55%);
  opacity: 0; transition: opacity .18s var(--ease);
}
.cat:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-2); color: var(--text); }
.cat:hover::after { opacity: 1; }
.cat .ic {
  width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: var(--brand-grad); color: var(--on-brand); box-shadow: 0 6px 18px -6px rgba(168,198,13,.6);
}
.cat .ic svg { width: 24px; height: 24px; }
.cat .t { font-family: var(--font-head); font-weight: 600; font-size: 17px; }
.cat .desc { color: var(--text-2); font-size: 13.5px; line-height: 1.5; margin-top: -4px; }
.cat .go { margin-top: auto; color: var(--brand); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.cat .go span { transition: transform .18s var(--ease); }
.cat:hover .go span { transform: translateX(4px); }

/* ── Popular articles ─────────────────────────────────────────────────────── */
.popular { margin: 0 auto 72px; }
.pop-grid { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
@media (min-width: 720px) { .pop-grid { grid-template-columns: 1fr 1fr; } }
.pop-grid a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; color: var(--text); border-bottom: 1px solid var(--border); min-height: 44px;
  transition: background .15s var(--ease);
}
.pop-grid a:hover { background: var(--surface-2); color: var(--text); }
.pop-grid a::after { content: "→"; color: var(--brand); opacity: .8; }
@media (min-width: 720px) { .pop-grid a:nth-child(odd) { border-right: 1px solid var(--border); } }

/* ── Category / article pages ─────────────────────────────────────────────── */
.page { padding: 36px 0 88px; }
.page h1 { font-size: clamp(26px, 4.5vw, 36px); font-weight: 700; margin: 0 0 8px; }
.crumb { color: var(--text-3); font-size: 14px; margin-bottom: 22px; }
.crumb a { color: var(--text-2); }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 4px 48px; }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.sec h2 { font-family: var(--font-head); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin: 30px 0 4px; }

/* Accordion article */
details { border-bottom: 1px solid var(--border); }
details > summary {
  list-style: none; cursor: pointer; padding: 16px 0; color: var(--text); min-height: 44px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 500;
  transition: color .15s var(--ease);
}
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "+"; font-family: var(--font-head); color: var(--brand); font-weight: 700; font-size: 20px; line-height: 1; }
details[open] > summary::after { content: "–"; }
details > summary:hover { color: var(--brand-bright); }
details .body { padding: 0 0 18px; color: var(--text-2); max-width: 64ch; }
details .body p { margin: 0 0 10px; }
details .body ul { margin: 0 0 10px; padding-left: 18px; }
details .body b { color: var(--text); font-weight: 600; }

/* ── Legal doc pages ──────────────────────────────────────────────────────── */
.doc { padding: 40px 0 88px; max-width: 760px; }
.doc h1 { font-size: clamp(26px, 4.5vw, 34px); font-weight: 700; }
.doc h2 { font-family: var(--font-head); font-size: 19px; margin-top: 32px; color: var(--brand); }
.doc p, .doc li { color: var(--text-2); }
.doc .updated { color: var(--text-3); font-size: 14px; }
.doc .disclaimer { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: var(--r-sm); padding: 14px 16px; font-size: 14px; color: var(--text-2); }
/* Retention schedules are genuinely tabular, and both app stores cross-check the
   numbers against the in-app text — so the table has to stay readable, including
   on a phone. The wrapper scrolls, never the page body. */
.doc .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 14px 0 4px; }
.doc table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.doc th { color: var(--text); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; background: var(--surface); border-bottom-color: var(--border-strong); }
.doc tbody tr:last-child td { border-bottom: none; }
.doc td:first-child { color: var(--text); width: 38%; }

/* ── Support page ─────────────────────────────────────────────────────────── */
.support-page {
  background:
    radial-gradient(760px 420px at 18% -160px, rgba(168,198,13,.12), transparent 72%),
    radial-gradient(680px 360px at 88% 18%, rgba(168,198,13,.09), transparent 74%),
    var(--bg);
}
.support-hero {
  padding: clamp(54px, 8vw, 96px) 24px clamp(28px, 4vw, 46px);
}
.support-hero h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: .95;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -.035em;
}
.support-hero .updated {
  color: var(--text-2);
  font-size: clamp(16px, 2vw, 19px);
  max-width: 720px;
  margin: 0 0 24px;
}
.support-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
  padding-bottom: clamp(72px, 8vw, 112px);
}
.support-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.support-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 252px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.060), rgba(255,255,255,.026)),
    var(--surface);
  box-shadow: 0 20px 48px -38px rgba(0,0,0,.85);
  overflow: hidden;
}
.support-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(360px 190px at 100% 0%, rgba(168,198,13,.085), transparent 68%);
  opacity: .9;
}
.support-card.urgent {
  border-color: rgba(168,198,13,.42);
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(168,198,13,.11), transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.028)),
    var(--surface);
}
.support-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--on-brand);
  background: var(--brand-grad);
  border-radius: 15px;
  margin-bottom: 22px;
  box-shadow: 0 16px 32px -22px rgba(168,198,13,.86);
}
.support-icon svg { width: 24px; height: 24px; }
.support-card h2 {
  position: relative;
  z-index: 1;
  font-size: 23px;
  line-height: 1.12;
  margin: 0 0 12px;
  color: var(--text);
}
.support-card p {
  position: relative;
  z-index: 1;
  color: var(--text-2);
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.65;
}
.support-link {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--brand-bright);
  font-weight: 800;
}
.support-link::after {
  content: "→";
  margin-left: 8px;
  transition: transform .16s var(--ease);
}
.support-link:hover::after { transform: translateX(4px); }
.support-aside {
  position: sticky;
  top: 96px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(380px 220px at 100% 0%, rgba(168,198,13,.11), transparent 72%),
    var(--surface);
}
.support-aside h2 {
  font-size: 28px;
  line-height: 1;
  margin: 0 0 18px;
}
.support-aside a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 14px 0;
  color: var(--text);
  border-top: 1px solid var(--border);
}
.support-aside a:hover { color: var(--brand-bright); }
.support-aside a span { font-weight: 700; }
.support-aside a b {
  color: var(--text-3);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

@media (max-width: 980px) {
  .support-layout { grid-template-columns: 1fr; }
  .support-aside { position: static; }
}

@media (max-width: 680px) {
  .support-hero { padding-top: 42px; }
  .support-actions .primary-cta,
  .support-actions .secondary-cta { width: 100%; }
  .support-cards { grid-template-columns: 1fr; }
  .support-card { min-height: auto; }
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--text-3); font-size: 14px; background: var(--surface); }
.footer-row { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-row a { color: var(--text-2); min-height: 44px; display: inline-flex; align-items: center; }
.footer-row a:hover { color: var(--text); }
.footer-row .spacer { flex: 1; }
.no-results { color: var(--text-2); padding: 24px 0; display: none; }

/* One orchestrated page-load reveal: staggered rise-in. */
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero .eyebrow, .hero h1, .hero .sub, .hero .search,
.section-eyebrow, .cat, .popular { animation: riseIn .6s var(--ease) both; }
.hero h1 { animation-delay: .06s; }
.hero .sub { animation-delay: .12s; }
.hero .search { animation-delay: .18s; }
.cats .cat:nth-child(1) { animation-delay: .22s; }
.cats .cat:nth-child(2) { animation-delay: .29s; }
.cats .cat:nth-child(3) { animation-delay: .36s; }
.cats .cat:nth-child(4) { animation-delay: .43s; }
.popular { animation-delay: .5s; }

/* ── 404 page ─────────────────────────────────────────────────────────────── */
.notfound { text-align: center; padding: clamp(72px, 14vw, 160px) 24px; }
.notfound-code {
  font-family: var(--font-head); font-weight: 800; color: var(--brand);
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-size: clamp(72px, 16vw, 140px); line-height: 1; margin: 0 0 10px; letter-spacing: -.04em;
  display: inline-block;
}
.notfound h1 { font-size: clamp(26px, 4.5vw, 40px); font-weight: 700; margin: 0 0 10px; letter-spacing: -.02em; }
.notfound .sub { color: var(--text-2); margin: 0 0 28px; }
.notfound .hero-actions { justify-content: center; }

/* Respect users who prefer less motion (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
