:root {
  --bg: #f8f6f1;
  --surface: #ffffff;
  --ink: #17191b;
  --muted: #5b6066;
  --line: #e2ded4;
  --accent: #b46500;
  --accent-strong: #8f4f00;
  --accent-soft: #fff1d6;
  --night: #101316;
  --night-ink: #f1eee8;
  --night-muted: #a9afb5;
  --ok: #2d7a4c;
  --bad: #b3261e;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121416;
    --surface: #1a1d20;
    --ink: #ece9e3;
    --muted: #a3a8ae;
    --line: #2b2f34;
    --accent: #f0a83f;
    --accent-strong: #ffc066;
    --accent-soft: #2a2214;
    --night: #0b0d0f;
    --ok: #6fcf97;
    --bad: #ff8a80;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #121416;
  --surface: #1a1d20;
  --ink: #ece9e3;
  --muted: #a3a8ae;
  --line: #2b2f34;
  --accent: #f0a83f;
  --accent-strong: #ffc066;
  --accent-soft: #2a2214;
  --night: #0b0d0f;
  --ok: #6fcf97;
  --bad: #ff8a80;
  --shadow: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent-strong); }
code, .mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 0.9em; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 720px) { .wrap { padding: 0 2rem; } }

/* Header */
.top { background: var(--night); color: var(--night-ink); }
.top .wrap { display: flex; align-items: center; gap: 1rem; min-height: 3.75rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.55rem; color: inherit; text-decoration: none; font-weight: 700; letter-spacing: 0.01em; }
.brand svg { width: 28px; height: 28px; }
.brand small { font-weight: 500; color: var(--night-muted); font-size: 0.75rem; border: 1px solid #333a40; border-radius: 999px; padding: 0.05rem 0.45rem; }
.nav { display: flex; gap: 0.25rem 1.1rem; flex-wrap: wrap; margin-left: auto; font-size: 0.93rem; }
.nav a { color: var(--night-muted); text-decoration: none; padding: 0.3rem 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--night-ink); }
.nav a.cta { color: #17191b; background: #f0a83f; border-radius: 999px; padding: 0.3rem 0.85rem; font-weight: 600; }

/* Hero */
.hero { background: var(--night); color: var(--night-ink); padding: 3.5rem 0 4rem; overflow: hidden; position: relative; }
.hero::after {
  content: ""; position: absolute; right: -10rem; top: -8rem; width: 34rem; height: 34rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 168, 63, 0.28), rgba(240, 168, 63, 0) 65%);
  pointer-events: none;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.08; margin: 0 0 1.1rem; letter-spacing: -0.02em; max-width: 16ch; }
.hero p.lead { font-size: 1.2rem; color: var(--night-muted); max-width: 40rem; margin: 0 0 1.8rem; }
.hero .eyebrow { color: #f0a83f; font: 600 0.8rem/1 ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; position: relative; z-index: 1; }

.btn {
  display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid transparent; border-radius: 999px;
  padding: 0.65rem 1.2rem; font-family: inherit; font-weight: 600; font-size: 0.98rem; line-height: 1.2; cursor: pointer; text-decoration: none;
  background: var(--accent); color: #fff;
}
.btn:hover { filter: brightness(1.06); }
.btn.secondary { background: transparent; color: inherit; border-color: currentColor; }
.btn.on-night { background: #f0a83f; color: #17191b; }
.btn.small { padding: 0.35rem 0.8rem; font-size: 0.88rem; }
.btn:disabled { opacity: 0.55; cursor: default; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.secondary) { color: #17191b; } }
:root[data-theme="dark"] .btn:not(.secondary) { color: #17191b; }

/* Sections */
section.block { padding: 3.5rem 0; }
section.block + section.block { border-top: 1px solid var(--line); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; margin: 0 0 0.8rem; letter-spacing: -0.01em; }
h3 { font-size: 1.12rem; margin: 0 0 0.35rem; }
.intro { color: var(--muted); max-width: 44rem; margin: 0 0 2rem; font-size: 1.06rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.25rem; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.card .icon { width: 2.1rem; height: 2.1rem; border-radius: 8px; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; margin-bottom: 0.8rem; }
.card .icon svg { width: 1.15rem; height: 1.15rem; }

/* Compare */
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 0.96rem; }
.compare th, .compare td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--accent-soft); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.compare td:first-child { color: var(--muted); }
.table-scroll { overflow-x: auto; }

/* Sample */
.sample { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .sample { grid-template-columns: minmax(0, 1fr) 20rem; } }
.sample iframe { width: 100%; height: 34rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.prov { font-size: 0.9rem; }
.prov dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 0.8rem; }
.prov dt { color: var(--muted); }
.prov dd { margin: 0; overflow-wrap: anywhere; }
.prov .src + .src { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--night); color: #f0a83f; font-weight: 700; margin-bottom: 0.7rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Areas */
.levels { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.95rem; margin-bottom: 1.5rem; }
.levels span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.75rem; }
.levels i { color: var(--muted); font-style: normal; }
.area h3 { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.area .count { font: 600 0.8rem/1 ui-monospace, "SF Mono", Consolas, monospace; color: var(--accent-strong); }
.area .nums { display: flex; gap: 1rem; flex-wrap: wrap; margin: 0.6rem 0; font-size: 0.85rem; color: var(--muted); }
.area .nums b { color: var(--ink); font-size: 1.05rem; display: block; }
.area details { font-size: 0.9rem; }
.area summary { cursor: pointer; color: var(--accent-strong); }
.area ul { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--muted); columns: 2 12rem; }
.tree { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; font-size: 0.93rem; }
.tree ul { list-style: none; padding-left: 1.1rem; margin: 0.2rem 0; }
.tree > ul { padding-left: 0; }
.tree .code { font-family: ui-monospace, "SF Mono", Consolas, monospace; color: var(--muted); font-size: 0.82rem; margin-right: 0.35rem; }
.tree .have { font-weight: 600; }
.tree .have::after { content: "in this PoC"; margin-left: 0.5rem; font-size: 0.72rem; background: var(--accent-soft); color: var(--accent-strong); padding: 0.1rem 0.45rem; border-radius: 999px; font-weight: 600; }
.tree .soon { color: var(--muted); }

/* Forms */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); max-width: 40rem; }
label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
input[type="email"], input[type="text"] {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: 8px; font: inherit;
  background: var(--bg); color: var(--ink);
}
input:focus-visible, .btn:focus-visible, a:focus-visible { outline: 3px solid #f0a83f; outline-offset: 2px; }
.row { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: stretch; }
.row input { flex: 1 1 14rem; }
.note { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 0.75rem 1rem; border-radius: 6px; font-size: 0.93rem; margin: 0 0 1.5rem; max-width: 40rem; }
.result { margin-top: 1.25rem; }
.keybox { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; font: 600 1.35rem/1.2 ui-monospace, "SF Mono", Consolas, monospace; background: var(--bg); border: 1px dashed var(--accent); border-radius: 8px; padding: 0.8rem 1rem; letter-spacing: 0.04em; overflow-wrap: anywhere; }
.error { color: var(--bad); font-weight: 600; }
.ok { color: var(--ok); font-weight: 600; }
.devices { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin-top: 1rem; }
.devices th, .devices td { text-align: left; padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--line); }
.devices th { color: var(--muted); font-weight: 600; font-size: 0.82rem; }
.pill { font-size: 0.75rem; padding: 0.12rem 0.5rem; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.pill.active { border-color: var(--ok); color: var(--ok); }
pre.cmd { background: var(--night); color: var(--night-ink); padding: 0.9rem 1rem; border-radius: 8px; overflow-x: auto; font-size: 0.86rem; line-height: 1.5; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.88rem; }
footer.site .wrap { display: flex; gap: 1rem 2rem; flex-wrap: wrap; justify-content: space-between; }
.page-head { padding: 2.75rem 0 0.5rem; }
.page-head p { color: var(--muted); max-width: 44rem; font-size: 1.08rem; margin: 0; }

/* Product card */
.product { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.75rem; box-shadow: var(--shadow); }
@media (min-width: 820px) { .product { grid-template-columns: minmax(0, 1fr) 17rem; align-items: center; } }
.product .eyebrow { color: var(--accent-strong); font: 600 0.78rem/1 ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.6rem; }
.checks { list-style: none; padding: 0; margin: 0.8rem 0 0; display: grid; gap: 0.45rem; }
.checks li { padding-left: 1.6rem; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.buy { display: grid; gap: 0.75rem; justify-items: start; }
@media (min-width: 820px) { .buy { border-left: 1px solid var(--line); padding-left: 2rem; } }
.buy p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.price { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.price small { font-size: 0.9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.note.small { font-size: 0.85rem; margin: 1rem 0 0; }

/* Sign-in forms */
.panel.auth { max-width: 30rem; }
.panel.auth label { margin-top: 0.9rem; }
.panel.auth form > label:first-child { margin-top: 0; }
.two { display: grid; gap: 0 0.8rem; grid-template-columns: 1fr 1fr; }
.two label { margin-top: 0; }
input[type="password"] {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: 8px; font: inherit;
  background: var(--bg); color: var(--ink);
}
.panel.auth input:not([type]) {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: 8px; font: inherit;
  background: var(--bg); color: var(--ink);
}
.hint { color: var(--muted); font-size: 0.85rem; margin: 0.35rem 0 0; }
.btn.wide { width: 100%; justify-content: center; margin-top: 1.2rem; }
.btn.google { width: 100%; justify-content: center; background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.google svg { width: 18px; height: 18px; }
.or { display: flex; align-items: center; gap: 0.8rem; color: var(--muted); font-size: 0.88rem; margin: 1.2rem 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.switch { margin: 1.2rem 0 0; color: var(--muted); font-size: 0.93rem; }

/* Key and downloads */
.wide-panel { max-width: 46rem; }
.keybox.big { font-size: 1.6rem; }
h2.spaced { margin-top: 2.5rem; }
.os-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.card.os { display: grid; gap: 0.7rem; align-content: start; }
.card.os.suggested { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.card.os .meta { color: var(--muted); font-size: 0.88rem; margin: 0; }
.card.os .btn { justify-self: start; }
.card.os details { font-size: 0.82rem; color: var(--muted); }
code.hash { display: block; word-break: break-all; font-size: 0.78rem; margin-top: 0.3rem; }
ol.install { margin: 0.3rem 0 0; padding-left: 1.2rem; font-size: 0.93rem; display: grid; gap: 0.35rem; }
.key-reminder { margin-top: 1.5rem; max-width: 46rem; }

/* Account */
.account-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.account-head p { margin: 0; }
.muted { color: var(--muted); }
.licence { margin-bottom: 1.25rem; }
.licence header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 0.5rem; }
.licence .keybox { font-size: 1.1rem; padding: 0.5rem 0.8rem; }
.licence header p { margin: 0.5rem 0 0; font-size: 0.88rem; }
.slots { text-align: right; font-size: 0.95rem; }
.devices tr.gone td { opacity: 0.6; }
.history { margin-top: 1rem; font-size: 0.9rem; }
.history summary { cursor: pointer; color: var(--accent-strong); font-weight: 600; }
.history ol { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0.5rem; }
.history li { display: grid; grid-template-columns: 11rem 13rem 1fr; gap: 0.75rem; align-items: start; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); }
@media (max-width: 720px) { .history li { grid-template-columns: 1fr; gap: 0.2rem; } }
.when { color: var(--muted); }
.badge { justify-self: start; font-size: 0.78rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: 999px; border: 1px solid var(--line); }
.badge.good { color: var(--ok); border-color: var(--ok); }
.badge.bad { color: var(--bad); border-color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, transparent); }
.badge.warn { color: var(--accent-strong); border-color: var(--accent); }
details.source summary { cursor: pointer; font-weight: 600; }
