@font-face {
  font-family: "Mona Sans";
  src: url("/fonts/MonaSans-latin-var.woff2?v=ee160ac4") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens: the app's warm night neutrals; dark only, because the light needs the dark ---------- */
:root {
  color-scheme: dark;
  --bg: #0c0b0a;
  --surface: #181614;
  --fill: #26231f;
  --ink: #f5f2ed;
  --ink-2: #9c958c;     /* 6.6:1 on --bg */
  --accent: #ff9f45;    /* links and actions only */
  --led-track: #26231f;
  --led-unlit: #45403a;
  --glow: #ffc78f;
  --line: rgba(245, 242, 237, 0.09);
  --g: clamp(16px, 4.4vw, 64px);  /* the page gutter */
  --f: "Mona Sans", system-ui, -apple-system, sans-serif;
}
/* the page's light (front matter `accent`): what .inlay titles glow in; the glow #ffc78f is the default */
[data-accent="#ff7a1a"] { --lc: #ff7a1a; }
[data-accent="#f2553f"] { --lc: #f2553f; }
[data-accent="#e0379b"] { --lc: #e0379b; }
[data-accent="#a24bd6"] { --lc: #a24bd6; }
[data-accent="#5b6cf0"] { --lc: #5b6cf0; }
[data-accent="#19c3e6"] { --lc: #19c3e6; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.15em; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-stretch: 125%; font-weight: 680; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
h1 {
  font-size: clamp(2.3rem, 1.2rem + 3.6vw, 4.4rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1;
}
/* the h1's faint glow needs color-mix (--glow at 22%); a browser without it gets no h1 glow */
@supports (color: color-mix(in srgb, red 50%, blue)) {
  h1 { text-shadow: 0 0 0.5em color-mix(in srgb, var(--glow) 22%, transparent); }
}
h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); }
h3 { font-size: 1.25rem; }

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(255, 159, 69, 0.32); color: var(--ink); -webkit-text-fill-color: var(--ink); }
.skip {
  position: absolute; left: 16px; top: -64px; z-index: 9; padding: 10px 14px; border-radius: 10px;
  background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- bar: brand, the menu (a <details>), the badge ---------- */
.bar { position: relative; z-index: 3; display: flex; align-items: center; gap: 28px; padding: 18px var(--g); }
.brand {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  color: var(--ink); text-decoration: none; font-stretch: 125%; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em;
}
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; padding: 8px 16px; border: 1px solid rgba(245, 242, 237, 0.18); border-radius: 999px;
  font-size: 0.9375rem; font-weight: 500;
}
.menu summary::-webkit-details-marker { display: none; }
.menu nav {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px;
  display: flex; flex-direction: column; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.menu nav a { padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.menu nav a:hover { background: var(--fill); }
/* a closed <details> hides its content; where ::details-content can undo that, the menu is an inline nav on wide
   screens, elsewhere it stays a dropdown */
@supports selector(::details-content) {
  @media (min-width: 761px) {
    .menu summary { display: none; }
    .menu::details-content { content-visibility: visible; }
    .menu nav { position: static; flex-direction: row; gap: 26px; min-width: 0; padding: 0; border: 0; background: none; box-shadow: none; }
    .menu nav a { padding: 0; color: var(--ink-2); font-size: 0.9375rem; }
    .menu nav a:hover { background: none; color: var(--ink); }
  }
}
@media (max-width: 760px) {
  .bar { gap: 16px; }
}
/* phones: the wide "Coming soon" pill never fits beside brand and menu, Apple's 120 px badge does from 375 px with
   tighter gaps; the page body carries its own badge */
@media (max-width: 479px) {
  .bar { gap: 12px; }
  .bar .badge.soon { display: none; }
}
@media (max-width: 374px) {
  .bar .badge { display: none; }
}

/* ---------- actions: the App Store badge (or "Coming soon" until release) and the outlined button ---------- */
.badge { display: inline-flex; flex: none; line-height: 0; border-radius: 8px; }
.badge img { display: block; }
.badge.soon {
  align-items: center; height: 40px; padding: 0 18px; border-radius: 999px;
  background: #000; border: 1px solid rgba(255, 255, 255, 0.3); color: #fff;
  font-size: 0.8125rem; font-weight: 600; line-height: 1; letter-spacing: -0.01em; white-space: nowrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 0.55em; height: 52px; padding: 0 22px; border-radius: 999px;
  border: 1px solid rgba(255, 159, 69, 0.38); color: var(--accent); text-decoration: none; font-weight: 500;
}
.btn:hover { background: rgba(255, 159, 69, 0.08); }

/* ---------- .inlay: the dot inlay on real text, lit in the light --lc at strength --li (0-1) ----------
   Layers, top to bottom: the LED dots, the sweep (off the text at rest, so a title reads with no animation), a soft
   gloss, a gray veil that grows as --li falls (never below 3:1 on --bg), and the lit fill. drop-shadow gives the raised
   edge and the colored bloom. Without background-clip:text it is plain text with a glow. */
.inlay { --c: var(--lc, var(--glow)); text-shadow: 0 0 0.5em var(--c); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) and (color: color-mix(in srgb, red 50%, blue)) {
  .inlay {
    --l: color-mix(in srgb, var(--c) 84%, #fff);
    --v: calc(1 - var(--li, 0.85));
    text-shadow: none; color: transparent; -webkit-text-fill-color: transparent;
    background:
      radial-gradient(circle, rgb(255 255 255 / calc(0.15 + 0.4 * var(--li, 0.85))) 0.6px, transparent 1.15px) 0 0 / 3px 3px,
      linear-gradient(100deg, transparent 40%, rgb(255 255 255 / 0.75) 50%, transparent 60%) 0 0 / 300% 100% no-repeat,
      linear-gradient(rgb(255 255 255 / 0.16), transparent 45%, rgb(0 0 0 / 0.14)),
      linear-gradient(rgb(138 131 122 / var(--v)), rgb(138 131 122 / var(--v))),
      var(--tf, linear-gradient(var(--l), var(--l)));
    -webkit-background-clip: text; background-clip: text;
    filter: drop-shadow(0 1px 0 rgb(0 0 0 / 0.7)) drop-shadow(0 0 14px color-mix(in srgb, var(--c) calc(var(--li, 0.85) * 45%), transparent));
  }
  /* site.js adds .on once a title is half in view */
  .inlay.on { animation: sweep 1.9s cubic-bezier(0.3, 0.6, 0.2, 1) both; }
}
@keyframes sweep {
  from { background-position: 0 0, 100% 0, 0 0, 0 0, 0 0; }
  to { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
}

/* ---------- text pages ---------- */
.prose { max-width: 680px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2rem); }
.prose h3 { margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--ink-2); }

/* cards: a list of pages, one row each, the whole row a link */
.cards { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.card { position: relative; padding: 28px 0; border-bottom: 1px solid var(--line); }
.card :is(h2, h3) { font-size: clamp(1.125rem, 1rem + 0.7vw, 1.5rem); line-height: 1.12; }
.card a { color: inherit; text-decoration: none; }
.card a::after { content: ""; position: absolute; inset: 0; }
.card:hover :is(h2, h3) { color: var(--accent); }
.card p { margin-top: 6px; color: var(--ink-2); font-size: 0.9375rem; }

/* questions: <details class="faq"> */
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; padding: 20px 36px 20px 0; list-style: none; cursor: pointer;
  font-stretch: 112%; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {  /* a chevron: down when closed, up when open */
  content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px;
  border: solid var(--ink-2); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg);
}
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq > :not(summary) { color: var(--ink-2); }
.faq > :not(summary) + * { margin-top: 0.8em; }
.faq > :last-child:not(summary) { padding-bottom: 20px; }

/* ---------- footer: the billboard, then the links and the notices ---------- */
/* .footer (the <footer>) is a hook only: .billboard and .foot below carry its layout */
/* The billboard is decorative: a dotted panel with a CSS-lit name, until (or unless) WebGL draws the LED wall into
   its canvas and adds .gl */
.billboard { position: relative; max-width: 1240px; margin: clamp(56px, 8vw, 112px) auto 0; padding: 56px var(--g); }
.billboard canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; visibility: hidden; }
.billboard.gl canvas { visibility: visible; }
.wall {
  position: relative; display: grid; place-items: center; height: clamp(240px, 28vw, 380px); border-radius: 28px;
  background: radial-gradient(circle, #2d2925 1.6px, transparent 2.2px) 0 0 / 8px 8px, #161412;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
}
.wall::after {
  content: "AnyGlow"; font-stretch: 125%; font-weight: 800; font-size: clamp(3rem, 1rem + 9vw, 9rem); letter-spacing: -0.03em;
  color: #ffd9b0; text-shadow: 0 0 0.3em rgba(255, 159, 69, 0.5);
}
.billboard.gl .wall { background: none; box-shadow: none; }
.billboard.gl .wall::after { content: none; }
.foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px;
  max-width: 1240px; margin: 8px auto 0; padding: 36px var(--g) 48px;
  border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.875rem;
}
.foot .brand { font-size: 1rem; }
.foot .brand img { width: 24px; height: 24px; border-radius: 6px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 24px; color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.notices { flex-basis: 100%; font-size: 0.8125rem; }
.notices p + p { margin-top: 6px; }

/* ---------- reduced motion: every CSS animation off, this file's and later ones ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}

/* ---------- home: the hero, the story chapters, pricing, works with, guides and questions ---------- */
.num { font-stretch: 125%; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; white-space: nowrap; }
:is(h1, h2, h3) .num { font-weight: inherit; letter-spacing: inherit; }
/* Mona Sans has no arrow glyph, so links draw theirs */
.arrow { flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* a lit LED dot in the light --c: the chapter's --lc, else the glow */
.led {
  --c: var(--lc, var(--glow)); display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 9px 1px var(--c);
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .led {
    background: radial-gradient(circle, color-mix(in srgb, var(--c) 45%, #fff) 0 32%, var(--c) 40% 70%, color-mix(in srgb, var(--c) 55%, #000) 82%);
    box-shadow: 0 0 10px 1px color-mix(in srgb, var(--c) 75%, transparent);
  }
}

/* hero: one screen under the 76 px bar; the scene draws the room into #heroGL, inside .room-box */
.hero { position: relative; isolation: isolate; min-height: calc(100vh - 76px); min-height: calc(100svh - 76px); }
#heroGL { position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; }
.room-box { position: absolute; left: 36%; right: 0; top: 44%; bottom: 2%; }
.status {
  position: absolute; right: var(--g); bottom: 9%; display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 13px 6px 10px; border-radius: 999px; background: rgb(12 11 10 / 0.66); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 0.8125rem;
}
.hero-copy { position: relative; padding: clamp(36px, 10vh, 104px) var(--g) 72px; }
.hero h1 { max-width: 11.4em; }
.sub { max-width: 31em; margin: 26px 0 34px; color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.fine { margin-top: 20px; color: var(--ink-2); font-size: 0.875rem; }
@media (max-width: 759.98px) {
  .hero { min-height: 0; }
  .room-box { position: relative; left: auto; right: auto; top: auto; bottom: auto; height: clamp(220px, 64vw, 380px); }
  .hero-copy { padding: 14px var(--g) 64px; }
  .status { bottom: calc(6% + 16px); }  /* above the bed strip, which sits 6% of the box's height up (hero.js's fit) */
}

/* story: the chapters scroll over the pinned stage; the scene draws the room into #stageGL, inside .stage-box */
.stage { position: relative; isolation: isolate; }
/* the first chapter pulls up over the pin, not a negative margin on the pin: sticky keeps a box's margin box inside
   the section, so a pin with margin-bottom -100vh would slide 100vh past the story's end and cover pricing */
.pin { position: sticky; top: 0; z-index: 0; height: 100vh; overflow: hidden; background: var(--bg); }
.pin + .ch { margin-top: -100vh; }
.pin canvas { display: block; width: 100%; height: 100%; }
.stage-box { position: absolute; left: 44%; right: 3%; top: 12%; bottom: 12%; }
/* each chapter's light (--lc) and its strength (--li) at rest; the scene changes them as the room changes */
[data-chapter="find"] { --lc: #fff6ec; --li: 1; }
[data-chapter="color"] { --lc: #ff7a1a; --li: 1; }
[data-chapter="evening"] { --lc: #ffb46b; --li: 0.8; }
[data-chapter="party"] { --lc: #e0379b; --li: 0.85; }
[data-chapter="car"] { --lc: #a24bd6; --li: 0.9; }
[data-chapter="alloff"] { --lc: var(--glow); --li: 0.85; --tf: linear-gradient(90deg, #ff8f3f, #f4705e, #e557ab, #b168dd, #7584f2, #3ecdea); }
.ch {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 330px) auto; column-gap: clamp(24px, 3vw, 44px);
  align-content: center; align-items: center; min-height: 100vh; max-width: calc(700px + var(--g)); padding: 10vh var(--g);
}
.ch .still { display: none; }
.k {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  color: var(--ink-2); font-size: 0.8125rem; font-stretch: 125%; font-weight: 600; letter-spacing: 0.03em;
}
.pro { padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; }
.ch h2 { font-size: clamp(1.875rem, 1.1rem + 2.1vw, 3rem); }
.cap { max-width: 30em; margin-top: 18px; color: var(--ink-2); }
.readout { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; color: var(--ink-2); font-size: 0.875rem; }
.readout .num { color: var(--ink); font-size: 1.75rem; }
.phone, .carplay {
  margin: 0; background: linear-gradient(150deg, #34302b, #121110 38%, #1f1c19);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08), 0 0 0 1px #050404, 0 50px 90px -30px #000;
}
.phone { --pw: clamp(190px, 15.5vw, 248px); position: relative; width: var(--pw); padding: 2%; border-radius: 12% / 5.6%; }
/* aspect-ratio repeats each image's width and height: with `height: auto` alone Chrome logs a "lazy-loaded images
   should have explicit dimensions" issue, which Lighthouse counts, though the attributes already reserve the box */
.phone :is(img, video) { display: block; width: 100%; height: auto; aspect-ratio: 800 / 1739; border-radius: 10.5% / 4.8%; }
.carplay { width: min(100%, 440px); padding: 7px; border-radius: 24px; }
.carplay img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 720; border-radius: 17px; }
/* the music loop's pause button (WCAG 2.2.2): a round badge on the phone's corner, shown by site.js; its icon follows
   the video's data-hold */
.loop-btn {
  position: absolute; right: -10px; bottom: -10px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid rgba(245, 242, 237, 0.18); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer;
}
.loop-btn[hidden] { display: none; }
.loop-btn:hover { background: var(--fill); }
.loop-btn:focus-visible { border-radius: 50%; }
.loop-btn svg { width: 14px; height: 14px; fill: currentColor; }
.loop-btn .i-play, [data-hold] + .loop-btn .i-pause { display: none; }
[data-hold] + .loop-btn .i-play { display: block; }
.ch--wide { grid-template-columns: minmax(0, 440px); }
.ch--wide .carplay { margin-top: 32px; }
@media (max-width: 1180px) {
  .ch { grid-template-columns: minmax(0, 360px); row-gap: 28px; }
  .ch .phone { --pw: 200px; }
}
/* still mode (reduced motion, under 760 px wide or 560 px tall): no pinned stage; each chapter shows a still frame
   above its text, and the phone overlaps the frame */
@media (prefers-reduced-motion: reduce), (max-width: 759.98px), (max-height: 559.98px) {
  .pin { display: none; }
  .ch {
    grid-template-columns: minmax(0, 1fr) clamp(128px, 33%, 250px); row-gap: 0; align-items: start;
    min-height: 0; max-width: 1000px; margin: 0 auto; padding: clamp(48px, 9vw, 88px) var(--g) 0;
  }
  .pin + .ch { margin-top: 0; }
  .ch .still {
    display: block; grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 10; border-radius: clamp(14px, 2.4vw, 24px);
    background: #0a0908; box-shadow: inset 0 0 0 1px var(--line);
  }
  .ch-text { padding-top: 26px; }
  .ch .phone { --pw: 100%; margin-top: calc(-1 * clamp(40px, 12vw, 140px)); }
  .ch--wide { grid-template-columns: minmax(0, 1fr); }
  .ch--wide .carplay { margin-top: 24px; }
}
/* the chapter's light on the stage and the still frames; without color-mix they stay dark */
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .pin { background: radial-gradient(40% 45% at 72% 55%, color-mix(in srgb, var(--lc, #ffb46b) 20%, transparent), transparent 70%), var(--bg); }
  @media (prefers-reduced-motion: reduce), (max-width: 759.98px), (max-height: 559.98px) {
    .ch .still { background: radial-gradient(45% 55% at 55% 60%, color-mix(in srgb, var(--lc) 26%, transparent), transparent 70%), #0a0908; }
  }
}

/* the sections after the story */
.sec { max-width: 1240px; margin: 0 auto; padding: clamp(96px, 13vw, 176px) var(--g) 0; }
.sec h2 { max-width: 15em; font-size: clamp(2rem, 1.1rem + 3vw, 3.75rem); }
.lead { max-width: 36em; margin-top: 22px; color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); }
.more { margin-top: 32px; }
.more a { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 500; text-decoration: none; }
.more a:hover { text-decoration: underline; }

.plans { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }
.plan { padding: 40px clamp(20px, 4vw, 56px) 0 0; }
.plan + .plan { padding: 40px 0 0 clamp(20px, 4vw, 56px); border-left: 1px solid var(--line); }
.plan h3 { display: flex; align-items: center; gap: 14px; font-size: 1.25rem; }
.leds { display: inline-flex; gap: 5px; padding: 5px 7px; border-radius: 999px; background: var(--led-track); }
.leds .led { width: 7px; height: 7px; box-shadow: none; }
.spectrum .led:nth-child(1) { --c: #ff7a1a; }
.spectrum .led:nth-child(2) { --c: #f2553f; }
.spectrum .led:nth-child(3) { --c: #e0379b; }
.spectrum .led:nth-child(4) { --c: #a24bd6; }
.spectrum .led:nth-child(5) { --c: #5b6cf0; }
.spectrum .led:nth-child(6) { --c: #19c3e6; }
.price { margin-top: 22px; color: var(--ink-2); font-size: 0.9375rem; }
.price .num {
  display: block; margin-bottom: 4px; color: var(--ink); font-size: clamp(2.75rem, 2rem + 2.4vw, 4rem); line-height: 1; letter-spacing: -0.035em;
}
.plan ul { display: grid; gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; }
.plan li { position: relative; padding-left: 22px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--glow); }
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .plan + .plan { background: radial-gradient(70% 220px at 20% 0, color-mix(in srgb, var(--glow) 7.5%, transparent), transparent); }
  .plan li::before { box-shadow: 0 0 8px color-mix(in srgb, var(--glow) 70%, transparent); }
}
.widget { display: block; width: min(100%, 364px); aspect-ratio: 728 / 339; margin-top: 34px; border-radius: 24px; box-shadow: 0 0 0 1px var(--line); }
.plan .badge { margin-top: 34px; }
.note { max-width: 40em; margin-top: 40px; color: var(--ink-2); font-size: 0.9375rem; }
@media (max-width: 759.98px) {
  .plans { grid-template-columns: 1fr; }
  .plan { padding-right: 0; }
  .plan + .plan { margin-top: 44px; padding: 40px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}

.group { margin-top: 44px; font-size: 1.0625rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.chips li {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 0.9375rem;
}
.chips li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--led-unlit); transition: background 0.25s, box-shadow 0.25s; }
.chips li:hover::before { background: var(--glow); box-shadow: 0 0 10px var(--glow); }
.also { display: grid; grid-template-columns: repeat(3, 1fr); margin: 56px 0 0; border-top: 1px solid var(--line); }
.also div { padding: 28px 28px 0 0; }
.also div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.also dt { font-stretch: 125%; font-weight: 600; letter-spacing: -0.01em; }
.also dd { margin: 8px 0 0; color: var(--ink-2); font-size: 0.9375rem; }
@media (max-width: 860px) {
  .also { grid-template-columns: 1fr; }
  .also div + div { margin-top: 28px; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

.sec .cards { margin-top: 48px; }
.faqs { max-width: 760px; margin-top: 40px; border-top: 1px solid var(--line); }

/* ---------- guides: a guide or works page (.guide), the guides index and the page cards ---------- */
.guide { max-width: calc(680px + 2 * var(--g)); padding-top: clamp(20px, 4vw, 48px); }  /* one centered reading column */
.crumbs { color: var(--ink-2); font-size: 0.875rem; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.guide h1 { max-width: 14em; margin-top: clamp(20px, 3vw, 32px); }
.byline { margin-top: 22px; color: var(--ink-2); font-size: 0.9375rem; }
.guide .prose { margin-top: clamp(32px, 4.5vw, 56px); font-size: 1.125rem; line-height: 1.65; }
.guide .prose > p:first-child { font-size: clamp(1.1875rem, 1.1rem + 0.45vw, 1.375rem); line-height: 1.5; }
.guide .prose strong { font-weight: 600; }
.guide .prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.45; }
.guide .prose :is(th, td) {
  padding: 11px 16px 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere;
}
.guide .prose th { color: var(--ink-2); font-size: 0.8125rem; font-stretch: 112%; font-weight: 600; letter-spacing: 0.02em; }
.guide .prose thead th { border-bottom-color: rgba(245, 242, 237, 0.18); }
/* the body's last h2 is its Sources */
.guide .prose h2:last-of-type + ul { color: var(--ink-2); font-size: 0.9375rem; }
/* cards inside a body (a hub's <!-- list:works -->) keep their own spacing */
.guide .prose .cards { padding-left: 0; }
.guide .prose .card { margin-top: 0; }
.guide .prose .card :is(h2, h3) { margin-top: 0; }

/* the one pointer to the app, after the manual way: the page writes <img><p><!-- badge -->, the build adds the kicker;
   the screenshot stands beside them, lit by the page's light, and the 1fr rows center the text on it */
.pointer {
  display: grid; grid-template: 1fr auto auto auto 1fr / 112px minmax(0, 1fr); column-gap: clamp(18px, 3vw, 32px);
  padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface);
}
.prose > .pointer { margin: 2.4em 0; }
/* aspect-ratio repeats the phone shots' 400 x 870, as .phone img does: without it Chrome logs a lazy-image issue (an
   `auto` fallback ratio doesn't count) */
.pointer > img {
  grid-area: 1 / 1 / 6; align-self: center; width: 100%; aspect-ratio: 400 / 870; border: 3px solid #050404; border-radius: 16px; object-fit: cover;
}
/* the CarPlay screen (class="landscape"): a wider column and its own 1200 x 720 shape */
.pointer:has(> img.landscape) { grid-template-columns: clamp(160px, 38%, 240px) minmax(0, 1fr); }
.pointer > img.landscape { aspect-ratio: 1200 / 720; border-radius: 12px; }
.pointer > .k { grid-area: 2 / 2; margin: 0; }
.pointer > p:not(.k) { grid-area: 3 / 2; margin-top: 10px; font-size: 1.0625rem; line-height: 1.5; }
.pointer > .badge { grid-area: 4 / 2; justify-self: start; margin-top: 18px; }
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .pointer { background: radial-gradient(60% 100% at 0 50%, color-mix(in srgb, var(--lc, var(--glow)) 10%, transparent), transparent), var(--surface); }
  .pointer > img { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 0 36px -6px color-mix(in srgb, var(--lc, var(--glow)) 50%, transparent); }
}

/* the closing call to action: the app icon, one line and the badge (not the home hero's .cta row) */
.closing {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px 20px; max-width: 680px;
  margin-top: clamp(56px, 8vw, 88px); padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: 24px;
  background: var(--surface);
}
.closing::before { content: ""; grid-row: 1 / 3; width: 48px; height: 48px; border-radius: 11px; background: url("/img/icon-96.png?v=a2a5ae88") 0 0 / cover; }
.closing p { font-size: 1.0625rem; line-height: 1.45; }
.closing .badge { justify-self: start; }
/* phones: the "Coming soon" pill needs the full width, so the badges move below the screenshot and the icon; the
   CarPlay screen takes the full width, between the kicker and the sentence */
@media (max-width: 479px) {
  .pointer { grid-template: 1fr auto auto 1fr auto / 84px minmax(0, 1fr); }
  .pointer > img { grid-row: 1 / 5; }
  .pointer > .badge { grid-area: 5 / 1 / 6 / 3; }
  .pointer:has(> img.landscape) { display: block; }
  .pointer > img.landscape { display: block; margin: 14px 0 18px; }
  .closing::before { grid-row: 1; }
  .closing .badge { grid-column: 1 / -1; }
}
.related { margin-top: clamp(72px, 10vw, 128px); }
.related h2 { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2rem); }
.related .cards { margin-top: 28px; }

.guides-index { padding-top: clamp(28px, 6vw, 72px); }
.guides-index > h2 { max-width: 15em; margin-top: clamp(88px, 11vw, 144px); font-size: clamp(2rem, 1.1rem + 3vw, 3.75rem); }
.guides-index .cards { margin-top: clamp(40px, 5vw, 56px); }

/* page cards (all guides, the newest three, related pages): five LEDs in the page's light, the text, an arrow */
.guide-cards .card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: clamp(20px, 3vw, 36px); align-items: center; }
.guide-cards .card > :is(h2, h3) { grid-area: 1 / 2; align-self: end; }
.guide-cards .card > p { grid-area: 2 / 2; align-self: start; max-width: 44em; }
.guide-cards .leds { grid-area: 1 / 1 / 3; }
.guide-cards .led { box-shadow: 0 0 7px var(--c); }
.guide-cards .arrow { grid-area: 1 / 3 / 3; color: var(--ink-2); }
.guide-cards .card:hover .arrow { color: var(--accent); }
:where(.card) { --lc: var(--glow); }  /* a card wears its own page's light, never the listing page's; [data-accent] wins */
@media (max-width: 759.98px) {
  .guide-cards .card { grid-template-columns: minmax(0, 1fr) auto; row-gap: 14px; }
  .guide-cards .leds { grid-area: 1 / 1; justify-self: start; }
  .guide-cards .arrow { grid-area: 1 / 2; }
  .guide-cards .card > :is(h2, h3) { grid-area: 2 / 1 / 3 / 3; }
  .guide-cards .card > p { grid-area: 3 / 1 / 4 / 3; }
}

/* ---------- scene: the room still under the hero canvas, which fades in over it (hero.js) ---------- */
/* The still is the settled room in a square 11 room units wide, centered on .room-box at the scale hero.js fits the
   room in: min(box height / 5.2, box width / 7.6) px per unit. So the square's side is 11 / 7.6 of the box's width or
   11 / 5.2 of its height, whichever is smaller: `contain` in a box of both sizes, centered on .room-box. It is what
   shows without WebGL; change it with hero.js's layout() and recapture it (README, "Where the assets come from"). */
.hero { overflow: hidden; overflow: clip; }
.hero::before {
  content: ""; position: absolute; z-index: -2;
  left: calc(68% - 32% * 11 / 7.6); top: calc(71% - 27% * 11 / 5.2); width: calc(64% * 11 / 7.6); height: calc(54% * 11 / 5.2);
  background: url("/img/room-still-800.webp?v=3eb4e41a") 50% 50% / contain no-repeat;
  background-image: image-set(url("/img/room-still-800.webp?v=3eb4e41a") 1x, url("/img/room-still-1600.webp?v=21bcd4a1") 2x);
}
@media (max-width: 759.98px) {
  /* .room-box is in the flow on phones: full width, clamp(220px, 64vw, 380px) tall, at the hero's top */
  .hero::before {
    left: calc(50% - 50% * 11 / 7.6); width: calc(100% * 11 / 7.6);
    top: calc(clamp(220px, 64vw, 380px) * (1 - 11 / 5.2) / 2); height: calc(clamp(220px, 64vw, 380px) * 11 / 5.2);
  }
}
#heroGL { opacity: 0; transition: opacity 0.6s ease; }
#heroGL.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  #heroGL { transition: none; }
}
/* .lit: WebGL draws this title (inlay.js hideText), so its HTML text turns transparent and stays selectable. It fades
   out over the lit title already drawn beneath it; it comes back at once (no transition without .lit). */
h1.lit { color: transparent; text-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  h1.lit { transition: color 0.3s, text-shadow 0.3s; }
}
/* the story stage's canvas fades in over the stage's CSS light after its first frame (stage.js), and back out when
   its context is lost */
#stageGL { opacity: 0; transition: opacity 0.6s ease; }
#stageGL.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  #stageGL { transition: none; }
}
/* the inner pages' lit H1 (title.js): an opaque canvas in --bg under the page's text (z-index -1; the h1 makes no
   stacking context), the texture's pad beyond the h1 on every side (--pad, --tw, --th); main clips the pad at the
   page's edges, so it never scrolls sideways. It fades in after its first frame and goes at once when its context is
   lost. */
main { overflow-x: clip; }
main h1 { position: relative; }
.title-gl {
  position: absolute; left: calc(-1 * var(--pad, 0px)); top: calc(-1 * var(--pad, 0px)); z-index: -1;
  width: var(--tw, 0px); height: var(--th, 0px); opacity: 0; pointer-events: none;
}
.title-gl.on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .title-gl.on { transition: opacity 0.6s ease; }
}
