/* ==========================================================================
   Site styles. No external fonts: Segoe UI Variable on Windows (the
   audience), the platform's own UI face elsewhere.
   ========================================================================== */

:root {
  color-scheme: dark light;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, "SF Mono", Menlo, monospace;

  /* Stone (warm graphite) with the Lagoon accent */
  --bg: #141312;
  --bg-2: #1b1a18;
  --bg-3: #22201e;
  --bg-4: #2b2926;
  --line: rgb(255 255 255 / .08);
  --line-2: rgb(255 255 255 / .14);
  --text: #f2f0ec;
  --text-2: #a8a39b;
  --accent: #3ccfb8;
  --accent-text: #93e6d7;
  --on-accent: #141312;
  --focus: #3ccfb8;
  --shadow: 0 1px 0 rgb(255 255 255 / .04) inset, 0 24px 60px -24px rgb(0 0 0 / .7);

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  /* dock rendition defaults (overridden per style and per stage) */
  --u: 1px;
  --acc-d: #0a84ff; --acc-l: #007aff;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f3f4;
    --bg-2: #ffffff;
    --bg-3: #e9e9eb;
    --bg-4: #dfdfe2;
    --line: rgb(0 0 0 / .09);
    --line-2: rgb(0 0 0 / .16);
    --text: #1b1a18;
    --text-2: #5b5b60;
    --accent: #0a7266;
    --accent-text: #0b5a51;
    --on-accent: #ffffff;
    --focus: #0a7266;
    --shadow: 0 24px 60px -28px rgb(40 30 20 / .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
/* data-if / data-unless blocks (see site.config.js, `selling`) are hidden
   with the hidden attribute; no class may show one again. */
[hidden] { display: none !important; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: var(--r-md);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--text-2); font-size: 15px; padding: 10px 10px; border-radius: var(--r-md); }
.nav a:hover { color: var(--text); background: var(--bg-3); }
.nav a[aria-current="page"] { color: var(--text); }
.nav .btn { margin-left: 8px; color: var(--on-accent); }
.nav .btn:hover { color: var(--on-accent); background: var(--accent); filter: brightness(1.08); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: var(--r-md); height: 44px; padding: 0 14px; font: inherit; font-size: 15px; cursor: pointer; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
         background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 17px; }
  .nav .btn { margin: 8px 0 0; text-align: center; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 10px 18px;
  border-radius: var(--r-md); border: 1px solid transparent;
  font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: filter .15s ease, background-color .15s ease, transform .12s cubic-bezier(.3, 0, .2, 1);
}
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-secondary:hover { background: var(--bg-3); }
.btn-lg { min-height: 52px; padding: 14px 22px; font-size: 17px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { color: var(--text-2); font-size: 15px; margin-top: 14px; }

/* ---------- Hero ----------
   One picture: the name set from edge to edge, the bar floating over it,
   the facts in the corners and the rest left empty. */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 48px; }
.hero h1 { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.15; letter-spacing: -0.02em; }
.hero-lede { margin: 0; max-width: 27em; color: var(--text-2); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.45; }
@media (min-width: 760px) { .hero-lede { text-align: right; } }

.hero-stage { position: relative; container-type: inline-size; margin: clamp(44px, 9vw, 120px) 0 clamp(48px, 9vw, 124px); }
/* one shape behind the name: a bowl of light with a hard rim, cut by the page edge */
.hero-stage::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; bottom: -8.5cqw; width: 132cqw; height: 74cqw; transform: translateX(-50%);
  border-radius: 50%;
  box-shadow:
    inset 0 -1.5px 0 0 color-mix(in srgb, var(--text) 78%, var(--accent)),
    inset 0 -2.2cqw 3cqw -1.6cqw color-mix(in srgb, var(--accent) 70%, transparent),
    inset 0 -9cqw 9cqw -7cqw color-mix(in srgb, var(--accent) 26%, transparent);
  -webkit-mask-image: linear-gradient(to top, #000 22%, transparent 78%);
  mask-image: linear-gradient(to top, #000 22%, transparent 78%);
}
.hero-name { line-height: 0; white-space: nowrap; text-align: center; -webkit-user-select: none; user-select: none; }
.hero-name span {
  display: inline-block; line-height: 1; padding: 0 .035em 0 0; margin: -.15em 0 -.12em; /* the box is the capitals, and no letter is cut */
  font-family: var(--display); font-weight: 700; font-size: 33cqw; /* main.js fits it to the width */
  letter-spacing: -0.045em; text-transform: uppercase;
  /* lit from above */
  color: var(--text);
  background: linear-gradient(176deg, var(--text) 34%, color-mix(in srgb, var(--text) 42%, var(--bg)) 96%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-dock {
  --u: calc(100cqw / 1010);
  left: 50%; top: 57%; transform: translate(-50%, -50%);
  /* the same light: a rim, and a shadow that falls on the letters behind */
  box-shadow: inset 0 0 0 max(1px, calc(1 * var(--u))) var(--bb),
    0 calc(5 * var(--u)) calc(12 * var(--u)) rgb(0 0 0 / .32),
    0 calc(34 * var(--u)) calc(52 * var(--u)) calc(-14 * var(--u)) rgb(0 0 0 / .72);
  transition: transform .7s cubic-bezier(.22, 1.28, .36, 1), opacity .3s ease;
}
.hero-dock.is-hidden { opacity: 0; transform: translate(-50%, calc(-50% + 34 * var(--u))); }
@media (max-width: 720px) {
  .hero-dock { --u: calc(100cqw / 590); }
  .hero-dock .wide-only { display: none; }
}

.hero-foot { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: end; }
.hero-specs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 14px; line-height: 1.4; color: var(--text-2); }
.hero-specs b { display: block; color: var(--text); font-weight: 600; font-size: 15px; }
.hero-buy { display: grid; justify-items: center; gap: 12px; }
.cta-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
  padding: 7px; border-radius: 15px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  box-shadow: inset 0 0 0 1px var(--line-2);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
}
@media (max-width: 480px) { .cta-price { flex-basis: 100%; text-align: center; padding-top: 6px; } }
.cta-price { padding: 0 12px 0 14px; color: var(--text-2); font-size: 15px; white-space: nowrap; }
.cta-price b { color: var(--text); font-weight: 600; font-size: 17px; }
.price-line { font-size: 14px; color: var(--text-2); margin: 0; text-align: center; max-width: 34em; }
@media (min-width: 900px) {
  .hero-foot { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 40px; }
  .hero-specs.right { text-align: right; }
}
@media (max-width: 899px) {
  .hero-specs { grid-template-columns: 1fr 1fr; gap: 14px 24px; }
  .hero-buy { order: -1; }
}

/* The desk: two monitors drawn in CSS */
.desk { position: relative; margin-bottom: clamp(56px, 8vw, 104px); }
.desk-row { display: flex; align-items: flex-end; justify-content: center; gap: clamp(14px, 2.4vw, 32px); }
.monitor { position: relative; flex: none; }
.monitor-main { width: min(64%, 780px); }
.monitor-side { width: min(34%, 410px); }
.screen {
  position: relative; overflow: hidden; container-type: inline-size;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background-color: #222; background-position: center; background-size: cover; background-repeat: no-repeat;
  box-shadow: 0 0 0 clamp(4px, .6vw, 8px) #0d0c0b, 0 0 0 calc(clamp(4px, .6vw, 8px) + 1px) rgb(255 255 255 / .08), 0 40px 80px -30px rgb(0 0 0 / .75);
}
.wall-dune { background-image: url("../img/wall-dune.svg"); }
.wall-tide { background-image: url("../img/wall-tide.svg"); }
.wall-ridge { background-image: url("../img/wall-ridge.svg"); }
.stand { width: 18%; height: clamp(16px, 2.6vw, 34px); margin: clamp(6px, .8vw, 9px) auto 0; background: linear-gradient(#2a2724, #1a1816); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); border-radius: 0 0 4px 4px; }
.monitor-caption { margin-top: 14px; font-size: 14px; color: var(--text-2); text-align: center; line-height: 1.4; }
.monitor-caption b { color: var(--text); font-weight: 600; display: block; }
@media (max-width: 640px) {
  .desk-row { flex-direction: column; align-items: center; gap: 28px; }
  .monitor-main, .monitor-side { width: 100%; }
  .monitor-side { width: 78%; }
}

/* ---------- Generic section ---------- */
.section { padding: clamp(72px, 10vw, 136px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 18px; }
.section-head p { color: var(--text-2); font-size: clamp(17px, 1.6vw, 19px); max-width: 38em; }
.split { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .split.flip > :first-child { order: 2; } }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.facts li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--text-2); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts b { color: var(--text); font-weight: 600; display: block; margin-bottom: 2px; }
.lead-in { font-size: 19px; line-height: 1.55; color: var(--text-2); }
.lead-in strong { color: var(--text); font-weight: 600; }

/* Stage: a panel that holds a drawn demo */
.stage {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background-color: #2a2a2a; background-position: center; background-size: cover; background-repeat: no-repeat;
  box-shadow: var(--shadow);
}

/* Media slots: real screenshots or video replace the drawn demo when set in site.config.js */
.media-slot > .media-real { display: block; width: 100%; height: auto; border-radius: inherit; }
.media-slot.has-media > :not(.media-real) { display: none !important; }

/* ---------- Widget index (the 116) ---------- */
.big-bar-wrap { overflow-x: auto; overflow-y: hidden; padding: clamp(28px, 4vw, 48px) clamp(16px, 3vw, 40px); scrollbar-width: thin; }
.big-bar-wrap .dock { position: relative; margin: 0 auto; width: max-content; }
.screen .dock, .screen .flyout { --u: calc(100cqw / 1000); }
.monitor-side .screen .dock { --u: calc(100cqw / 800); }
.big-bar-stage { --u: .9px; }
@media (max-width: 1100px) { .big-bar-stage { --u: .8px; } }
@media (max-width: 700px)  { .big-bar-stage { --u: .74px; } }
.scroll-hint { display: none; font-size: 14px; color: var(--text-2); margin-top: 10px; }
@media (max-width: 1000px) { .scroll-hint { display: block; } }

.families { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 32px; margin-top: clamp(40px, 5vw, 64px); }
.family { padding: 18px 0 20px; border-top: 1px solid var(--line); }
.family h3 { font-size: 17px; letter-spacing: -0.01em; margin-bottom: 6px; }
.family p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.5; }

/* ---------- Edge demo ---------- */
.edge-stage { aspect-ratio: 16 / 10; container-type: inline-size; }
.edge-stage .dock { --u: calc(100cqw / 820); }
.controls { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 22px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 3px; gap: 2px; background: var(--bg-2); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 9px 16px; border-radius: 5px; font-size: 15px; cursor: pointer; color: var(--text-2); user-select: none; }
.seg input:checked + label { background: var(--bg-4); color: var(--text); font-weight: 600; }
.seg input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 1px; }
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; color: var(--text); }
.switch input { appearance: none; -webkit-appearance: none; width: 40px; height: 22px; border-radius: 11px; background: var(--bg-4); border: 1px solid var(--line-2); position: relative; cursor: pointer; margin: 0; transition: background-color .15s ease; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--text-2); transition: transform .15s ease, background-color .15s ease; }
.switch input:checked { background: var(--accent); border-color: var(--accent); }
.switch input:checked::after { transform: translateX(18px); background: var(--on-accent); }
.edge-hint { font-size: 14px; color: var(--text-2); min-height: 1.4em; margin: 10px 0 0; }

/* ---------- Script + routines ---------- */
.code-card { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; box-shadow: var(--shadow); }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.code-head b { color: var(--text); font-weight: 600; }
.code-card pre { margin: 0; padding: 16px; font: 14px/1.6 var(--mono); color: var(--text); overflow-x: auto; white-space: pre; }
.code-card pre .c { color: var(--text-2); }
.code-out { display: flex; align-items: center; gap: 16px; padding: 18px 16px; border-top: 1px solid var(--line); background: var(--bg-3); flex-wrap: wrap; }
.code-out span { font-size: 14px; color: var(--text-2); }
.routine { margin-top: 20px; }
.routine ol { margin: 0; padding: 4px 16px 16px 40px; font-size: 15px; }
.routine li { padding: 6px 0; color: var(--text); }
.routine li span { color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 16px 4px; }
.chip { font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); }
.chip b { color: var(--text); font-weight: 600; }

/* ---------- Style switcher ---------- */
.styler { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .styler { grid-template-columns: minmax(0, 8fr) minmax(300px, 4fr); align-items: start; } }
.styler-stage { aspect-ratio: 16 / 9; container-type: inline-size; display: flex; align-items: flex-end; justify-content: center; }
.styler-stage .dock { --u: calc(100cqw / 680); position: absolute; left: 50%; bottom: calc(18 * var(--u)); transform: translateX(-50%); }
.styler-stage .flyout { --u: calc(100cqw / 680); }
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); padding: 20px; }
.panel fieldset { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.panel fieldset:last-child { margin-bottom: 0; }
.panel legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; }
.style-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.style-opt { position: relative; }
.style-opt input { position: absolute; opacity: 0; pointer-events: none; }
.style-opt label { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; color: var(--text-2); }
.style-opt .sw { width: 100%; aspect-ratio: 1.3; border-radius: 8px; border: 1px solid var(--line-2); position: relative; overflow: hidden; background: url("../img/wall-ridge.svg") center / cover; }
.style-opt .sw i { position: absolute; left: 12%; right: 12%; bottom: 18%; height: 30%; border-radius: 4px; }
.style-opt input:checked + label { color: var(--text); font-weight: 600; }
.style-opt input:checked + label .sw { outline: 2px solid var(--accent); outline-offset: 2px; }
.style-opt input:focus-visible + label .sw { outline: 2px solid var(--focus); outline-offset: 2px; }
.accent-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.accent-opt input { position: absolute; opacity: 0; pointer-events: none; }
/* the target reaches past the dot, into the gaps */
.accent-opt label::after { content: ""; position: absolute; inset: -4px; }
.accent-opt label { position: relative; display: block; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .2); }
.accent-opt input:checked + label { outline: 2px solid var(--text); outline-offset: 2px; }
.accent-opt input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 3px; }
.hex-row { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.hex-row label { font-size: 14px; color: var(--text-2); }
.hex-row input[type="text"] { width: 112px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: 14px var(--mono); padding: 0 10px; }
.hex-row input[type="color"] { width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 2px; background: var(--bg); cursor: pointer; }
.range { width: 100%; height: 32px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); }
.panel-note { font-size: 14px; color: var(--text-2); margin: 8px 0 0; min-height: 2.8em; }

/* ---------- Designs gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.design {
  text-align: left; font: inherit; color: inherit; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2);
  padding: 0; overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s ease, transform .12s cubic-bezier(.3, 0, .2, 1);
}
.design:active { transform: scale(.985); }
.design:hover { border-color: var(--line-2); }
.design[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.design-prev { aspect-ratio: 16 / 7; position: relative; container-type: inline-size; background-position: center; background-size: cover; background-repeat: no-repeat; }
.design-prev .dock { --u: calc(100cqw / 330); position: absolute; left: 50%; bottom: calc(12 * var(--u)); transform: translateX(-50%); }
.design-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 14px 14px; }
.design-meta b { font-weight: 600; }
.design-meta span { font-size: 14px; color: var(--text-2); }
.design-dots { display: flex; gap: 4px; }
.design-dots i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(128 128 128 / .45); }
.gallery-foot { margin-top: 18px; font-size: 15px; color: var(--text-2); }

/* ---------- Native ---------- */
.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 40px; }
.spec div { padding: 22px 0; border-top: 1px solid var(--line); }
.spec h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -0.01em; }
.spec p { color: var(--text-2); margin: 0; font-size: 16px; }
.spec code, .prose code { font: .92em var(--mono); background: var(--bg-3); padding: 1px 5px; border-radius: 4px; color: var(--text); }

/* ---------- Pricing ---------- */
.pricing { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .pricing { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; } }
.price-block { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-2); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.price-figure { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price-figure .amount { font-family: var(--display); font-weight: 600; font-size: clamp(64px, 9vw, 104px); line-height: 1; letter-spacing: -0.05em; }
.price-figure .per { font-size: 17px; color: var(--text-2); }
.price-launch { margin: 14px 0 0; font-size: 16px; color: var(--text); }
.price-launch[hidden] { display: none; }
.price-launch s { color: var(--text-2); }
.price-terms { list-style: none; padding: 0; margin: 26px 0 28px; }
.price-terms li { padding: 10px 0 10px 30px; position: relative; border-top: 1px solid var(--line); }
.price-terms li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.price-small { font-size: 14px; color: var(--text-2); margin: 18px 0 0; }
.price-side h3 { font-size: 21px; margin-bottom: 10px; }
.price-side p { color: var(--text-2); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 20px 0 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 44px; color: var(--text-2); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--text); }
.steps b { color: var(--text); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 27px; width: 9px; height: 9px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg); transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq .answer { padding: 0 0 22px; color: var(--text-2); max-width: 46em; }
.faq .answer p:last-child, .faq .answer ol:last-child { margin-bottom: 0; }
.faq .answer b, .faq .answer strong { color: var(--text); }
.faq [hidden] { display: none; }

/* ---------- Final call ---------- */
.final { text-align: left; }
.final h2 { font-size: clamp(40px, 6.5vw, 88px); line-height: .98; letter-spacing: -0.045em; max-width: 12ch; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: 15px; color: var(--text-2); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: 15px; font-family: var(--font); letter-spacing: 0; color: var(--text); margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 0; }
.site-footer li a { display: inline-block; padding: 7px 0; }
@media (pointer: coarse) { .site-footer li a { padding: 12px 0; } }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }

/* ---------- Prose pages (legal, changelog) ---------- */
.page-head { padding: clamp(48px, 8vw, 96px) 0 24px; }
.page-head h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -0.04em; margin-bottom: 16px; }
.page-head p { color: var(--text-2); font-size: 18px; max-width: 40em; }
.prose { max-width: 720px; padding-bottom: 96px; }
.prose h2 { font-size: 26px; letter-spacing: -0.02em; margin: 48px 0 12px; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin: 6px 0; }
.prose a { color: var(--accent-text); }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.prose th { color: var(--text); font-weight: 600; }
.prose pre { margin: 8px 0 20px; padding: 16px; font: 13px/1.6 var(--mono); color: var(--text-2); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); overflow-x: auto; white-space: pre; }
.table-scroll { overflow-x: auto; }
.draft-note {
  border: 1px solid #c58a1e; background: color-mix(in srgb, #c58a1e 12%, var(--bg));
  border-radius: var(--r-md); padding: 16px 18px; margin: 0 0 32px; color: var(--text);
}
.draft-note strong { display: block; margin-bottom: 4px; }
.release { padding: 32px 0; border-top: 1px solid var(--line); }
.release h2 { margin: 0 0 4px; font-size: 30px; }
.release time { color: var(--text-2); font-size: 15px; }
.release h3 { margin-top: 22px; }

/* ==========================================================================
   The dock rendition. Sizes in dock units (--u = one device-independent
   pixel of the real bar). Proportions and colours from src/widget.rs and
   src/theme.rs: bar 54, padding 3, cells 48 with radius 17.6 and a 1.33
   rim, gap 4, bar radius 8.
   ========================================================================== */
.dock {
  position: absolute;
  display: flex; align-items: center; gap: calc(4 * var(--u));
  padding: calc(3 * var(--u));
  height: calc(54 * var(--u));
  border-radius: calc(8 * var(--u));
  background:
    linear-gradient(to bottom, var(--sheen), transparent 45%, transparent 55%, var(--shade)),
    rgb(var(--bar-rgb) / var(--bar-a));
  box-shadow: inset 0 0 0 max(1px, calc(1 * var(--u))) var(--bb);
  color: var(--tx);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: transform .15s cubic-bezier(.25, .46, .45, .94), opacity .15s ease;
  -webkit-user-select: none; user-select: none;
}
.dock.glass { backdrop-filter: blur(calc(30 * var(--u))) saturate(1.5); -webkit-backdrop-filter: blur(calc(30 * var(--u))) saturate(1.5); }
.dock.is-vertical { flex-direction: column; height: auto; width: calc(54 * var(--u)); }

/* Styles (src/theme.rs) */
.st-black    { --bar-rgb: 11 11 12;    --bar-a: 1;   --bb: rgb(255 255 255 / .10); --sheen: rgb(255 255 255 / .03); --shade: rgb(0 0 0 / .20); --cell-rgb: 30 30 33;    --cell-a: 1;   --cb: rgb(255 255 255 / .09); --track: rgb(255 255 255 / .14); --tx: #f5f5f7; --tx2: #a1a1aa; --accent: var(--acc-d); --good: #30d158; --warn: #ff9f0a; --crit: #ff453a; --card-rgb: 22 22 24;   --card-a: 1; }
.st-white    { --bar-rgb: 255 255 255; --bar-a: 1;   --bb: rgb(0 0 0 / .12);       --sheen: rgb(255 255 255 / 0);   --shade: rgb(0 0 0 / .03); --cell-rgb: 242 242 245; --cell-a: 1;   --cb: rgb(0 0 0 / .07);       --track: rgb(0 0 0 / .10);       --tx: #1c1c1e; --tx2: #5e5e66; --accent: var(--acc-l); --good: #248a3d; --warn: #b25000; --crit: #d70015; --card-rgb: 255 255 255; --card-a: 1; }
.st-liquid   { --bar-rgb: 18 18 20;    --bar-a: .58; --bb: rgb(255 255 255 / .12); --sheen: rgb(255 255 255 / .06); --shade: rgb(0 0 0 / .26); --cell-rgb: 0 0 0;       --cell-a: .24; --cb: rgb(255 255 255 / .13); --track: rgb(255 255 255 / .14); --tx: #f5f5f7; --tx2: #b4b4bc; --accent: var(--acc-d); --good: #30d158; --warn: #ff9f0a; --crit: #ff453a; --card-rgb: 20 20 22;   --card-a: .70; }
.st-frosted  { --bar-rgb: 244 244 248; --bar-a: .58; --bb: rgb(255 255 255 / .55); --sheen: rgb(255 255 255 / .22); --shade: rgb(0 0 0 / .05); --cell-rgb: 255 255 255; --cell-a: .38; --cb: rgb(255 255 255 / .60); --track: rgb(0 0 0 / .12);       --tx: #111113; --tx2: #3a3a40; --accent: var(--acc-l); --good: #248a3d; --warn: #b25000; --crit: #d70015; --card-rgb: 247 247 250; --card-a: .82; }
.st-midnight { --bar-rgb: 7 9 18;      --bar-a: .80; --bb: rgb(255 255 255 / .08); --sheen: rgb(255 255 255 / .03); --shade: rgb(0 0 0 / .25); --cell-rgb: 255 255 255; --cell-a: .06; --cb: rgb(255 255 255 / .08); --track: rgb(255 255 255 / .13); --tx: #f2f3f7; --tx2: #a3a7b5; --accent: var(--acc-d); --good: #30d158; --warn: #ff9f0a; --crit: #ff453a; --card-rgb: 10 12 22;   --card-a: .88; }

/* Placement on a screen; the floating margin is 6 */
.at-bottom { left: 50%; bottom: calc(6 * var(--u)); transform: translateX(-50%); }
.at-top    { left: 50%; top: calc(6 * var(--u));    transform: translateX(-50%); }
.at-left   { top: 50%; left: calc(6 * var(--u));   transform: translateY(-50%); }
.at-right  { top: 50%; right: calc(6 * var(--u));  transform: translateY(-50%); }
.at-bottom.is-hidden { transform: translate(-50%, calc(100% + 12 * var(--u))); }
.at-top.is-hidden    { transform: translate(-50%, calc(-100% - 12 * var(--u))); }
.at-left.is-hidden   { transform: translate(calc(-100% - 12 * var(--u)), -50%); }
.at-right.is-hidden  { transform: translate(calc(100% + 12 * var(--u)), -50%); }

/* Cells */
.cell {
  flex: none; display: flex; align-items: center; gap: calc(8 * var(--u));
  height: calc(48 * var(--u)); min-width: calc(48 * var(--u));
  padding: 0 calc(12 * var(--u));
  border-radius: calc(17.6 * var(--u));
  background: rgb(var(--cell-rgb) / var(--cell-a));
  box-shadow: inset 0 0 0 calc(1.33 * var(--u)) var(--cb);
}
.cell.sq { padding: 0; justify-content: center; width: calc(48 * var(--u)); }
.is-vertical .cell { width: calc(48 * var(--u)); padding: calc(6 * var(--u)) 0; height: auto; min-height: calc(48 * var(--u)); flex-direction: column; justify-content: center; gap: calc(4 * var(--u)); }
.is-vertical .h-only { display: none !important; }
.v-only { display: none !important; }
.is-vertical .v-only { display: flex !important; }

.t-primary { font-size: calc(13 * var(--u)); font-weight: 600; line-height: 1.15; }
.t-secondary { font-size: calc(11 * var(--u)); color: var(--tx2); line-height: 1.2; }
.t-big { font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; font-size: calc(16 * var(--u)); font-weight: 700; line-height: 1.1; }
.t-tiny { font-size: calc(8 * var(--u)); font-weight: 700; color: var(--tx2); letter-spacing: .04em; }
.stack { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.stack.center { align-items: center; text-align: center; }
.glyph { width: calc(18 * var(--u)); height: calc(18 * var(--u)); color: var(--tx); flex: none; }
.glyph-sm { width: calc(14 * var(--u)); height: calc(14 * var(--u)); color: var(--tx2); flex: none; }

/* App icons: generic shapes, no real app marks */
.apps { gap: calc(6 * var(--u)); padding: 0 calc(8 * var(--u)); }
.is-vertical .apps { gap: calc(6 * var(--u)); padding: calc(8 * var(--u)) 0; }
.app { position: relative; width: calc(30 * var(--u)); height: calc(30 * var(--u)); border-radius: calc(8 * var(--u)); flex: none; display: grid; place-items: center; }
.app svg { width: 58%; height: 58%; }
.app.run::after { content: ""; position: absolute; left: 50%; bottom: calc(-6 * var(--u)); width: calc(4 * var(--u)); height: calc(4 * var(--u)); margin-left: calc(-2 * var(--u)); border-radius: 50%; background: var(--accent); }
.is-vertical .app.run::after { left: auto; right: calc(-7 * var(--u)); bottom: 50%; margin: 0 0 calc(-2 * var(--u)); }
.ap-1 { background: linear-gradient(145deg, #5a8dee, #2f5bd3); }
.ap-2 { background: linear-gradient(145deg, #f0b44c, #e07b2e); }
.ap-3 { background: linear-gradient(145deg, #3fbf8f, #1f8a6a); }
.ap-4 { background: linear-gradient(145deg, #e8e6e1, #b9b5ad); }
.ap-5 { background: linear-gradient(145deg, #e25b6a, #b3324a); }
.ap-6 { background: linear-gradient(145deg, #4b4f58, #2b2e34); }

/* Now playing */
.art { width: calc(36 * var(--u)); height: calc(36 * var(--u)); border-radius: calc(10 * var(--u)); flex: none;
  background: radial-gradient(circle at 30% 30%, #ffd59a 0 18%, transparent 19%), radial-gradient(circle at 70% 75%, #1b6f78 0 30%, transparent 31%), linear-gradient(150deg, #e2694a, #6d2a52); }
.art.b { background: radial-gradient(circle at 65% 35%, #f4f1e6 0 14%, transparent 15%), linear-gradient(200deg, #2c6a8a 0 45%, #123247 46%); }
.np-text { width: calc(118 * var(--u)); overflow: hidden; }
.np-text .t-primary, .np-text .t-secondary { overflow: hidden; text-overflow: ellipsis; }
.progress { height: calc(3 * var(--u)); border-radius: calc(2 * var(--u)); background: var(--track); margin-top: calc(5 * var(--u)); overflow: hidden; }
.progress i { display: block; height: 100%; width: 38%; background: var(--accent); border-radius: inherit; }

/* Rings */
.rings { gap: calc(6 * var(--u)); padding: 0 calc(8 * var(--u)); }
.is-vertical .rings { padding: calc(6 * var(--u)) 0; gap: calc(6 * var(--u)); }
.ring { position: relative; width: calc(38 * var(--u)); height: calc(38 * var(--u)); flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .trk { stroke: var(--track); }
.ring .arc { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.33, 0, .1, 1); }
.ring .arc.warm { stroke: var(--warn); }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ring-label .v { font-size: calc(11 * var(--u)); font-weight: 700; }
.ring-label .k { font-size: calc(7 * var(--u)); font-weight: 700; color: var(--tx2); margin-top: calc(2 * var(--u)); }

/* Weather sun/cloud */
.wx { width: calc(26 * var(--u)); height: calc(26 * var(--u)); flex: none; }

/* Script widget */
.script-dot { width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 50%; background: var(--good); flex: none; }

/* Flyout (calendar card above the bar) */
.flyout {
  position: absolute; border-radius: calc(8 * var(--u));
  background: rgb(var(--card-rgb) / var(--card-a));
  box-shadow: inset 0 0 0 max(1px, calc(1 * var(--u))) var(--bb);
  color: var(--tx); padding: calc(14 * var(--u)); width: calc(220 * var(--u));
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  backdrop-filter: blur(calc(30 * var(--u))) saturate(1.5); -webkit-backdrop-filter: blur(calc(30 * var(--u))) saturate(1.5);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
