/* Kyara Health · India — shared system.
   Layout idea: a clinical case file for small hospitals. Serif display for the thesis, Plex for the work, mono for money and dates. */
:root {
  --paper: #f4f6f9;
  --surface: #ffffff;
  --ink: #131c33;
  --muted: #5b6579;
  --line: #dce1e9;
  --accent: #2d3d94;
  --accent-ink: #ffffff;
  --accent-soft: #e6e9f7;
  --red: #b5432f;
  --red-soft: #f7e6e2;
  --sea: #1f7f93;
  --sea-soft: #e0f1f4;
  --amber: #a86a10;
  --amber-soft: #f6ecda;
  --wa: #e7f3e9;
  --wa-out: #d5f1c9;
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --s1: 0.8125rem; --s2: 0.9375rem; --s3: 1.0625rem; --s4: 1.375rem; --s5: 2.1rem; --s6: clamp(2.6rem, 6vw, 4.4rem);
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1320; --surface: #151c2c; --ink: #e6e9f1; --muted: #9ba4b7; --line: #263046;
    --accent: #9aa9ff; --accent-ink: #0e1320; --accent-soft: #1e2648; --red: #ef7f69; --red-soft: #3a1f1b;
    --sea: #61c4d7; --sea-soft: #12313a; --amber: #e3a54a; --amber-soft: #3a2c14; --wa: #13261b; --wa-out: #1f3d22; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1320; --surface: #151c2c; --ink: #e6e9f1; --muted: #9ba4b7; --line: #263046;
  --accent: #9aa9ff; --accent-ink: #0e1320; --accent-soft: #1e2648; --red: #ef7f69; --red-soft: #3a1f1b;
  --sea: #61c4d7; --sea-soft: #12313a; --amber: #e3a54a; --amber-soft: #3a2c14; --wa: #13261b; --wa-out: #1f3d22; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: var(--s3); line-height: 1.55; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.logo b { font-family: var(--display); font-weight: 400; font-size: 1.5rem; }
.logo span { font-family: var(--mono); font-size: var(--s1); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-size: var(--s2); padding: 7px 10px; border-radius: 6px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.nav .drop { position: relative; }
.nav .drop > button { font: inherit; font-size: var(--s2); color: var(--muted); background: none; border: 0; padding: 7px 10px; border-radius: 6px; cursor: pointer; }
.nav .drop > button:hover, .nav .drop.cur > button { color: var(--ink); background: var(--surface); }
.nav .menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; display: none; box-shadow: 0 12px 32px rgb(0 0 0 / .12); }
.nav .drop.open .menu { display: grid; }
.nav .menu a { display: grid; gap: 1px; padding: 9px 10px; color: var(--ink); }
.nav .menu a small { color: var(--muted); font-size: var(--s1); }
.nav .cta { margin-left: 8px; }
.burger { display: none; margin-left: auto; font: inherit; font-size: var(--s2); background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
@media (max-width: 900px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 24px 20px; gap: 2px; }
  .site-head.open .nav { display: flex; }
  .nav .menu { position: static; display: grid; box-shadow: none; border: 0; padding: 0 0 0 10px; background: none; }
  .nav .drop > button { display: none; }
  .nav .cta { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: var(--s2); font-weight: 500; text-decoration: none; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.sm { padding: 6px 12px; font-size: var(--s1); }
.btn.ghost { background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Typography helpers */
.eyebrow { font-family: var(--mono); font-size: var(--s1); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.display { font-family: var(--display); font-weight: 400; font-size: var(--s6); line-height: 1.02; letter-spacing: -.01em; }
.display em { font-style: italic; color: var(--red); }
h2.title { font-family: var(--display); font-weight: 400; font-size: var(--s5); line-height: 1.1; }
.lede { color: var(--muted); font-size: var(--s3); max-width: 64ch; }
.lede.big { font-size: var(--s4); line-height: 1.45; color: var(--ink); max-width: 58ch; }
.small { font-size: var(--s1); color: var(--muted); }

/* Page structure */
main { display: grid; gap: 96px; padding: 48px 0 110px; }
section { display: grid; gap: 28px; scroll-margin-top: 80px; }
.sec-head { display: grid; gap: 10px; max-width: 72ch; }
.hero { display: grid; gap: 28px; padding-top: 12px; }
.hero.split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero.split { grid-template-columns: 1fr; } }

/* Grids and cards */
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; align-content: start; }
.card p, .card li { font-size: var(--s2); }
.card ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.card h3 { font-size: var(--s3); font-weight: 600; }
.kicker { font-family: var(--mono); font-size: var(--s1); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.card.sea { border-top: 3px solid var(--sea); }
.card.acc { border-top: 3px solid var(--accent); }
.card.amb { border-top: 3px solid var(--amber); }
.card.red { border-top: 3px solid var(--red); }
a.card { text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s; }
a.card:hover { border-color: var(--muted); transform: translateY(-2px); }
.card .go { font-size: var(--s2); color: var(--accent); margin-top: 4px; }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.stat { padding: 18px 18px 18px 0; display: grid; gap: 6px; align-content: start; }
.stat + .stat { padding-left: 18px; border-left: 1px solid var(--line); }
.stat .big { font-family: var(--display); font-size: 2.3rem; line-height: 1; }
.stat p { font-size: var(--s1); color: var(--muted); }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Pills / flags */
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.pill.sea { background: var(--sea-soft); color: var(--sea); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.amb { background: var(--amber-soft); color: var(--amber); }
.pill.mute { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.nodot::before { display: none; }
.sample { display: inline-flex; gap: 6px; align-items: center; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--amber); background: var(--amber-soft); padding: 3px 8px; border-radius: 4px; }

/* Tables */
.tscroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: var(--s2); }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: var(--s1); font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--paper); }
tr.sel td { background: var(--accent-soft); }

/* Demo app frame */
.app { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px -30px rgb(19 28 51 / .35); }
.app-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.app-bar .dots { display: flex; gap: 6px; }
.app-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.app-bar .t { font-family: var(--mono); font-size: var(--s1); color: var(--muted); }
.app-bar .sample { margin-left: auto; }
.app-body { padding: 18px; display: grid; gap: 16px; }
.app-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 16px; background: var(--surface); overflow-x: auto; }
.app-tabs button { font: inherit; font-size: var(--s2); padding: 12px 12px 10px; border: 0; background: none; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.app-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.panel[hidden] { display: none; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.kpi { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: grid; gap: 2px; background: var(--surface); }
.kpi .l { font-size: var(--s1); color: var(--muted); }
.kpi .v { font-family: var(--mono); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.kpi .d { font-family: var(--mono); font-size: 11.5px; }
.kpi.warn { border-left: 3px solid var(--red); }
.kpi.good { border-left: 3px solid var(--sea); }

/* Forms */
.field { display: grid; gap: 6px; }
.field label, .field .lab { font-size: var(--s2); font-weight: 500; }
.field .hint { font-size: var(--s1); color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], select, textarea {
  font: inherit; font-size: var(--s2); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; width: 100%;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.range-row { display: grid; gap: 4px; }
.range-row .top { display: flex; justify-content: space-between; gap: 12px; font-size: var(--s2); }
.range-row .top .num { font-weight: 500; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); flex-wrap: wrap; }
.seg button { font: inherit; font-size: var(--s1); padding: 7px 12px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.check { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 10px; align-items: start; font-size: var(--s2); cursor: pointer; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--sea); }

/* Calculator result */
.calc { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.calc .in { padding: 22px; display: grid; gap: 18px; align-content: start; }
.calc .out { padding: 22px; background: var(--ink); color: var(--paper); display: grid; gap: 16px; align-content: start; }
.calc .out .kicker { color: color-mix(in srgb, var(--paper) 65%, transparent); }
.calc .out .huge { font-family: var(--display); font-size: 3rem; line-height: 1; }
.calc .out .row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--s2); border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); padding-top: 10px; }
.calc .out .row .num { font-weight: 500; }
.calc .out .small { color: color-mix(in srgb, var(--paper) 65%, transparent); }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }

/* WhatsApp phone */
.phone { width: 100%; max-width: 340px; margin: 0 auto; border-radius: 30px; border: 10px solid var(--ink); background: var(--wa); overflow: hidden; display: grid; grid-template-rows: auto 1fr; height: 560px; }
.phone .ph-top { background: #075e54; color: #fff; padding: 12px 14px; display: flex; gap: 10px; align-items: center; }
.phone .ph-top .av { width: 32px; height: 32px; border-radius: 50%; background: #25d366; display: grid; place-items: center; font-weight: 600; font-size: 13px; color: #053; }
.phone .ph-top b { font-size: 14px; font-weight: 600; display: block; }
.phone .ph-top small { font-size: 11px; opacity: .8; }
.phone .ph-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.bubble { max-width: 86%; padding: 7px 10px 18px; border-radius: 8px; font-size: 13.5px; line-height: 1.4; position: relative; background: var(--surface); color: var(--ink); box-shadow: 0 1px 0 rgb(0 0 0 / .08); white-space: pre-line; }
.bubble.out { align-self: flex-end; background: var(--wa-out); }
.bubble .ts { position: absolute; right: 8px; bottom: 3px; font-size: 10.5px; color: var(--muted); font-family: var(--mono); }
.bubble .btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bubble .btns span { font-size: 12px; color: #0a7cff; border: 1px solid var(--line); border-radius: 14px; padding: 3px 10px; background: var(--surface); }
.day-tag { align-self: center; font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--surface); padding: 2px 10px; border-radius: 10px; }

/* Timeline */
.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tl li { display: grid; grid-template-columns: 110px 18px minmax(0,1fr); gap: 12px; padding-bottom: 18px; position: relative; }
.tl li .d { font-family: var(--mono); font-size: var(--s1); color: var(--muted); padding-top: 1px; }
.tl li .m { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); margin-top: 4px; position: relative; z-index: 1; }
.tl li::after { content: ""; position: absolute; left: 127px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.tl li:last-child::after { display: none; }
.tl li.done .m { background: var(--sea); border-color: var(--sea); }
.tl li.now .m { background: var(--amber); border-color: var(--amber); }
.tl li .e { font-size: var(--s2); }
.tl li .e b { font-weight: 600; }

/* Drawer */
.detail { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 18px; display: grid; gap: 14px; align-content: start; }
.detail dl { margin: 0; display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 6px 12px; font-size: var(--s2); }
.detail dt { color: var(--muted); font-family: var(--mono); font-size: var(--s1); padding-top: 2px; }
.detail dd { margin: 0; }

/* Bars */
.hbar { display: grid; grid-template-columns: 140px minmax(0,1fr) 64px; gap: 12px; align-items: center; font-size: var(--s2); }
.hbar .track { height: 10px; background: var(--paper); border-radius: 5px; overflow: hidden; border: 1px solid var(--line); }
.hbar .fill { height: 100%; background: var(--red); border-radius: 5px; transition: width .4s ease; }
.hbar .num { text-align: right; font-size: var(--s1); }
.bars { display: grid; gap: 10px; }

/* Callout */
.callout { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; font-size: var(--s3); max-width: 72ch; }
.note { background: var(--amber-soft); color: var(--ink); border-radius: 8px; padding: 12px 14px; font-size: var(--s1); }

/* Product strip */
.prod-head { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 18px; align-items: start; }
.prod-no { font-family: var(--display); font-size: 4rem; line-height: .85; color: var(--muted); }

/* Steps */
.steps { counter-reset: st; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 6px; align-content: start; font-size: var(--s2); }
.steps li::before { counter-increment: st; content: counter(st, decimal-leading-zero); font-family: var(--mono); font-size: var(--s1); color: var(--sea); }
.steps li b { font-weight: 600; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
details.faq + details.faq { margin-top: 8px; }
details.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 500; font-size: var(--s2); }
details.faq p { padding: 0 16px 16px; font-size: var(--s2); color: var(--muted); max-width: 72ch; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: var(--s2); }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0,1fr)); gap: 24px; }
.site-foot h4 { font-family: var(--mono); font-size: var(--s1); font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); font-size: var(--s1); }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } .site-foot .wrap > :first-child { grid-column: 1 / -1; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 8px; font-size: var(--s2); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================= v2: banded website layout ================= */
:root { --saffron: #e8912d; --navy: #111a33; --navy-2: #1a2547; }
main { display: block; padding: 0; gap: 0; }
main.wrap { max-width: none; padding: 0; }
main > section { padding: 104px 0; display: block; position: relative; }
main > section > .inner { display: grid; gap: 32px; }
main > section.tight { padding: 64px 0; }

/* Band surfaces */
.b-paper { background: var(--paper); }
.b-white { background: var(--surface); }
.b-white .card, .b-white .kpi, .b-white .tscroll { background: var(--paper); }
.b-white .app .kpi, .b-white .app .tscroll, .b-white .app .card { background: var(--surface); }
.b-tint { background: linear-gradient(180deg, var(--sea-soft), color-mix(in srgb, var(--sea-soft) 40%, var(--paper))); }
.b-saffron { background: linear-gradient(180deg, var(--amber-soft), var(--paper)); }
.b-navy, .hero-band {
  --ink: #eef1f8; --muted: #a9b3cb; --line: rgb(255 255 255 / .12); --surface: rgb(255 255 255 / .06); --paper: rgb(255 255 255 / .03);
  --accent: #b9c4ff; --accent-ink: #111a33; --accent-soft: rgb(185 196 255 / .14); --sea: #6fd0e2; --sea-soft: rgb(111 208 226 / .14); --red: #ff9a84; --red-soft: rgb(255 154 132 / .14); --amber: #f5b35c; --amber-soft: rgb(245 179 92 / .14);
  background: var(--navy); color: var(--ink); color-scheme: dark;
}
:root[data-theme="dark"] .b-navy, :root[data-theme="dark"] .hero-band { background: #0a1020; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .b-navy, :root:not([data-theme="light"]) .hero-band { background: #0a1020; } }
.b-navy .btn { background: rgb(255 255 255 / .08); color: var(--ink); border-color: rgb(255 255 255 / .2); }
.b-navy .btn.primary, .hero-band .btn.primary { background: var(--saffron); border-color: var(--saffron); color: #1a1205; }
.hero-band .btn:not(.primary) { background: transparent; color: #eef1f8; border-color: rgb(255 255 255 / .3); }
.b-navy .app, .hero-band .app, .hero-band .phone, .b-navy .phone { --surface: #ffffff; --paper: #f4f6f9; --ink: #131c33; --muted: #5b6579; --line: #dce1e9; --accent: #2d3d94; --accent-ink: #fff; --accent-soft: #e6e9f7; --sea: #1f7f93; --sea-soft: #e0f1f4; --red: #b5432f; --red-soft: #f7e6e2; --amber: #a86a10; --amber-soft: #f6ecda; color: var(--ink); color-scheme: light; --wa: #e7f3e9; --wa-out: #d5f1c9; }

/* Hero */
.hero-band { padding: 88px 0 120px !important; overflow: hidden; }
.hero-band::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 20%, rgb(111 208 226 / .18), transparent 70%),
    radial-gradient(500px 360px at 10% 100%, rgb(232 145 45 / .16), transparent 70%),
    radial-gradient(rgb(255 255 255 / .07) 1px, transparent 1px) 0 0 / 22px 22px; }
.hero-band > .inner { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-grid .copy { display: grid; gap: 24px; align-content: center; }
.hero-band .display em { color: var(--saffron); }
.hero-band .lede.big { color: #d4daea; }
.hero-band .eyebrow { color: var(--sea); }
.hero-band .prod-no { color: rgb(255 255 255 / .18); font-size: 5.5rem; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--s1); color: var(--muted); }
.trust span { display: inline-flex; gap: 6px; align-items: center; } .trust i { display: inline-flex; }
.trust svg { width: 16px; height: 16px; color: var(--sea); }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Device frames */
.stage { position: relative; perspective: 1600px; }
.tilt { transform: rotateY(-9deg) rotateX(5deg) rotateZ(.5deg); transform-origin: 60% 50%; transition: transform .6s ease; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .6), 0 0 0 1px rgb(255 255 255 / .06); }
.stage:hover .tilt { transform: rotateY(-4deg) rotateX(2deg); }
@media (max-width: 980px) { .tilt { transform: none; } }
.float-card { position: absolute; background: #fff; color: #131c33; border-radius: 12px; padding: 12px 14px; box-shadow: 0 20px 40px -16px rgb(0 0 0 / .5); display: grid; gap: 2px; font-size: 13px; min-width: 180px; z-index: 2; animation: bob 6s ease-in-out infinite; }
.float-card .k { font-family: var(--mono); font-size: 11px; color: #5b6579; text-transform: uppercase; letter-spacing: .05em; }
.float-card .v { font-family: var(--mono); font-size: 18px; }
.float-card.a { right: -22px; bottom: -30px; }
.float-card.b { left: -30px; top: -22px; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 640px) { .float-card { display: none; } }
.laptop { border-radius: 14px 14px 0 0; border: 10px solid #1d2438; border-bottom: 0; background: #1d2438; }
.laptop-base { height: 16px; background: linear-gradient(#2a3350, #151b2d); border-radius: 0 0 16px 16px; margin: 0 -28px; }
.phone.hero-phone { height: 520px; transform: rotate(-3deg); border-color: #0b1020; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .7); }

/* Section heads */
.sec-head.center { margin: 0 auto; text-align: center; justify-items: center; }
.sec-head.center .lede { margin: 0 auto; }
h2.title { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.eyebrow.tag { display: inline-flex; gap: 8px; align-items: center; color: var(--sea); }
.eyebrow.tag::before { content: ""; width: 18px; height: 2px; background: currentColor; }

/* Ticker */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--navy-2); color: #eef1f8; padding: 0 !important; }
.ticker .track-x { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker:hover .track-x { animation-play-state: paused; }
.ticker .item { display: flex; gap: 14px; align-items: baseline; padding: 22px 40px; border-right: 1px solid rgb(255 255 255 / .1); white-space: nowrap; }
.ticker .item b { font-family: var(--display); font-weight: 400; font-size: 2rem; color: var(--saffron); }
.ticker .item span { font-size: var(--s2); color: #c3cbe0; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .track-x { animation: none; flex-wrap: wrap; width: auto; } }

/* Feature cards with icons */
.feat { display: grid; gap: 12px; align-content: start; padding: 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; }
.feat:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgb(19 28 51 / .35); border-color: color-mix(in srgb, var(--sea) 40%, var(--line)); }
.feat h3 { font-size: var(--s3); font-weight: 600; }
.feat p, .feat li { font-size: var(--s2); color: var(--muted); }
.feat ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.ic-tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--sea-soft); color: var(--sea); }
.ic-tile svg { width: 22px; height: 22px; }
.feat.acc .ic-tile { background: var(--accent-soft); color: var(--accent); }
.feat.amb .ic-tile { background: var(--amber-soft); color: var(--amber); }
.feat.red .ic-tile { background: var(--red-soft); color: var(--red); }
.card.sea, .card.acc, .card.amb, .card.red { border-top-width: 1px; }

/* Split rows */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 56px; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.rev > :first-child { order: 0; } }
.split .copy { display: grid; gap: 18px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: var(--s2); }
.checks li svg { width: 20px; height: 20px; color: var(--sea); margin-top: 2px; }

/* Big number break */
.bignum { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: end; }
.bignum .n { font-family: var(--display); font-size: clamp(4rem, 11vw, 9rem); line-height: .85; color: var(--saffron); letter-spacing: -.02em; }
.bignum p { font-size: var(--s4); max-width: 34ch; line-height: 1.35; }
@media (max-width: 700px) { .bignum { grid-template-columns: 1fr; } }

/* Product switcher */
.switcher { position: sticky; top: 60px; z-index: 15; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.switcher .wrap { display: flex; gap: 4px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; }
.switcher a { display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; text-decoration: none; color: var(--muted); font-size: var(--s2); padding: 7px 12px; border-radius: 999px; }
.switcher a span { font-family: var(--mono); font-size: 11px; }
.switcher a:hover { color: var(--ink); background: var(--paper); }
.switcher a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* Reveal: visible at rest, slides in */
.rv { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.rv.below { transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) { .rv.below { transform: none; } }

/* Flow diagram */
.flow { display: grid; grid-template-columns: repeat(9, auto); align-items: center; justify-content: center; gap: 0 4px; }
.flow .node { display: grid; justify-items: center; gap: 10px; text-align: center; width: 150px; }
.flow .node .disc { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--sea); box-shadow: 0 12px 30px -18px rgb(0 0 0 / .5); }
.flow .node .disc svg { width: 32px; height: 32px; }
.flow .node b { font-size: var(--s2); font-weight: 600; }
.flow .node span { font-size: var(--s1); color: var(--muted); }
.flow .wire { width: 56px; height: 2px; background: repeating-linear-gradient(90deg, var(--sea) 0 6px, transparent 6px 12px); background-size: 24px 2px; animation: dash 1.2s linear infinite; margin-bottom: 52px; }
@keyframes dash { to { background-position: 24px 0; } }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; justify-items: center; } .flow .wire { width: 2px; height: 32px; margin: 6px 0; background: repeating-linear-gradient(180deg, var(--sea) 0 6px, transparent 6px 12px); } }

/* Map */
.map svg { width: 100%; height: auto; display: block; }
.map text { font-family: var(--body); font-size: 13px; fill: var(--ink); }
.map .lbl-sub { font-family: var(--mono); font-size: 10.5px; fill: var(--muted); }
.pulse { animation: pulse 2.4s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 0% { opacity: .7; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.4); } }

/* Product cards v2 */
.pcard { position: relative; overflow: hidden; display: grid; gap: 14px; align-content: start; padding: 26px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; min-height: 280px; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgb(19 28 51 / .45); }
.pcard .glyph { position: absolute; right: -10px; bottom: -24px; font-family: var(--display); font-size: 10rem; line-height: 1; color: var(--line); pointer-events: none; }
.pcard h3 { font-family: var(--display); font-weight: 400; font-size: 1.8rem; line-height: 1.05; }
.pcard p { font-size: var(--s2); color: var(--muted); max-width: 40ch; position: relative; }
.pcard .price { font-family: var(--mono); font-size: var(--s1); color: var(--ink); position: relative; margin-top: auto; }
.pcard .more { font-size: var(--s2); color: var(--accent); position: relative; }
.pcard.feature { grid-column: span 2; background: var(--navy); color: #eef1f8; border-color: transparent; }
.pcard.feature p { color: #c3cbe0; } .pcard.feature .price { color: #eef1f8; } .pcard.feature .more { color: var(--saffron); } .pcard.feature .glyph { color: rgb(255 255 255 / .06); }
@media (max-width: 960px) { .pcard.feature { grid-column: auto; } }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, #1f2f5e 60%, #1f5f6e 100%); color: #eef1f8; border-radius: 24px; padding: 56px; display: grid; grid-template-columns: minmax(0,1.3fr) auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 50px solid rgb(232 145 45 / .18); }
.cta-band h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.05; }
.cta-band p { color: #c3cbe0; margin-top: 10px; max-width: 52ch; }
.cta-band .btn { background: var(--saffron); border-color: var(--saffron); color: #1a1205; position: relative; z-index: 1; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 32px; } }

/* Demo section framing */
.demo-band .app { box-shadow: 0 40px 90px -40px rgb(19 28 51 / .45); }
.site-foot { background: var(--navy); color: #c3cbe0; border-top: 0; }
.site-foot a, .site-foot .logo { color: #eef1f8; }
.site-foot .small, .site-foot .legal, .site-foot h4, .site-foot .logo span { color: #8f9ab4; }
.site-foot .legal { border-top-color: rgb(255 255 255 / .1); }

/* ================= Portal ================= */
body[data-shell="app"] { background: var(--paper); }
body.auth-pending .portal { visibility: hidden; }
.portal { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.pside { --ink: #eef1f8; --muted: #a9b3cb; background: var(--navy); color: var(--ink); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; padding: 22px 14px; overflow-y: auto; }
.plogo { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: #eef1f8; padding: 0 10px; }
.plogo b { font-family: var(--display); font-weight: 400; font-size: 1.45rem; }
.plogo span { font-family: var(--mono); font-size: 11px; color: var(--saffron); text-transform: uppercase; letter-spacing: .08em; }
.pnav { display: grid; gap: 2px; }
.pnav a { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 8px; color: #a9b3cb; text-decoration: none; font-size: var(--s2); }
.pnav a svg { width: 18px; height: 18px; flex: none; }
.pnav a:hover { background: rgb(255 255 255 / .06); color: #eef1f8; }
.pnav a[aria-current="page"] { background: rgb(255 255 255 / .1); color: #fff; box-shadow: inset 3px 0 0 var(--saffron); }
.pside-foot { margin-top: auto; display: grid; gap: 14px; }
.pside-foot > a { color: #a9b3cb; font-size: var(--s1); text-decoration: none; padding: 0 10px; }
.pside-foot > a:hover { color: #fff; }
.puser { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; background: rgb(255 255 255 / .05); }
.puser b { display: block; font-size: var(--s2); font-weight: 500; color: #fff; }
.puser small { display: block; font-size: 11.5px; color: #a9b3cb; line-height: 1.35; }
.pav { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--saffron); color: #1a1205; font-weight: 600; }
.pmain { min-width: 0; display: flex; flex-direction: column; }
.ptop { position: sticky; top: 0; z-index: 10; display: flex; gap: 14px; align-items: center; padding: 14px 32px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.ptop h1 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; margin-right: auto; }
.pmenu { display: none; font: inherit; font-size: var(--s2); background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.pcontent { padding: 32px; display: grid; gap: 40px; align-content: start; max-width: 1240px; width: 100%; }
.pcontent h2.title { font-size: 1.7rem; }
.pcontent .lede { font-size: var(--s2); }
.app-sec { display: grid; gap: 24px; }
.app-sec + .app-sec { border-top: 1px solid var(--line); padding-top: 40px; }
.pcontent .count { background: var(--surface); border-radius: var(--radius); padding: 0 16px; }
@media (max-width: 900px) {
  .portal { grid-template-columns: 1fr; }
  .pside { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 30; transform: translateX(-100%); transition: transform .25s; }
  body.pnav-open .pside { transform: none; box-shadow: 20px 0 60px rgb(0 0 0 / .35); }
  .pmenu { display: inline-block; }
  .ptop { padding: 12px 16px; flex-wrap: wrap; }
  .ptop h1 { font-size: 1.3rem; }
  .pcontent { padding: 20px 16px; }
}
.greet { display: grid; gap: 8px; }
.greet h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.1; }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tasks li a { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.tasks li a:hover { border-color: var(--muted); transform: translateX(2px); }
.tasks .ti { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.tasks .ti.amb { background: var(--amber-soft); color: var(--amber); }
.tasks .ti.sea { background: var(--sea-soft); color: var(--sea); }
.tasks .ti svg { width: 20px; height: 20px; }
.tasks b { font-weight: 500; font-size: var(--s2); display: block; }
.tasks small { color: var(--muted); font-size: var(--s1); }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tool { display: grid; gap: 10px; padding: 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.tool:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -24px rgb(19 28 51 / .4); }
.tool h3 { font-size: var(--s3); font-weight: 600; }
.tool p { font-size: var(--s2); color: var(--muted); }
.tool .go { color: var(--accent); font-size: var(--s2); }
.feed2 { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.feed2 li { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--s2); }
.feed2 li:last-child { border-bottom: 0; }
.feed2 .t { font-family: var(--mono); font-size: var(--s1); color: var(--muted); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1000px) { .home-grid { grid-template-columns: 1fr; } }

/* Login */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 100vh; }
.auth-side { position: relative; overflow: hidden; background: var(--navy); color: #eef1f8; padding: 48px; display: flex; flex-direction: column; gap: 28px; }
.auth-side::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(500px 360px at 90% 10%, rgb(111 208 226 / .2), transparent 70%), radial-gradient(420px 320px at 0% 100%, rgb(232 145 45 / .2), transparent 70%), radial-gradient(rgb(255 255 255 / .07) 1px, transparent 1px) 0 0 / 22px 22px; }
.auth-side > * { position: relative; }
.auth-side .plogo { padding: 0; }
.auth-side h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.04; margin-top: auto; }
.auth-side h1 em { color: var(--saffron); }
.auth-side p { color: #c3cbe0; max-width: 46ch; }
.auth-side .checks li { color: #d4daea; }
.auth-side .checks svg { color: #6fd0e2; }
.auth-main { padding: 48px clamp(20px, 5vw, 72px); display: grid; align-content: center; gap: 28px; background: var(--surface); }
.auth-card { display: grid; gap: 16px; max-width: 440px; width: 100%; }
.auth-card h2 { font-family: var(--display); font-weight: 400; font-size: 2rem; }
.pw { position: relative; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: inherit; font-size: var(--s1); background: none; border: 0; color: var(--accent); cursor: pointer; padding: 6px; }
.msg { border-radius: 8px; padding: 10px 14px; font-size: var(--s2); }
.msg.err { background: var(--red-soft); color: var(--red); }
.msg.ok { background: var(--sea-soft); color: var(--sea); }
.msg.info { background: var(--amber-soft); color: var(--ink); }
.or { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: var(--s1); max-width: 640px; }
.or::before, .or::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.demos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; max-width: 640px; }
.demos button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 6px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); transition: border-color .15s, transform .15s; }
.demos button:hover, .demos button:focus-visible { border-color: var(--accent); transform: translateY(-2px); outline: none; }
.demos button[disabled] { opacity: .6; cursor: wait; }
.demos .ic-tile { width: 36px; height: 36px; border-radius: 10px; }
.demos .ic-tile svg { width: 18px; height: 18px; }
.demos b { font-size: var(--s2); font-weight: 600; }
.demos small { font-size: var(--s1); color: var(--muted); line-height: 1.4; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { padding: 32px 24px; } .auth-side h1 { margin-top: 12px; } }

main.pcontent > section { padding: 0; }
main.pcontent > section.app-sec + section.app-sec { padding-top: 40px; }
.pw input { padding-right: 64px; }
