:root {
  --blue: #2563eb;
  --cyan: #12c9d6;
  --grad: linear-gradient(135deg, #2563eb 0%, #12c9d6 100%);
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-2: #f5f8fd;
  --bg-3: #eaf1fb;
  --ok: #059669;
  --err: #b91c1c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px rgba(37, 99, 235, .10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 40px); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); }
.muted { color: var(--ink-3); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* header */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 20px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; font: 600 15px var(--font); border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: #cbd5e1; }
.btn.primary { background: var(--grad); color: #fff; border: 0; box-shadow: 0 6px 18px rgba(37, 99, 235, .28); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; background: radial-gradient(900px 420px at 85% -10%, rgba(18, 201, 214, .18), transparent 60%), radial-gradient(900px 500px at 0% 0%, rgba(37, 99, 235, .14), transparent 60%), var(--bg-2); }
.hero .wrap { text-align: center; }
.badge { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.badge b { color: var(--blue); }
.hero h1 { font-size: clamp(36px, 6vw, 64px); margin: 20px auto 16px; max-width: 900px; }
.hero .lead { max-width: 720px; margin: 0 auto 28px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.shot { margin: 48px auto 0; max-width: 1080px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(15, 23, 42, .18); overflow: hidden; }
.shot-bar { display: flex; gap: 7px; padding: 11px 14px; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.shot-bar i { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
.shot-bar i:nth-child(1) { background: #f87171; } .shot-bar i:nth-child(2) { background: #fbbf24; } .shot-bar i:nth-child(3) { background: #34d399; }

/* databases strip */
.dbs { padding: 36px 0; border-bottom: 1px solid var(--line); }
.dbs p { text-align: center; margin: 0 0 16px; color: var(--ink-3); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.db-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.db-list span { padding: 8px 16px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-weight: 600; color: var(--ink-2); font-size: 15px; }

section.block { padding: 88px 0; }
section.alt { background: var(--bg-2); }
.head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.head p { margin: 14px 0 0; }
.eyebrow { display: block; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }

/* features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 18px; margin: 14px 0 8px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-3); color: var(--blue); }
.ic svg { width: 22px; height: 22px; }

/* screenshot tabs */
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.tabs button { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 600 14px var(--font); color: var(--ink-2); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab-caption { text-align: center; margin: 18px auto 0; max-width: 640px; color: var(--ink-2); }

/* remote */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--grad); -webkit-mask: radial-gradient(circle, #000 0 100%); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 8px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg); }
.diagram { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.diagram svg { width: 100%; height: auto; }

/* compare + pricing */
.compare { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.compare th, .compare td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--bg-2); font-size: 14px; }
.compare tr.group td { background: var(--bg-3); font-weight: 700; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.yes { color: var(--ok); font-weight: 800; }
.no { color: #cbd5e1; }
.table-scroll { overflow-x: auto; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.price { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.price.featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow); position: relative; }
.price .tag { position: absolute; top: -13px; left: 30px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.price h3 { font-size: 20px; }
.amount { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.amount small { font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.price ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--ink-2); font-size: 15px; flex: 1; }
.price li::before { content: "✓  "; color: var(--ok); font-weight: 800; }
.fine { font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 20px; }

/* faq */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 650; padding: 14px 0; list-style: none; }
.faq summary::after { content: "+"; float: right; color: var(--ink-3); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 16px; color: var(--ink-2); }

.final { text-align: center; padding: 88px 0; background: var(--grad); color: #fff; }
.final h2 { color: #fff; }
.final p { color: rgba(255, 255, 255, .9); }
.final .btn { background: #fff; color: var(--blue); border: 0; }

footer { padding: 40px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--ink-3); }

/* auth / account pages */
.auth { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 48px 16px; background: radial-gradient(800px 400px at 100% 0%, rgba(18, 201, 214, .16), transparent 60%), radial-gradient(800px 400px at 0% 0%, rgba(37, 99, 235, .12), transparent 60%), var(--bg-2); }
.panel { width: min(440px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow); }
.panel.wide { width: min(820px, 100%); }
.panel h1 { font-size: 26px; margin-bottom: 6px; }
.field { display: grid; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input { height: 46px; padding: 0 14px; border: 1px solid #cbd5e1; border-radius: 10px; font: 16px var(--font); color: var(--ink); background: #fff; }
.field input:focus { outline: 3px solid rgba(37, 99, 235, .25); border-color: var(--blue); }
.form-err { color: var(--err); font-size: 14px; min-height: 22px; margin: 12px 0 4px; }
.form-foot { margin-top: 18px; font-size: 14px; color: var(--ink-3); text-align: center; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.check input { margin-top: 4px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 20px 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 600; }
.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--bg-3); color: var(--blue); }
.pill.trial { background: #fef3c7; color: #92400e; }
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0 8px; }
.dl .card { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.dl .card h3 { margin: 0; }
.devices { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.devices td, .devices th { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.note { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 14px; color: var(--ink-2); }
.doc { max-width: 760px; margin: 0 auto; padding: 64px 0; }
.doc h1 { font-size: 36px; margin-bottom: 8px; }
.doc h2 { font-size: 22px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }

@media (max-width: 900px) {
  .grid, .prices { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .nav-links, .nav-right .hide-sm { display: none; }
  .menu-btn { display: block; }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; padding: 16px; margin: 0; border-bottom: 1px solid var(--line); }
  .nav-right { margin-left: auto; }
  .menu-btn { margin-left: 4px; }
  .grid, .prices, .dl { grid-template-columns: 1fr; }
  section.block { padding: 64px 0; }
  .hero { padding-top: 48px; }
  .panel { padding: 24px; }
}

/* Phase 1 redesign additions */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.dbs h2 { text-align: center; margin: 0 0 16px; color: var(--ink-3); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.dbs .muted { text-align: center; margin: 14px 0 0; font-size: 14px; text-transform: none; letter-spacing: 0; }
.card .plan { display: inline-block; font-size: 12px; font-weight: 700; color: #1d4ed8; background: var(--bg-3); border-radius: 999px; padding: 2px 10px; margin: 0 0 8px; }
.card code { font-size: 13px; background: var(--bg-2); padding: 1px 5px; border-radius: 5px; }
.price .for { font-size: 13px; font-weight: 700; color: #1d4ed8; text-transform: uppercase; letter-spacing: .05em; }
.price h2 { font-size: 22px; }
.price .yearly { margin: -8px 0 0; font-size: 14px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 8px; }
.choices > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.choices h3 { font-size: 16px; margin-bottom: 4px; }
.choices p { margin: 0; font-size: 15px; color: var(--ink-2); }
.compare tbody th { font-weight: 400; text-align: left; }
.compare tr.group th { background: var(--bg-3); font-weight: 700; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; text-align: left; }
.final .cta { justify-content: center; }
.final .btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.7); }
.wrap.narrow { max-width: 760px; }
.block h1 { font-size: clamp(34px, 5vw, 52px); }
@media (max-width: 720px) { .choices { grid-template-columns: 1fr; } }

[hidden] { display: none !important; }
img { height: auto; }
.price ul { align-content: start; }
section[id], [id^="plan-"] { scroll-margin-top: 80px; }

/* account: billing */
.billing fieldset.seg { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.billing fieldset.seg legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; padding: 0; }
.billing fieldset.seg label { display: flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.billing fieldset.seg label:has(input:checked) { border-color: var(--blue); background: var(--bg-3); }
.billing .total { font-size: 18px; font-weight: 700; margin: 4px 0 10px; }
.billing .row-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.billing .inv { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-top: 16px; }
.billing .inv .field { flex: 1; min-width: 220px; margin: 0; }
.billing .inv .form-err { flex-basis: 100%; margin: 0; }
.billing .copy { display: flex; gap: 8px; }
.billing .copy input { flex: 1; min-width: 0; font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.price .buy { text-align: center; font-size: 14px; margin-top: -4px; }
ol.steps { padding-left: 22px; display: grid; gap: 8px; color: var(--ink-2); margin: 16px 0 24px; }
.doc .compare { font-size: 14px; margin: 8px 0 16px; }
.doc .compare th, .doc .compare td { text-align: left; vertical-align: top; padding: 10px 12px; }
.doc .table-scroll { overflow-x: auto; }
.doc code { font-size: 14px; background: var(--bg-2); padding: 1px 5px; border-radius: 5px; }
.launch { text-align: center; margin: 24px auto 0; max-width: 640px; background: var(--bg-3); border: 1px solid #bfd3f3; border-radius: 12px; padding: 12px 16px; color: var(--ink); }
.btn.google { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f; border: 1px solid #747775; font-family: Roboto, var(--font); font-weight: 500; }
.btn.google:hover { background: #f8fafd; text-decoration: none; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; margin: 14px 0 4px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fine-print { font-size: 12.5px; margin: 10px 0 0; }
