/* RadioPilot website. Pages come from Tools/website/build.py; this file and site.js / demo.js are edited here. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1f2a44;
  --navy-deep: #19223a;
  --navy-key: #2c3858;
  --navy-line: #36425f;
  --ink: #172036;
  --muted: #4c566b;
  --paper: #ffffff;
  --mist: #eef1f5;
  --line: #d9dee7;
  --tick: #8e98ad;
  --coral: #ee6a50;
  --coral-hover: #f37f67;
  --coral-ink: #b4412d;
  --needle: #f7c548;
  --on-navy: #f4f6fa;
  --on-navy-muted: #bcc4d5;
  --ring: #b4412d;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sys: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --pad: clamp(20px, 4.5vw, 56px);
  --bar-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --navy: #1b2540;
    --navy-deep: #131b2f;
    --navy-key: #2a3656;
    --navy-line: #2f3b59;
    --ink: #edf0f6;
    --muted: #a9b2c6;
    --paper: #0e1525;
    --mist: #161f35;
    --line: #29344f;
    --tick: #6f7a93;
    --coral-ink: #ff9c82;
    --ring: #ff9c82;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar-h) + 72px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
small { font-size: 0.875rem; }

a {
  color: var(--coral-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

h1, h2, h3 { margin: 0; }
h1, h2 {
  font-stretch: 125%;
  font-weight: 740;
  letter-spacing: -0.012em;
  line-height: 1.02;
  text-wrap: balance;
}
h3 { font-size: 1.125rem; font-weight: 650; line-height: 1.3; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

.placeholder {
  background: #fff3bf;
  color: #5c3c00;
  border-radius: 4px;
  padding: 0 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ---------- Header: the dial ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--on-navy);
  border-bottom: 1px solid var(--navy-line);
}

.bar-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 40px;
}

.bar :focus-visible, .stage :focus-visible, .cta :focus-visible, .foot :focus-visible { outline-color: var(--needle); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: inherit;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 700;
  font-stretch: 112%;
}
.brand img { width: 32px; height: 32px; border-radius: 22%; }

.dial {
  position: relative;
  flex: 1;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6px;
}

.dial ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.dial a {
  display: block;
  padding: 2px 4px;
  color: var(--on-navy-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}
.dial a:hover, .dial a.is-active, .dial a[aria-current="page"] { color: var(--on-navy); }

.dial-scale {
  position: relative;
  height: 20px;
  margin-top: 4px;
  background:
    repeating-linear-gradient(to right, var(--tick) 0 1px, transparent 1px 2%) top left / 100% 4px no-repeat,
    repeating-linear-gradient(to right, var(--on-navy-muted) 0 1px, transparent 1px 20%) top left / calc(100% + 1px) 7px no-repeat;
  opacity: 0.75;
}
.dial-scale span {
  position: absolute;
  top: 8px;
  transform: translateX(-50%);
  color: var(--tick);
  font-size: 0.6875rem;
  font-stretch: 68%;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.dial-scale span:nth-child(1) { left: 0; transform: none; }
.dial-scale span:nth-child(2) { left: 20%; }
.dial-scale span:nth-child(3) { left: 40%; }
.dial-scale span:nth-child(4) { left: 60%; }
.dial-scale span:nth-child(5) { left: 80%; }
.dial-scale span:nth-child(6) { left: auto; right: 0; transform: none; }

.dial-needle {
  position: absolute;
  top: 33px;
  bottom: 6px;
  left: -1px;
  width: 2px;
  border-radius: 1px;
  background: var(--needle);
  box-shadow: 0 0 12px rgba(247, 197, 72, 0.6);
  opacity: 0;
  transform: translateX(var(--x, 0));
  transition: transform 0.7s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.3s;
  pointer-events: none;
}
.dial-needle.is-visible { opacity: 1; }

.lang {
  flex: none;
  color: var(--on-navy-muted);
  text-decoration: none;
  font-size: 0.9375rem;
}
.lang:hover { color: var(--on-navy); text-decoration: underline; }

.menu-button { display: none; }

@media (max-width: 960px) {
  :root { --bar-h: 58px; }
  .bar-in { gap: 18px; }
  .dial {
    display: none;
    position: absolute;
    top: var(--bar-h);
    left: 0;
    right: 0;
    padding: 4px var(--pad) 24px;
    background: var(--navy);
    border-bottom: 1px solid var(--navy-line);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.5);
  }
  .bar.is-open .dial { display: block; }
  .dial ul { flex-direction: column; gap: 0; }
  .dial a { padding: 14px 0; font-size: 1.125rem; border-bottom: 1px solid var(--navy-line); }
  .dial-scale, .dial-needle { display: none; }
  .lang { margin-left: auto; }
  .menu-button {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border: 1px solid var(--navy-line);
    border-radius: 999px;
    background: transparent;
    color: var(--on-navy);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
  }
  .menu-button[aria-expanded="true"] { background: var(--navy-key); }
  .no-js .bar-in { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; }
  .no-js .dial { display: block; position: static; padding: 0; border: 0; box-shadow: none; flex-basis: 100%; }
  .no-js .dial ul { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
  .no-js .dial a { border: 0; padding: 4px 0; font-size: 1rem; }
  .no-js .menu-button { display: none; }
}

/* ---------- Buttons and the App Store link ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 15px;
  border-radius: 10px;
  background: var(--coral);
  color: var(--navy);
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16);
  transition: background 0.15s;
}
.button:hover { background: var(--coral-hover); }
.button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (prefers-color-scheme: dark) {
  .button { color: #1f2a44; }
}

.store { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.store-badge { display: inline-block; line-height: 0; border-radius: 8px; }
.store-badge img { display: block; height: 50px; width: auto; }
.store-note { margin: 0; font-size: 0.875rem; }

/* ---------- Stage: hero with the live demo ---------- */

.stage { background: var(--navy); color: var(--on-navy); overflow-x: clip; }

.stage-in {
  --phone-w: min(352px, calc(100vw - 2 * var(--pad)));
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) var(--pad) clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "title" "lead" "store" "tour" "keys" "device" "text";
  column-gap: clamp(40px, 6vw, 104px);
}

.stage h1 {
  grid-area: title;
  font-size: clamp(2rem, 0.95rem + 3.5vw, 4rem);
}
.nowrap { white-space: nowrap; }

.stage .lead {
  grid-area: lead;
  max-width: 34em;
  margin: 24px 0 30px;
  color: var(--on-navy-muted);
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  line-height: 1.45;
}

.hero-store { grid-area: store; }
.store-sub { margin: 12px 0 0; color: var(--on-navy-muted); font-size: 0.9375rem; }

.tour-title {
  grid-area: tour;
  margin-top: clamp(40px, 5vw, 64px);
  font-size: 1.125rem;
  font-stretch: 100%;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.3;
}

.keys {
  grid-area: keys;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.key {
  flex: none;
  padding: 10px 16px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--navy-key);
  color: var(--on-navy);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: background 0.15s, transform 0.08s, box-shadow 0.08s;
}
.key:hover { background: #34416a; }
.key:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.3); }
.key[aria-pressed="true"] {
  background: var(--coral);
  color: #1f2a44;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2), 0 0 18px -4px rgba(238, 106, 80, 0.7);
}

.tour-text {
  grid-area: text;
  max-width: 32em;
  margin-top: 20px;
  color: var(--on-navy-muted);
}
.tour-text h3 { margin-bottom: 4px; color: var(--on-navy); font-size: 1.0625rem; }
.tour-text p { margin-bottom: 0.6em; }
.js .tour-text > div:not(.is-active) { display: none; }
.no-js .keys, .no-js .tour-title, .no-js [data-ring] { display: none; }
.no-js .tour-text > div { margin-bottom: 18px; }

.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--needle);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.stage-device { grid-area: device; justify-self: center; width: var(--phone-w); margin-top: 28px; }
.device-note { margin: 16px 0 0; color: var(--on-navy-muted); font-size: 0.8125rem; text-align: center; }

@media (max-width: 960px) {
  .keys {
    position: sticky;
    top: var(--bar-h);
    z-index: 6;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 14px calc(-1 * var(--pad)) 0;
    padding: 10px var(--pad) 12px;
    background: var(--navy);
    scrollbar-width: none;
  }
  .keys::-webkit-scrollbar { display: none; }
  .tour-text { margin-top: 28px; }
}

@media (min-width: 961px) {
  .stage-in {
    --phone-w: clamp(300px, calc((100svh - var(--bar-h) - 110px) * 0.462), 372px);
    grid-template-columns: minmax(0, 1fr) var(--phone-w);
    grid-template-rows: auto auto auto auto auto 1fr;
    grid-template-areas: "title device" "lead device" "store device" "tour device" "keys device" "text device";
    align-items: start;
  }
  .stage-device { margin-top: 0; }
}

/* ---------- The phone ---------- */

.phone {
  container-type: inline-size;
  position: relative;
  width: 100%;
  aspect-ratio: 390 / 844;
  border-radius: 13.5% / 6.2%;
  background: linear-gradient(150deg, #3a4257 0%, #10131b 38%, #0a0c12 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.1),
    0 50px 90px -40px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(0, 0, 0, 0.4);
}
.phone-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.no-js .phone { aspect-ratio: auto; background: none; box-shadow: none; }
.no-js .phone-fallback { position: static; height: auto; border-radius: 18px; }

.screen {
  --i-bg: #f2f2f7;
  --i-card: #ffffff;
  --i-text: #111114;
  --i-sec: #6c6c72;
  --i-ter: #a5a5ab;
  --i-sep: rgba(60, 60, 67, 0.18);
  --i-fill: rgba(120, 120, 128, 0.13);
  --i-fill2: rgba(120, 120, 128, 0.22);
  --i-accent: #f26633;
  --i-fill-accent: #c8481b;
  --i-green: #2fb550;
  --i-red: #d70015;
  --i-glass: rgba(255, 255, 255, 0.6);
  --np-top: #d9e4ee;
  --np-mid: #e9eef3;
  position: absolute;
  inset: 3.1%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 11% / 5.1%;
  background: var(--i-bg);
  color: var(--i-text);
  font-family: var(--sys);
  font-size: 4.15cqw;
  font-stretch: 100%;
  line-height: 1.25;
  isolation: isolate;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-color-scheme: dark) {
  .screen {
    --i-bg: #000000;
    --i-card: #1c1c1e;
    --i-text: #f5f5f7;
    --i-sec: #98989f;
    --i-ter: #5f5f66;
    --i-sep: rgba(84, 84, 88, 0.6);
    --i-fill: rgba(118, 118, 128, 0.24);
    --i-fill2: rgba(118, 118, 128, 0.36);
    --i-accent: #ff8e4d;
    --i-green: #30d158;
    --i-red: #ff453a;
    --i-glass: rgba(60, 60, 67, 0.55);
  }
}
.screen :focus-visible { outline: 0.15em solid var(--i-accent); outline-offset: 0.1em; border-radius: 0.4em; }
.screen button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.screen .i { width: 1.2em; height: 1.2em; flex: none; }

.island {
  position: absolute;
  top: 0.62em;
  left: 50%;
  z-index: 60;
  width: 6.4em;
  height: 1.85em;
  border-radius: 1em;
  background: #000;
  transform: translateX(-50%);
}

.st {
  flex: none;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 2.75em;
  padding: 0.45em 1.7em 0 2.2em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.st-icons { display: flex; align-items: center; gap: 0.3em; }
.st-icons .i { width: 1.1em; height: 1.1em; }
.st-icons .i-battery { width: 1.6em; }

.np {
  flex: none;
  position: relative;
  margin-top: -2.75em;
  padding: 2.85em 1.05em 0.85em;
  background: linear-gradient(180deg, var(--np-top) 0%, var(--np-mid) 62%, var(--i-bg) 100%);
}
.np.is-off .np-main, .np.is-off .np-row .live { opacity: 0.45; }

.np-bar { display: grid; grid-template-columns: 2.45em 1fr 2.45em; align-items: center; }
.np-title { text-align: center; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.round {
  display: grid;
  place-items: center;
  width: 2.45em;
  height: 2.45em;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--i-glass);
  color: var(--i-accent);
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.round .i { width: 1.2em; height: 1.2em; }
.round.power { color: var(--i-text); }
.round.power.is-off { color: var(--i-sec); }

.np-row { display: flex; align-items: center; gap: 0.5em; margin-top: 0.85em; min-height: 2em; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  height: 2.1em;
  padding: 0 0.75em;
  border: 0;
  border-radius: 1.1em;
  background: var(--i-glass);
  color: var(--i-accent);
  font-size: 0.86em;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.pill .i { width: 1.1em; height: 1.1em; }
.pill.small { height: 1.85em; font-size: 0.74em; padding: 0 0.7em; }
.pill.solid { background: var(--i-fill-accent); color: #fff; }

.sq {
  display: grid;
  place-items: center;
  width: 2.1em;
  height: 2.1em;
  padding: 0;
  border: 0;
  border-radius: 0.55em;
  background: var(--i-glass);
  color: var(--i-accent);
  cursor: pointer;
}
.sq .i { width: 1.15em; height: 1.15em; }

.live {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-left: auto;
  padding: 0.28em 0.6em;
  border-radius: 1em;
  background: var(--i-glass);
  color: var(--i-green);
  font-size: 0.72em;
  font-weight: 600;
}
.live::before { content: ""; width: 0.55em; height: 0.55em; border-radius: 50%; background: currentColor; }

.np-main { display: grid; grid-template-columns: 5.3em minmax(0, 1fr); gap: 0.9em; align-items: center; margin-top: 0.85em; }
.art {
  width: 5.3em;
  height: 5.3em;
  overflow: hidden;
  border-radius: 0.7em;
  box-shadow: 0 0.45em 1em -0.45em rgba(0, 0, 0, 0.4);
}
.art svg, .logo svg { width: 100%; height: 100%; }
.np-name { font-size: 1.22em; font-weight: 700; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-sub { margin-top: 0.15em; color: var(--i-sec); font-size: 0.88em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-group { display: flex; align-items: center; gap: 0.3em; margin-top: 0.35em; color: var(--i-accent); font-size: 0.76em; font-weight: 600; }
.np-group .i { width: 1.15em; height: 1.15em; }
.np-main .pill.small { margin-top: 0.4em; }
.fade-in { animation: fadein 0.45s ease; }

.np-transport { display: flex; align-items: center; justify-content: center; gap: 1.5em; min-height: 3.5em; margin-top: 0.8em; }
.big {
  display: grid;
  place-items: center;
  width: 3.45em;
  height: 3.45em;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--i-accent);
  color: #fff !important;
  cursor: pointer;
  box-shadow: 0 0.45em 1em -0.35em rgba(242, 102, 51, 0.7);
  transition: transform 0.12s;
}
.big:active { transform: scale(0.94); }
.big .i { width: 1.35em; height: 1.35em; }
.ghost {
  display: grid;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.ghost .i { width: 1.5em; height: 1.5em; }
.wide { min-width: 9em; height: 2.6em; border-radius: 1.3em; font-weight: 600; }

.np-vol { display: grid; grid-template-columns: 1.7em minmax(0, 1fr) 1.9em; align-items: center; gap: 0.5em; margin-top: 0.65em; }
.np-vol .ghost { width: 1.7em; height: 1.7em; color: var(--i-sec); }
.np-vol .ghost .i { width: 1.25em; height: 1.25em; }
.val { color: var(--i-sec); font-size: 0.86em; text-align: right; font-variant-numeric: tabular-nums; }

.fm { display: grid; grid-template-columns: 2.5em minmax(0, 1fr) 2.5em; align-items: center; gap: 0.3em; width: 100%; }
.fm .ghost { color: var(--i-accent); }
.fm-mid { text-align: center; }
.fm-read { font-size: 1.35em; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.fm-read small { font-size: 0.6em; font-weight: 600; color: var(--i-sec); margin-left: 0.2em; }

.pod { width: 100%; }
.pod-times { display: flex; justify-content: space-between; margin-top: -0.2em; color: var(--i-sec); font-size: 0.7em; font-variant-numeric: tabular-nums; }
.pod-buttons { display: flex; align-items: center; justify-content: center; gap: 1.6em; margin-top: 0.2em; }
.pod-buttons .ghost { color: var(--i-text); }
.pod-buttons .big { width: 3em; height: 3em; }

.screen input[type="range"] {
  --p: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 1.8em;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.screen input[type="range"]::-webkit-slider-runnable-track {
  height: 0.3em;
  border-radius: 0.15em;
  background: linear-gradient(to right, var(--i-accent) var(--p), var(--i-fill2) var(--p));
}
.screen input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.7em;
  height: 1.7em;
  margin-top: -0.7em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0.1em 0.45em rgba(0, 0, 0, 0.28), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
}
.screen input[type="range"]::-moz-range-track { height: 0.3em; border-radius: 0.15em; background: var(--i-fill2); }
.screen input[type="range"]::-moz-range-progress { height: 0.3em; border-radius: 0.15em; background: var(--i-accent); }
.screen input[type="range"]::-moz-range-thumb {
  width: 1.7em;
  height: 1.7em;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0.1em 0.45em rgba(0, 0, 0, 0.28);
}
.screen input[type="range"]:disabled { opacity: 0.45; cursor: default; }

.seg {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0.55em 1.05em 0.15em;
  padding: 0.14em;
  border-radius: 0.6em;
  background: var(--i-fill);
}
.seg button {
  padding: 0.45em 0;
  border: 0;
  border-radius: 0.47em;
  background: none;
  font-size: 0.8em;
  font-weight: 500;
  cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--i-card); font-weight: 600; box-shadow: 0 0.1em 0.35em rgba(0, 0, 0, 0.13); }

.body { flex: 1; min-height: 0; overflow-y: auto; padding: 0.45em 1.05em 1.8em; scrollbar-width: none; }
.body::-webkit-scrollbar { display: none; }

.sec-h { display: flex; align-items: center; justify-content: space-between; margin: 0.45em 0.1em 0.55em; font-size: 0.95em; font-weight: 700; }
.sec-h .ghost { width: 1.8em; height: 1.8em; color: var(--i-accent); }
.sec-h .ghost .i { width: 1.15em; height: 1.15em; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55em; }

.preset {
  display: grid;
  grid-template-columns: 2.6em minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55em;
  min-height: 3.75em;
  padding: 0.5em;
  border: 0.09em solid transparent;
  border-radius: 0.8em;
  background: var(--i-card);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.preset .logo { width: 2.6em; height: 2.6em; overflow: hidden; border-radius: 0.45em; }
.preset .num { display: block; color: var(--i-sec); font-size: 0.68em; font-variant-numeric: tabular-nums; }
.preset .nm {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.86em;
  font-weight: 600;
  line-height: 1.15;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.preset.is-active { border-color: var(--i-accent); background: color-mix(in srgb, var(--i-accent) 7%, var(--i-card)); }
.preset.is-active .num { color: var(--i-accent); }
.preset.is-empty .logo { display: grid; place-items: center; border: 0.1em dashed var(--i-ter); color: var(--i-ter); }
.preset.is-empty .logo .i { width: 1.1em; height: 1.1em; }
.preset.is-empty .nm { color: var(--i-sec); font-weight: 500; }
.preset.is-new { animation: pop 0.6s ease; }

.eq { display: flex; align-items: center; gap: 0.12em; height: 1em; color: var(--i-accent); }
.eq span { display: block; width: 0.16em; height: 100%; border-radius: 0.1em; background: currentColor; transform-origin: center; animation: eq 0.9s ease-in-out infinite; }
.eq span:nth-child(2) { animation-delay: -0.3s; }
.eq span:nth-child(3) { animation-delay: -0.6s; }
.eq span:nth-child(4) { animation-delay: -0.15s; }
.eq.is-paused span { animation-play-state: paused; transform: scaleY(0.35); }

.card { margin-bottom: 0.7em; padding: 0.8em 0.85em; border-radius: 0.9em; background: var(--i-card); }
.card-h { display: flex; align-items: center; gap: 0.45em; margin-bottom: 0.6em; font-size: 0.95em; font-weight: 700; }
.card-h .i { width: 1.15em; height: 1.15em; }
.muted { color: var(--i-sec); }
.note { margin: 0.55em 0 0; color: var(--i-sec); font-size: 0.72em; line-height: 1.3; }

.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45em; }
.chip {
  padding: 0.55em 0.2em;
  border: 0;
  border-radius: 0.55em;
  background: var(--i-fill);
  font-size: 0.8em;
  cursor: pointer;
  white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--i-fill-accent); color: #fff; font-weight: 600; }
.chiprow { display: flex; gap: 0.4em; margin-top: 0.55em; overflow-x: auto; scrollbar-width: none; }
.chiprow::-webkit-scrollbar { display: none; }
.chiprow .chip { flex: none; padding: 0.55em 0.75em; color: var(--i-accent); }
.chiprow .chip[aria-pressed="true"] { color: #fff; }

.slider-row { display: grid; grid-template-columns: 3.4em minmax(0, 1fr) 1.6em; align-items: center; gap: 0.5em; font-size: 0.92em; }
.slider-row.bare { grid-template-columns: minmax(0, 1fr) 1.8em; padding: 0.35em 0; }

.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.6em; padding: 0.6em 0; border-top: 0.5px solid var(--i-sep); }
.row:first-child { border-top: 0; }
.row-main { min-width: 0; }
.row-title { display: block; font-weight: 500; }
.row-sub { display: block; color: var(--i-sec); font-size: 0.72em; margin-top: 0.1em; }
.row button.link, .linkish { padding: 0; border: 0; background: none; color: var(--i-accent); cursor: pointer; font-size: 0.92em; }
.alarm-time { font-size: 1.45em; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.row.is-off .alarm-time, .row.is-off .row-sub { color: var(--i-sec); }
.tap { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }

.switch {
  position: relative;
  width: 2.85em;
  height: 1.72em;
  padding: 0;
  border: 0;
  border-radius: 1em;
  background: var(--i-fill2);
  cursor: pointer;
  transition: background 0.2s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 0.12em;
  left: 0.12em;
  width: 1.48em;
  height: 1.48em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0.12em 0.35em rgba(0, 0, 0, 0.25);
  transition: transform 0.22s cubic-bezier(0.3, 0.7, 0.3, 1);
}
.switch[aria-checked="true"] { background: var(--i-green); }
.switch[aria-checked="true"]::after { transform: translateX(1.13em); }

.search {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin: 0.2em 0 0.7em;
  padding: 0.5em 0.65em;
  border-radius: 0.65em;
  background: var(--i-fill);
  color: var(--i-sec);
}
.search input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: none;
  color: var(--i-text);
  font: inherit;
  font-size: 0.95em;
}
.search input::placeholder { color: var(--i-sec); }
.screen .search input:focus-visible { outline: none; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search:focus-within { box-shadow: 0 0 0 0.14em color-mix(in srgb, var(--i-accent) 50%, transparent); }

.list { padding: 0 0.85em; border-radius: 0.9em; background: var(--i-card); }
.item {
  display: grid;
  grid-template-columns: 2.35em minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6em;
  width: 100%;
  padding: 0.5em 0;
  border: 0;
  border-top: 0.5px solid var(--i-sep);
  background: none;
  text-align: left;
  cursor: pointer;
}
.item:first-child { border-top: 0; }
.item .logo { width: 2.35em; height: 2.35em; overflow: hidden; border-radius: 0.42em; }
.item .t { font-weight: 600; font-size: 0.92em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .s { color: var(--i-sec); font-size: 0.72em; }
.item .end { color: var(--i-accent); display: flex; align-items: center; gap: 0.4em; }
.item .end .i { width: 1.1em; height: 1.1em; }
.item .end.s { color: var(--i-sec); font-size: 0.72em; }
.item .src-icon { display: grid; place-items: center; width: 2.35em; height: 2.35em; color: var(--i-accent); }
.item .src-icon .i { width: 1.3em; height: 1.3em; }
.item.is-active .t { color: var(--i-accent); }
.item-plain { grid-template-columns: minmax(0, 1fr) auto; }
.item-pod { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.4em; border-top: 0.5px solid var(--i-sep); }
.item-pod:first-child { border-top: 0; }
.item-pod .tap { display: grid; grid-template-columns: 2.35em minmax(0, 1fr); align-items: center; gap: 0.6em; padding: 0.5em 0; }
.item-pod .logo { width: 2.35em; height: 2.35em; overflow: hidden; border-radius: 0.42em; }
.item-pod .t { display: block; font-weight: 600; font-size: 0.92em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-pod .s { display: block; color: var(--i-sec); font-size: 0.72em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-pod.is-active .t { color: var(--i-accent); }
.item .t, .item .s { display: block; }
.star { padding: 0.2em; border: 0; background: none; color: var(--i-accent); cursor: pointer; }
.star .i { width: 1.25em; height: 1.25em; }
.star[aria-pressed="true"] .i { fill: currentColor; }
.empty { padding: 1.4em 0.5em; color: var(--i-sec); font-size: 0.86em; text-align: center; }

.progress { height: 0.32em; margin: 0.55em 0 0.3em; overflow: hidden; border-radius: 0.2em; background: var(--i-fill2); }
.progress span { display: block; width: var(--w, 0%); height: 100%; background: var(--i-accent); transition: width 0.3s; }

.layer { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; justify-content: flex-end; }
.layer[hidden] { display: none; }
.backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.3); animation: fadein 0.25s ease; }
.sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 88%;
  border-radius: 1.25em 1.25em 0 0;
  background: var(--i-bg);
  box-shadow: 0 -0.5em 2em rgba(0, 0, 0, 0.18);
  animation: sheetup 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sheet-h { display: grid; grid-template-columns: 2.45em minmax(0, 1fr) 2.45em; align-items: center; padding: 0.85em 1.05em 0.35em; }
.sheet-h .round { background: var(--i-fill); color: var(--i-text); }
.sheet-title { margin: 0; text-align: center; font-size: 1em; font-weight: 600; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0.3em 1.05em 1.6em; scrollbar-width: none; }
.sheet-body::-webkit-scrollbar { display: none; }
.label { margin: 0.95em 0.25em 0.4em; color: var(--i-sec); font-size: 0.82em; font-weight: 600; }
.label:first-child { margin-top: 0.2em; }
.vol-block { padding: 0.7em 0 0.55em; border-top: 0.5px solid var(--i-sep); }
.vol-block:first-child { border-top: 0; }
.vol-head { display: flex; align-items: center; gap: 0.35em; justify-content: space-between; font-size: 0.92em; }
.vol-head .i { width: 1.1em; height: 1.1em; color: var(--i-accent); }
.vol-head > span:first-child { display: inline-flex; align-items: center; gap: 0.35em; }
.screen .check {
  display: grid;
  grid-template-columns: 1.45em minmax(0, 1fr);
  align-items: center;
  gap: 0.65em;
  width: 100%;
  padding: 0.6em 0;
  border: 0;
  border-top: 0.5px solid var(--i-sep);
  background: none;
  text-align: left;
  cursor: pointer;
}
.screen .check:first-child { border-top: 0; }
.screen .check .i { width: 1.45em; height: 1.45em; color: var(--i-ter); }
.screen .check[aria-checked="true"] .i { color: var(--i-accent); }
.screen .check:disabled { cursor: default; }
.screen .check:disabled .i, .screen .check:disabled .row-title { opacity: 0.5; }
.danger { color: var(--i-red) !important; }
.full-button {
  display: flex;
  align-items: center;
  gap: 0.4em;
  width: 100%;
  margin-top: 0.9em;
  padding: 0.85em;
  border: 0;
  border-radius: 0.9em;
  background: var(--i-card);
  color: var(--i-accent);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.full-button .i { width: 1.15em; height: 1.15em; }
.full-button.primary { justify-content: center; background: var(--i-fill-accent); color: #fff; text-align: center; }
.full-button:disabled { opacity: 0.45; cursor: default; }
.name-input {
  width: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: none;
  color: var(--i-text);
  font: inherit;
}
.stepper { display: flex; align-items: center; gap: 0.35em; }
.stepper button {
  width: 1.9em;
  height: 1.9em;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--i-fill);
  color: var(--i-accent);
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
}
.big-time { margin: 0.2em 0 0.5em; text-align: center; font-size: 3em; font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.time-steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6em; }
.time-steppers > div { display: flex; align-items: center; justify-content: space-between; padding: 0.4em 0.6em; border-radius: 0.7em; background: var(--i-card); font-size: 0.86em; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6em; margin-top: 1em; }
.sheet-actions .full-button { justify-content: center; margin: 0; text-align: center; }
.info-art { width: 6.5em; height: 6.5em; margin: 0.5em auto 0.8em; overflow: hidden; border-radius: 0.9em; }
.info-name { text-align: center; font-size: 1.25em; font-weight: 700; }
.info-text { margin: 0.7em 0; color: var(--i-sec); font-size: 0.9em; text-align: center; }

.ring {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 2em 1.6em;
  background: rgba(16, 20, 33, 0.9);
  color: #fff;
  text-align: center;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: fadein 0.3s ease;
}
.ring[hidden] { display: none; }
.ring .i { width: 3em; height: 3em; color: var(--i-accent); animation: shake 0.6s ease-in-out infinite; }
.ring-time { font-size: 3.6em; font-weight: 250; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ring-what { color: rgba(255, 255, 255, 0.72); font-size: 0.95em; }
.ring-buttons { display: grid; gap: 0.6em; width: 100%; margin-top: 1.6em; }
.ring-buttons button { padding: 0.95em; border: 0; border-radius: 0.95em; font-weight: 600; cursor: pointer; }
.ring-buttons .snooze { background: rgba(255, 255, 255, 0.16); color: #fff; }
.ring-buttons .off { background: var(--i-fill-accent); color: #fff; }

.toast {
  position: absolute;
  bottom: 1.5em;
  left: 50%;
  z-index: 55;
  max-width: 86%;
  padding: 0.6em 0.95em;
  border-radius: 1.3em;
  background: rgba(28, 28, 32, 0.92);
  color: #fff;
  font-size: 0.8em;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 0.6em);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@keyframes fadein { from { opacity: 0; } }
@keyframes sheetup { from { transform: translateY(100%); } }
@keyframes eq { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
@keyframes pop { 0% { transform: scale(0.94); } 50% { transform: scale(1.03); } }
@keyframes shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 128px) 0; }
.section h2 { font-size: clamp(1.9rem, 1.1rem + 2.8vw, 3.25rem); }

.check-grid, .spec-head, .mac-grid, .terms-grid, .langs-grid, .faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px 64px;
}
@media (min-width: 900px) {
  .check-grid, .spec-head, .terms-grid, .langs-grid, .faq-grid { grid-template-columns: 5fr 7fr; }
}

.check-intro p { max-width: 28em; margin-top: 20px; color: var(--muted); font-size: 1.1875rem; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 16px; padding: 0; font-size: 1.125rem; font-weight: 650; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.choice:hover { border-color: var(--tick); }
.choice input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--coral-ink); }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 2px; }
.choice input:focus-visible { outline: none; }
.check-result { display: none; margin-top: 20px; padding: 22px 24px; border-radius: 12px; background: var(--mist); }
.check-result h3 { margin-bottom: 6px; font-size: 1.25rem; font-stretch: 112%; }
.check-result p { margin: 0; }
.check-form:has(input[value="undok"]:checked) [data-result="undok"],
.check-form:has(input[value="oktiv"]:checked) [data-result="oktiv"],
.check-form:has(input[value="other"]:checked) [data-result="other"],
.check-form:has(input[value="unknown"]:checked) [data-result="unknown"] { display: block; animation: fadein 0.3s ease; }
@media (max-width: 520px) {
  .choices { grid-template-columns: minmax(0, 1fr); }
}

.undok { background: var(--mist); }
.timeline { position: relative; display: grid; gap: 30px; margin: 44px 0 36px; padding: 0 0 0 28px; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 5px; width: 1px; background: var(--tick); }
.timeline li { position: relative; }
.timeline li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -28px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--tick);
  border-radius: 50%;
  background: var(--mist);
}
.timeline li.now::before { border-color: var(--coral); background: var(--coral); }
.timeline p { margin: 0; max-width: 24em; }
.when {
  display: block;
  margin-bottom: 4px;
  color: var(--coral-ink);
  font-size: 1rem;
  font-stretch: 72%;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding: 34px 0 0; }
  .timeline::before { top: 5px; bottom: auto; left: 0; right: 0; width: auto; height: 1px; }
  .timeline li::before { top: -34px; left: 0; }
}
.undok-more { max-width: 44em; margin: 0; color: var(--muted); }

.spec-head { align-items: end; }
.spec-head p { margin: 0; color: var(--muted); font-size: 1.1875rem; }
.spec-list { margin: 44px 0 0; border-top: 2px solid var(--ink); }
.spec-list > div { display: grid; gap: 6px 64px; padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .spec-list > div { grid-template-columns: 5fr 7fr; } }
.spec-list dt { font-size: 1.1875rem; font-stretch: 112%; font-weight: 700; }
.spec-list dd { margin: 0; }
.spec-list ul { margin: 0; padding: 0; list-style: none; }
.spec-list li { padding: 2px 0; }

.mac { background: var(--mist); }
.mac-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 64px; }
@media (min-width: 900px) { .mac-head { grid-template-columns: 5fr 7fr; align-items: end; } }
.mac-head p { margin: 0; color: var(--muted); font-size: 1.1875rem; }
.views { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.view {
  padding: 9px 16px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 var(--line);
  transition: background 0.15s, color 0.15s;
}
.view:hover { border-color: var(--tick); }
.view[aria-pressed="true"] { border-color: var(--coral); background: var(--coral); color: #1f2a44; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18); }
.no-js .views { display: none; }
.devices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: end; margin-top: 28px; }
@media (min-width: 720px) { .devices { grid-template-columns: minmax(0, 1fr) 25%; gap: 4%; } }
.shot { display: block; border-radius: 12px; }
.shot img { width: 100%; height: auto; }
.shot-mac img { filter: drop-shadow(0 26px 34px rgba(23, 32, 54, 0.24)); }
.shot-ipad {
  padding: 2.4%;
  border-radius: 8% / 6%;
  background: #0d0f14;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 30px 60px -24px rgba(23, 32, 54, 0.55);
}
.shot-ipad img { border-radius: 5.6% / 4.2%; }
@media (max-width: 719px) { .shot-ipad { justify-self: center; width: 62%; } }
.shots-note { margin: 22px 0 0; color: var(--muted); font-size: 0.875rem; }
.mac .mac-grid { margin-top: clamp(64px, 8vw, 112px); }
.mac-copy h3 { font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2rem); font-stretch: 112%; font-weight: 720; line-height: 1.1; }
@media (min-width: 960px) { .mac-grid { grid-template-columns: 5fr 7fr; align-items: center; } }
.mac-copy > p:first-of-type { margin-top: 20px; color: var(--muted); font-size: 1.1875rem; }
.shortcuts { display: grid; gap: 10px; margin: 26px 0; padding: 0; list-style: none; }
.shortcuts li { display: grid; grid-template-columns: 10.5em minmax(0, 1fr); align-items: center; gap: 14px; }
.keycaps {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 2.1em;
  height: 2.1em;
  padding: 0 0.5em;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  box-shadow: inset 0 -2px 0 var(--line);
  color: var(--ink);
  font-family: var(--sys);
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform 0.08s, background 0.12s;
}
.keycaps:active kbd, .keycaps.is-pressed kbd { transform: translateY(1px); background: var(--needle); color: #1f2a44; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2); }
.keycaps .to { margin: 0 2px; color: var(--muted); font-size: 0.8125rem; }
.hint { color: var(--muted); font-size: 0.9375rem; }
.no-js .mac-screen, .no-js .hint { display: none; }

.mac-screen {
  --m-accent: #f26633;
  --m-text: #1d1d1f;
  --m-sec: #6e6e73;
  --m-panel: rgba(246, 246, 248, 0.88);
  --m-bar: rgba(255, 255, 255, 0.58);
  --m-line: rgba(0, 0, 0, 0.13);
  --m-button: rgba(255, 255, 255, 0.75);
  container-type: inline-size;
  position: relative;
  width: 100%;
  min-width: 0;
  height: 410px;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(120% 90% at 85% 100%, rgba(238, 106, 80, 0.55), transparent 60%),
    radial-gradient(110% 80% at 0% 0%, rgba(31, 42, 68, 0.55), transparent 65%),
    linear-gradient(160deg, #9fb0cf 0%, #d6dbe6 55%, #f0cfc4 100%);
  box-shadow: 0 0 0 1px var(--line), 0 40px 70px -40px rgba(23, 32, 54, 0.45);
  color: var(--m-text);
  font-family: var(--sys);
  font-size: 13px;
  line-height: 1.3;
}
@media (prefers-color-scheme: dark) {
  .mac-screen {
    --m-accent: #ff8e4d;
    --m-text: #f2f2f4;
    --m-sec: #a1a1a8;
    --m-panel: rgba(40, 40, 46, 0.86);
    --m-bar: rgba(28, 30, 38, 0.6);
    --m-line: rgba(255, 255, 255, 0.14);
    --m-button: rgba(255, 255, 255, 0.1);
    background:
      radial-gradient(120% 90% at 85% 100%, rgba(238, 106, 80, 0.4), transparent 60%),
      linear-gradient(160deg, #1f2a44 0%, #262f47 55%, #4a3038 100%);
  }
}
@media (min-width: 720px) {
  .mac-screen { height: auto; aspect-ratio: 16 / 10; }
}
.mac-screen:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.mac-screen button { font: inherit; color: inherit; }
.mac-screen .i { width: 16px; height: 16px; }
.mb {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 30px;
  padding: 0 12px;
  background: var(--m-bar);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  white-space: nowrap;
}
.mb-menu { display: flex; gap: 18px; }
.mb-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.mb-icon { display: grid; place-items: center; padding: 3px 6px; border: 0; border-radius: 5px; background: none; cursor: pointer; }
.mb-icon[aria-expanded="true"] { background: var(--m-line); }
.mb-clock { font-variant-numeric: tabular-nums; }
.mb > *, .mb-right > *, .mb .i { flex: none; }
@container (max-width: 700px) { .mb-menu span:nth-child(n+3) { display: none; } }
@container (max-width: 560px) { .mb-menu, .mb-clock { display: none; } }

.mpanel {
  position: absolute;
  top: 36px;
  right: 10px;
  display: grid;
  gap: 12px;
  width: min(330px, calc(100% - 20px));
  padding: 14px;
  border-radius: 12px;
  background: var(--m-panel);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.22), 0 22px 44px -14px rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  backdrop-filter: blur(30px) saturate(1.5);
  animation: fadein 0.2s ease;
}
.mpanel[hidden] { display: none; }
.mp-top { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.mp-art { width: 52px; height: 52px; overflow: hidden; border-radius: 10px; }
.mp-art svg { width: 100%; height: 100%; }
.mp-name { font-size: 15px; font-weight: 700; }
.mp-sub { color: var(--m-sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-power { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--m-sec); cursor: pointer; }
.mp-power.is-on { color: var(--m-accent); }
.mp-power .i { width: 20px; height: 20px; }
.mp-vol { display: grid; grid-template-columns: 18px minmax(0, 1fr) 20px; align-items: center; gap: 8px; color: var(--m-sec); }
.mp-vol .val { color: var(--m-sec); font-size: 12px; }
.mp-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mp-presets button {
  overflow: hidden;
  padding: 4px 8px;
  border: 0.5px solid var(--m-line);
  border-radius: 6px;
  background: var(--m-button);
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}
.mp-presets button.is-active { border-color: var(--m-accent); box-shadow: inset 0 0 0 0.5px var(--m-accent); }
.mpanel hr { width: 100%; margin: 0; border: 0; border-top: 0.5px solid var(--m-line); }
.mp-radio { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; padding: 3px 0; border: 0; background: none; text-align: left; cursor: pointer; }
.mp-radio .i { color: var(--m-sec); }
.mp-radio[aria-pressed="true"] .i { color: var(--m-accent); }
.mp-radio .state { color: var(--m-sec); font-size: 11px; }
.mp-foot { display: flex; justify-content: space-between; }
.mp-foot button { padding: 2px 0; border: 0; background: none; cursor: pointer; }
.mp-foot button:hover { color: var(--m-accent); }
.mac-screen input[type="range"] {
  --p: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 18px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.mac-screen input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--m-accent) var(--p), var(--m-line) var(--p)); }
.mac-screen input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }
.mac-screen input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--m-line); }
.mac-screen input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--m-accent); }
.mac-screen input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }

.statement { margin: 20px 0 16px; font-size: clamp(1.5rem, 1.05rem + 1.5vw, 2.15rem); font-stretch: 112%; font-weight: 650; line-height: 1.18; text-wrap: balance; }
.price-cols { display: grid; gap: 28px; margin: 24px 0; }
@media (min-width: 640px) { .price-cols { grid-template-columns: 1fr 1fr; } }
.price-cols > div { padding-top: 14px; border-top: 2px solid var(--ink); }
.price-cols h3 { margin-bottom: 10px; font-size: 1.25rem; font-stretch: 112%; }
.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 4px 0 4px 26px; }
.ticks li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 2px;
  width: 12px;
  height: 6px;
  border-bottom: 2px solid var(--coral-ink);
  border-left: 2px solid var(--coral-ink);
  transform: rotate(-45deg);
}

.langs { border-top: 1px solid var(--line); }
.langs p { margin-top: 16px; color: var(--muted); }
.lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1.25rem, 0.95rem + 1.1vw, 1.875rem);
  font-stretch: 112%;
  font-weight: 600;
  line-height: 1.35;
}

.faq { border-top: 1px solid var(--line); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 18px 44px 18px 0; font-size: 1.125rem; font-weight: 650; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 6px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  transition: transform 0.2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { max-width: 38em; margin: 0 0 20px; color: var(--muted); }

.cta { padding: clamp(64px, 9vw, 120px) 0; background: var(--navy); color: var(--on-navy); }
.cta h2 { max-width: 13em; font-size: clamp(2rem, 1.1rem + 3.4vw, 4rem); }
.cta p { max-width: 34em; margin: 20px 0 30px; color: var(--on-navy-muted); font-size: 1.1875rem; }
.cta .disclaimer { max-width: 46em; margin: 56px 0 0; font-size: 0.875rem; }

.foot { background: var(--navy-deep); color: var(--on-navy-muted); border-top: 1px solid var(--navy-line); }
.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px var(--pad) 40px;
  font-size: 0.9375rem;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--on-navy-muted); text-decoration: none; }
.foot a:hover { color: var(--on-navy); text-decoration: underline; }
.made { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.flag { width: 14px; height: 14px; border-radius: 2px; }

/* ---------- Other pages ---------- */

.doc main { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--pad) clamp(64px, 9vw, 112px); }
.doc main > * { max-width: 44rem; }
.doc h1 { max-width: 16em; margin-bottom: 20px; font-size: clamp(2.1rem, 1.2rem + 3.2vw, 3.5rem); }
.doc h2 { margin: 52px 0 12px; font-size: clamp(1.4rem, 1.05rem + 1.2vw, 1.9rem); line-height: 1.1; }
.doc h3 { margin: 28px 0 8px; }
.doc .lead { color: var(--muted); font-size: 1.25rem; line-height: 1.45; }
.doc ul, .doc ol { padding-left: 1.25em; }
.doc li { margin: 4px 0; }
.doc .panel { margin: 32px 0; padding: 6px 24px 18px; border-radius: 14px; background: var(--mist); }
.doc .panel h2 { margin-top: 22px; }
.doc details { padding: 12px 0; border-top: 1px solid var(--line); }
.doc details:last-of-type { border-bottom: 1px solid var(--line); }
.doc summary { font-weight: 650; cursor: pointer; }
.doc details p { margin: 8px 0 4px; }
.doc .sources { margin-top: 32px; color: var(--muted); font-size: 0.9375rem; }
.doc table.facts { width: 100%; border-collapse: collapse; }
.doc .facts th, .doc .facts td { padding: 10px 16px 10px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc .facts th { width: 30%; font-weight: 650; }
.doc .store { margin: 28px 0 8px; }
.doc .store-note { flex-basis: 100%; }
.doc .shots { display: flex; flex-wrap: wrap; gap: 14px; margin: 20px 0 8px; }
.doc .shots img { flex: none; width: calc(50% - 7px); max-width: 200px; height: auto; border-radius: 14px; }
.doc .shots img.icon { align-self: center; width: 120px; border-radius: 26px; }

/* ---------- Radio list (radios.html) ---------- */

.doc .finder { margin: 28px 0 0; }
.finder label { display: block; margin-bottom: 8px; font-weight: 650; }
.finder-field { position: relative; display: block; max-width: 30rem; }
.finder-field::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 15px;
  width: 18px;
  height: 18px;
  translate: 0 -50%;
  background: var(--muted);
  pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.finder input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px 10px 44px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}
.finder input::placeholder { color: var(--muted); opacity: 1; }
.finder input:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-color: transparent; }
.finder-status { min-height: 1.5em; margin: 10px 0 0; color: var(--muted); font-size: 0.9375rem; }
.no-js .finder { display: none; }

.doc main > .radio-list { max-width: 58rem; margin-top: 18px; }
.radio-brand { padding: 18px 0 20px; border-top: 1px solid var(--line); }
.radio-brand:last-child { border-bottom: 1px solid var(--line); }
.doc .radio-brand h3 { margin: 0 0 12px; font-size: 1.3125rem; font-stretch: 112%; font-weight: 720; line-height: 1.15; }
.doc .models { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.doc .models li { margin: 0; padding: 7px 12px; border-radius: 8px; background: var(--mist); font-weight: 620; line-height: 1.25; }
.models small { margin-left: 4px; color: var(--muted); font-size: 0.8125rem; font-weight: 450; }
.brand-note { margin: 12px 0 0; }
.brand-src { margin: 10px 0 0; color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
.brand-src a { color: inherit; }
.radio-brand[hidden], .doc .models li[hidden] { display: none; }
.finder-empty { margin-top: 16px; }

@media (min-width: 720px) {
  .radio-brand { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0 28px; }
  .doc .radio-brand h3 { margin: 6px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .eq span { animation: none; transform: scaleY(0.6); }
}
