/* ============================================================
   AACN — Agent's Association & Co-operating Network
   Design tokens: institutional indigo + India-saffron
   Type: Spectral (display) / Inter (UI) / tabular mono (data)
   Distinct from CoClose teal/navy — deliberately.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Spectral:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Roboto+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand */
  --indigo-900: #1E1B4B;
  --indigo-800: #2E2A6E;
  --indigo-700: #4338CA;
  --indigo-600: #5145D6;
  --indigo-100: #E7E5F9;
  --indigo-50:  #F2F1FC;

  --saffron-600: #C2620F;
  --saffron-500: #E07A1F;
  --saffron-400: #F0944A;
  --saffron-100: #FCEBDA;

  /* Neutrals — warm paper */
  --paper:    #FBFAF7;
  --surface:  #FFFFFF;
  --ink:      #1B1A2E;
  --ink-2:    #4A4863;
  --ink-3:    #6F6C87;
  --line:     #E6E3DC;
  --line-2:   #D8D4CB;
  --muted:    #F4F2EC;

  /* Status */
  --green-600:#15803D; --green-100:#DCFCE7;
  --amber-600:#B45309; --amber-100:#FDF0D5;
  --red-600:  #B91C1C; --red-100:  #FBE2E2;
  --blue-600: #1D4ED8; --blue-100: #DBEAFE;

  /* Radius / shadow / space */
  --r-sm: 7px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px;
  --sh-1: 0 1px 2px rgba(27,26,46,.06), 0 1px 3px rgba(27,26,46,.05);
  --sh-2: 0 4px 14px rgba(27,26,46,.08);
  --sh-3: 0 18px 48px rgba(30,27,75,.16);
  --maxw: 1180px;
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto; }
}

h1,h2,h3 { font-family:'Spectral', Georgia, serif; font-weight:600; line-height:1.18; letter-spacing:-.01em; margin:0; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1rem; color: var(--ink-2); }
a { color: var(--indigo-700); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family:'Roboto Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.eyebrow { font-size:.74rem; font-weight:600; letter-spacing:.13em; text-transform:uppercase; color:var(--saffron-600); }
.lead { font-size:1.12rem; color:var(--ink-2); }
.muted-text { color: var(--ink-3); }
.center { text-align:center; }
.wrap { max-width: var(--maxw); margin:0 auto; padding: 0 24px; }
.hidden { display:none !important; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top:0; z-index: 100;
  height: var(--nav-h);
  background: rgba(251,250,247,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: var(--maxw); margin:0 auto; padding:0 24px; height:100%;
  display:flex; align-items:center; gap: 22px; }
.brand { display:flex; align-items:center; gap:11px; cursor:pointer; }
.brand-mark { width:34px; height:34px; flex:0 0 34px; }
.brand-name { font-family:'Spectral',serif; font-weight:700; font-size:1.16rem; color:var(--indigo-900); letter-spacing:-.01em; }
.brand-name small { display:block; font-family:'Inter',sans-serif; font-weight:500; font-size:.6rem; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-3); margin-top:-2px; }
.nav-links { display:flex; gap:4px; margin-left:auto; align-items:center; }
.nav-links a, .nav-tab {
  font-size:.87rem; font-weight:500; color:var(--ink-2);
  padding:8px 12px; border-radius:var(--r-sm); cursor:pointer; border:none; background:none;
  font-family:inherit; transition: background .16s, color .16s;
}
.nav-links a:hover, .nav-tab:hover { background:var(--muted); color:var(--ink); text-decoration:none; }
.nav-tab.active { background:var(--indigo-50); color:var(--indigo-700); }
.nav-menu-btn { display:none; }

/* ---------- Buttons ---------- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:inherit; font-size:.92rem; font-weight:600;
  padding:11px 20px; border-radius:var(--r-sm); cursor:pointer;
  border:1px solid transparent; transition: transform .12s, box-shadow .16s, background .16s; min-height:44px;
}
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--indigo-700); color:#fff; box-shadow: var(--sh-1); }
.btn-primary:hover { background: var(--indigo-800); text-decoration:none; }
.btn-accent { background: var(--saffron-500); color:#fff; }
.btn-accent:hover { background: var(--saffron-600); text-decoration:none; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--muted); text-decoration:none; }
.btn-sm { padding:7px 13px; font-size:.82rem; min-height:36px; }
.btn[disabled]{ opacity:.45; cursor:not-allowed; }

/* ---------- Generic surfaces ---------- */
.card { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--sh-1); }
.card-pad { padding: 22px; }
.grid { display:grid; gap:20px; }
/* vertical-only longhand so these never clobber .wrap's horizontal padding when combined (e.g. class="wrap section-tight") */
.section { padding-block: 64px; }
.section-tight { padding-block: 40px; }

/* ---------- Badges / chips ---------- */
.badge { display:inline-flex; align-items:center; gap:5px; font-size:.74rem; font-weight:600;
  padding:3px 9px; border-radius:100px; line-height:1.4; }
.badge svg{ width:12px; height:12px; }
.b-green { background:var(--green-100); color:var(--green-600); }
.b-amber { background:var(--amber-100); color:var(--amber-600); }
.b-red   { background:var(--red-100);   color:var(--red-600); }
.b-blue  { background:var(--blue-100);  color:var(--blue-600); }
.b-indigo{ background:var(--indigo-100);color:var(--indigo-700); }
.b-gray  { background:var(--muted);     color:var(--ink-3); }

/* force-class pill for rulebook */
.force { font-size:.66rem; font-weight:700; letter-spacing:.06em; padding:2px 7px; border-radius:5px; text-transform:uppercase; }
.force-M { background:var(--red-100); color:var(--red-600); }
.force-R { background:var(--amber-100); color:var(--amber-600); }
.force-O { background:var(--blue-100); color:var(--blue-600); }
.force-I { background:var(--muted); color:var(--ink-3); }

/* ============================================================
   LANDING
   ============================================================ */
.hero { position:relative; overflow:hidden; padding: 72px 0 56px;
  background:
    radial-gradient(900px 380px at 82% -8%, var(--indigo-50), transparent 70%),
    radial-gradient(700px 360px at 4% 8%, var(--saffron-100), transparent 62%);
}
.hero-grid { display:grid; grid-template-columns: 1.08fr .92fr; gap:48px; align-items:center; }
.hero h1 { color:var(--indigo-900); margin:14px 0 18px; }
.hero h1 .accent { color:var(--saffron-600); }
.hero-cta { display:flex; gap:12px; flex-wrap:wrap; margin-top:26px; }
.hero-note { margin-top:18px; font-size:.82rem; color:var(--ink-3); display:flex; align-items:center; gap:7px; }

/* hoarding vs cooperation visual */
.versus { display:grid; grid-template-columns:1fr auto 1fr; gap:14px; align-items:stretch; }
.versus .vs-mid { display:flex; align-items:center; font-family:'Spectral',serif; font-style:italic; color:var(--ink-3); }
.vbox { border-radius:var(--r-md); padding:16px; border:1px solid var(--line); }
.vbox.bad { background:var(--red-100); border-color:#F3C9C9; }
.vbox.good{ background:var(--green-100); border-color:#BBE9C9; }
.vbox h4 { margin:0 0 6px; font-family:'Inter'; font-size:.92rem; }
.vbox .big { font-family:'Roboto Mono'; font-size:1.7rem; font-weight:600; }
.vbox.bad .big { color:var(--red-600); } .vbox.good .big{ color:var(--green-600); }
.vbox small { color:var(--ink-2); }

.statbar { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line);
  border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; margin-top:8px; }
.statbar .s { background:var(--surface); padding:20px; }
.statbar .s .n { font-family:'Roboto Mono'; font-size:1.6rem; font-weight:600; color:var(--indigo-800); }
.statbar .s .l { font-size:.8rem; color:var(--ink-3); margin-top:2px; }

.pillars { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.pillar .ic { width:42px; height:42px; border-radius:11px; display:flex; align-items:center; justify-content:center;
  background:var(--indigo-50); color:var(--indigo-700); margin-bottom:14px; }
.pillar .ic svg{ width:22px; height:22px; }
.pillar h3 { margin-bottom:7px; }
.pillar p { font-size:.92rem; margin:0; }
.pillar-link { cursor:pointer; transition:transform .12s, box-shadow .16s, border-color .16s; }
.pillar-link:hover { box-shadow:var(--sh-2); transform:translateY(-2px); border-color:var(--indigo-300, #a5b4fc); }
.pillar-link:focus-visible { outline:2px solid var(--indigo-700); outline-offset:2px; }
.pillar-link::after { content:"Open →"; display:block; margin-top:12px; font-size:.8rem; font-weight:600; color:var(--indigo-700); opacity:.85; }

.how { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; counter-reset:step; }
.how .step { position:relative; padding-top:8px; }
.how .step .num { font-family:'Roboto Mono'; font-weight:600; color:var(--saffron-600); font-size:.9rem; }
.how .step h4 { margin:6px 0 5px; font-family:'Inter'; font-size:1rem; }
.how .step p { font-size:.88rem; margin:0; }

.origin-tags { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }

/* ============================================================
   APP SHELL (logged-in)
   ============================================================ */
.app-head { background:var(--indigo-900); color:#fff; padding:26px 0 22px; }
.app-head .wrap { display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.avatar { width:54px; height:54px; border-radius:13px; background:var(--saffron-500); color:#fff;
  display:flex; align-items:center; justify-content:center; font-family:'Spectral'; font-weight:700; font-size:1.4rem; flex:0 0 54px; }
.app-head h2 { color:#fff; }
.app-head .sub { color:#C9C6E8; font-size:.86rem; }
.app-head .right { margin-left:auto; text-align:right; }

.subnav { background:var(--surface); border-bottom:1px solid var(--line); position:sticky; top:var(--nav-h); z-index:50; }
.subnav-inner { max-width:var(--maxw); margin:0 auto; padding:0 24px; display:flex; gap:2px; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.subnav-inner::-webkit-scrollbar { display:none; }
.subnav button { font-family:inherit; font-size:.86rem; font-weight:500; color:var(--ink-2);
  background:none; border:none; border-bottom:2px solid transparent; padding:13px 14px; cursor:pointer; white-space:nowrap; }
.subnav button:hover { color:var(--ink); }
.subnav button.active { color:var(--indigo-700); border-bottom-color:var(--indigo-700); }

/* metric cards */
.metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.metric { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); padding:18px; }
.metric .l { font-size:.78rem; color:var(--ink-3); display:flex; align-items:center; gap:6px; }
.metric .v { font-family:'Roboto Mono'; font-size:1.7rem; font-weight:600; color:var(--ink); margin-top:6px; }
.metric .v.small { font-size:1.25rem; }

/* table */
.table { width:100%; border-collapse:collapse; font-size:.88rem; }
.table th { text-align:left; font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-3);
  font-weight:600; padding:10px 12px; border-bottom:1px solid var(--line-2); }
.table td { padding:12px; border-bottom:1px solid var(--line); vertical-align:middle; }
.table tr:last-child td { border-bottom:none; }
.table tr:hover td { background:var(--paper); }
/* horizontal-scroll container so wide data tables never break the mobile viewport */
.table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; max-width:100%; }

/* trust gauge */
.gauge { display:flex; align-items:center; gap:26px; flex-wrap:wrap; }
.dial { --pct:100; width:150px; height:150px; border-radius:50%; flex:0 0 150px;
  background: conic-gradient(var(--dial-c) calc(var(--pct)*1%), var(--muted) 0);
  display:flex; align-items:center; justify-content:center; }
.dial .inner { width:112px; height:112px; border-radius:50%; background:var(--surface);
  display:flex; flex-direction:column; align-items:center; justify-content:center; box-shadow:var(--sh-1); }
.dial .pts { font-family:'Roboto Mono'; font-size:2rem; font-weight:600; line-height:1; }
.dial .of { font-size:.72rem; color:var(--ink-3); }

.bands { display:grid; gap:8px; }
.band { display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:var(--r-sm); border:1px solid var(--line); }
.band.cur { border-color:var(--indigo-600); background:var(--indigo-50); }
.band .dot{ width:11px; height:11px; border-radius:50%; flex:0 0 11px; }
.band .nm { font-weight:600; font-size:.9rem; }
.band .rg { font-family:'Roboto Mono'; font-size:.8rem; color:var(--ink-3); margin-left:auto; }

/* split bar (commission pool) */
.splitbar { display:flex; height:40px; border-radius:var(--r-sm); overflow:hidden; border:1px solid var(--line); }
.splitbar .seg { display:flex; align-items:center; justify-content:center; color:#fff; font-size:.74rem; font-weight:600;
  min-width:0; overflow:hidden; white-space:nowrap; }
.role-row { display:flex; align-items:center; gap:12px; padding:11px 0; border-bottom:1px solid var(--line); }
.role-row:last-child { border-bottom:none; }
.role-row .sw { width:12px; height:12px; border-radius:3px; flex:0 0 12px; }
.role-row .who { margin-left:auto; }
.role-side-h { font-size:.74rem; text-transform:uppercase; letter-spacing:.07em; color:var(--ink-3);
  font-weight:600; margin:18px 0 4px; }

/* progress / checklist */
.check-step { display:flex; gap:14px; padding:16px; border:1px solid var(--line); border-radius:var(--r-md); margin-bottom:12px; background:var(--surface); }
.check-step .ck { width:26px; height:26px; border-radius:50%; flex:0 0 26px; border:2px solid var(--line-2);
  display:flex; align-items:center; justify-content:center; }
.check-step.done .ck { background:var(--green-600); border-color:var(--green-600); color:#fff; }
.check-step .ck svg{ width:14px; height:14px; }
.check-step h4 { font-family:'Inter'; font-size:.98rem; margin:0 0 3px; }
.check-step p { font-size:.86rem; margin:0; }
.check-step .origin { font-size:.72rem; color:var(--ink-3); margin-top:6px; font-style:italic; }

/* forms */
.field { margin-bottom:16px; }
.field label { display:block; font-size:.82rem; font-weight:600; margin-bottom:6px; color:var(--ink); }
.field label .req { color:var(--red-600); }
.field input, .field select, .field textarea {
  width:100%; padding:11px 13px; border:1px solid var(--line-2); border-radius:var(--r-sm);
  font-family:inherit; font-size:.92rem; background:var(--surface); color:var(--ink); min-height:44px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline:none; border-color:var(--indigo-600); box-shadow:0 0 0 3px var(--indigo-100);
}
.field .help { font-size:.76rem; color:var(--ink-3); margin-top:5px; }
.field .err { font-size:.78rem; color:var(--red-600); margin-top:5px; display:none; }
.field.invalid .err { display:block; }
.field.invalid input, .field.invalid select { border-color:var(--red-600); }
.checkline { display:flex; gap:10px; align-items:flex-start; font-size:.88rem; margin-bottom:10px; }
.checkline input { width:auto; min-height:auto; margin-top:3px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 18px; }

/* listing cards */
.listings-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:18px; }
.lcard { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); overflow:hidden; transition:box-shadow .16s, transform .12s; cursor:pointer; }
.lcard:hover { box-shadow:var(--sh-2); transform:translateY(-2px); }
.lcard .ph { height:142px; background:var(--muted); position:relative; display:flex; align-items:center; justify-content:center; color:var(--ink-3);
  background-size:cover; background-position:center; }
.lcard .ph .flags { position:absolute; top:9px; left:9px; right:9px; display:flex; gap:6px; flex-wrap:wrap; }
.lcard .body { padding:14px; }
.lcard .ttl { font-weight:600; font-size:.98rem; margin-bottom:3px; }
.lcard .loc { font-size:.82rem; color:var(--ink-3); }
.lcard .price { font-family:'Roboto Mono'; font-weight:600; color:var(--indigo-800); margin-top:9px; }
.lcard .pid { font-family:'Roboto Mono'; font-size:.7rem; color:var(--ink-3); margin-top:8px; padding-top:8px; border-top:1px solid var(--line); }

.filters { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:20px; }
.filters input, .filters select { padding:9px 12px; border:1px solid var(--line-2); border-radius:var(--r-sm); font-family:inherit; font-size:.88rem; min-height:42px; }
.filters input[type=search]{ min-width:230px; }

/* ---------- Atlas ---------- */
.funnel { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.funnel .layer { border:1px solid var(--line); border-radius:var(--r-md); padding:14px; background:var(--surface); }
.funnel .layer .ln { font-size:.72rem; text-transform:uppercase; letter-spacing:.07em; color:var(--ink-3); font-weight:600; }
.funnel .layer .ttl { font-weight:600; font-size:.92rem; margin:3px 0 8px; }
.funnel .layer .n { font-family:'Roboto Mono'; font-size:1.5rem; font-weight:600; color:var(--indigo-700); }
.funnel .bar { height:6px; border-radius:4px; background:var(--muted); margin-top:8px; overflow:hidden; }
.funnel .bar > span { display:block; height:100%; background:var(--indigo-600); }

.soc-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(290px,1fr)); gap:18px; }
.soc-card { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); overflow:hidden; cursor:pointer; transition:box-shadow .16s, transform .12s; }
.soc-card:hover { box-shadow:var(--sh-2); transform:translateY(-2px); }
.soc-card .top { padding:16px; border-bottom:1px solid var(--line); }
.soc-card .dev { font-size:.78rem; color:var(--ink-3); }
.soc-card .nm { font-family:'Spectral'; font-weight:600; font-size:1.12rem; margin:2px 0; }
.soc-card .cov { padding:12px 16px; display:flex; align-items:center; gap:10px; }
.cov-bar { flex:1; height:8px; border-radius:5px; background:var(--muted); overflow:hidden; }
.cov-bar > span { display:block; height:100%; background:linear-gradient(90deg,var(--green-600),var(--indigo-600)); }

#atlas-map { height:380px; border-radius:var(--r-md); border:1px solid var(--line); z-index:1; max-width:100%; overflow:hidden; }
.leaflet-popup-content { font-family:'Inter',sans-serif; }

/* availability / booking grid */
.avail-legend { display:flex; gap:14px; flex-wrap:wrap; margin:14px 0; font-size:.8rem; }
.avail-legend .k { display:flex; align-items:center; gap:6px; }
.avail-legend .sw { width:13px; height:13px; border-radius:3px; }
.unit-grid { display:flex; flex-direction:column; gap:14px; }
.tower-row { }
.tower-row .th { font-size:.78rem; font-weight:600; color:var(--ink-2); margin-bottom:6px; }
.cells { display:flex; flex-wrap:wrap; gap:6px; }
.cell { width:54px; height:46px; border-radius:6px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  font-size:.64rem; line-height:1.1; cursor:default; color:#fff; font-weight:600; border:1px solid rgba(0,0,0,.06); }
.cell small { font-weight:400; opacity:.9; font-size:.6rem; }
.cell.skeleton { background:#C9C6D6; color:var(--ink-2); }
.cell.verified { background:#4338CA; }
.cell.listed   { background:#15803D; }
.cell.sold     { background:#9A9A9A; }
.cell.qc       { background:#B45309; }
.plot-grid .cell { width:60px; height:50px; }

/* rulebook */
.rule { padding:16px 0; border-bottom:1px solid var(--line); }
.rule:last-child{ border-bottom:none; }
.rule .rh { display:flex; align-items:center; gap:10px; margin-bottom:5px; }
.rule .rh h4 { font-family:'Inter'; font-size:1rem; margin:0; }
.rule .origin { font-size:.74rem; color:var(--ink-3); font-style:italic; margin-top:5px; }

/* modal */
.scrim { position:fixed; inset:0; background:rgba(27,26,46,.55); z-index:200; display:flex; align-items:flex-start;
  justify-content:center; padding:5vh 16px; overflow:auto; }
.modal { background:var(--surface); border-radius:var(--r-lg); max-width:640px; width:100%; box-shadow:var(--sh-3);
  animation: pop .18s ease-out; }
@keyframes pop { from{ opacity:0; transform:translateY(12px) scale(.98);} to{opacity:1;transform:none;} }
.modal-head { padding:20px 24px; border-bottom:1px solid var(--line); display:flex; align-items:flex-start; gap:12px; }
.modal-head h3 { flex:1; }
.modal-head .x { background:none; border:none; cursor:pointer; color:var(--ink-3); font-size:1.5rem; line-height:1; padding:0; }
.modal-body { padding:22px 24px; }
.modal-foot { padding:16px 24px; border-top:1px solid var(--line); display:flex; gap:10px; justify-content:flex-end; }

/* toast */
.toast-wrap { position:fixed; bottom:22px; left:50%; transform:translateX(-50%); z-index:300; display:flex; flex-direction:column; gap:8px; align-items:center; }
.toast { background:var(--ink); color:#fff; padding:11px 18px; border-radius:100px; font-size:.86rem; box-shadow:var(--sh-3);
  display:flex; align-items:center; gap:8px; animation: pop .2s ease-out; }
.toast.ok { background:var(--green-600); } .toast.warn { background:var(--amber-600); } .toast.err{ background:var(--red-600); }

/* footer */
.footer { background:var(--indigo-900); color:#C9C6E8; padding:40px 0 32px; margin-top:40px; font-size:.86rem; }
.footer .wrap { display:flex; gap:40px; flex-wrap:wrap; justify-content:space-between; }
.footer a { color:#fff; }
.footer .disc { max-width:520px; font-size:.78rem; color:#9D9AC4; }

.empty { text-align:center; padding:48px 24px; color:var(--ink-3); }
.empty svg { width:42px; height:42px; opacity:.4; margin-bottom:10px; }

/* utilities */
.row { display:flex; gap:16px; flex-wrap:wrap; }
.between { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.stack-12 > * + * { margin-top:12px; }
.mt-0{margin-top:0}.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-32{margin-top:32px}
.mb-0{margin-bottom:0}.mb-8{margin-bottom:8px}.mb-24{margin-bottom:24px}
.callout { background:var(--indigo-50); border:1px solid var(--indigo-100); border-left:3px solid var(--indigo-600);
  border-radius:var(--r-sm); padding:14px 16px; font-size:.9rem; color:var(--ink-2); }
.callout.saffron { background:var(--saffron-100); border-color:#F3D6BC; border-left-color:var(--saffron-500); }

/* ---------- Responsive ---------- */
@media (max-width: 920px){
  .hero-grid{ grid-template-columns:1fr; gap:30px; }
  .pillars,.how{ grid-template-columns:1fr 1fr; }
  .metrics{ grid-template-columns:1fr 1fr; }
  .statbar{ grid-template-columns:1fr 1fr; }
  .form-grid{ grid-template-columns:1fr; }
}
@media (max-width: 640px){
  .nav-links{ display:none; }
  .nav-links.open{ display:flex; position:absolute; top:var(--nav-h); left:0; right:0; flex-direction:column;
    background:var(--surface); border-bottom:1px solid var(--line); padding:8px 14px; gap:2px; box-shadow:var(--sh-2); }
  .nav-menu-btn{ display:flex; margin-left:auto; background:none; border:none; cursor:pointer; padding:8px; }
  .pillars,.how,.metrics,.statbar{ grid-template-columns:1fr; }
  .versus{ grid-template-columns:1fr; } .versus .vs-mid{ justify-content:center; }
  .section{ padding-block:44px; }
  /* adaptive gutters: tighter on small phones for more content width */
  .wrap{ padding-left:16px; padding-right:16px; }
  .subnav-inner{ padding-left:16px; padding-right:16px;
    /* right-edge fade hints there are more tabs to swipe */
    -webkit-mask-image:linear-gradient(to right,#000 calc(100% - 22px),transparent);
            mask-image:linear-gradient(to right,#000 calc(100% - 22px),transparent); }
  /* collapse all multi-column card grids to one column; minmax(0,1fr) lets wide
     children (scroll-wrapped tables, role rows) shrink instead of blowing out the track */
  .grid{ grid-template-columns:minmax(0,1fr) !important; }
  .role-row{ flex-wrap:wrap; }
  .role-row > div{ min-width:0; }
  /* Atlas coverage funnel: 4 columns can't fit a 390px phone — go 2×2 */
  .funnel{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  /* Trust gauge: stack the dial above the bands/appeal text so neither gets
     squeezed into a ~190px column on a phone */
  .gauge{ flex-direction:column; align-items:stretch; gap:18px; }
  .gauge .dial{ align-self:center; }
}
