/* ---------- Theme tokens ---------- */
:root {
  --bg: #f7f4ef;
  --bg-2: #f0ece5;
  --surface: #ffffff;
  --surface-2: #fbf9f6;
  --border: rgba(31, 36, 64, .10);
  --border-2: rgba(31, 36, 64, .17);
  --text: #1c1e2b;
  --muted: #555a69;
  --dim: #7b7f8c;
  --primary: #e8541f;
  --primary-ink: #c2410c;
  --primary-soft: rgba(232, 84, 31, .10);
  --primary-line: rgba(232, 84, 31, .32);
  --ok: #15803d;
  --ok-soft: rgba(21, 128, 61, .12);
  --err: #c62828;
  --grad: linear-gradient(135deg, #f0672a 0%, #d6361d 100%);
  --glow-a: rgba(242, 106, 42, .16);
  --glow-b: rgba(31, 36, 64, .07);
  --grid-line: rgba(31, 36, 64, .05);
  --nav-bg: rgba(247, 244, 239, .85);
  --menu-bg: #f7f4ef;
  --input-bg: #ffffff;
  --shadow: 0 30px 70px -30px rgba(70, 45, 20, .35);
  --shadow-sm: 0 10px 28px -14px rgba(70, 45, 20, .3);
  --tab-on-bg: #1f2440;
  --tab-on-ink: #ffffff;
  --win-bar: #ece8e1;
  --win-side: #f5f2ec;
  --win-main: #ffffff;
  --nav-on: #ffffff;
  --show-sun: none;
  --show-moon: block;
  color-scheme: light;

  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 70px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d16;
    --bg-2: #0f1220;
    --surface: #151a28;
    --surface-2: #1a2032;
    --border: rgba(255, 255, 255, .08);
    --border-2: rgba(255, 255, 255, .15);
    --text: #eef0f6;
    --muted: #a4a9ba;
    --dim: #737a8f;
    --primary: #f47234;
    --primary-ink: #fb8b52;
    --primary-soft: rgba(244, 114, 52, .14);
    --primary-line: rgba(244, 114, 52, .38);
    --ok: #34d399;
    --ok-soft: rgba(52, 211, 153, .14);
    --err: #f87171;
    --glow-a: rgba(244, 114, 52, .20);
    --glow-b: rgba(99, 102, 241, .13);
    --grid-line: rgba(255, 255, 255, .035);
    --nav-bg: rgba(11, 13, 22, .8);
    --menu-bg: #0b0d16;
    --input-bg: #0f1220;
    --shadow: 0 30px 80px -20px rgba(0, 0, 0, .65);
    --shadow-sm: 0 10px 28px -14px rgba(0, 0, 0, .6);
    --tab-on-bg: #eef0f6;
    --tab-on-ink: #0b0d16;
    --win-bar: #161b29;
    --win-side: #10141f;
    --win-main: #0c0f19;
    --nav-on: #1e2436;
    --show-sun: block;
    --show-moon: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0d16;
  --bg-2: #0f1220;
  --surface: #151a28;
  --surface-2: #1a2032;
  --border: rgba(255, 255, 255, .08);
  --border-2: rgba(255, 255, 255, .15);
  --text: #eef0f6;
  --muted: #a4a9ba;
  --dim: #737a8f;
  --primary: #f47234;
  --primary-ink: #fb8b52;
  --primary-soft: rgba(244, 114, 52, .14);
  --primary-line: rgba(244, 114, 52, .38);
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, .14);
  --err: #f87171;
  --glow-a: rgba(244, 114, 52, .20);
  --glow-b: rgba(99, 102, 241, .13);
  --grid-line: rgba(255, 255, 255, .035);
  --nav-bg: rgba(11, 13, 22, .8);
  --menu-bg: #0b0d16;
  --input-bg: #0f1220;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, .65);
  --shadow-sm: 0 10px 28px -14px rgba(0, 0, 0, .6);
  --tab-on-bg: #eef0f6;
  --tab-on-ink: #0b0d16;
  --win-bar: #161b29;
  --win-side: #10141f;
  --win-main: #0c0f19;
  --nav-on: #1e2436;
  --show-sun: block;
  --show-moon: none;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .25s ease, color .25s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }

.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px -10px rgba(214, 54, 29, .65); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -10px rgba(214, 54, 29, .8); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn__label { opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--border-2); border-radius: 11px; background: var(--surface);
  color: var(--text); cursor: pointer; transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--primary-line); }
.theme-toggle .i { width: 19px; height: 19px; }
.theme-toggle .i-sun { display: var(--show-sun); }
.theme-toggle .i-moon { display: var(--show-moon); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--primary-soft); border: 1px solid var(--primary-line);
  color: var(--primary-ink); font-size: 13px; font-weight: 600;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 rgba(232, 84, 31, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(232, 84, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 84, 31, 0); } }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-ink); margin-bottom: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: var(--nav-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background-color .25s;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { border-radius: 9px; }
.brand__name { display: grid; font-weight: 800; font-size: 19px; line-height: 1.05; letter-spacing: -.02em; }
.brand__name small { font-size: 11.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.nav__links { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: 15px; color: var(--muted); }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__cta { color: #fff; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__toggle { display: none; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav__toggle span:nth-child(1) { top: 13px; }
.nav__toggle span:nth-child(2) { top: 20px; }
.nav__toggle span:nth-child(3) { top: 27px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 760px; pointer-events: none;
  background:
    radial-gradient(600px 380px at 75% 30%, var(--glow-a), transparent 70%),
    radial-gradient(500px 300px at 12% 10%, var(--glow-b), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 66px); font-weight: 800; margin: 20px 0; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 560px; }
.waitlist {
  display: flex; gap: 8px; max-width: 520px; margin-top: 28px;
  padding: 6px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.waitlist input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 0 14px; font-size: 16px; outline: none; }
.waitlist input::placeholder { color: var(--dim); }
.waitlist:focus-within { border-color: var(--primary-line); box-shadow: 0 0 0 4px var(--primary-soft); }
.micro { font-size: 13px; color: var(--dim); margin-top: 10px; }
.form-msg { margin: 10px 0 0; font-size: 14px; font-weight: 500; }
.form-msg:empty { display: none; }
.form-msg.is-ok { color: var(--ok); }
.form-msg.is-err { color: var(--err); }
.hero__meta { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14px; }
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta .i { width: 18px; height: 18px; color: var(--primary); }

/* ---------- App mockup ---------- */
.hero__visual { position: relative; }
.window {
  background: var(--win-main); border: 1px solid var(--border-2); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow);
}
.window__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--win-bar); border-bottom: 1px solid var(--border); }
.window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window__bar i:nth-child(2) { background: #febc2e; }
.window__bar i:nth-child(3) { background: #28c840; }
.window__bar span { margin-left: 10px; font-size: 12px; color: var(--dim); }
.window__body { display: grid; grid-template-columns: 172px 1fr; min-height: 420px; }

.app-side { background: var(--win-side); border-right: 1px solid var(--border); padding: 14px 10px; font-size: 13px; }
.app-brand { display: flex; align-items: center; gap: 9px; padding: 2px 6px 6px; }
.app-brand img { border-radius: 7px; }
.app-brand b { display: block; font-size: 14px; line-height: 1.1; }
.app-brand small { display: block; font-size: 10.5px; color: var(--dim); }
.app-label { margin: 14px 8px 6px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.app-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.app-nav li { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 8px; color: var(--muted); border: 1px solid transparent; }
.app-nav .i { width: 15px; height: 15px; }
.app-nav li.is-active { background: var(--nav-on); color: var(--text); font-weight: 600; border-color: var(--border); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.app-nav em { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink); }

.app-main { padding: 14px 16px; display: flex; flex-direction: column; gap: 11px; font-size: 13px; min-width: 0; }
.app-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.app-head b { font-size: 14px; }
.live { margin-left: auto; color: var(--ok); font-size: 11px; font-weight: 600; }
.bubble { align-self: flex-end; max-width: 92%; padding: 10px 12px; border-radius: 12px 12px 4px 12px; line-height: 1.45; background: var(--primary-soft); border: 1px solid var(--primary-line); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.steps li { display: flex; align-items: center; gap: 8px; transition: color .3s; }
.steps li::before {
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--border-2);
  transition: all .3s;
}
.steps li.is-active { color: var(--text); }
.steps li.is-active::before { border-color: var(--primary); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps li.is-done { color: var(--muted); }
.steps li.is-done::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/9px no-repeat; }
.approve { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border-2); display: grid; gap: 8px; opacity: 0; transform: translateY(6px); transition: all .4s; }
.approve.is-shown { opacity: 1; transform: none; }
.approve div { display: flex; gap: 6px; }
.mchip { padding: 4px 10px; border-radius: 8px; border: 1px solid var(--border-2); font-size: 11.5px; font-weight: 600; }
.mchip--ok { background: var(--grad); border-color: transparent; color: #fff; }
.composer { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 12px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface); color: var(--dim); font-size: 12.5px; }
.composer span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.mic .i { width: 15px; height: 15px; }

.notif {
  position: absolute; top: -18px; right: -14px; z-index: 2;
  display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; box-shadow: var(--shadow-sm);
  font-size: 13px; opacity: 0; transform: translateY(-8px) scale(.97); transition: all .45s ease;
}
.notif.is-shown { opacity: 1; transform: none; }
.notif b { display: block; line-height: 1.2; }
.notif small { color: var(--muted); font-size: 12px; }
.notif__icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); }
.notif__icon .i { width: 17px; height: 17px; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.section__head p { color: var(--muted); font-size: 18px; margin: 0; }
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--primary-line); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.card h3 { font-size: 19px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 18px; background: var(--primary-soft); color: var(--primary-ink); border: 1px solid var(--primary-line); }
.icon .i { width: 22px; height: 22px; }

/* Connectors */
.conn { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.conn li {
  display: grid; justify-items: center; align-content: start; gap: 4px; text-align: center;
  padding: 22px 12px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
  transition: border-color .2s, transform .2s;
}
.conn li:hover { border-color: var(--primary-line); transform: translateY(-2px); }
.conn__ic { width: 46px; height: 46px; margin-bottom: 8px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--c); box-shadow: 0 6px 16px -8px var(--c); }
.conn__ic .i { width: 22px; height: 22px; }
.conn b { font-size: 14.5px; line-height: 1.25; }
.conn small { font-size: 12.5px; color: var(--dim); }
.conn--more { border-style: dashed !important; border-color: var(--border-2) !important; background: transparent !important; }
.conn--more .conn__ic { background: var(--primary-soft); color: var(--primary-ink); box-shadow: none; }

/* How */
.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how li { padding: 32px 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.how__num { display: inline-block; font-family: var(--mono); font-size: 14px; font-weight: 500; margin-bottom: 18px; padding: 4px 10px; border-radius: 8px; background: var(--primary-soft); color: var(--primary-ink); }
.how h3 { font-size: 20px; }
.how p { color: var(--muted); margin: 0; }

/* Tabs */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); color: var(--muted); font-weight: 600; cursor: pointer; transition: all .2s; }
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--tab-on-bg); color: var(--tab-on-ink); border-color: var(--tab-on-bg); }
.panels { max-width: 860px; margin: 0 auto; }
.panel { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322a35a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat;
}
.checks--sm { grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }

/* Security */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.split .muted { font-size: 18px; max-width: 460px; }
.sec { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sec li { padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); display: grid; gap: 6px; align-content: start; }
.sec b { font-size: 16px; }
.sec span { color: var(--muted); font-size: 14.5px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: border-color .2s; }
.faq details[open] { border-color: var(--primary-line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------- CTA / Form ---------- */
.cta__card {
  position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; padding: 56px;
  border-radius: 24px; border: 1px solid var(--primary-line); overflow: hidden;
  background: radial-gradient(700px 320px at 0% 0%, var(--glow-a), transparent 70%), radial-gradient(500px 300px at 100% 100%, var(--glow-b), transparent 70%), var(--surface);
}
.cta__copy h2 { margin-top: 18px; }
.cta__copy p { color: var(--muted); font-size: 17px; }
.form { display: grid; gap: 16px; padding: 28px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border-2); box-shadow: var(--shadow-sm); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; padding: 0; }
.field legend { margin-bottom: 8px; }
.opt { color: var(--dim); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font-size: 16px;
  background: var(--input-bg); border: 1px solid var(--border-2); border-radius: var(--radius-sm); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888c99' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.field select option { background: var(--input-bg); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.field.is-invalid input { border-color: var(--err); }
.err { color: var(--err); font-size: 13px; }
.err:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-check span {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--border-2); background: var(--input-bg); font-size: 14px; color: var(--muted);
  transition: all .15s; user-select: none;
}
.chip-check:hover span { border-color: var(--primary-line); color: var(--text); }
.chip-check input:checked + span { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-ink); font-weight: 600; }
.chip-check input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); cursor: pointer; }

.form.is-done { text-align: center; place-items: center; padding: 48px 28px; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); border: 1px solid var(--ok); }
.success-icon svg { width: 30px; height: 30px; stroke: var(--ok); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.form.is-done h3 { font-size: 24px; margin: 8px 0 0; }
.form.is-done p { color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.footer { padding: 36px 0; border-top: 1px solid var(--border); color: var(--dim); font-size: 14px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .brand { color: var(--text); }
.footer .brand__name { font-size: 17px; }
.footer p { margin: 0; }
.footer a:hover { color: var(--text); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translateX(-50%);
  max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border-2); box-shadow: var(--shadow); font-size: 15px;
  animation: fade .3s ease;
}
.toast.is-ok { border-color: var(--ok); }
.toast.is-err { border-color: var(--err); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .conn { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
  .hero { padding: 56px 0 80px; }
  .hero__grid { grid-template-columns: 1fr; gap: 64px; }
  .hero__copy { text-align: center; }
  .lead, .waitlist { margin-left: auto; margin-right: auto; }
  .hero__meta { justify-content: center; }
  .hero__visual { max-width: 720px; margin: 0 auto; width: 100%; }
  .notif { right: 12px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .features .card:last-child { grid-column: 1 / -1; }
  .how { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .split .muted { margin: 0 auto; }
  .sec { text-align: left; }
  .cta__card { grid-template-columns: 1fr; padding: 44px; gap: 32px; }
  .section { padding: 88px 0; }
}

/* Collapse nav into hamburger */
@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 24px; background: var(--menu-bg); border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -16px rgba(0, 0, 0, .35);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .22s ease;
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 17px; color: var(--text); }
  .nav__cta { margin-top: 16px; min-height: 48px; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 760px) {
  .conn { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .container { padding: 0 16px; }
  .hero { padding: 40px 0 64px; }
  .hero h1 { margin: 16px 0; }
  .waitlist { flex-direction: column; padding: 8px; }
  .waitlist input { min-height: 48px; }
  .waitlist .btn { width: 100%; }
  .hero__meta { gap: 10px 16px; font-size: 13px; }
  /* Mockup: icon-only sidebar */
  .window__body { grid-template-columns: 50px 1fr; min-height: 0; }
  .app-side { padding: 12px 6px; }
  .app-brand { justify-content: center; padding: 0 0 4px; }
  .app-brand div, .app-nav span, .app-nav em { display: none; }
  .app-label { height: 1px; margin: 10px 6px; overflow: hidden; color: transparent; background: var(--border); }
  .app-nav li { justify-content: center; padding: 8px 0; }
  .app-main { padding: 12px; }
  .steps { font-size: 11px; }
  .notif { top: -22px; right: 8px; padding: 8px 12px 8px 8px; font-size: 12px; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 36px; }
  .section__head p { font-size: 16px; }
  .grid--3 { grid-template-columns: 1fr; }
  .features .card:last-child { grid-column: auto; }
  .card { padding: 22px; }
  .tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 20px; padding: 0 16px 4px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .panel { padding: 22px; }
  .checks { grid-template-columns: 1fr; }
  .sec { grid-template-columns: 1fr; }
  .faq summary { font-size: 16px; padding: 18px 48px 18px 18px; }
  .faq summary::after { right: 18px; }
  .faq details p { padding: 0 18px 18px; }
  .cta__card { padding: 28px 18px; border-radius: 20px; }
  .form { padding: 20px 16px; }
  .row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .conn { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .conn li { padding: 18px 10px 14px; }
}

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