/* ============================================================
   Lead Link — marketing site
   Brand from the product: slate-navy, amber accent, Inter.
   Display: Plus Jakarta Sans. Mono: JetBrains Mono.
   Plain CSS, no build step.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }

:root {
  --ink: #0B1220;
  --navy: #1E293B;
  --navy-2: #263548;
  --navy-3: #33465F;
  --navy-line: rgba(203, 213, 225, .12);
  --navy-text: #CBD5E1;
  --navy-muted: #94A3B8;

  --amber: #FBBF24;
  --amber-d: #F59E0B;
  --amber-dd: #8C6100; /* dark amber, same hue as --amber; 5.0:1 on --paper (small text) */
  --amber-display: #B07400; /* brighter amber for display-size headings only; 3.6:1 on --paper (AA large text) */
  --amber-glow: rgba(251, 191, 36, .22);
  --amber-bg: #FEF6DC;

  --paper: #F7F5F0;
  --paper-2: #EFEBE2;
  --card: #FFFFFF;
  --line: #E4DFD4;
  --line-2: #EEEAE2;

  --text: #172033;
  --text-2: #3F4B5E;
  --muted: #5A6577;

  --wa: #25D366;
  --wa-d: #0E7A3B;
  --wa-bg: #DCF8C6;
  --fb: #1D4ED8;
  --red: #C2261D;
  --red-bg: #FDECEA;
  --green: #15803D;
  --green-bg: #E8F6EC;
  --blue: #1D4ED8;
  --blue-bg: #E8EFFD;
  --purple: #6D28D9;
  --purple-bg: #F1EBFD;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --shadow-1: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 14px rgba(15, 23, 42, .05);
  --shadow-2: 0 2px 4px rgba(15, 23, 42, .06), 0 18px 40px rgba(15, 23, 42, .10);
  --shadow-3: 0 30px 80px rgba(2, 6, 23, .45), 0 10px 24px rgba(2, 6, 23, .30);

  --display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1180px;
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.12; letter-spacing: -.025em; color: inherit; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid var(--amber-dd); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .nav :focus-visible, .footer :focus-visible, .inbox :focus-visible, .score-panel :focus-visible { outline-color: var(--amber); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { max-width: 760px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Labels & headings ---------- */
.label {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--amber-dd); display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px;
}
.label::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.dark .label { color: var(--amber); }
.h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; }
.h3 { font-size: clamp(21px, 2.2vw, 25px); font-weight: 750; letter-spacing: -.015em; }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--text-2); max-width: 62ch; }
.dark .lead { color: var(--navy-text); }
.hl { color: var(--amber-display); }
.dark .hl { color: var(--amber); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .label { justify-content: center; }
.sec-head .lead { margin-top: 18px; }
.sec-head.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 650; font-size: 16px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, border-color .18s, color .18s;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--amber); color: var(--ink); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 8px 22px rgba(245, 158, 11, .35); }
.btn-primary:hover { background: #FCC93E; box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 12px 30px rgba(245, 158, 11, .45); transform: translateY(-1px); }
.btn-ghost { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.6); }
.btn-ghost:hover { border-color: var(--text-2); background: #fff; }
.dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.04); }
.dark .btn-ghost:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.btn-sm { padding: 10px 16px; font-size: 15px; border-radius: 10px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.nav.scrolled { border-bottom-color: var(--navy-line); background: rgba(11, 18, 32, .94); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand-mark { width: 32px; height: 32px; flex-shrink: 0; }
.brand small { font-family: var(--sans); font-weight: 500; font-size: 12px; color: var(--navy-muted); letter-spacing: 0; margin-left: 2px; }
.nav-links { display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links .m-only { display: none; } /* extra destinations shown only in the mobile menu */
.nav-links a { color: var(--navy-text); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s; }
.nav-links a:hover, .nav-links a[aria-current="true"], .nav-links a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.06); }
.nav-cta { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background: transparent; color: #fff; align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 940px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 68px;
    background: var(--ink); padding: 12px 20px 20px; border-bottom: 1px solid var(--navy-line); gap: 2px;
  }
  .nav.open .nav-links a { display: block; padding: 14px 12px; font-size: 17px; }
  .nav.open .nav-cta { display: inline-flex; position: absolute; top: calc(68px + 12px + 6 * 53px + 8px); left: 20px; right: 20px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--ink);
  padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 9vw, 120px);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  box-shadow: 0 40px 80px rgba(11, 18, 32, .25);
  z-index: 2;
}
.hero::before {
  /* light source: warm amber glow from upper right, cool navy falloff */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 82% 18%, rgba(251, 191, 36, .16), transparent 62%),
    radial-gradient(700px 500px at 8% 100%, rgba(51, 70, 95, .55), transparent 70%),
    linear-gradient(180deg, #0B1220 0%, #111B2E 100%);
}
.hero::after {
  /* fine grid, fades out toward the bottom */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 99px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: var(--navy-text); font-size: 14px; font-weight: 500; margin-bottom: 26px;
}
.eyebrow b { background: var(--amber); color: var(--ink); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; border-radius: 99px; text-transform: uppercase; }
.hero h1 { font-size: clamp(42px, 6.2vw, 76px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.hero h1 .clock { color: var(--amber); white-space: nowrap; }
.hero-sub { font-size: clamp(18px, 1.7vw, 21px); color: var(--navy-text); margin: 24px 0 34px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 34px 0 0; padding: 0; list-style: none; color: var(--navy-muted); font-size: 14.5px; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 18px; height: 18px; color: var(--amber); }

/* Hero console (coded UI) */
.console {
  position: relative; background: linear-gradient(180deg, #16223A, #121C30); border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px; box-shadow: var(--shadow-3), 0 0 0 1px rgba(0,0,0,.3), 0 1px 0 rgba(255,255,255,.08) inset;
  padding: 14px; color: var(--navy-text); font-size: 14px;
}
.console::before { /* amber rim light where the glow hits */
  content: ''; position: absolute; inset: -1px; border-radius: 21px; pointer-events: none;
  background: linear-gradient(140deg, rgba(251,191,36,.45), transparent 32%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  border: 1px solid transparent;
}
.console-bar { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; border-bottom: 1px solid var(--navy-line); margin-bottom: 12px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.console-title { font-weight: 600; color: #fff; font-size: 13.5px; }
.console-tag { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--navy-muted); border: 1px solid var(--navy-line); border-radius: 6px; padding: 2px 7px; }
.console-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; }
.col-h { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-muted); margin: 2px 2px 8px; display: flex; justify-content: space-between; }
.col-h .live { color: var(--wa); display: inline-flex; align-items: center; gap: 6px; }
.col-h .live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.stream { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lcard {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center;
  background: #1B2942; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 10px;
  transition: transform .5s var(--ease), opacity .5s var(--ease), background .4s;
}
.lcard.new { background: #22314D; border-color: rgba(251,191,36,.35); box-shadow: 0 0 0 3px rgba(251,191,36,.08); }
.lcard.enter { opacity: 0; transform: translateY(-10px) scale(.98); }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12.5px; color: var(--ink); background: var(--amber); }
.av.b { background: #93C5FD; } .av.g { background: #86EFAC; } .av.p { background: #C4B5FD; } .av.o { background: #FDBA74; }
.lname { color: #fff; font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.lmeta { font-size: 12px; color: var(--navy-muted); line-height: 1.3; }
.src { font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.src.wa { background: rgba(37,211,102,.14); color: #6EE7A0; }
.src.fb { background: rgba(96,165,250,.16); color: #93C5FD; }
.src.web { background: rgba(251,191,36,.14); color: var(--amber); }
.src.bk { background: rgba(196,181,253,.16); color: #C4B5FD; }
.src.csv { background: rgba(148,163,184,.16); color: var(--navy-text); }

.task {
  background: linear-gradient(180deg, #22314D, #1B2942); border: 1px solid rgba(251,191,36,.28); border-radius: 14px; padding: 14px;
  display: grid; gap: 12px; position: relative;
}
.task-top { display: flex; align-items: center; gap: 12px; }
.ring { width: 76px; height: 76px; flex-shrink: 0; position: relative; }
.ring svg { width: 76px; height: 76px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring .bg { stroke: rgba(255,255,255,.08); }
.ring .fg { stroke: var(--amber); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.ring .t { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-weight: 600; color: #fff; font-size: 15px; }
.task-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--amber); text-transform: uppercase; }
.task-t { color: #fff; font-weight: 650; font-size: 15px; line-height: 1.3; }
.task-rows { display: grid; gap: 6px; font-size: 12.5px; }
.task-rows div { display: flex; justify-content: space-between; gap: 8px; border-top: 1px dashed var(--navy-line); padding-top: 6px; }
.task-rows span:first-child { color: var(--navy-muted); }
.task-rows span:last-child { color: #fff; font-weight: 500; text-align: right; }
.task-btns { display: flex; gap: 8px; }
.task-btns span { flex: 1; text-align: center; padding: 8px; border-radius: 9px; font-weight: 600; font-size: 12.5px; }
.task-btns .a { background: var(--wa); color: #05301A; }
.task-btns .b { background: rgba(255,255,255,.08); color: #fff; }
.push {
  position: absolute; right: -18px; top: -26px; width: 230px; background: rgba(248,250,252,.97); color: var(--text); border-radius: 14px;
  padding: 10px 12px; box-shadow: 0 18px 40px rgba(0,0,0,.35); font-size: 12.5px; display: grid; grid-template-columns: 26px 1fr; gap: 9px; align-items: start;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.push.hide { opacity: 0; transform: translateY(-8px); }
.push .pi { width: 26px; height: 26px; border-radius: 7px; background: var(--navy); display: grid; place-items: center; }
.push .pi svg { width: 16px; height: 16px; }
.push b { display: block; font-size: 12.5px; }
.push span { color: var(--muted); }
.console-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 4px 0; border-top: 1px solid var(--navy-line); font-size: 12px; color: var(--navy-muted); }
.pause-btn { background: none; border: 1px solid var(--navy-line); color: var(--navy-text); border-radius: 7px; padding: 4px 10px; font-size: 12px; }
.pause-btn:hover { border-color: rgba(255,255,255,.3); }
.sample { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .console { max-width: 640px; }
  .push { right: 8px; }
}
@media (max-width: 560px) {
  .console-body { grid-template-columns: 1fr; }
  .push { position: relative; right: auto; top: auto; width: auto; margin-bottom: 12px; }
  .stream li:nth-child(n+4) { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section.tight { padding: clamp(56px, 7vw, 88px) 0; }
.dark { background: var(--ink); color: #fff; }
.card-sec { /* light section lifted as a card */
  background: var(--card); border-radius: var(--r-xl); margin: 0 clamp(8px, 1.4vw, 20px);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 20px 50px rgba(15,23,42,.06);
}
.dark.card-sec { background: var(--ink); box-shadow: 0 40px 80px rgba(11, 18, 32, .25); }
.stack-gap { height: clamp(14px, 2vw, 22px); }

/* Answer box (AEO) */
.answer {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start;
}
.answer-box { border-left: 4px solid var(--amber-d); padding: 4px 0 4px 26px; }
.answer-box h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin-bottom: 14px; }
.answer-box p { font-size: 18.5px; color: var(--text-2); margin: 0; }
.answer-box p strong { color: var(--text); }
.answer-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: 15px; font-weight: 500; }
.answer-proof li { display: inline-flex; align-items: center; gap: 8px; }
.answer-proof svg { width: 18px; height: 18px; flex: none; color: var(--amber-dd); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow-1); }
.fact dt { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--text); }
.fact dd { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); line-height: 1.4; }
@media (max-width: 860px) { .answer { grid-template-columns: 1fr; } }

/* Problem */
.problem { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.leaks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.leak {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.leak-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--red-bg); color: var(--red); }
.leak-ic svg { width: 22px; height: 22px; }
.leak b { display: block; font-weight: 650; font-size: 16.5px; }
.leak span { color: var(--muted); font-size: 15.5px; }
.strike { color: var(--red); text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: rgba(194, 38, 29, .7); }
.payoff { font-family: var(--display); font-size: clamp(34px, 4.6vw, 58px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; margin-top: 18px; }
.payoff span { display: block; }
.payoff .hl { color: var(--amber-display); }
.problem-note { margin-top: 22px; color: var(--text-2); font-size: 18px; max-width: 34em; }
@media (max-width: 860px) { .problem { grid-template-columns: 1fr; } }

/* Steps (How it works) */
.steps { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.step-tabs { display: grid; gap: 10px; }
.step-tab {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; text-align: left; align-items: start;
  background: transparent; border: 1px solid var(--navy-line); border-radius: var(--r); padding: 16px 18px; color: var(--navy-text);
  transition: background .2s, border-color .2s;
}
.step-tab:hover { border-color: rgba(255,255,255,.25); }
.step-tab[aria-selected="true"] { background: #16223A; border-color: rgba(251,191,36,.5); }
.step-n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--mono); font-weight: 600; background: rgba(255,255,255,.06); color: var(--navy-text); }
.step-tab[aria-selected="true"] .step-n { background: var(--amber); color: var(--ink); }
.step-tab b { display: block; color: #fff; font-family: var(--display); font-size: 19px; font-weight: 750; letter-spacing: -.01em; }
.step-tab span { display: block; font-size: 15px; margin-top: 3px; }
.step-panels { position: relative; }
.step-panel { background: #121C30; border: 1px solid var(--navy-line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow-3); }
.step-panel[hidden] { display: none; }
.js .step-panel.anim { animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.step-panel h3 { color: #fff; font-size: 22px; font-weight: 750; margin-bottom: 8px; }
.step-panel > p { color: var(--navy-text); font-size: 16px; }
.mini { background: #0F1829; border: 1px solid var(--navy-line); border-radius: 14px; padding: 14px; margin-top: 16px; font-size: 14px; color: var(--navy-text); }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--navy-line); }
.mini-row:first-child { border-top: 0; padding-top: 0; }
.mini-row:last-child { padding-bottom: 0; }
.mini-row .grow { flex: 1; min-width: 0; }
.mini-row b { color: #fff; font-weight: 600; }
.chk { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: rgba(37,211,102,.16); color: #6EE7A0; flex-shrink: 0; }
.chk svg { width: 14px; height: 14px; }
.chk.x { background: rgba(248,113,113,.14); color: #FCA5A5; }
.code-line { font-family: var(--mono); font-size: 12.5px; color: #E2E8F0; background: #0B1220; border: 1px solid var(--navy-line); border-radius: 10px; padding: 12px; overflow-x: auto; white-space: pre; }
.code-line .k { color: var(--amber); } .code-line .s { color: #86EFAC; } .code-line .c { color: var(--navy-muted); }
.seq { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.seq div { background: #16223A; border: 1px solid var(--navy-line); border-radius: 10px; padding: 10px; font-size: 13px; }
.seq b { display: block; font-family: var(--mono); font-size: 11px; color: var(--amber); font-weight: 500; letter-spacing: .06em; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .seq { grid-template-columns: 1fr 1fr; } }

/* Feature split blocks */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.rev > :first-child { order: 2; }
.split + .split { margin-top: clamp(72px, 9vw, 120px); }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--text-2); font-size: 16.5px; }
.ticks li::before {
  content: ''; width: 24px; height: 24px; border-radius: 7px; margin-top: 1px;
  background: var(--amber-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C6100' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ticks li b { color: var(--text); font-weight: 650; }
.dark .ticks li { color: var(--navy-text); }
.dark .ticks li b { color: #fff; }
.dark .ticks li::before { background-color: rgba(251,191,36,.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FBBF24' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
@media (max-width: 900px) { .split, .split.rev { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }

/* Surfaces for coded UIs on light background */
.surface {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2);
  padding: clamp(14px, 2vw, 20px); position: relative;
}
.surface-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.surface-h b { font-family: var(--display); font-size: 16px; font-weight: 750; }
.surface-h .sample { margin-left: auto; color: var(--muted); }
.cap { font-size: 13px; color: var(--muted); margin: 12px 2px 0; }
.dark .cap { color: var(--navy-muted); }

/* WhatsApp inbox */
.inbox { display: grid; grid-template-columns: 220px 1fr; min-height: 420px; background: #0F1829; border: 1px solid var(--navy-line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-3); color: var(--navy-text); font-size: 14px; }
.convs { border-right: 1px solid var(--navy-line); padding: 10px; display: grid; align-content: start; gap: 4px; }
.convs-tabs { display: flex; gap: 4px; margin-bottom: 6px; }
.convs-tabs span { font-size: 12px; padding: 4px 9px; border-radius: 99px; background: rgba(255,255,255,.05); }
.convs-tabs span.on { background: var(--amber); color: var(--ink); font-weight: 700; }
.conv { display: grid; grid-template-columns: 32px 1fr; gap: 9px; padding: 9px; border-radius: 10px; align-items: center; }
.conv.on { background: #1B2942; }
.conv .av { width: 32px; height: 32px; font-size: 12px; }
.conv b { color: #fff; font-weight: 600; font-size: 13.5px; display: flex; justify-content: space-between; gap: 6px; }
.conv b i { font-style: normal; font-weight: 400; font-size: 11px; color: var(--navy-muted); }
.conv span { font-size: 12.5px; color: var(--navy-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.chat { display: flex; flex-direction: column; background: #0B1424; }
.chat-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--navy-line); }
.chat-h b { color: #fff; font-size: 14px; }
.chat-h .ad { margin-left: auto; font-size: 11px; font-weight: 600; color: #93C5FD; background: rgba(96,165,250,.14); padding: 3px 8px; border-radius: 6px; }
.msgs { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.msg.in { background: #1B2942; color: #E2E8F0; border-top-left-radius: 4px; }
.msg.out { align-self: flex-end; background: #0E5A3A; color: #E7FBEF; border-top-right-radius: 4px; }
.msg small { display: block; font-size: 10.5px; opacity: .7; margin-top: 3px; text-align: right; }
.window-note { align-self: center; font-size: 11.5px; color: var(--navy-muted); background: rgba(255,255,255,.04); border: 1px solid var(--navy-line); border-radius: 99px; padding: 3px 10px; }
.assist { border-top: 1px solid var(--navy-line); padding: 12px 14px; background: #0F1829; }
.assist-h { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--amber); font-family: var(--mono); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px; }
.assist-h svg { width: 15px; height: 15px; }
.sugg { display: grid; gap: 6px; }
.sugg button {
  text-align: left; background: #16223A; border: 1px solid var(--navy-line); border-radius: 10px; padding: 9px 11px; font-size: 13.5px; color: #E2E8F0; line-height: 1.4;
  transition: border-color .15s, background .15s;
}
.sugg button:hover { border-color: rgba(251,191,36,.5); background: #1B2942; }
.lang-tabs { display: inline-flex; gap: 4px; margin-left: auto; }
.lang-tabs button { background: rgba(255,255,255,.05); border: 1px solid transparent; color: var(--navy-text); border-radius: 7px; padding: 3px 9px; font-size: 12px; font-family: var(--sans); text-transform: none; letter-spacing: 0; }
.lang-tabs button[aria-pressed="true"] { background: var(--amber); color: var(--ink); font-weight: 700; }
@media (max-width: 640px) { .inbox { grid-template-columns: 1fr; } .convs { display: none; } }

.wa-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.wa-stats div { background: #121C30; border: 1px solid var(--navy-line); border-radius: 12px; padding: 12px; }
.wa-stats b { display: block; font-family: var(--display); font-size: 22px; color: #fff; font-weight: 800; letter-spacing: -.02em; }
.wa-stats span { font-size: 12.5px; color: var(--navy-muted); }
.funnel-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); margin-top: 8px; overflow: hidden; }
.funnel-bar i { display: block; height: 100%; background: var(--wa); border-radius: 3px; }
@media (max-width: 520px) { .wa-stats { grid-template-columns: 1fr 1fr; } }

/* Pipeline board */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.col { background: var(--paper); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px; min-width: 0; }
.col-t { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; font-weight: 700; color: var(--text-2); margin: 2px 2px 8px; }
.col-t span { font-family: var(--mono); font-weight: 500; color: var(--muted); font-size: 11.5px; }
.col-t .rot-n { color: var(--red); }
.deal {
  width: 100%; text-align: left; display: block; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-top: 8px;
  box-shadow: 0 1px 2px rgba(15,23,42,.05); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.deal:hover { border-color: #C9C2B3; transform: translateY(-1px); box-shadow: var(--shadow-1); }
.deal[aria-pressed="true"] { border-color: var(--amber-d); box-shadow: 0 0 0 3px var(--amber-glow); }
.deal b { display: block; font-size: 13.5px; font-weight: 650; line-height: 1.3; }
.deal .v { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.deal .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.chip { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.chip.hot { background: #FDE8E4; color: #B42318; }
.chip.warm { background: #FEF3C7; color: #92400E; }
.chip.cold { background: var(--blue-bg); color: var(--blue); }
.chip.rot { background: var(--red); color: #fff; }
.chip.wa { background: var(--green-bg); color: var(--wa-d); }
.deal.rotting { border-color: rgba(194, 38, 29, .45); background: linear-gradient(180deg, #FFF7F6, #fff); }
.score-panel { margin-top: 14px; background: var(--ink); color: var(--navy-text); border-radius: 14px; padding: 16px; display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; min-height: 128px; }
.score-dial { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--amber) calc(var(--s, 82) * 1%), rgba(255,255,255,.08) 0); position: relative; }
.score-dial::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: var(--ink); }
.score-dial b { position: relative; font-family: var(--display); font-size: 26px; color: #fff; font-weight: 800; }
.score-panel h3 { color: #fff; font-size: 16px; margin-bottom: 6px; font-weight: 700; letter-spacing: -.01em; }
.score-panel ul { margin: 0; padding: 0; list-style: none; font-size: 13.5px; display: grid; gap: 3px; }
.score-panel li::before { content: '+ '; color: var(--amber); font-family: var(--mono); }
.score-panel li.minus::before { content: '− '; color: #FCA5A5; }
.score-panel .nba { margin-top: 8px; font-size: 13px; color: var(--amber); }
@media (max-width: 720px) { .board { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .score-panel { grid-template-columns: 1fr; } }

/* Quote paper */
.quote-stage { position: relative; padding: 10px 0 40px; }
.paper {
  background: #FFFEFB; border-radius: 6px; padding: clamp(18px, 3vw, 28px); font-size: 14px; color: var(--text);
  box-shadow: 0 1px 0 #fff inset, 0 2px 4px rgba(15,23,42,.06), 0 24px 50px rgba(15,23,42,.12);
  border: 1px solid #ECE6D8; position: relative;
}
.paper-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border-bottom: 2px solid var(--navy); padding-bottom: 12px; margin-bottom: 12px; }
.paper-top b { font-family: var(--display); font-size: 17px; font-weight: 800; }
.paper-top .qn { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; }
.qt { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.qt th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.qt td { padding: 8px 4px; border-bottom: 1px solid var(--line-2); }
.qt .r { text-align: right; white-space: nowrap; }
.qt tfoot td { border: 0; padding: 4px; color: var(--text-2); }
.qt tfoot tr.total td { font-weight: 800; color: var(--text); font-size: 16px; border-top: 2px solid var(--navy); padding-top: 8px; }
.sign-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 16px; }
.sig { width: 150px; height: 46px; color: var(--navy); }
.sig path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sig-line { border-top: 1px solid var(--muted); font-size: 11.5px; color: var(--muted); padding-top: 3px; }
.stamp {
  font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .08em; color: var(--green); border: 3px solid var(--green);
  border-radius: 8px; padding: 6px 12px; transform: rotate(-6deg); text-transform: uppercase; opacity: .9;
}
.float-note {
  position: absolute; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 12px; font-size: 13px; box-shadow: var(--shadow-2);
  display: flex; gap: 9px; align-items: center; max-width: 250px; line-height: 1.35;
}
.float-note svg { width: 18px; height: 18px; color: var(--amber); flex-shrink: 0; }
.float-note.n1 { top: -14px; right: -10px; }
.float-note.n2 { bottom: 0; left: -14px; background: #fff; color: var(--text); border: 1px solid var(--line); }
.float-note.n2 svg { color: var(--green); }
.pay-methods { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-methods span { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--paper-2); color: var(--text-2); }
@media (max-width: 600px) { .float-note { position: relative; inset: auto; margin: 10px 0; max-width: none; } .quote-stage { padding: 0; } }

/* Automation rule */
.rule { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow-1); font-size: 15.5px; line-height: 2.1; }
.rule + .rule { margin-top: 12px; }
.rule .w { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 8px; background: var(--paper-2); border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; line-height: 1.6; white-space: nowrap; }
.pill.t { background: var(--blue-bg); border-color: #C9D8FA; color: var(--blue); }
.pill.a { background: var(--amber-bg); border-color: #F6DE9C; color: #7A4A06; }
.rule-log { margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rule-log b { color: var(--green); font-weight: 600; }

/* Manager tiles */
.mgr { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-1); }
.tile h3 { font-size: 17px; font-weight: 750; margin-bottom: 4px; letter-spacing: -.01em; }
.tile p.s { font-size: 14.5px; color: var(--muted); margin: 0 0 14px; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 150px; border-bottom: 1px solid var(--line); position: relative; }
.bars div { background: linear-gradient(180deg, var(--amber), var(--amber-d)); border-radius: 6px 6px 0 0; position: relative; }
.bars div.w { background: repeating-linear-gradient(135deg, #F6DE9C 0 6px, #FBEBC0 6px 12px); }
.bars .target { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--navy); }
.bars .target span { position: absolute; right: 0; top: -20px; font-size: 11px; font-family: var(--mono); color: var(--navy); background: var(--card); padding: 0 4px; }
.bar-x { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 6px; font-family: var(--mono); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lb { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lb li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.lb .rk { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--paper-2); }
.lb li:first-child .rk { background: var(--amber); }
.lb .pb { height: 6px; border-radius: 3px; background: var(--paper-2); margin-top: 5px; overflow: hidden; }
.lb .pb i { display: block; height: 100%; background: var(--navy); border-radius: 3px; }
.lb .pts { font-family: var(--mono); font-weight: 600; font-size: 13px; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.mini-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.mini-table td { padding: 8px 4px; border-bottom: 1px solid var(--line-2); }
.mini-table .r { text-align: right; }
.mgr .span2 { grid-column: 1 / -1; }
@media (max-width: 860px) { .mgr { grid-template-columns: 1fr; } }

/* Malaysia block */
.my-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.my-card { background: #121C30; border: 1px solid var(--navy-line); border-radius: var(--r-lg); padding: 22px; }
.my-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(251,191,36,.12); color: var(--amber); margin-bottom: 14px; }
.my-card .ic svg { width: 22px; height: 22px; }
.my-card h3 { color: #fff; font-size: 18px; font-weight: 750; margin-bottom: 6px; letter-spacing: -.01em; }
.my-card p { color: var(--navy-text); font-size: 15px; margin: 0; }
.lang-demo { grid-column: span 2; display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; align-items: center; }
.ui-card { background: #0B1424; border: 1px solid var(--navy-line); border-radius: 14px; padding: 14px; font-size: 14px; }
.ui-card .row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--navy-line); color: var(--navy-text); }
.ui-card .row:first-of-type { border-top: 0; }
.ui-card .row b { color: #fff; font-weight: 600; }
.ui-card .hd { color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ui-card .btnish { display: inline-block; margin-top: 10px; background: var(--amber); color: var(--ink); font-weight: 700; font-size: 13px; border-radius: 8px; padding: 7px 12px; }
.lang-switch { display: inline-flex; gap: 4px; background: rgba(255,255,255,.05); padding: 4px; border-radius: 10px; margin-top: 14px; }
.lang-switch button { border: 0; background: transparent; color: var(--navy-text); padding: 7px 12px; border-radius: 7px; font-size: 14px; font-weight: 600; }
.lang-switch button[aria-pressed="true"] { background: var(--amber); color: var(--ink); }
@media (max-width: 960px) { .my-grid { grid-template-columns: 1fr 1fr; } .lang-demo { grid-column: 1 / -1; } }
@media (max-width: 640px) { .my-grid { grid-template-columns: 1fr; } .lang-demo { grid-template-columns: 1fr; } }

/* Tables (roles, comparison, features) */
.tbl-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-1); }
.tbl-wrap:focus-visible { outline-offset: 2px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 620px; }
.tbl caption { text-align: left; padding: 16px 20px 0; font-size: 14px; color: var(--muted); caption-side: top; }
.tbl th, .tbl td { padding: 14px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.tbl thead th { font-family: var(--display); font-size: 15px; font-weight: 750; background: var(--paper); border-bottom: 1px solid var(--line); }
.tbl tbody th { font-weight: 600; width: 34%; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl .yes { color: var(--green); font-weight: 650; }
.tbl .no { color: var(--red); }
.tbl .ll { background: #FFFBEB; }
.tbl thead .ll { background: var(--amber); color: var(--ink); }

/* Trust & security */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-1); }
.trust .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--navy); color: var(--amber); margin-bottom: 12px; }
.trust .ic svg { width: 20px; height: 20px; }
.trust h3 { font-size: 16.5px; font-weight: 750; margin-bottom: 6px; letter-spacing: -.01em; }
.trust p { font-size: 14.5px; color: var(--muted); margin: 0; }
@media (max-width: 980px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } }

/* Sources strip */
.sources { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.sources span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 14.5px; font-weight: 550; box-shadow: var(--shadow-1); }
.sources i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber-d); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); transition: border-color .2s; }
.faq details[open] { border-color: #D6CDB9; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23172033' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s var(--ease), background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--amber); }
.faq .a { padding: 0 22px 20px; color: var(--text-2); font-size: 16.5px; }
.faq .a p:last-child { margin: 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq-side { position: sticky; top: 100px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-side { position: static; } }

/* CTA */
.cta { text-align: center; padding: clamp(72px, 10vw, 120px) 0; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(640px 360px at 50% 0%, rgba(251,191,36,.18), transparent 70%); pointer-events: none; }
.cta .wrap { position: relative; }
.cta h2 { font-size: clamp(36px, 5vw, 62px); font-weight: 800; letter-spacing: -.035em; }
.cta .lead { margin: 18px auto 32px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 48px auto 0; max-width: 900px; text-align: left; list-style: none; padding: 0; counter-reset: ns; }
.next-steps li { background: #121C30; border: 1px solid var(--navy-line); border-radius: var(--r); padding: 18px; color: var(--navy-text); font-size: 15px; counter-increment: ns; }
.next-steps li::before { content: counter(ns, decimal-leading-zero); display: block; font-family: var(--mono); color: var(--amber); font-size: 12px; margin-bottom: 8px; }
.next-steps b { color: #fff; display: block; font-size: 16px; margin-bottom: 4px; }
.contact-alt { margin-top: 26px; color: var(--navy-muted); font-size: 15px; }
.contact-alt a { color: #fff; }
@media (max-width: 760px) { .next-steps { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--ink); color: var(--navy-muted); padding: 56px 0 110px; font-size: 14.5px; border-top: 1px solid var(--navy-line); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
.footer h2 { color: #fff; font-size: 14px; font-family: var(--sans); font-weight: 650; letter-spacing: 0; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--navy-text); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer address { font-style: normal; line-height: 1.6; }
.foot-note { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--navy-line); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 13px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* Sticky mobile CTA */
.m-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none;
  transform: translateY(140%); transition: transform .35s var(--ease); visibility: hidden;
}
.m-cta.show { transform: none; visibility: visible; }
.m-cta .btn { width: 100%; box-shadow: 0 12px 30px rgba(11,18,32,.35); }
@media (max-width: 760px) { .m-cta { display: block; } }

/* Reveal (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .d1 { transition-delay: .08s; } .js .d2 { transition-delay: .16s; } .js .d3 { transition-delay: .24s; } .js .d4 { transition-delay: .32s; }

/* ---------- Sub pages ---------- */
.page-hero { background: var(--ink); color: #fff; padding: clamp(48px, 7vw, 84px) 0 clamp(56px, 7vw, 92px); border-radius: 0 0 var(--r-xl) var(--r-xl); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 400px at 85% 10%, rgba(251,191,36,.14), transparent 65%); pointer-events: none; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; letter-spacing: -.035em; max-width: 18em; }
.page-hero .lead { margin-top: 18px; }
.crumbs { font-size: 14px; color: var(--navy-muted); margin-bottom: 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--navy-text); }
.meta-line { margin-top: 18px; font-size: 14px; color: var(--navy-muted); }

.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: 96px; font-size: 14.5px; }
.toc b { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-weight: 500; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--text); border-left-color: var(--amber-d); }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } .toc { position: static; } .toc ol { display: flex; flex-wrap: wrap; gap: 6px; border: 0; } .toc a { border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; margin: 0; background: var(--card); } }

.fgroup { scroll-margin-top: 90px; }
.fgroup + .fgroup { margin-top: 56px; }
.fgroup > h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin-bottom: 10px; }
.fgroup > p { color: var(--text-2); max-width: 62ch; }
.flist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.fitem { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow-1); }
.fitem h3 { font-size: 17px; font-weight: 750; margin-bottom: 6px; letter-spacing: -.01em; }
.fitem p { margin: 0; font-size: 15.5px; color: var(--text-2); }
@media (max-width: 700px) { .flist { grid-template-columns: 1fr; } }

.prose { font-size: 18px; color: var(--text-2); }
.prose h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; color: var(--text); margin: 56px 0 16px; scroll-margin-top: 90px; }
.prose h3 { font-size: 21px; font-weight: 750; color: var(--text); margin: 32px 0 10px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }
.prose .tbl-wrap { margin: 22px 0; }
.prose .tbl { font-size: 15.5px; }
.short-answer { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--amber-d); border-radius: var(--r); padding: 22px 24px; box-shadow: var(--shadow-1); font-size: 18px; color: var(--text); }
.short-answer b.k { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-dd); margin-bottom: 8px; font-weight: 500; }
.short-answer p:last-child { margin: 0; }
.aside-cta { background: var(--ink); color: var(--navy-text); border-radius: var(--r-lg); padding: 26px; margin-top: 48px; }
.aside-cta h2 { color: #fff; margin: 0 0 8px; font-size: 24px; }
.aside-cta p { margin: 0 0 18px; }

/* 404 */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.nf h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -.035em; }
.nf p { color: var(--text-2); margin: 16px auto 28px; max-width: 34em; }

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

/* ---------- Fixes from browser review ---------- */
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.04); }
.hero .btn-ghost:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.step-tab .step-n { display: grid; }
.h2 + .lead { margin-top: 18px; }
.dark .sources span { background: #16223A; border-color: var(--navy-line); color: var(--navy-text); box-shadow: none; }
.assist-h { flex-wrap: wrap; }
.lang-tabs button { white-space: nowrap; }
.wa-stats .funnel-bar { background: rgba(255,255,255,.08); border: 0; border-radius: 3px; padding: 0; }
.col-t { flex-wrap: wrap; gap: 2px 6px; }
.float-note { z-index: 2; max-width: 290px; }
.quote-stage { padding-bottom: 64px; }
.float-note.n2 { bottom: 0; left: -18px; }
/* grid children may shrink below their content (code snippet, tables) */
.hero-grid > *, .answer > *, .problem > *, .steps > *, .step-panels, .step-panel, .split > *, .faq-grid > *, .doc > *, .mgr > * { min-width: 0; }
/* mobile menu: in-flow so the CTA can never overlap the links */
@media (max-width: 940px) {
  .nav.open .nav-in { flex-wrap: wrap; height: auto; padding-bottom: 18px; row-gap: 0; }
  .nav.open .nav-in > .brand { height: 68px; }
  .nav.open .nav-links { position: static; order: 3; flex-basis: 100%; padding: 4px 0 8px; border: 0; background: none; }
  .nav.open .nav-cta { position: static; order: 4; flex-basis: 100%; margin: 4px 0 0; }
}
.nav.open { background: var(--ink); }

/* Roles table inside the Control & security section */
.roles-block { margin-top: clamp(40px, 5vw, 64px); scroll-margin-top: 90px; }
.roles-block .h3 { margin: 0 0 18px; max-width: 30ch; }
@media (max-width: 940px) { .nav-links .m-only { display: list-item; } }
