:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #17181a;
  --muted: #5d6066;
  --line: #e7e4de;
  --accent: #f26a1b;
  --accent-ink: #b84a0b;
  --green: #1f9d55;
  --dark: #121314;
  --radius: 18px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111213;
    --surface: #1a1b1d;
    --ink: #f1efea;
    --muted: #a3a6ad;
    --line: #2b2d30;
    --accent: #ff8a3d;
    --accent-ink: #ffb27f;
    --green: #3ccf7d;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent-ink); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* header */
header.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.links { display: flex; gap: 18px; font-size: 15px; }
nav.links a { color: var(--muted); text-decoration: none; }
nav.links a:hover, nav.links a[aria-current] { color: var(--ink); }

/* hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px; }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 16px; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.ghost { border: 1px solid var(--line); color: var(--ink); }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.watch { justify-self: center; width: min(360px, 80vw); aspect-ratio: 1; border-radius: 50%; background: var(--dark); padding: 14px; box-shadow: 0 0 0 10px #2a2c2f, 0 0 0 14px #8d9096, 0 30px 60px -20px rgba(0,0,0,.45); }
.watch img { width: 100%; border-radius: 50%; }

/* sections */
section { padding: 56px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 12px; }
.sub { color: var(--muted); margin: 0 0 32px; max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
section:not(.alt) .card { background: var(--surface); }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.ico { width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; margin-bottom: 12px; }

/* screens */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 22px; }
.screen { text-align: center; }
.screen .dial { aspect-ratio: 1; border-radius: 50%; background: var(--dark); padding: 8px; box-shadow: 0 0 0 6px #2a2c2f; margin: 0 auto 12px; max-width: 220px; }
.screen .dial img { border-radius: 50%; }
.screen b { display: block; font-size: 16px; }
.screen span { font-size: 14px; color: var(--muted); }

/* steps */
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
ol.steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 62px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
ol.steps li::before { content: counter(s); position: absolute; left: 18px; top: 15px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 15px; }
ol.steps b { display: block; }
ol.steps span { color: var(--muted); font-size: 15.5px; }

/* devices */
.devices { columns: 3; column-gap: 28px; padding: 0; margin: 0; list-style: none; font-size: 15px; }
.devices li { break-inside: avoid; padding: 4px 0; border-bottom: 1px dashed var(--line); }

/* prose pages */
.prose { max-width: 760px; padding: 48px 20px 64px; margin: 0 auto; }
.prose h1 { font-size: clamp(30px, 4vw, 40px); }
.prose h2 { font-size: 22px; margin-top: 34px; }
.prose p, .prose li { color: var(--ink); }
.prose .meta { color: var(--muted); font-size: 15px; }
details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 10px 0; background: var(--surface); }
summary { font-weight: 700; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--muted); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 30px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--muted); }
.tm { flex-basis: 100%; font-size: 12.5px; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .screens { grid-template-columns: repeat(3, 1fr); }
  .devices { columns: 2; }
}
@media (max-width: 560px) {
  nav.links a.hide-s { display: none; }
  .grid { grid-template-columns: 1fr; }
  .devices { columns: 1; }
  .screens { grid-template-columns: 1fr 1fr; }
  body { font-size: 16px; }
}
.brand .tag { font-weight: 500; font-size: 14px; color: var(--muted); margin-left: 4px; font-style: italic; letter-spacing: 0; }
@media (max-width: 400px) { .brand .tag { display: none; } }

/* progressive overload */
section.overload { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--bg)), var(--bg)); border-bottom: 1px solid var(--line); }
.ov-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: start; }
.lead-s { font-size: 19px; margin: 0 0 14px; }
ol.ov-rules { margin: 18px 0; padding-left: 22px; display: grid; gap: 8px; }
ol.ov-rules li::marker { color: var(--accent-ink); font-weight: 800; }
.ladder { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.ladder-h { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.ladder ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ladder li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--bg); font-variant-numeric: tabular-nums; }
.ladder li.up { background: color-mix(in srgb, var(--green) 14%, var(--bg)); }
.ladder li.down { background: color-mix(in srgb, var(--accent) 12%, var(--bg)); }
.ladder .d { color: var(--muted); font-size: 14px; }
.ladder .r { font-weight: 800; font-size: 14px; }
.ladder .r.ok { color: var(--green); }
.ladder .r.no { color: var(--accent-ink); }
.ladder-f { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .ov-grid { grid-template-columns: 1fr; gap: 24px; } }

/* how-to page */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 8px; }
.toc a { font-size: 14px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--surface); }
.toc a:hover { border-color: var(--accent); }
.prose h2[id] { scroll-margin-top: 80px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 560px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.prose tr:last-child td { border-bottom: 0; }
section[id] { scroll-margin-top: 64px; }

/* header: brand on top, menu below (no wrapping) */
header.top .wrap { flex-direction: column; align-items: flex-start; justify-content: center; height: auto; gap: 4px; padding-top: 10px; padding-bottom: 8px; }
nav.links { flex-wrap: wrap; column-gap: 18px; row-gap: 2px; }
nav.links a { white-space: nowrap; }
section[id] { scroll-margin-top: 100px; }
/* banner at the top of the home page */
.banner { display: block; background: #f26a1b; color: #fff; text-align: center; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; padding: 12px 16px; text-decoration: none; }
.banner:hover { background: #d9590f; color: #fff; }
h2[id] { scroll-margin-top: 100px; }
@media (max-width: 400px) { .brand .tag { display: inline; } }
@media (max-width: 560px) { .banner { font-size: 16px; padding: 10px 16px; } }

/* swipeable watch in the hero */
.hero-watch { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.watch.swipe { justify-self: auto; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 50%; scrollbar-width: none; cursor: grab; outline: none; touch-action: pan-x pan-y; }
.track::-webkit-scrollbar { display: none; }
.track img { flex: 0 0 100%; width: 100%; scroll-snap-align: center; user-select: none; -webkit-user-drag: none; }
.track:focus-visible { box-shadow: 0 0 0 3px var(--accent); }
.sdots { display: flex; gap: 10px; margin-top: 10px; }
.sdots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: var(--muted); opacity: .35; cursor: pointer; }
.sdots button[aria-current] { background: #f26a1b; opacity: 1; }
.swipe-hint { margin: 0; font-size: 14px; color: var(--muted); }
.handsfree { margin: -4px 0 14px; font-size: 20px; font-weight: 600; color: var(--accent-ink); }
.handsfree b { font-weight: 800; }

/* progressive overload on/off switch (banner + section) */
.banner { display: flex; align-items: center; justify-content: center; gap: 14px; }
.banner a { color: #fff; text-decoration: none; }
.banner a:hover { text-decoration: underline; }
.banner:hover { background: #f26a1b; }
.nw { white-space: nowrap; }
.po-switch { flex: none; position: relative; width: 46px; height: 26px; padding: 0; border: 0; border-radius: 13px; background: #1fc95b; cursor: pointer; transition: background .15s; }
.po-switch span { position: absolute; top: 3px; left: 23px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.po-switch[aria-checked="false"] { background: #2a2c2f; }
.po-switch[aria-checked="false"] span { left: 3px; }
.banner .po-switch { box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.po-switch:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.ov-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.po-label { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--muted); margin-bottom: 22px; cursor: pointer; }
.ov-off, .ov-off-i { display: none; }
.po-off .ov-on, .po-off .ov-on-i { display: none; }
.po-off .ov-off { display: block; }
.po-off .ov-off-i { display: inline; }
.ladder .r:not(.ok):not(.no) { color: var(--muted); font-weight: 700; }
