:root {
  --ink: #0b2545;
  --ink-2: #13315c;
  --text: #1b2a3a;
  --muted: #5a6b7e;
  --ice: #e8f4fa;
  --ice-2: #cfe8f4;
  --accent: #1d7fc1;
  --accent-ink: #ffffff;
  --line: #d8e4ec;
  --card: #ffffff;
  --bg: #f7fbfd;
  --ok: #1a8f4c;
  --ok-bg: #e3f5ea;
  --soon-bg: #fff4d6;
  --soon-ink: #7a5600;
  --draft-bg: #fff4d6;
  --draft-ink: #6b4b00;
  --shadow: 0 10px 30px rgba(11, 37, 69, 0.10);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e6f1f8; --ink-2: #bcd6e8; --text: #dbe6ef; --muted: #93a7ba;
    --ice: #0f2236; --ice-2: #16314c; --accent: #5bb6ec; --accent-ink: #06182b;
    --line: #213a52; --card: #10243a; --bg: #0a1828;
    --ok: #4fd18b; --ok-bg: #12352a; --soon-bg: #3a2f10; --soon-ink: #f3d27a;
    --draft-bg: #3a2f10; --draft-ink: #f3d27a; --shadow: 0 10px 30px rgba(0,0,0,.35);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px; line-height: 1.65;
}
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* header */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 22px; }
.brand img { width: 34px; height: 34px; }
.top-cta { color: var(--ink); text-decoration: none; font-weight: 600; border: 1.5px solid var(--line); padding: 8px 16px; border-radius: 999px; font-size: 15px; }

/* hero */
.hero { background: linear-gradient(180deg, var(--ice) 0%, var(--bg) 100%); padding: 48px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
h1 { color: var(--ink); font-size: clamp(34px, 5.2vw, 54px); line-height: 1.15; margin: 0 0 18px; font-weight: 800; letter-spacing: -0.5px; }
h1 .soft { color: var(--accent); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); margin: 0 0 28px; max-width: 34ch; }
.btn { display: inline-block; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 700; padding: 14px 26px; border-radius: 12px; font-size: 17px; }
.btn:hover { background: var(--ink-2); }

/* device card */
.device {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  padding: 22px 24px; max-width: 380px; justify-self: center; width: 100%;
}
.device-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.device-name { font-weight: 700; color: var(--ink); font-size: 19px; }
.status { display: inline-flex; align-items: center; gap: 7px; background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: 999px; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.device-temp { font-size: 64px; font-weight: 800; color: var(--ink); line-height: 1.1; margin: 14px 0 4px; }
.device-sub { color: var(--muted); font-size: 14px; }
.device svg { display: block; width: 100%; height: 64px; margin-top: 14px; }

/* sections */
section { padding: 64px 0; }
h2 { color: var(--ink); font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 28px; font-weight: 800; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; position: relative; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ice-2); color: var(--ink); font-weight: 800; margin-bottom: 12px; }
.steps li:not(:last-child)::after { content: "←"; position: absolute; left: -15px; top: 50%; transform: translateY(-50%); color: var(--accent); font-weight: 800; font-size: 20px; }
.steps h3, .features h3, .who h3 { margin: 0 0 6px; color: var(--ink); font-size: 19px; }
.steps p, .features p, .who p { margin: 0; color: var(--muted); font-size: 16px; }

.alt { background: var(--ice); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.feature .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--ice-2); display: grid; place-items: center; margin-bottom: 12px; }
.feature .ico svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.soon { display: inline-block; background: var(--soon-bg); color: var(--soon-ink); font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-inline-start: 6px; vertical-align: middle; }

.who { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.who > div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }

.cta { background: var(--ink); color: var(--bg); text-align: center; }
.cta h2 { color: var(--bg); margin-bottom: 12px; }
.cta p { color: var(--ice-2); margin: 0 0 26px; }
.cta .btn { background: var(--bg); color: var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cta { background: var(--ice-2); }
  :root:not([data-theme="light"]) .cta h2, :root:not([data-theme="light"]) .cta p { color: var(--ink); }
  :root:not([data-theme="light"]) .cta .btn { background: var(--accent); color: var(--accent-ink); }
}

footer { padding: 28px 0 36px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer nav { display: flex; gap: 18px; }
footer a { color: var(--muted); }

/* legal pages */
.doc { max-width: 760px; padding-top: 16px; padding-bottom: 48px; }
.doc h1 { font-size: clamp(30px, 4vw, 40px); }
.doc h2 { font-size: 22px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--text); }
.draft { background: var(--draft-bg); color: var(--draft-ink); border-radius: 12px; padding: 14px 18px; font-weight: 600; margin: 0 0 24px; }
.meta { color: var(--muted); font-size: 15px; }

@media (max-width: 860px) {
  .hero { padding: 24px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .steps, .features { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::after { content: "↓"; left: 50%; top: auto; bottom: -24px; transform: translateX(-50%); }
  .steps { gap: 28px; }
  .who { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
}
@media (min-width: 561px) and (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .wrap { padding: 0 16px; } .device-temp { font-size: 54px; } }
.device svg .g { stroke: var(--line); stroke-dasharray: 4 4; }
.device svg .l { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
