/* G-amini ERP — public website
   Layout concept: left-weighted editorial blocks on a cool paper ground, with the
   logo's ellipse-and-capsule geometry repeated in chips, tiles and section markers. */
:root {
  --brand: #2b7ec0;          /* logo deep blue */
  --brand-2: #559ed5;        /* logo light blue */
  --brand-tint: #e3eff9;
  --brand-ink: #0f3557;
  --bg: #f6f9fc;
  --surface: #ffffff;
  --surface-2: #eef4fa;
  --line: #d8e3ee;
  --text: #11263a;
  --muted: #536a80;
  --ok: #1d8a57;
  --warn: #a8670f;
  --bad: #bf3a34;
  --foot-bg: #0e2b46;
  --foot-text: #c9dbec;
  --foot-muted: #8fa9c2;
  --shadow: 0 1px 2px rgba(17, 38, 58, .06), 0 8px 24px -12px rgba(17, 38, 58, .18);
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r-s: 8px; --r-m: 14px; --r-l: 22px;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #5ea6dc; --brand-2: #8cc0e8; --brand-tint: #15304a; --brand-ink: #d5e7f6;
    --bg: #0a1521; --surface: #102030; --surface-2: #15283b; --line: #233a50;
    --text: #e4edf6; --muted: #98aec3; --ok: #46c086; --warn: #e2a64a; --bad: #ef7a72;
    --foot-bg: #060f18; --foot-text: #c9dbec; --foot-muted: #7f99b2;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #5ea6dc; --brand-2: #8cc0e8; --brand-tint: #15304a; --brand-ink: #d5e7f6;
  --bg: #0a1521; --surface: #102030; --surface-2: #15283b; --line: #233a50;
  --text: #e4edf6; --muted: #98aec3; --ok: #46c086; --warn: #e2a64a; --bad: #ef7a72;
  --foot-bg: #060f18; --foot-text: #c9dbec; --foot-muted: #7f99b2;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.015em; color: var(--text); }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -.005em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--f-mono); font-size: .88em; letter-spacing: -.01em; }
.svgi { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.svgi .f { fill: var(--brand-2); opacity: .32; stroke: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font: 600 .78rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--brand); box-shadow: .9rem 0 0 -.12rem var(--brand-2); margin-right: .7rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .65rem 1.2rem; border-radius: 999px; border: 1.5px solid transparent; font: 600 .98rem/1.1 var(--f-body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s, color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #226aa4; }
:root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .btn-primary:hover { color: #08192a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #08192a; } :root:not([data-theme="light"]) .btn-primary:hover { background: var(--brand-2); } }
:root[data-theme="dark"] .btn-primary:hover { background: var(--brand-2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-soft { background: var(--brand-tint); color: var(--brand-ink); }
.btn-soft:hover { background: var(--line); }
.btn-sm { min-height: 36px; padding: .45rem .9rem; font-size: .9rem; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 1.25rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); flex: none; }
.brand img { height: 38px; width: auto; display: block; }
.brand .by { font: 500 .72rem/1.15 var(--f-body); color: var(--muted); border-left: 1px solid var(--line); padding-left: .6rem; }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links button.navbtn { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .8rem; border-radius: 999px; color: var(--text); text-decoration: none; font: 500 .96rem/1 var(--f-body); background: none; border: 0; cursor: pointer; }
.nav-links a:hover, .nav-links button.navbtn:hover, .nav-links a[aria-current="page"] { background: var(--surface-2); color: var(--brand); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.icon-btn .svgi { width: 20px; height: 20px; }
.menu-toggle { display: none; }

/* Mega menu */
.mega { position: absolute; top: calc(100% + 10px); left: -12px; width: min(860px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 1.25rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 1.25rem; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s; }
.has-mega.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega h4 { font: 700 .74rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .55rem; }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.mega li a { padding: .3rem .4rem; margin-left: -.4rem; border-radius: 6px; font-size: .92rem; display: flex; gap: .45rem; align-items: center; }
.mega li a .svgi { width: 1.05em; height: 1.05em; color: var(--brand); }
.mega li a .appimg { width: 1.35em; height: 1.35em; margin: -.15em 0; flex: none; }
.mega .mega-foot { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: .9rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .92rem; color: var(--muted); }

@media (max-width: 980px) {
  .nav-links { display: none; position: fixed; inset: calc(68px + env(safe-area-inset-top, 0px)) 0 0 0; background: var(--surface); flex-direction: column; align-items: stretch; padding: 1rem max(16px, env(safe-area-inset-right, 0px)) 2rem max(16px, env(safe-area-inset-left, 0px)); overflow-y: auto; gap: .25rem; }
  body.nav-open .nav-links { display: flex; }
  .nav-links a, .nav-links button.navbtn { font-size: 1.08rem; padding: .85rem .8rem; width: 100%; justify-content: space-between; }
  .mega { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; grid-template-columns: 1fr 1fr; border-radius: var(--r-m); margin: .25rem 0 .5rem; }
  .has-mega.open .mega { display: grid; }
  .menu-toggle { display: inline-grid; }
  .nav-right .hide-sm { display: none; }
  .brand .by { display: none; }
}
@media (max-width: 520px) { .mega { grid-template-columns: 1fr; } .nav-right .btn-primary { padding-inline: .9rem; } }

/* Sections */
section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.sec-head { display: grid; gap: .9rem; margin-bottom: 2.5rem; max-width: 760px; }
.band { background: var(--surface); border-block: 1px solid var(--line); }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 .hl { position: relative; white-space: nowrap; color: var(--brand); }
.hero h1 .hl svg { position: absolute; left: -2%; bottom: -.18em; width: 104%; height: .4em; overflow: visible; }
.hero h1 .hl svg path { fill: none; stroke: var(--brand-2); stroke-width: 6; stroke-linecap: round; opacity: .55; }
.hero .lead { margin-top: 1.3rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.6rem; color: var(--muted); font-size: .92rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-meta .svgi { color: var(--ok); width: 1.1em; height: 1.1em; }
.hero-swoosh { position: absolute; right: -120px; top: -60px; width: 520px; opacity: .07; pointer-events: none; }

/* Flow card (hero visual) */
.flow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 1.1rem; position: relative; }
.flow-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .2rem .3rem .9rem; border-bottom: 1px dashed var(--line); }
.flow-top b { font: 650 .95rem/1.2 var(--f-display); }
.flow-top small { color: var(--muted); font-size: .8rem; }
.flow-steps { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .5rem; }
.flow-step { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .7rem .75rem; border-radius: var(--r-m); border: 1px solid transparent; transition: background .35s, border-color .35s; }
.flow-step .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand); }
.flow-step .ico .svgi { width: 22px; height: 22px; }
.flow-step .t { font-weight: 600; font-size: .95rem; }
.flow-step .s { color: var(--muted); font-size: .82rem; }
.flow-step .st { font-size: .74rem; font-weight: 700; letter-spacing: .04em; padding: .25rem .55rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.flow-step.done .st { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.flow-step.active { background: var(--brand-tint); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.flow-step.active .st { background: var(--brand); color: #fff; }
.flow-foot { margin-top: .8rem; padding: .75rem .9rem; border-radius: var(--r-m); background: var(--surface-2); display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-size: .86rem; color: var(--muted); flex-wrap: wrap; }
.flow-foot strong { color: var(--text); font-family: var(--f-mono); font-size: .9rem; }

/* App grid */
.fam-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 500 .9rem/1 var(--f-body); cursor: pointer; min-height: 38px; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
:root[data-theme="dark"] .chip[aria-pressed="true"] { color: #08192a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip[aria-pressed="true"] { color: #08192a; } }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 1.4rem .75rem; }
.app-tile { display: flex; flex-direction: column; align-items: center; gap: .55rem; text-decoration: none; color: var(--text); font-size: .88rem; font-weight: 500; text-align: center; padding: .3rem; border-radius: var(--r-m); }
.app-tile .tile { width: 82px; height: 82px; border-radius: 24px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line), 0 6px 14px -10px rgba(17, 38, 58, .4); color: var(--brand); transition: transform .18s, box-shadow .18s; position: relative; }
.app-tile .tile::after { content: ""; position: absolute; right: 7px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-2); opacity: .8; }
.app-tile .tile .svgi { width: 41px; height: 41px; stroke-width: 1.5; }
.app-tile .tile.tile-img { background: none; border: 0; box-shadow: none; }
.app-tile .tile.tile-img::after { display: none; }
.app-tile .tile .appimg { width: 100%; height: 100%; display: block; }
.app-tile:hover .tile.tile-img { box-shadow: none; filter: drop-shadow(0 10px 10px rgba(43, 126, 192, .28)); }
.app-tile:hover .tile { transform: translateY(-3px); box-shadow: 0 1px 0 var(--line), 0 14px 22px -12px rgba(43, 126, 192, .55); }
.app-tile[hidden] { display: none; }

/* Feature rows */
.feature-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.5rem; display: grid; gap: .6rem; align-content: start; }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.feature .ico .svgi { width: 24px; height: 24px; }
.feature .ico.ico-img { width: 56px; height: 56px; background: none; }
.ico-img .appimg { width: 100%; height: 100%; display: block; }
.feature p { color: var(--muted); font-size: .97rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.ticks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: .6rem; align-items: start; }
.ticks li .svgi { color: var(--brand); margin-top: .15rem; }
.ticks b { display: block; }
.ticks span { color: var(--muted); font-size: .95rem; }

/* Kenya panel */
.ke-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.ke-panel table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.ke-panel th, .ke-panel td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ke-panel th { font: 600 .74rem/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.ke-panel tr:last-child td { border-bottom: 0; }
.ke-panel td:first-child { font-weight: 600; white-space: nowrap; }
.paybill { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; background: var(--brand-tint); border-top: 1px solid var(--line); flex-wrap: wrap; }
.paybill .num { font: 700 1.5rem/1 var(--f-mono); letter-spacing: .04em; color: var(--brand-ink); }
.paybill small { color: var(--muted); }

/* Personas */
.persona-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.persona { padding: 1.25rem; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--surface); display: grid; gap: .5rem; align-content: start; }
.persona .role { font: 600 .74rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.persona p { color: var(--muted); font-size: .93rem; }
.persona .apps { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }
.persona .apps span { font-size: .76rem; padding: .2rem .5rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); }

/* Roadmap */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: .5rem; counter-reset: s; }
.steps li { counter-increment: s; padding: 1rem .75rem; border-top: 3px solid var(--line); font-size: .86rem; color: var(--muted); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 600 .78rem/1 var(--f-mono); color: var(--brand); margin-bottom: .45rem; }
.steps li b { display: block; color: var(--text); font-size: .98rem; margin-bottom: .2rem; }
.steps li:nth-child(-n+3) { border-top-color: var(--brand); }
.steps li:nth-child(n+4):nth-child(-n+7) { border-top-color: var(--brand-2); }

/* CTA band */
.cta-band { background: var(--brand); color: #fff; border-radius: var(--r-l); padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; position: relative; overflow: hidden; }
:root[data-theme="dark"] .cta-band { background: #174a75; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta-band { background: #174a75; } }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dcebf8; margin-top: .6rem; max-width: 56ch; }
.cta-band .btn-primary { background: #fff; color: #174a75; }
.cta-band .btn-primary:hover { background: #e3eff9; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -110px; width: 280px; height: 280px; border-radius: 50%; border: 36px solid rgba(255,255,255,.08); }

/* Footer */
.site-footer { background: var(--foot-bg); color: var(--foot-text); padding-block: 3.5rem 2rem; margin-top: 2rem; font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 2rem; }
.site-footer h4 { font: 600 .76rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: var(--foot-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-brand img { height: 40px; width: auto; }
.foot-brand p { color: var(--foot-muted); margin-top: 1rem; max-width: 34ch; }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #fff; transition: background .15s, transform .15s; }
.socials a:hover { background: var(--brand); transform: translateY(-2px); text-decoration: none; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--foot-muted); font-size: .86rem; }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.foot-pay { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.foot-pay span { border: 1px solid rgba(255,255,255,.18); padding: .2rem .55rem; border-radius: 6px; font-size: .76rem; font-weight: 600; letter-spacing: .03em; color: var(--foot-text); }
.lang-sel { margin-top: 1rem; display: inline-flex; align-items: center; gap: .45rem; color: var(--foot-muted); }
.lang-sel select { background: transparent; color: var(--foot-text); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: .35rem .5rem; font: inherit; }
.lang-sel select option { color: #11263a; }

@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr 1fr; }
  .persona-row { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .feature-row, .persona-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .app-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 1.1rem .4rem; }
  .app-tile .tile { width: 72px; height: 72px; border-radius: 21px; }
  .app-tile .tile .svgi { width: 36px; height: 36px; }
  .ke-panel td:first-child { white-space: normal; }
}

/* Pricing */
.billing-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); gap: 2px; }
.billing-toggle button { border: 0; background: transparent; padding: .55rem 1.1rem; border-radius: 999px; font: 600 .92rem/1 var(--f-body); color: var(--muted); cursor: pointer; min-height: 38px; }
.billing-toggle button[aria-pressed="true"] { background: var(--brand); color: #fff; }
:root[data-theme="dark"] .billing-toggle button[aria-pressed="true"] { color: #08192a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .billing-toggle button[aria-pressed="true"] { color: #08192a; } }
.billing-toggle .save { font-size: .74rem; color: var(--ok); margin-left: .3rem; }
.plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.4rem 1.25rem; display: flex; flex-direction: column; gap: .9rem; position: relative; }
.plan.pop { border: 2px solid var(--brand); }
.plan .tag { position: absolute; top: -12px; left: 1.25rem; background: var(--brand); color: #fff; font: 700 .7rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; padding: .35rem .6rem; border-radius: 999px; }
:root[data-theme="dark"] .plan .tag { color: #08192a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plan .tag { color: #08192a; } }
.plan h3 { font-size: 1.3rem; }
.plan .for { color: var(--muted); font-size: .9rem; min-height: 2.6em; }
.plan .price { font: 700 2rem/1 var(--f-display); letter-spacing: -.02em; }
.plan .price small { font: 500 .8rem/1.3 var(--f-body); color: var(--muted); display: block; margin-top: .35rem; letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .9rem; }
.plan li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: .45rem; }
.plan li .svgi { width: 16px; height: 16px; color: var(--brand); margin-top: .2rem; }
.plan .btn { margin-top: auto; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } .plan .for { min-height: 0; } }

.calc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 1.5rem; align-items: start; }
.calc-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.5rem; display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field .hint { color: var(--muted); font-size: .82rem; }
.input, select.input { width: 100%; min-height: 44px; padding: .6rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 400 1rem/1.3 var(--f-body); }
.input:focus { outline: 2px solid var(--brand-2); outline-offset: 0; border-color: var(--brand); }
.range-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: .8rem; align-items: center; }
input[type="range"] { accent-color: var(--brand); width: 100%; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .93rem; }
.check input { accent-color: var(--brand); width: 18px; height: 18px; margin-top: .15rem; }
.calc-out { background: var(--foot-bg); color: #e4eef8; border-radius: var(--r-l); padding: 1.5rem; display: grid; gap: .6rem; position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); }
.calc-out h3 { color: #fff; }
.calc-out .line { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; color: #b8cde2; font-variant-numeric: tabular-nums; }
.calc-out .total { border-top: 1px solid rgba(255,255,255,.15); padding-top: .8rem; margin-top: .3rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.calc-out .total b { font: 700 1.8rem/1 var(--f-display); color: #fff; font-variant-numeric: tabular-nums; }
.calc-out .rec { background: rgba(255,255,255,.08); border-radius: 10px; padding: .7rem .8rem; font-size: .88rem; color: #dbe9f6; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } .calc-out { position: static; } }

.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.cmp { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .92rem; }
.cmp th, .cmp td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp thead th { background: var(--surface-2); font-family: var(--f-display); font-size: 1rem; position: sticky; top: 0; }
.cmp td:first-child { font-weight: 500; color: var(--text); }
.cmp td { color: var(--muted); }
.cmp .yes { color: var(--ok); font-weight: 700; }
.pay-methods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.pay-methods .feature b { font-family: var(--f-display); font-size: 1.05rem; }
@media (max-width: 860px) { .pay-methods { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pay-methods { grid-template-columns: 1fr; } }
.faq { display: grid; gap: .6rem; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1rem 1.2rem; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 1.3rem/1 var(--f-mono); color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: .7rem; color: var(--muted); }

/* Policy pages */
.policy-hero { padding-block: 3rem 2rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.policy-hero p { color: var(--muted); margin-top: .8rem; max-width: 70ch; }
.policy-hero .meta { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.2rem; font-size: .88rem; color: var(--muted); }
.policy { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 3rem; padding-block: 3rem; align-items: start; }
.toc { position: sticky; top: calc(88px + env(safe-area-inset-top, 0px)); font-size: .9rem; }
.toc h4 { font: 600 .74rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: .15rem; border-left: 2px solid var(--line); }
.toc a { display: block; padding: .3rem .8rem; color: var(--muted); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover, .toc a.on { color: var(--brand); border-left-color: var(--brand); }
.prose { max-width: 74ch; min-width: 0; }
.prose h2 { font-size: 1.55rem; margin: 2.6rem 0 .9rem; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; margin: 1.6rem 0 .5rem; }
.prose p, .prose li { color: var(--text); }
.prose p + p { margin-top: .9rem; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: .4rem; margin: .8rem 0; }
.prose .note { background: var(--brand-tint); border-radius: var(--r-m); padding: 1rem 1.2rem; margin: 1.2rem 0; font-size: .95rem; }
.prose .tbl { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--line); border-radius: var(--r-m); }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.prose th, .prose td { padding: .65rem .85rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface-2); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.doc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.2rem 0 0; }
.doc-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-m); padding: 1.1rem 1.2rem; display: grid; gap: .35rem; text-decoration: none; color: var(--text); }
.doc-card:hover { border-color: var(--brand); }
.doc-card b { font-family: var(--f-display); font-size: 1.05rem; }
.doc-card span { color: var(--muted); font-size: .9rem; }
.sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
@media (max-width: 900px) { .policy { grid-template-columns: 1fr; gap: 1.5rem; } .toc { position: static; } .toc ol { display: flex; flex-wrap: wrap; border: 0; gap: .4rem; } .toc a { border: 1px solid var(--line); border-radius: 999px; padding: .35rem .75rem; } .doc-cards, .sec-grid { grid-template-columns: 1fr; } }

/* Signup modal */
.modal-back { position: fixed; inset: 0; background: rgba(8, 22, 36, .55); z-index: 100; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.modal { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 1.6rem; display: grid; gap: 1.1rem; }
.modal-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.stepper { display: flex; gap: .4rem; }
.stepper i { height: 4px; flex: 1; border-radius: 4px; background: var(--line); }
.stepper i.on { background: var(--brand); }
.app-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.app-pick label { display: flex; gap: .5rem; align-items: center; padding: .55rem .6rem; border: 1px solid var(--line); border-radius: 10px; font-size: .88rem; cursor: pointer; }
.app-pick input { accent-color: var(--brand); }
.app-pick label:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form-grid .full { grid-column: 1 / -1; }
.err { color: var(--bad); font-size: .84rem; }
@media (max-width: 520px) { .app-pick { grid-template-columns: 1fr 1fr; } .form-grid { grid-template-columns: 1fr; } }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--text); color: var(--bg); padding: .75rem 1.1rem; border-radius: 12px; font-size: .92rem; z-index: 120; box-shadow: var(--shadow); max-width: calc(100% - 32px); }

.split > * { min-width: 0; }
.contact-grid { grid-template-columns: 1fr 1fr; }
.contact-grid .mono { overflow-wrap: anywhere; }
@media (max-width: 600px) { .contact-grid { grid-template-columns: 1fr; } }
.billing-toggle { justify-self: start; }
.billing-toggle button[aria-pressed="true"] .save { color: inherit; opacity: .85; }
