/* Plus Jakarta Sans (SIL Open Font License), hosted by us. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/jakarta-400.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/jakarta-500.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/jakarta-600.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/jakarta-700.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/jakarta-800.woff2") format("woff2"); }
/* ==========================================================================
   Marketing site: same blue & white system as the dashboard
   ========================================================================== */
:root {
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --accent: #2f6fed;
  --accent-hover: #2459cc;
  --accent-soft: #eaf1ff;
  --accent-ring: rgba(47, 111, 237, 0.25);
  --navy: #0b1f44;
  --navy-2: #12295a;
  --ink: #0f172a;
  --ink-2: #3c4a63;
  --muted: #6b7a93;
  --line: #e3e8f1;
  --line-2: #eef2f8;
  --bg: #f4f7fc;
  --card: #fff;
  --ok: #138a4b;
  --ok-soft: #e4f6ec;
  --warn: #a35f00;
  --warn-soft: #fff3df;
  --danger: #c62f2f;
  --danger-soft: #fdeaea;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-lg: 0 24px 60px rgba(11, 31, 68, .18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font: 600 15px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(47, 111, 237, .35); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.outline:hover { border-color: #c9d3e6; background: var(--bg); }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--bg); color: var(--ink); }
.btn.light { background: #fff; color: var(--navy); }
.btn.light:hover { background: var(--accent-soft); }
.btn.glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn.glass:hover { background: rgba(255, 255, 255, .18); }
.btn.lg { height: 50px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand svg { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); background: var(--bg); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; margin: auto; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, #dfe9ff 0%, rgba(223, 233, 255, 0) 60%), linear-gradient(180deg, #f7faff 0%, #fff 100%); padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); box-shadow: var(--shadow); }
.chip b { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 2px 8px; font-size: 12px; }
.hero h1 { font-size: 56px; letter-spacing: -0.035em; margin: 18px 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 19px; color: var(--ink-2); max-width: 540px; }
.hero .actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero .fine { margin-top: 16px; font-size: 14px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.hero .fine span { display: inline-flex; align-items: center; gap: 6px; }
.hero .fine svg { width: 16px; height: 16px; color: var(--ok); }

/* ---------- product mockups (pure HTML/CSS) ---------- */
.browser { position: relative; background: #fff; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d5dced; }
.browser-bar .url { flex: 1; margin-left: 10px; height: 22px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-size: 11.5px; color: var(--muted); display: flex; align-items: center; padding: 0 10px; font-family: var(--mono); }
.site { padding: 18px 20px 22px; position: relative; }
.site-nav { display: flex; align-items: center; gap: 14px; font-size: 11px; color: var(--muted); margin-bottom: 18px; }
.site-nav b { color: var(--ink); font-size: 13px; margin-right: auto; }
.site-hero { border-radius: 10px; background: linear-gradient(135deg, #e9f0ff, #f6f9ff); padding: 18px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.bar { height: 9px; border-radius: 6px; background: #d9e2f3; margin-bottom: 8px; }
.bar.dark { background: #2b3a5a; height: 13px; }
.bar.w90 { width: 90%; } .bar.w70 { width: 70%; } .bar.w50 { width: 50%; } .bar.w40 { width: 40%; } .bar.w30 { width: 30%; }
.pic { border-radius: 8px; background: linear-gradient(135deg, #bcd0f7, #8fb0f2); min-height: 92px; }
.select-ring { position: relative; outline: 2px dashed var(--accent); outline-offset: 4px; border-radius: 8px; }
.select-tag { position: absolute; top: -26px; left: 0; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.site-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.site-row .pic { min-height: 54px; }
.mini-form { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 7px; }
.mini-form .in { height: 22px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.mini-form .go { height: 24px; width: 40%; border-radius: 6px; background: var(--accent); }
.toast-pop { position: absolute; right: 16px; bottom: 16px; width: 230px; background: #fff; border-radius: 12px; box-shadow: 0 14px 40px rgba(11, 31, 68, .22); border: 1px solid var(--line); padding: 14px 14px 12px; font-size: 12.5px; }
.toast-pop b { display: block; font-size: 14px; margin-bottom: 3px; }
.toast-pop p { color: var(--muted); margin-bottom: 10px; }
.toast-pop span.cta { display: inline-block; background: var(--accent); color: #fff; font-weight: 600; font-size: 11.5px; padding: 6px 10px; border-radius: 7px; }
.float-card { position: absolute; background: #fff; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(11, 31, 68, .16); padding: 12px 14px; font-size: 12.5px; }
.float-card .k { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.float-card .v { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.float-card .d { color: var(--ok); font-weight: 600; font-size: 12px; }
.hero-visual { position: relative; padding: 10px 10px 30px 30px; }
.hero-visual .f1 { left: -10px; top: 46%; }
.hero-visual .f2 { right: -14px; top: -8px; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 30px; margin-top: 6px; }
.spark i { display: block; width: 7px; border-radius: 2px; background: var(--accent); opacity: .85; }

/* ---------- sections ---------- */
section { padding: 96px 0; }
section.tint { background: var(--bg); }
.sec-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.sec-head h2 { font-size: 40px; margin: 12px 0 14px; letter-spacing: -0.03em; }
.sec-head p { font-size: 18px; color: var(--ink-2); }
.works { padding: 34px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.works .wrap { display: flex; align-items: center; gap: 28px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.works ul { display: flex; gap: 28px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.works li { font-weight: 700; color: #8a97ad; font-size: 16px; letter-spacing: -0.01em; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step .num { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 800; display: grid; place-items: center; margin-bottom: 18px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--ink-2); }
.code { margin-top: 16px; background: var(--navy); color: #cfe0ff; border-radius: 10px; padding: 12px 14px; font: 12.5px/1.5 var(--mono); overflow-x: auto; white-space: nowrap; }
.code .t { color: #8fb2ff; } .code .a { color: #ffd38f; } .code .s { color: #9be3b4; }

/* feature rows */
.frow { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; padding: 48px 0; }
.frow + .frow { border-top: 1px solid var(--line-2); }
.frow.flip .ftext { order: 2; }
.ftext h3 { font-size: 32px; letter-spacing: -0.025em; margin: 10px 0 14px; }
.ftext > p { font-size: 17px; color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.ticks svg { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); margin-top: 2px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 22px; position: relative; }
.panel-title { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px 6px; border-bottom: 1px solid var(--line-2); }
.tbl td.r, .tbl th.r { text-align: right; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.gray { background: var(--line-2); color: var(--ink-2); }
.rule { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; margin-bottom: 10px; font-size: 14px; }
.rule .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.rule .ic svg { width: 18px; height: 18px; }
.rule small { display: block; color: var(--muted); font-size: 12.5px; }
.rule .tag { margin-left: auto; }
.bars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: 120px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.hbar .track { height: 10px; background: var(--line-2); border-radius: 6px; overflow: hidden; }
.hbar .fill { height: 100%; background: var(--accent); border-radius: 6px; }
.hbar .n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.kv div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.kv span { display: block; font-size: 11.5px; color: var(--muted); }
.kv b { font-size: 20px; letter-spacing: -0.02em; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 14px 28px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 1px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.timeline li.done::before { background: var(--ok); border-color: var(--ok); }
.timeline small { color: var(--muted); margin-left: 6px; }
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.platforms div { border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 13.5px; }
.platforms b { display: block; margin-bottom: 4px; }

/* feature grid */
.fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.fcard .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.fcard .ic svg { width: 20px; height: 20px; }
.fcard h4 { font-size: 16px; margin-bottom: 6px; }
.fcard p { font-size: 14.5px; color: var(--ink-2); }

/* pricing */
.billing-toggle { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 34px; }
.billing-toggle button { border: 0; background: none; font: 600 14px var(--font); padding: 9px 16px; border-radius: 9px; color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.billing-toggle button[aria-pressed=true] { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.billing-toggle .save { font-size: 11.5px; color: var(--ok); background: var(--ok-soft); padding: 2px 7px; border-radius: 999px; }
.center { text-align: center; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; text-align: left; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan.popular { border: 2px solid var(--accent); box-shadow: 0 18px 50px rgba(47, 111, 237, .18); }
.plan-badge { position: absolute; top: -13px; left: 28px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-size: 20px; }
.plan-tag { color: var(--muted); font-size: 14.5px; margin: 6px 0 20px; min-height: 44px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-price .amt { font-size: 46px; font-weight: 800; letter-spacing: -0.035em; }
.plan-price .per { color: var(--muted); font-weight: 500; }
.plan-billed { color: var(--muted); font-size: 13.5px; margin: 4px 0 22px; min-height: 20px; }
.plan-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 11px; font-size: 14.5px; color: var(--ink-2); }
.plan-list li { display: flex; gap: 10px; }
.plan-list svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.pay-note { margin-top: 28px; color: var(--muted); font-size: 14px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; align-items: center; }
.cards-accepted { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.cards-accepted span { border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: #fff; }
.compare { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 15px; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--line-2); text-align: center; }
.compare th[scope=row] { text-align: left; font-weight: 500; color: var(--ink-2); }
.compare thead th { background: var(--bg); font-size: 15px; }
.compare .yes svg { width: 20px; height: 20px; color: var(--accent); margin: auto; }
.table-scroll { overflow-x: auto; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); }

/* CTA band */
.cta-band { background: linear-gradient(140deg, var(--navy) 0%, #143a8a 65%, var(--accent) 140%); color: #fff; border-radius: 24px; padding: 64px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: 40px; letter-spacing: -0.03em; }
.cta-band p { color: #c9d7f5; font-size: 18px; margin: 14px auto 28px; max-width: 600px; }
.cta-band .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* footer */
footer.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; background: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h5 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.foot-grid a:hover { color: var(--accent); }
.foot-grid p { color: var(--muted); font-size: 14.5px; margin-top: 12px; max-width: 300px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 13.5px; flex-wrap: wrap; }

/* page header (inner pages) */
.page-head { padding: 72px 0 24px; text-align: center; background: linear-gradient(180deg, #f7faff 0%, #fff 100%); }
.page-head h1 { font-size: 48px; letter-spacing: -0.035em; margin: 12px 0 14px; }
.page-head p { font-size: 19px; color: var(--ink-2); max-width: 680px; margin: 0 auto; }
.legal { max-width: 760px; margin: 0 auto; padding: 40px 24px 96px; color: var(--ink-2); }
.legal h2 { font-size: 22px; margin: 32px 0 10px; color: var(--ink); }
.legal p, .legal li { margin-bottom: 10px; }
.note { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 12px 14px; font-size: 14px; }

/* feature catalogue (features page) */
.cat { display: grid; grid-template-columns: 280px 1fr; gap: 48px; padding: 44px 0; border-top: 1px solid var(--line-2); }
.cat:first-child { border-top: 0; }
.cat h2 { font-size: 26px; margin: 10px 0 10px; }
.cat > div:first-child p { color: var(--ink-2); }
.cat .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.cat .ic svg { width: 22px; height: 22px; }
.cat ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.cat li b { display: block; font-size: 15.5px; margin-bottom: 3px; }
.cat li span { color: var(--ink-2); font-size: 14.5px; }

/* ---------- forms + sign-up ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.input { height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; font: 15px var(--font); color: var(--ink); background: #fff; width: 100%; transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.help { font-size: 13px; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 6px 0 18px; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); }
.alert { border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.alert.err { background: var(--danger-soft); color: var(--danger); }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert.info { background: var(--accent-soft); color: #1d4fb8; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.outline .spinner { border-color: var(--line); border-top-color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

.signup { min-height: 100vh; display: grid; grid-template-columns: 1fr 460px; background: var(--bg); }
.signup-main { padding: 28px 48px 64px; }
.signup-main .brand { margin-bottom: 40px; }
.signup-card { max-width: 560px; margin: 0 auto; }
.stepper { display: flex; gap: 10px; align-items: center; margin-bottom: 26px; font-size: 14px; color: var(--muted); }
.stepper .s { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.stepper .s i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; border: 2px solid var(--line); background: #fff; }
.stepper .s.on { color: var(--ink); }
.stepper .s.on i { border-color: var(--accent); color: var(--accent); }
.stepper .s.done i { background: var(--accent); border-color: var(--accent); color: #fff; }
.stepper .ln { flex: 0 0 40px; height: 2px; background: var(--line); }
.signup-card h1 { font-size: 30px; letter-spacing: -0.03em; margin-bottom: 8px; }
.signup-card .lead { color: var(--ink-2); margin-bottom: 26px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: var(--shadow); }
.plan-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.plan-pick label { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; background: #fff; }
.plan-pick input { position: absolute; opacity: 0; }
.plan-pick label:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: #f8fbff; }
.plan-pick label:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--accent-ring); }
.plan-pick b { display: block; font-size: 15px; }
.plan-pick span { font-size: 13px; color: var(--muted); }
.interval { display: flex; gap: 16px; font-size: 14px; color: var(--ink-2); margin: 10px 0 20px; }
.interval label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.interval input { accent-color: var(--accent); }
.pe-wrap { min-height: 220px; }
.pe-loading { display: grid; place-items: center; height: 220px; color: var(--muted); font-size: 14px; }
.terms-box { font-size: 13px; color: var(--muted); margin-top: 16px; }
.secure { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 16px; color: var(--muted); font-size: 13px; }
.secure svg { width: 15px; height: 15px; }
.summary-side { background: linear-gradient(170deg, var(--navy) 0%, #143a8a 75%, var(--accent) 160%); color: #fff; padding: 48px 40px; display: flex; flex-direction: column; gap: 26px; }
.summary-side h3 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .07em; opacity: .75; }
.sum-plan { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 20px; }
.sum-plan .nm { font-size: 22px; font-weight: 800; }
.sum-plan .pr { color: #c9d7f5; margin-top: 2px; }
.sum-lines { margin-top: 16px; display: grid; gap: 10px; font-size: 14.5px; }
.sum-lines div { display: flex; justify-content: space-between; gap: 12px; color: #c9d7f5; }
.sum-lines div b { color: #fff; }
.sum-lines .total { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 12px; margin-top: 4px; font-size: 16px; }
.sum-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: #dbe5fb; font-size: 14.5px; }
.sum-list li { display: flex; gap: 10px; }
.sum-list svg { width: 18px; height: 18px; color: #8fb2ff; flex: none; margin-top: 2px; }
.sum-foot { margin-top: auto; color: #8fa3cf; font-size: 13px; }

.auth { min-height: 100vh; display: grid; place-items: center; background: var(--bg); padding: 32px 16px; }
.auth .box { width: min(420px, 100%); padding: 32px; }
.auth .brand { justify-content: center; display: flex; margin-bottom: 22px; }
.auth h1 { font-size: 24px; text-align: center; margin-bottom: 6px; }
.auth .lead { text-align: center; color: var(--muted); margin-bottom: 24px; }
.auth .switch { text-align: center; font-size: 14px; color: var(--muted); margin-top: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .fgrid { grid-template-columns: repeat(2, 1fr); }
  .signup { grid-template-columns: 1fr; }
  .summary-side { order: 1; padding: 28px 24px; }
  .summary-side .sum-list, .summary-side .sum-foot { display: none; }
}
@media (max-width: 920px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: grid; }
  .nav.open .wrap { flex-wrap: wrap; height: auto; padding-top: 13px; padding-bottom: 16px; }
  .nav.open .nav-links, .nav.open .nav-cta { display: flex; flex-direction: column; width: 100%; align-items: stretch; }
  .hero .wrap, .frow, .cat { grid-template-columns: 1fr; gap: 36px; }
  .frow.flip .ftext { order: 0; }
  .hero h1 { font-size: 40px; }
  .steps, .plans { grid-template-columns: 1fr; }
  .plans { max-width: 460px; margin: 0 auto; }
  .sec-head h2, .cta-band h2, .page-head h1 { font-size: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
  .signup-main { padding: 24px 16px 48px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .fgrid, .cat ul, .row2, .plan-pick, .platforms, .kv { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero-visual { padding: 0; }
  .float-card { display: none; }
  .cta-band { padding: 44px 22px; }
  .foot-grid { grid-template-columns: 1fr; }
  .hbar { grid-template-columns: 90px 1fr 36px; }
  .stepper .s:not(.on) .lbl { display: none; }
  .stepper .ln { flex: 1 1 16px; }
  .signup-main .brand { margin-bottom: 24px; }
}
.stepper .s { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
.step, .frow > *, .plans > *, .fgrid > * { min-width: 0; }
.invite-card { border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; margin-bottom: 18px; background: var(--bg); }
.invite-card div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; }
.invite-card div + div { border-top: 1px solid var(--line); }
.invite-card span { color: var(--muted); }
.invite-card b { text-align: right; }

/* sign-in extras */
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.small-link { font-size: 13px; font-weight: 600; }
.code-input { font-size: 22px; letter-spacing: 0.2em; text-align: center; font-variant-numeric: tabular-nums; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; font-weight: 600; }
button.link:hover { text-decoration: underline; }
