/* ============================================================================
   Club INR - "Midnight Table"
   ---------------------------------------------------------------------------
   Aesthetic family: high-contrast midnight arcade. Cool graphite neutrals with
   ONE accent (amber-gold, drawn from the logo mark). Sans display type, no
   serif. Dual mode: dark is the default signal, light is fully designed.

   Shape rule (locked, applied everywhere):
     interactive -> full pill      cards/panels -> 16px      inputs/chips -> 10px

   Brand signature: a 2px accent corner bracket on featured surfaces, plus a
   short accent rule under section headlines. No dots, no watermarks, no
   glows, no gradient text.

   Layout rule (locked): every bounded element resolves to the same two
   vertical guide lines as the header row. See "the shared column".
   ========================================================================== */

/* ---------- Self-hosted type (no external font requests) --------------- */

@font-face { font-family: 'Outfit'; src: url('/assets/fonts/outfit-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('/assets/fonts/outfit-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('/assets/fonts/outfit-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('/assets/fonts/outfit-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

@font-face { font-family: 'Jakarta'; src: url('/assets/fonts/plus-jakarta-sans-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/assets/fonts/plus-jakarta-sans-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/assets/fonts/plus-jakarta-sans-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/assets/fonts/plus-jakarta-sans-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

@font-face { font-family: 'JBMono'; src: url('/assets/fonts/jetbrains-mono-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'JBMono'; src: url('/assets/fonts/jetbrains-mono-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* Devanagari, for the /hi/ mirror */
@font-face { font-family: 'NotoDev'; src: url('/assets/fonts/noto-sans-devanagari-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'NotoDev'; src: url('/assets/fonts/noto-sans-devanagari-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'NotoDev'; src: url('/assets/fonts/noto-sans-devanagari-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }

/* ---------- Tokens ------------------------------------------------------ */

:root {
  /* Type */
  --font-display: 'Outfit', 'NotoDev', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Jakarta', 'NotoDev', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    'JBMono', ui-monospace, 'SFMono-Regular', monospace;

  /* Shape (locked scale) */
  --r-card:  16px;
  --r-input: 10px;
  --r-pill:  999px;

  /* Layout - the one shared content width */
  --container: 1200px;
  --gutter:    1.5rem;
  --nav-h:     4.25rem;   /* 68px, under the 80px cap */
  --util-h:    2.25rem;
  --header-h:  calc(var(--nav-h) + var(--util-h));

  /* Single accent, used identically in both modes */
  --accent:      #F5B325;   /* fills, rules, figures on dark */
  --accent-ink:  #1A1206;   /* label on an accent fill, 10.0:1 */
  /* Accent used AS TEXT. The fill amber is 2.75:1 on white, which fails AA,
     so text takes a darkened amber: 5.9:1 on white, 5.5:1 on --bg. */
  --accent-text: #8A5A00;

  /* Light mode (cool off-white, deliberately not beige) */
  --bg:         #F6F7FA;
  --bg-sunken:  #EDEFF4;
  --surface:    #FFFFFF;
  --surface-2:  #F1F3F7;
  --line:       #DCE1EA;
  --line-strong:#C3CBD8;
  --text:       #111721;
  --text-muted: #576073;
  --text-dim:   #7C8698;

  /* Band: the dark chrome used by the utility bar, hero, stat rail, ink tiles
     and footer. Deliberately dark in BOTH modes so no section inverts
     mid-page. Its text colours never change. */
  --band:        #111721;
  --band-text:   #E9EDF4;
  --band-muted:  rgba(233, 237, 244, .72);
  --band-line:   rgba(148, 160, 178, .26);

  --shadow-sm: 0 1px 2px rgba(17, 23, 33, .06), 0 4px 12px rgba(17, 23, 33, .05);
  --shadow-md: 0 2px 4px rgba(17, 23, 33, .07), 0 12px 30px rgba(17, 23, 33, .09);
  --shadow-lg: 0 4px 8px rgba(17, 23, 33, .09), 0 26px 60px rgba(17, 23, 33, .14);

  --scrim: linear-gradient(96deg, rgba(9,13,20,.94) 0%, rgba(9,13,20,.82) 42%, rgba(9,13,20,.44) 100%);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #0D1117;
    --bg-sunken:  #090D13;
    --surface:    #151B24;
    --surface-2:  #1C2431;
    --line:       #26303F;
    --line-strong:#38455A;
    --text:       #E9EDF4;
    --text-muted: #9CA7B9;
    --text-dim:   #78849A;

    --accent-text: var(--accent);   /* 10.2:1 on the dark page */

    /* Slightly deeper than the page so the band still reads as chrome. */
    --band:       #06090E;
    --band-line:  rgba(148, 160, 178, .18);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 12px rgba(0, 0, 0, .3);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, .45), 0 12px 30px rgba(0, 0, 0, .4);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, .5),  0 26px 60px rgba(0, 0, 0, .55);
  }
}

/* ---------- Base -------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  counter-reset: fig;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 .7rem;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, 1.7vw, 1.3rem); font-weight: 600; }
h4 { font-size: .95rem; font-weight: 700; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: .45rem; }

strong { font-weight: 700; color: var(--text); }

a { color: var(--accent-text); text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: .7rem 1.2rem; font-weight: 700; border-radius: 0 0 var(--r-input) 0;
}
.skip-link:focus { left: 0; }

/* ---------- The shared column ------------------------------------------
   Header, hero, every section, every card grid and the footer resolve to
   exactly these two vertical guide lines. Nothing inside sets a narrower
   or wider max-width.                                                     */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.panel, .panel-inv, .tile, .rich-tile, .step, .faq-list, .faq-item,
.grid-auto, .grid-bento, .grid-split, .stat-rail, .figure-row,
.foot-cta, .foot-map, .foot-trust, .foot-base, .checks {
  width: 100%;
  max-width: none;
  margin-inline: auto;
}

/* ---------- Accent corner bracket (brand signature) --------------------- */

.bracket { position: relative; }
.bracket::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 26px; height: 26px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  border-top-left-radius: var(--r-card);
  pointer-events: none;
}

/* ---------- Buttons ----------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 700; font-size: .94rem;
  line-height: 1;
  white-space: nowrap;            /* CTA labels never wrap */
  padding: .85rem 1.5rem;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.16,1,.3,1), background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px) scale(.985); }

/* accent fill, dark ink label: 8.9:1 in both modes */
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover, .btn-primary:focus-visible { background: #FFC341; transform: translateY(-2px); }

.btn-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover, .btn-secondary:focus-visible { border-color: var(--text); background: var(--surface-2); transform: translateY(-2px); }

/* on dark scrims / inverted panels */
.btn-onDark { background: transparent; color: #F3F6FA; border-color: rgba(243,246,250,.42); }
.btn-onDark:hover, .btn-onDark:focus-visible { background: #F3F6FA; color: #111721; border-color: #F3F6FA; transform: translateY(-2px); }

/* ---------- Header: two rows, single-line nav, 68px main row ------------ */

.site-header { position: sticky; top: 0; z-index: 100; }
.header-scroll-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }

.util-bar {
  background: var(--band);
  color: var(--band-text);
  font-size: .78rem;
  border-bottom: 1px solid var(--band-line);
}
.util-bar .container {
  min-height: var(--util-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.util-note { font-weight: 600; letter-spacing: .02em; opacity: .82; }
.util-nav { display: flex; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.util-nav a { color: inherit; opacity: .82; text-decoration: none; font-size: .78rem; transition: opacity .18s ease; }
.util-nav a:hover { opacity: 1; color: var(--accent); }

.nav-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .24s ease, background-color .24s ease;
}
.site-header.is-stuck .nav-bar { box-shadow: var(--shadow-md); }

.nav-bar .container {
  min-height: var(--nav-h);
  display: flex; align-items: center; gap: 1.25rem;
}

/* The mark is a square badge: contain it, never crop, never colour-filter. */
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; object-fit: contain; border-radius: var(--r-input); }

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex; align-items: center; gap: .1rem;
  list-style: none; margin: 0; padding: 0;
  flex-wrap: nowrap;                /* one line at desktop, always */
}
.main-nav a {
  display: block; white-space: nowrap;
  padding: .5rem .68rem;
  font-size: .875rem; font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--r-input);
  transition: color .18s ease, background-color .18s ease;
}
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a.active { color: var(--text); }
.main-nav a.active::after {
  content: ''; display: block; height: 2px; margin-top: .3rem;
  background: var(--accent); border-radius: 2px;
}

.nav-cta { flex: none; }
.nav-cta .btn { padding: .62rem 1.15rem; font-size: .86rem; }

.nav-toggle {
  display: none; flex: none; margin-left: auto;
  width: 2.6rem; height: 2.6rem; padding: 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 50%; top: 50%;
  width: 1.1rem; height: 2px; margin-left: -.55rem;
  background: var(--text); border-radius: 2px;
  transition: transform .26s cubic-bezier(.16,1,.3,1), opacity .18s ease;
}
.nav-toggle span:nth-child(1) { transform: translateY(-5.5px); }
.nav-toggle span:nth-child(3) { transform: translateY(5.5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

/* ---------- Hero: cinematic backdrop + asymmetric 7/5 split ------------- */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--band);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--scrim);
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
  padding-top: clamp(2.5rem, 5vw, 5rem);      /* under the pt-24 cap */
  padding-bottom: clamp(3rem, 5vw, 5rem);
  min-height: min(46rem, 82vh);
}

.hero-copy { color: #F3F6FA; }
/* Scaled so the verbatim source headline holds two lines in the 7fr column. */
.hero-copy h1 {
  color: #FFFFFF;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  max-width: 30ch;
}
.hero-copy h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  color: rgba(243,246,250,.8);
  max-width: 44ch;
  margin-bottom: 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-figure-wrap { position: relative; }

.hero-figure {
  position: relative;
  margin: 0;
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(243,246,250,.16);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }

.hero-medallion {
  position: absolute;
  left: -1.15rem; bottom: 1.6rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r-card);
  padding: .8rem 1.1rem;
  box-shadow: var(--shadow-md);
}
.hero-medallion .fig { display: block; font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; line-height: 1; }
.hero-medallion .cap { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-top: .25rem; }

/* ---------- Stat rail (mono figures, hairlines, no card boxes) ---------- */

.stat-rail-wrap { background: var(--band); }
.stat-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--band-line);
}
.stat {
  padding: 1.4rem 1.25rem;
  border-left: 1px solid var(--band-line);
  color: var(--band-text);
}
.stat:first-child { border-left: 0; }
.stat .fig {
  display: block;
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.1;
  color: var(--accent);
}
.stat .cap { display: block; margin-top: .3rem; font-size: .78rem; color: var(--band-muted); }

/* ---------- Sections ---------------------------------------------------- */

.section { padding: clamp(2.75rem, 5.5vw, 4.75rem) 0; }
.section--sunken { background: var(--bg-sunken); }

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: .8rem;
}

/* Section heads keep an inner measure for typography only. The outer
   container, panels and grids still span the full shared column. */
.sec-head { margin-bottom: 1.9rem; }
.sec-head h2 { position: relative; padding-bottom: .8rem; }
.sec-head h2::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 2.25rem; height: 2px; background: var(--accent); border-radius: 2px;
}
.sec-head > p { max-width: 64ch; color: var(--text-muted); margin-top: .9rem; }

/* ---------- Surfaces ---------------------------------------------------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(1.4rem, 2.8vw, 2.1rem);
  box-shadow: var(--shadow-sm);
}

.panel-inv {
  background: var(--band);
  color: var(--band-text);
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 3vw, 2.3rem);
}
.panel-inv h2, .panel-inv h3 { color: var(--band-text); }
.panel-inv p { color: var(--band-muted); }

.panel-lede > p:first-child {
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* ---------- Layout family 1: rich stack (H3 tiles + sub-cards) ---------- */

.rich-stack { display: grid; gap: 1rem; }
.rich-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.rich-tile h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); font-weight: 700; }
.rich-tile > p { color: var(--text-muted); }

.rich-tile h4 {
  margin: 1.5rem 0 .9rem;
  padding-top: .95rem;
  border-top: 2px solid var(--accent);
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text);
}
.rich-tile ul, .rich-tile ol {
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: grid; gap: .5rem;
}
.rich-tile li {
  position: relative; margin: 0;
  background: var(--surface-2);
  border-radius: var(--r-input);
  padding: .8rem 1rem .8rem 1.2rem;
  font-size: .93rem; color: var(--text-muted);
  border-left: 3px solid var(--accent);
}

/* ---------- Layout family 2: bento (asymmetric, never 3 equal cards) ---- */

.grid-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(1.25rem, 2.2vw, 1.6rem);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .2s cubic-bezier(.16,1,.3,1), border-color .2s ease;
}
.tile:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.tile h3 { margin-bottom: .5rem; }
.tile p { color: var(--text-muted); font-size: .94rem; }

.tile--feature { grid-column: span 4; }
.tile--half    { grid-column: span 3; }
.tile--third   { grid-column: span 2; }
.tile--side    { grid-column: span 2; }
.tile--full    { grid-column: 1 / -1; }

/* media inside a bento cell: real visual variation, not text-only cards */
.tile-media {
  margin: -1.6rem -1.6rem 1.1rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}
.tile-media img { width: 100%; height: 100%; object-fit: cover; }

.tile--tint { background: var(--surface-2); }
.tile--ink  { background: var(--band); border-color: transparent; }
.tile--ink h3 { color: var(--band-text); }
.tile--ink p  { color: var(--band-muted); }

.tile-link {
  margin-top: auto; padding-top: 1rem;
  font-size: .85rem; font-weight: 700;
  color: var(--accent-text); text-decoration: none;
  display: inline-flex; align-items: center; gap: .35rem;
  transition: gap .18s ease;
}
.tile-link::after { content: '>'; font-family: var(--font-mono); }
.tile-link:hover { gap: .6rem; }
.tile--ink .tile-link { color: var(--accent); }

/* ---------- Layout family 3: split (copy + image, 7/5) ----------------- */

.grid-split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
}
.grid-split--flip > :first-child { order: 2; }

.split-figure {
  margin: 0;
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--surface-2);
}
.split-figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Layout family 4: numbered flow ----------------------------- */

.flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; }
.step {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.step-n {
  font-family: var(--font-mono); font-weight: 700; font-size: .95rem;
  color: var(--accent-text);
  padding-top: .1rem;
}
.step p { color: var(--text-muted); font-size: .94rem; margin: 0 0 .6rem; }
.step p:last-child { margin-bottom: 0; }
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.step ul, .step ol {
  list-style: none; padding: 0; margin: .6rem 0 0;
  display: grid; gap: .35rem;
}
.step li {
  margin: 0; padding-left: 1rem; position: relative;
  font-size: .9rem; color: var(--text-muted);
}
.step li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: .35rem; height: 1px; background: var(--accent);
}

/* A grid or panel that stacks directly beneath the one before it */
.stack-gap { margin-top: 1rem; }

/* ---------- Layout family 5: check panel ------------------------------- */

.checks {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(1.4rem, 2.8vw, 2.1rem);
  box-shadow: var(--shadow-sm);
}
.checks > p { color: var(--text-muted); }
.checks ul, .checks ol {
  list-style: none; padding: 0; margin: 1.1rem 0 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.5rem;
}
.checks li {
  position: relative; margin: 0; padding-left: 1.85rem;
  font-size: .94rem; color: var(--text-muted);
}
.checks li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: .7rem; height: .7rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) translateY(-2px);
}

/* ---------- Figure row (in-content image, contained) ------------------- */

.figure-row {
  counter-increment: fig;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: center;
}
.figure-row figure {
  margin: 0;
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--surface-2);
}
.figure-row figure img { width: 100%; height: 100%; object-fit: cover; }
.figure-row-aside h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); margin: 0; }
.figure-row-aside .idx {
  display: block;
  font-family: var(--font-mono); font-weight: 700; font-size: .78rem;
  letter-spacing: .12em;
  color: var(--text-dim);
  margin-bottom: .55rem;
}
.figure-row-aside .idx::before { content: counter(fig, decimal-leading-zero) ' / '; color: var(--accent); }

/* ---------- FAQ -------------------------------------------------------- */

.faq-list { display: grid; gap: .6rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  transition: border-color .2s ease;
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.3rem;
  cursor: pointer; list-style: none;
  font-family: var(--font-display);
  font-size: 1.02rem; font-weight: 600; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex: none; width: 1.4rem; height: 1.4rem; position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  background: var(--accent); border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: transform .24s cubic-bezier(.16,1,.3,1);
}
.faq-icon::before { width: .8rem; height: 2px; }
.faq-icon::after  { width: 2px; height: .8rem; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-answer { padding: 0 1.3rem 1.2rem; color: var(--text-muted); font-size: .95rem; }

/* ---------- Page hero (inner pages) ----------------------------------- */

.page-hero {
  position: relative; isolation: isolate;
  background: var(--band);
  overflow: hidden;
}
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--scrim);
}
.page-hero .container {
  padding-top: clamp(2rem, 4vw, 3.4rem);
  padding-bottom: clamp(2rem, 4vw, 3.4rem);
  color: #F3F6FA;
}
.page-hero h1 { color: #FFFFFF; max-width: 26ch; }
.page-hero .hero-sub { margin-bottom: 1.1rem; max-width: 58ch; }

.crumbs { font-size: .8rem; margin-bottom: 1rem; color: rgba(243,246,250,.62); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.crumbs li { margin: 0; display: inline-flex; align-items: center; gap: .4rem; }
.crumbs li + li::before { content: '/'; color: rgba(243,246,250,.35); }
.crumbs a { color: rgba(243,246,250,.82); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.byline {
  font-size: .8rem; color: rgba(243,246,250,.68);
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-family: var(--font-mono);
}
.byline strong { color: #F3F6FA; font-weight: 700; }

/* ---------- Footer ---------------------------------------------------- */

.site-footer { margin-top: clamp(3rem, 6vw, 5rem); background: var(--band); color: var(--band-text); }

.foot-cta-wrap { padding-top: clamp(2.5rem, 5vw, 4rem); }
.foot-cta {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r-card);
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem; align-items: center;
}
.foot-cta h2 { color: var(--accent-ink); margin-bottom: .35rem; }
.foot-cta p { color: rgba(26,18,6,.78); margin: 0; max-width: 46ch; }
.foot-cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.foot-cta .btn-primary { background: var(--accent-ink); color: #F8EBD0; }
.foot-cta .btn-primary:hover { background: #2E220F; }
.foot-cta .btn-secondary { color: var(--accent-ink); border-color: rgba(26,18,6,.4); }
.foot-cta .btn-secondary:hover { background: var(--accent-ink); color: #F8EBD0; border-color: var(--accent-ink); }

.foot-map {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(2.25rem, 4.5vw, 3.25rem) 0 2rem;
}
.foot-brand img { height: 48px; width: auto; object-fit: contain; border-radius: var(--r-input); }
.foot-tagline { font-size: .9rem; color: var(--band-muted); margin: 1rem 0 1.1rem; max-width: 38ch; }

.pay-pills { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.pay-pills li {
  margin: 0; font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  font-family: var(--font-mono);
  color: var(--band-muted);
  border: 1px solid var(--band-line);
  border-radius: var(--r-pill); padding: .28rem .7rem;
}

.foot-col h3 {
  font-size: .8rem; font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .95rem;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.foot-col li { margin: 0; }
.foot-col a {
  color: var(--band-muted); text-decoration: none; font-size: .9rem;
  transition: color .18s ease;
}
.foot-col a:hover { color: var(--accent); }

.foot-trust {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  list-style: none; padding: 1.25rem 0; margin: 0;
  border-top: 1px solid var(--band-line);
  font-family: var(--font-mono);
  font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--band-muted);
}
.foot-trust li { margin: 0; }

.foot-base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .7rem;
  padding: 1.1rem 0 1.9rem;
  border-top: 1px solid var(--band-line);
  font-size: .78rem;
  color: rgba(233, 237, 244, .56);
}

/* ---------- 404 ------------------------------------------------------- */

.err { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.err .code {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(4rem, 14vw, 9rem); line-height: .9;
  color: var(--accent);
  margin: 0 0 1rem;
}
.err p { color: var(--text-muted); max-width: 52ch; }

/* ---------- Motion ---------------------------------------------------- */

.has-js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1);
}
.has-js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .has-js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Responsive ------------------------------------------------ */

@media (max-width: 1100px) {
  .hero .container { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-figure { aspect-ratio: 16 / 10; order: -1; }
  .hero-medallion { left: auto; right: 1rem; bottom: 1rem; }
  .hero-copy h1 { max-width: none; }
  .foot-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--feature { grid-column: span 6; }
  .tile--half, .tile--third, .tile--side { grid-column: span 3; }
}

@media (max-width: 900px) {
  :root { --nav-h: 3.9rem; }

  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--bg);
    margin-left: 0;
    padding: 1.5rem var(--gutter) 3rem;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.16,1,.3,1);
    overflow-y: auto;
    border-top: 1px solid var(--line);
  }
  .main-nav.is-open { transform: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; flex-wrap: wrap; }
  .main-nav a {
    padding: .95rem .25rem; font-size: 1.02rem;
    border-bottom: 1px solid var(--line); border-radius: 0;
  }
  .main-nav a.active::after { display: none; }

  .nav-cta, .util-nav { display: none; }
  .util-bar .container { justify-content: center; }

  .stat-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--band-line); }

  .grid-split, .figure-row, .flow { grid-template-columns: minmax(0, 1fr); }
  .grid-split--flip > :first-child { order: 0; }
  .split-figure { aspect-ratio: 16 / 10; }
  .figure-row-aside { order: -1; }

  .foot-cta { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  :root { --gutter: 1.15rem; }
  .checks ul, .checks ol { grid-template-columns: minmax(0, 1fr); }
  .tile-media { margin: -1.25rem -1.25rem 1rem; }
}

@media (max-width: 560px) {
  .grid-bento { grid-template-columns: minmax(0, 1fr); }
  .tile--feature, .tile--half, .tile--third, .tile--side, .tile--full { grid-column: span 1; }
  .stat-rail { grid-template-columns: minmax(0, 1fr); }
  .stat { border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--band-line); }
  .btn { width: 100%; }
  .hero-actions, .foot-cta-actions { width: 100%; }
  .hero-medallion { position: static; display: inline-block; margin-top: 1rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.45rem; }
  .foot-base { flex-direction: column; align-items: flex-start; }
  .foot-trust { gap: .6rem 1.1rem; }
}
