/* ============================================================
   KhanaOS — Design System v2 "Precision"
   Modern premium SaaS. Dark heroes, clean white body, red brand.
   Mobile-first responsive.
   ============================================================ */

:root {
  /* Base surfaces (light) */
  --paper: #FFFFFF;
  --paper-2: #F5F6F8;
  --paper-3: #ECEEF2;
  --white: #FFFFFF;
  /* Ink */
  --ink: #0E1220;
  --ink-70: rgba(20, 25, 40, 0.74);
  --ink-50: rgba(20, 25, 40, 0.52);
  --line: rgba(15, 20, 35, 0.12);
  --line-soft: rgba(15, 20, 35, 0.07);
  /* Brand */
  --red: #C8102E;
  --red-hi: #FF3B4E;
  --red-deep: #8B0000;
  --red-tint: rgba(200, 16, 46, 0.07);
  --green: #12925B;
  --green-hi: #34D399;
  --green-tint: rgba(18, 146, 91, 0.09);
  --gold: #D97706;
  --gold-hi: #FBBF24;
  /* Dark surfaces */
  --dark: #0B0E17;
  --dark-2: #11162399;
  --dark-card: rgba(255, 255, 255, 0.045);
  --dark-line: rgba(255, 255, 255, 0.1);
  --on-dark: #F4F6FB;
  --on-dark-70: rgba(235, 240, 250, 0.72);
  --on-dark-50: rgba(235, 240, 250, 0.5);
  /* Type */
  --serif: "Plus Jakarta Sans", "Inter", -apple-system, sans-serif; /* display */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --maxw: 1180px;
  --radius: 18px;
  --shadow-card: 0 1px 2px rgba(15,20,35,0.05), 0 8px 28px -12px rgba(15,20,35,0.12);
  --shadow-pop: 0 24px 60px -20px rgba(15,20,35,0.28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

/* ---------- Type ---------- */
h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.06;
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 7.2vw, 72px); }
h2 { font-size: clamp(26px, 4.4vw, 46px); letter-spacing: -0.02em; }
h3 { font-size: clamp(18px, 2.4vw, 23px); line-height: 1.25; font-weight: 700; }
.lede { font-size: clamp(16px, 2vw, 19px); color: var(--ink-70); max-width: 58ch; line-height: 1.7; }
.mono { font-family: var(--mono); }
em.accent, .flip {
  font-style: normal;
  background: linear-gradient(100deg, var(--red) 10%, #FF5A3C 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--red);
}

.kicker {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--red); }
.section-num { font-family: var(--mono); font-size: 13px; color: var(--ink-50); }

/* ---------- Ticker ---------- */
.ticker {
  background: linear-gradient(90deg, #0B0E17, #171226, #0B0E17);
  color: var(--on-dark-70);
  overflow: hidden;
  white-space: nowrap;
  padding: 9px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ticker-track { display: inline-flex; gap: 56px; padding-right: 56px; animation: ticker 50s linear infinite; will-change: transform; }
.ticker span b { color: var(--gold-hi); font-weight: 500; }
.ticker span i { font-style: normal; color: var(--on-dark-50); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 80;
  background: rgba(11, 14, 23, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 12px;
}
@media (min-width: 640px) { .nav-inner { padding: 0 28px; height: 70px; } }
.logo {
  font-family: var(--serif); font-size: 23px; font-weight: 800;
  text-decoration: none; letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 1px; color: var(--on-dark);
}
.logo b { color: var(--red-hi); font-weight: 800; }
.logo .logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  margin-right: 9px; align-self: center; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.logo .tm { font-family: var(--mono); font-size: 9px; color: var(--on-dark-50); align-self: flex-start; margin-top: 5px; }
.nav-links { display: flex; gap: 26px; align-items: center; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 14.5px; font-weight: 550; color: var(--on-dark-70);
  transition: color .15s; padding: 6px 0;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle {
  display: none; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  color: var(--on-dark); border-radius: 10px; padding: 10px 14px;
  font-family: var(--sans); font-weight: 600; font-size: 13px; cursor: pointer;
  min-height: 44px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 650; font-size: 15px;
  padding: 14px 26px; border-radius: 12px; min-height: 48px;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s, border-color .16s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, #E62E2E 100%);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(200, 16, 46, 0.5), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(200, 16, 46, 0.55), inset 0 1px 0 rgba(255,255,255,0.18); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 14px; min-height: 42px; }

/* Nav buttons on dark bar */
.nav .btn-ghost { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); color: var(--on-dark); }
.nav .btn-ghost:hover { border-color: rgba(255,255,255,0.45); }

/* ---------- HERO (dark) ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 78% -10%, rgba(200,16,46,0.32) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 12% 110%, rgba(56,30,120,0.35) 0%, transparent 60%),
    var(--dark);
  color: var(--on-dark);
  padding: 72px 0 84px;
  /* scoped var overrides so inner content adapts automatically */
  --ink: var(--on-dark);
  --ink-70: var(--on-dark-70);
  --ink-50: var(--on-dark-50);
  --line: rgba(255,255,255,0.18);
  --white: rgba(255,255,255,0.05);
  --red: var(--red-hi);
  --red-tint: rgba(255,59,78,0.1);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 10%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 10%, black 20%, transparent 75%);
}
.hero .btn-ghost { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.2); color: var(--on-dark); }
.hero .btn-ghost:hover { border-color: rgba(255,255,255,0.5); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 64px; } }
.hero-copy { display: flex; flex-direction: column; gap: 22px; position: relative; }
.stamp {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 650;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #FFB3BC; border: 1px solid rgba(255,59,78,0.45);
  padding: 8px 16px; border-radius: 999px; width: fit-content;
  background: rgba(255,59,78,0.12);
  backdrop-filter: blur(4px);
}
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13.5px; color: var(--on-dark-70); }
.trust-row span { display: inline-flex; align-items: center; }
.trust-row span::before { content: "✓"; color: var(--green-hi); font-weight: 700; margin-right: 7px; }

/* ---------- Ledger card (glass dashboard) ---------- */
.ledger {
  background: linear-gradient(165deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  box-shadow: 0 40px 80px -32px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.12);
  overflow: hidden;
  backdrop-filter: blur(10px);
  color: var(--on-dark);
}
.ledger-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.1);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--on-dark-70);
}
.ledger-head .live { color: var(--green-hi); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ledger-head .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green-hi); box-shadow: 0 0 10px var(--green-hi); animation: pulse 1.6s ease infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.ledger-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 14px;
  padding: 13px 20px; border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px; align-items: baseline;
}
.ledger-row .dish { font-weight: 600; color: var(--on-dark); }
.ledger-row .dish small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--on-dark-50); font-weight: 400; margin-top: 2px; }
.ledger-row .num { font-family: var(--mono); font-size: 13px; color: var(--on-dark-70); }
.ledger-row .m-good { color: var(--green-hi); font-weight: 600; }
.ledger-row .m-bad { color: var(--red-hi); font-weight: 600; }
.ledger-foot {
  padding: 15px 20px;
  background: rgba(0,0,0,0.35);
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; color: var(--on-dark-70);
}
.ledger-foot b { color: var(--green-hi); font-size: 14px; }

/* ---------- Metric band ---------- */
.metric-band { background: var(--dark); border-top: 1px solid rgba(255,255,255,0.07); }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .metric-grid { grid-template-columns: repeat(4, 1fr); } }
.metric { padding: 28px 18px; text-align: center; border-right: 1px solid rgba(255,255,255,0.07); border-bottom: 1px solid rgba(255,255,255,0.07); }
@media (min-width: 760px) { .metric { padding: 38px 26px; border-bottom: none; } }
.metric:last-child, .metric:nth-child(2) { border-right: none; }
@media (min-width: 760px) { .metric:nth-child(2) { border-right: 1px solid rgba(255,255,255,0.07); } }
.metric .val {
  font-family: var(--serif); font-size: clamp(28px, 4.5vw, 44px); font-weight: 800;
  background: linear-gradient(120deg, #fff 30%, #FF8A96 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1.05;
}
.metric .lbl { font-size: 12px; font-weight: 550; text-transform: uppercase; letter-spacing: 0.09em; color: var(--on-dark-50); margin-top: 8px; }

/* ---------- Sections ---------- */
section.block { padding: 72px 0; }
@media (min-width: 760px) { section.block { padding: 104px 0; } }
section.block.tight { padding: 60px 0; }
@media (min-width: 760px) { section.block.tight { padding: 84px 0; } }
.sec-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 44px; max-width: 780px; }
.rule { border: none; border-top: 1px solid var(--line); }

/* Quick answer (AEO) */
.quick-answer {
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  background: var(--white);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 24px 0;
  box-shadow: var(--shadow-card);
}
.quick-answer .qa-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red); margin-bottom: 8px; display: block;
}
.quick-answer p { font-size: 16px; line-height: 1.65; color: var(--ink-70); }
.quick-answer p b { color: var(--ink); }

/* Cards */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1020px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  text-decoration: none;
  box-shadow: var(--shadow-card);
}
@media (min-width: 760px) { .card { padding: 30px 28px; } }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); border-color: rgba(200,16,46,0.35); }
.card .idx {
  font-size: 11px; font-weight: 700; color: var(--red); letter-spacing: 0.12em;
  background: var(--red-tint); padding: 5px 10px; border-radius: 6px; width: fit-content;
}
.card p { font-size: 14.5px; color: var(--ink-70); }
.card .go { margin-top: auto; font-size: 13px; letter-spacing: 0.02em; color: var(--red); font-weight: 700; padding-top: 6px; }
.badge-soon {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em;
  background: linear-gradient(120deg, var(--gold), #F59E0B); color: #fff;
  padding: 4px 10px; border-radius: 6px; text-transform: uppercase; width: fit-content;
}

/* ---------- Waterfall ---------- */
.waterfall { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.wf-row { display: grid; grid-template-columns: 1fr; gap: 6px; align-items: center; }
@media (min-width: 760px) { .wf-row { grid-template-columns: 220px 1fr 70px; gap: 18px; } }
.wf-row .wf-lbl { font-size: 14.5px; font-weight: 600; }
@media (min-width: 760px) { .wf-row .wf-lbl { text-align: right; } }
.wf-row .wf-lbl small { display: block; font-size: 12px; color: var(--ink-50); font-weight: 450; }
.wf-bar-track { background: var(--paper-3); border-radius: 8px; height: 30px; overflow: hidden; }
@media (min-width: 760px) { .wf-bar-track { height: 36px; } }
.wf-bar { height: 100%; border-radius: 8px; width: 0; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.wf-bar.cost { background: linear-gradient(90deg, #F87171, var(--red)); }
.wf-bar.profit { background: linear-gradient(90deg, #34D399, var(--green)); }
.wf-row .wf-val { font-family: var(--mono); font-size: 15px; font-weight: 600; }
@media (max-width: 759px) { .wf-row .wf-val { text-align: right; margin-top: -26px; position: relative; z-index: 1; padding-right: 10px; color: var(--ink); } }

/* ---------- Calculator ---------- */
.calc {
  background:
    radial-gradient(ellipse 60% 80% at 90% 10%, rgba(200,16,46,0.25) 0%, transparent 60%),
    var(--dark);
  color: var(--on-dark);
  border-radius: 24px; padding: 32px 24px;
  display: grid; grid-template-columns: 1fr; gap: 36px;
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 860px) { .calc { grid-template-columns: 1fr 1fr; gap: 48px; padding: 52px; } }
.calc::after {
  content: "₹"; position: absolute; right: -20px; bottom: -70px;
  font-family: var(--serif); font-size: 300px; font-weight: 800; color: rgba(255,255,255,0.035);
  line-height: 1; pointer-events: none;
}
.calc h3 { color: var(--on-dark); }
.calc label { display: block; font-size: 12px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-50); margin: 18px 0 8px; }
.calc input {
  width: 100%; background: rgba(255,255,255,0.06); color: var(--on-dark);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 12px;
  padding: 14px 16px; font-family: var(--mono); font-size: 18px;
  outline: none; transition: border-color .15s, box-shadow .15s;
  min-height: 52px;
}
.calc input:focus { border-color: var(--red-hi); box-shadow: 0 0 0 3px rgba(255,59,78,0.2); }
.calc-out { display: flex; flex-direction: column; justify-content: center; gap: 16px; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 30px; }
@media (min-width: 860px) { .calc-out { border-top: none; border-left: 1px solid rgba(255,255,255,0.12); padding-top: 0; padding-left: 48px; } }
.calc-out .big { font-family: var(--serif); font-size: clamp(52px, 9vw, 76px); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.calc-out .big.ok { color: var(--green-hi); text-shadow: 0 0 40px rgba(52,211,153,0.35); }
.calc-out .big.warn { color: var(--gold-hi); text-shadow: 0 0 40px rgba(251,191,36,0.3); }
.calc-out .big.bad { color: var(--red-hi); text-shadow: 0 0 40px rgba(255,59,78,0.35); }
.calc-out .verdict { font-size: 15px; color: var(--on-dark-70); max-width: 42ch; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 16px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; position: relative; box-shadow: var(--shadow-card);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--serif); font-size: 44px; font-weight: 800;
  background: linear-gradient(120deg, var(--red), #FF7A59);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  opacity: 0.22;
  position: absolute; top: 16px; right: 20px; line-height: 1;
}
.step h3 { margin-bottom: 10px; max-width: 82%; }
.step p { font-size: 14.5px; color: var(--ink-70); }
.step .mono-note { display: inline-block; font-family: var(--mono); font-size: 12px; color: var(--green); margin-top: 14px; font-weight: 600; background: var(--green-tint); padding: 4px 10px; border-radius: 6px; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow-card); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
table.data th {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.09em;
  text-align: left; padding: 14px 18px; background: var(--dark); color: var(--on-dark-70); font-weight: 650;
  white-space: nowrap;
}
table.data td { padding: 13px 18px; border-top: 1px solid var(--line-soft); vertical-align: top; }
table.data tr:nth-child(even) td { background: var(--paper-2); }
table.data td.yes { color: var(--green); font-weight: 650; }
table.data td.no { color: var(--ink-50); }
table.data td .mono { font-size: 13px; }

/* ---------- Dark section ---------- */
.dark {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(200,16,46,0.18) 0%, transparent 60%),
    var(--dark);
  color: var(--on-dark); position: relative; overflow: hidden;
}
.dark .kicker { color: var(--gold-hi); }
.dark .kicker::before { background: var(--gold-hi); }
.dark h2 { color: var(--on-dark); }
.dark .lede { color: var(--on-dark-70); }
.t-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 860px) { .t-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.t-card {
  background: var(--dark-card); border: 1px solid var(--dark-line);
  border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; gap: 16px;
  transition: border-color .2s, transform .2s;
}
.t-card:hover { border-color: rgba(255,255,255,0.22); transform: translateY(-3px); }
.t-card .q { font-size: 16.5px; line-height: 1.55; font-weight: 450; flex: 1; color: var(--on-dark); }
.t-card .q b { color: var(--gold-hi); font-weight: 650; }
.t-card .who { font-size: 13px; color: var(--on-dark-50); border-top: 1px solid var(--dark-line); padding-top: 14px; }
.t-card .who b { color: var(--on-dark); display: block; font-weight: 650; font-size: 14px; margin-bottom: 2px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
details.faq {
  border: 1px solid var(--line); border-radius: 14px; background: var(--white);
  box-shadow: var(--shadow-card); overflow: hidden;
  transition: border-color .2s;
}
details.faq[open] { border-color: rgba(200,16,46,0.4); }
details.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 18px 20px; font-family: var(--serif); font-size: clamp(15.5px, 2.2vw, 18px); font-weight: 700;
  min-height: 56px; transition: color .15s;
  -webkit-tap-highlight-color: transparent;
}
details.faq summary:hover { color: var(--red); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; font-family: var(--mono); font-size: 22px; color: var(--red);
  transition: transform .25s ease; flex-shrink: 0;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: var(--red-tint); border-radius: 8px;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .faq-a { padding: 0 20px 20px; color: var(--ink-70); max-width: 72ch; font-size: 15px; }
details.faq .faq-a p + p { margin-top: 10px; }
details.faq .faq-a a { color: var(--red); font-weight: 600; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: stretch; }
@media (min-width: 680px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .price-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.price-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: 30px 26px; display: flex; flex-direction: column; gap: 6px; position: relative;
  box-shadow: var(--shadow-card);
}
.price-card.hot {
  border: 2px solid var(--red);
  box-shadow: 0 24px 56px -20px rgba(200,16,46,0.35);
  background: linear-gradient(180deg, #FFF8F8 0%, #fff 30%);
}
.price-card .plan { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-50); }
.price-card .price { font-family: var(--serif); font-size: 46px; font-weight: 800; line-height: 1; margin: 12px 0 4px; letter-spacing: -0.03em; }
.price-card .tagline { font-size: 14px; color: var(--ink-70); margin-top: 6px; min-height: 42px; }
.price-card ul { list-style: none; margin: 16px 0 22px; display: flex; flex-direction: column; gap: 10px; }
.price-card li { font-size: 14px; padding-left: 26px; position: relative; color: var(--ink-70); }
.price-card li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; color: var(--green); font-weight: 700;
  background: var(--green-tint); width: 18px; height: 18px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center; font-size: 11px;
}
.price-card .btn { margin-top: auto; }
.hot-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(120deg, var(--red), #E62E2E); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 6px 16px -4px rgba(200,16,46,0.5);
}

/* ---------- Article / guide layout ---------- */
.article-hero {
  padding: 56px 0 44px;
  background:
    radial-gradient(ellipse 65% 70% at 85% -20%, rgba(200,16,46,0.25) 0%, transparent 60%),
    var(--dark);
  color: var(--on-dark);
  --ink: var(--on-dark); --ink-70: var(--on-dark-70); --ink-50: var(--on-dark-50);
  --red: var(--red-hi);
}
.article-meta { font-family: var(--mono); font-size: 12px; color: var(--on-dark-50); display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; }
.article-body { max-width: 760px; margin: 0 auto; padding: 48px 20px 88px; }
@media (min-width: 640px) { .article-body { padding: 56px 28px 96px; } }
.article-body h2 { font-size: clamp(23px, 3.4vw, 34px); margin: 52px 0 16px; }
.article-body h3 { margin: 32px 0 12px; }
.article-body p { margin-bottom: 16px; color: var(--ink-70); font-size: 16.5px; }
.article-body p b, .article-body li b { color: var(--ink); }
.article-body ul, .article-body ol { margin: 0 0 20px 22px; color: var(--ink-70); font-size: 16px; }
.article-body li { margin-bottom: 10px; }
.article-body a { color: var(--red); font-weight: 600; }
.formula {
  background: var(--dark); color: var(--gold-hi); font-family: var(--mono);
  padding: 18px 20px; border-radius: 14px; font-size: clamp(12px, 2.6vw, 15.5px);
  margin: 20px 0; overflow-x: auto; white-space: nowrap; line-height: 1.8;
  border: 1px solid rgba(255,255,255,0.08);
  -webkit-overflow-scrolling: touch;
}
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 26px 0; }
.stat-chip { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-card); }
.stat-chip .v { font-family: var(--serif); font-size: clamp(22px, 3.4vw, 28px); font-weight: 800; color: var(--red); line-height: 1.1; letter-spacing: -0.02em; }
.stat-chip .l { font-size: 12px; color: var(--ink-50); margin-top: 6px; line-height: 1.45; }
.callout {
  background: var(--green-tint); border: 1px solid rgba(18,146,91,0.25); border-left: 4px solid var(--green);
  padding: 16px 20px; border-radius: 12px; margin: 22px 0; font-size: 15px; color: var(--ink-70);
}
.callout b { color: var(--green); }
.crumbs { font-family: var(--mono); font-size: 11.5px; color: var(--ink-50); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-50); text-decoration: none; }
.crumbs a:hover { color: var(--red); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(ellipse 70% 90% at 50% -30%, rgba(255,90,60,0.45) 0%, transparent 65%),
    linear-gradient(140deg, var(--red) 0%, #A00D24 60%, #6E0616 100%);
  color: #fff; border-radius: 24px;
  padding: clamp(36px, 6vw, 72px) clamp(22px, 4vw, 60px);
  text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(200,16,46,0.55);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at 50% 0%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black, transparent 80%);
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { position: relative; color: rgba(255,255,255,0.85); max-width: 54ch; margin: 14px auto 28px; font-size: 15.5px; }
.cta-band .btn { position: relative; background: #fff; color: var(--red); box-shadow: 0 12px 32px rgba(0,0,0,0.3); font-weight: 700; }
.cta-band .btn:hover { transform: translateY(-2px); }
.cta-band .sub { font-family: var(--mono); font-size: 12px; margin-top: 18px; color: rgba(255,255,255,0.65); position: relative; }

/* ---------- Footer ---------- */
footer { background: var(--dark); color: var(--on-dark); padding: 64px 0 100px; border-top: 1px solid rgba(255,255,255,0.06); }
@media (min-width: 760px) { footer { padding: 72px 0 40px; } }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 36px; margin-bottom: 48px; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; } }
.foot-grid h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--on-dark-50); margin-bottom: 16px; }
.foot-grid ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.foot-grid a { color: var(--on-dark-70); text-decoration: none; font-size: 14.5px; padding: 2px 0; display: inline-block; }
.foot-grid a:hover { color: #fff; }
.foot-brand p { color: var(--on-dark-50); font-size: 14px; max-width: 34ch; margin-top: 14px; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; color: var(--on-dark-50);
}

/* ---------- Mobile sticky CTA bar (injected by JS) ---------- */
.mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 14, 23, 0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.mobile-cta .btn { flex: 1; min-height: 48px; font-size: 14.5px; padding: 12px 10px; }
.mobile-cta .btn-wa { background: #103E2C; color: #6EE7A8; border: 1px solid rgba(110,231,168,0.3); }
@media (max-width: 759px) { .mobile-cta { display: flex; } }

/* ---------- Floating WhatsApp button (Foundation Guide §6) ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 85;
  width: 56px; height: 56px; border-radius: 50%;
  background: #22C15E; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -6px rgba(34, 193, 94, 0.55), 0 2px 6px rgba(0,0,0,0.2);
  transition: transform .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 34px -8px rgba(34,193,94,0.6); }
@media (max-width: 759px) {
  .wa-float { bottom: calc(78px + env(safe-area-inset-bottom)); right: 12px; width: 52px; height: 52px; }
}

/* ---------- Demo form (book-demo page) ---------- */
.demo-form {
  background: linear-gradient(165deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 20px; padding: 28px 24px;
  box-shadow: 0 40px 80px -32px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--on-dark);
}
@media (min-width: 640px) { .demo-form { padding: 34px 32px; } }
.demo-form h3 { color: var(--on-dark); }
.demo-form label {
  display: block; font-size: 12px; font-weight: 650; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--on-dark-50); margin: 16px 0 6px;
}
.demo-form input, .demo-form select {
  width: 100%; background: rgba(255,255,255,0.06); color: var(--on-dark);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 12px;
  padding: 13px 15px; font-family: var(--sans); font-size: 16px;
  outline: none; transition: border-color .15s, box-shadow .15s;
  min-height: 50px; -webkit-appearance: none; appearance: none;
}
.demo-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.demo-form select option { color: #111; }
.demo-form input:focus, .demo-form select:focus { border-color: var(--red-hi); box-shadow: 0 0 0 3px rgba(255,59,78,0.2); }
.demo-form input::placeholder { color: rgba(235,240,250,0.35); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobile nav sheet ---------- */
@media (max-width: 959px) {
  /* iOS Safari: backdrop-filter on the header breaks position:fixed children
     (the header becomes the containing block), clipping the menu sheet.
     Use a solid header on mobile instead. */
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(11, 14, 23, 0.98); }
  .nav-links {
    display: none;
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0; z-index: 95;
    background: rgba(11, 14, 23, 0.98);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    flex-direction: column; padding: 28px 24px; gap: 6px; align-items: stretch;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-links a {
    display: block; font-size: 19px; font-weight: 650; color: var(--on-dark);
    padding: 16px 4px; min-height: 52px;
  }
  .nav-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn-primary { display: none; }
}
@media (max-width: 560px) {
  section.block { padding: 56px 0; }
  .hero { padding: 48px 0 60px; }
  h1 { line-height: 1.1; }
  .lede { font-size: 16px; }
  .btn { width: 100%; }
  .nav .btn, .mobile-cta .btn, .hero .btn { width: auto; }
  .hero-copy > div .btn { width: 100%; }
  .cta-band .btn { width: 100%; max-width: 380px; }
  body { padding-bottom: 0; }
}

/* ---------- Video embeds ---------- */
.video-frame {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14); background: #000;
  box-shadow: 0 40px 80px -32px rgba(0,0,0,0.6);
}
.video-frame.wide { aspect-ratio: 16 / 9; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.t-card.t-video { padding: 0; overflow: hidden; background: #000; }
.t-card.t-video .video-frame {
  border: none; border-radius: 0; box-shadow: none;
  aspect-ratio: 9 / 16; width: 100%; position: relative;
}

/* ---------- Customer marquee ---------- */
.cust-band {
  background: var(--dark); border-top: 1px solid rgba(255,255,255,0.07);
  padding: 16px 0; overflow: hidden; white-space: nowrap; position: relative;
}
.cust-track { display: inline-flex; align-items: center; gap: 56px; padding-right: 56px; animation: ticker 28s linear infinite; will-change: transform; }
.cust-band .cust-lbl {
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--on-dark-50);
}
.cust-band .cust-name {
  font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--on-dark);
  display: inline-flex; align-items: center; gap: 14px;
}
.cust-band .cust-name::after { content: "\2726"; font-size: 11px; color: var(--red-hi); }
@media (prefers-reduced-motion: reduce) { .cust-track { animation: none; } }
