/* home.css — the home page only (public/index.html), the dark "Electric Signal" design the owner
   approved on 2026-10-12. Every other page keeps site.css and its light design; the two sheets share
   nothing, so neither can restyle the other's pages.

   Colours are docs/design/tokens.md's dark column and Electric Signal layer, plus the values listed
   there under "Website home page". The hexes inside the device, window, menu-bar and pen rules are
   illustration colours, not UI roles.

   The motion (hero loop, colour wave, timeline, glows) is driven by assets/home.js and this sheet;
   every loop stops under prefers-reduced-motion. */

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

/* ===== Tokens ===== */
:root {
  --bg: #05070d;
  --text: #e6edef;
  --muted: #9fb0b4;
  --accent: #2bd4db;
  --on-accent: #04363a;
  --tip: #b8fff9;
  --indigo: #4c5eff;
  --indigo-soft: #8f9bff;
  --accent-hi: #7ff0f2;
  --text-soft: #c3d0d3;
  --hair: rgba(184, 255, 249, .10);
  --pill: 999px;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --ease-emph: cubic-bezier(.3, 0, 0, 1);
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 3vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* The hero aurora and the section glows reach past a phone-width viewport. Clipped on both the root
   and body: clip, unlike hidden, makes neither a scroll container, so the sticky header still sticks. */
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--tip); }
:focus-visible { outline: 2px solid var(--tip); outline-offset: 3px; border-radius: 6px; }
h1, p { margin: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed !important; top: 12px; left: 12px; width: auto; height: auto; clip: auto;
  margin: 0; padding: 10px 16px; z-index: 100; background: var(--accent); color: var(--on-accent);
  border-radius: 8px; font-weight: 700;
}
.wrap { width: min(1360px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--pill);
  font: 700 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.btn-primary {
  color: var(--on-accent);
  background: linear-gradient(180deg, var(--accent-hi) 0%, var(--accent) 100%);
  box-shadow: 0 0 0 1px rgba(184,255,249,.6) inset, 0 8px 30px -6px rgba(43,212,219,.7), 0 0 60px -10px rgba(43,212,219,.6);
}
.btn-primary:hover { color: var(--on-accent); transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(184,255,249,.8) inset, 0 12px 40px -6px rgba(43,212,219,.85), 0 0 80px -6px rgba(43,212,219,.7); }
/* The download arrow is drawn here, not in the markup: publish-release.sh rewrites the Download
   buttons from the signed feed as a plain <a class="btn btn-primary" … download>. */
.btn-primary[download]::before {
  content: ""; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 3v10m0 0l-4-4m4 4l4-4M4 16h12' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%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 20 20'%3E%3Cpath d='M10 3v10m0 0l-4-4m4 4l4-4M4 16h12' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(var(--gutter), calc((100% - 1360px) / 2));
  background: rgba(5, 7, 13, .62);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--hair);
}
.site-mark { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.site-mark img { width: 28px; height: 28px; filter: drop-shadow(0 0 8px rgba(43,212,219,.6)); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: var(--pill); }
.nav a:not(.btn):hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav .btn { min-height: 40px; padding: 0 18px; font-size: 14px; margin-left: 6px; }

/* The language menu at the end of the nav, written by scripts/l10n.py on every page: a native
   <details>, so it opens and works with scripting blocked (lang-menu.js only closes it on an outside
   click or Escape). A phone shows the globe alone; the menu is the same. */
.lang { position: relative; margin-left: 6px; }
.lang > summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  border-radius: var(--pill); box-shadow: 0 0 0 1px var(--hair) inset;
  color: var(--text-soft); font: 600 14px/1 var(--font); letter-spacing: .04em;
  list-style: none; cursor: pointer; user-select: none;
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary:hover, .lang[open] > summary { color: var(--text); background: rgba(255,255,255,.05); }
.lang > summary:focus-visible { border-radius: var(--pill); }
.lang-chev { transition: transform 160ms var(--ease); }
.lang[open] .lang-chev { transform: rotate(180deg); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 1;
  min-width: 184px; max-width: calc(100vw - 2 * var(--gutter));
  margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: var(--bg);
  box-shadow: 0 0 0 1px var(--hair) inset, 0 18px 50px -12px rgba(0,0,0,.9), 0 0 40px -18px rgba(43,212,219,.55);
}
.nav .lang-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 10px 12px; border-radius: 9px; color: var(--text-soft); font-size: 15px;
}
.nav .lang-list a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav .lang-list a[aria-current] { color: var(--tip); background: rgba(184,255,249,.08); }
.lang-list a:focus-visible { outline-offset: -2px; border-radius: 9px; }
.lang-tick { flex: none; color: var(--accent); }
/* Narrow screens: the globe alone and a tighter nav, so the logo stays on one line in every language
   (Spanish and Italian have the widest nav). Up to 660px, because the "opt" links come back at 561px. */
@media (max-width: 660px) {
  .site-header { gap: 8px; }
  .nav { gap: 2px; }
  .nav a:not(.btn) { padding: 8px; }
  .nav .btn { padding: 0 13px; margin-left: 4px; }
  .lang { margin-left: 2px; }
  .lang > summary { padding: 0 9px; box-shadow: none; }
  .lang-code, .lang-chev { display: none; }
}
@media (max-width: 400px) {
  .site-header { gap: 6px; }
  .site-mark { gap: 7px; }
  .nav a:not(.btn) { padding: 8px 6px; }
  .nav .btn { padding: 0 11px; font-size: 13px; }
  .lang > summary { padding: 0 6px; }
}

/* ===== Hero ===== */
.hero { position: relative; isolation: isolate; min-height: calc(100svh - 69px); display: grid; align-content: center; padding: clamp(40px, 5vw, 72px) 0; overflow: hidden; }
.aurora { position: absolute; inset: -10% -10% auto; height: 120%; z-index: -2; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; mix-blend-mode: screen; }
.aurora .a1 { width: 44vw; height: 34vw; left: -4%; top: 4%;  background: radial-gradient(closest-side, rgba(43,212,219,.6), transparent); animation: drift1 40s ease-in-out infinite alternate; }
.aurora .a2 { width: 48vw; height: 38vw; right: 0;  top: 10%; background: radial-gradient(closest-side, rgba(76,94,255,.8), transparent); animation: drift2 40s ease-in-out infinite alternate; }
.aurora .a3 { width: 36vw; height: 28vw; left: 46%; top: 40%; background: radial-gradient(closest-side, rgba(14,142,146,.75), transparent); animation: drift3 40s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(8vw, 5vw) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-10vw, 4vw) scale(.9); } }
@keyframes drift3 { to { transform: translate(-5vw, -6vw) scale(1.15); } }
.spot { /* a soft pool of the aurora that trails the mouse */
  position: absolute; left: 0; top: 0; z-index: -2; pointer-events: none;
  width: 760px; height: 760px; margin: -380px 0 0 -380px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(43,212,219,.15), rgba(76,94,255,.09) 48%, transparent 100%);
  opacity: 0; transition: opacity 900ms var(--ease); will-change: transform, opacity;
}
.spot.on { opacity: 1; }
.hero::before { /* fine grid that fades out: the "signal" texture */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(184,255,249,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,255,249,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 45%, #000 15%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 70% at 70% 45%, #000 15%, transparent 75%);
}

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 37fr) minmax(0, 63fr);
  gap: clamp(32px, 4vw, 64px); align-items: center;
}

.headline { display: grid; justify-items: start; font-weight: 800; }
.eyebrow {
  display: block; text-wrap: balance;
  margin-bottom: clamp(18px, 2.4vw, 28px);
  font: 600 11.5px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow .free { color: var(--tip); text-shadow: 0 0 12px rgba(43,212,219,.8); }
.headline .line {
  display: block;
  font-size: clamp(46px, 5.3vw, 76px);
  line-height: .95; letter-spacing: -.045em;
  text-wrap: balance;
}

/* ===== "wider.": a colour wave that rolls letter by letter =====
   Each letter is a base gradient slice (together they read as one teal-to-periwinkle word),
   plus two overlay copies of the same glyph, a bright tip and a periwinkle, whose opacity
   pulses with a per-letter delay. Only opacity animates, so the glyphs stay crisp.
   The glyphs are generated content (--ch), so the heading's text holds "wider." exactly once,
   in the visually hidden span beside them. */
.wider { font-style: normal; position: relative; display: inline-block; isolation: isolate; padding-right: .04em; }
.wider .wglow {
  position: absolute; inset: -18% -12% -6%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(43,212,219,.38), rgba(76,94,255,.22) 55%, transparent);
  filter: blur(18px); opacity: .7;
  animation: wglow 3.2s ease-in-out infinite;
}
@keyframes wglow { 0%, 100% { opacity: .55; } 40% { opacity: .95; } }
.wider .l { position: relative; display: inline-block; }
.wider .l::before, .wider .l::after, .wider .l i::before { content: var(--ch); }
.wider .l::before, .wider .l::after, .wider .l i {
  color: transparent; -webkit-background-clip: text; background-clip: text;
}
.wider .l::before { /* the base slice; in flow, so it gives the letter its width */
  display: block;
  background-image: linear-gradient(100deg, var(--accent) 0%, #6fe9ec 50%, var(--indigo-soft) 100%);
  background-size: 600% 100%;
  background-position: calc(var(--i) * 20%) 50%;
}
.wider .l::after, .wider .l i {
  position: absolute; inset: 0; font-style: normal;
  opacity: 0; pointer-events: none;
  animation: 3.2s linear infinite;
  animation-delay: calc(var(--i) * 120ms);
}
.wider .l::after { background-image: linear-gradient(180deg, #ffffff 0%, var(--tip) 55%, var(--accent-hi) 100%); animation-name: wave-tip; }
.wider .l i      { background-image: linear-gradient(180deg, #c5ccff 0%, var(--indigo-soft) 50%, #6c7bff 100%); animation-name: wave-violet; }
@keyframes wave-tip    { 0% { opacity: 0; } 12% { opacity: 1; } 30%, 100% { opacity: 0; } }
@keyframes wave-violet { 0%, 22% { opacity: 0; } 40% { opacity: .95; } 62%, 100% { opacity: 0; } }

/* The "signal" underline draws in once, then a spark rides it in step with the wave. */
.wider .uline {
  position: absolute; left: 2%; right: 6%; bottom: .02em; height: .06em; border-radius: 99px; overflow: hidden;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--tip) 55%, var(--indigo));
  box-shadow: 0 0 18px rgba(43,212,219,.9), 0 0 42px rgba(76,94,255,.6);
  transform-origin: left; animation: sweep 1.2s var(--ease-emph) .3s both;
}
.wider .spark {
  position: absolute; top: 0; bottom: 0; left: 0; width: 22%;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  opacity: 0; transform: translateX(-100%);
  animation: spark 3.2s linear infinite;
}
@keyframes sweep { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@keyframes spark {
  0%   { opacity: 0; transform: translateX(-100%); }
  6%   { opacity: .9; }
  34%  { opacity: .9; }
  40%, 100% { opacity: 0; transform: translateX(480%); }
}

.nowrap { white-space: nowrap; }

.lead { max-width: 30em; margin-top: 26px; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: var(--text-soft); text-wrap: pretty; }

.get { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 32px; }
.get .btn-primary { min-height: 60px; padding: 0 30px; font-size: 17px; }
/* Google's badge: the unmodified image, with clear space around it. */
.store-badge { display: block; border-radius: 10px; }
.store-badge img { width: 203px; height: 60px; }

.trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.trust svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* ===== Stage: one extended desktop across two real screens =====
   All geometry is in cqw of the stage. The desktop is continuous, as on a real Mac: the Mac
   display is desktop x 0–44 and the tablet display is desktop x 44–93, with no gap between
   them. Each screen holds its own copy of the window and the cursor, offset by that screen's
   desktop origin and clipped by the screen, so a window crossing over is cut exactly at the
   Mac's right edge and continues at the tablet's left edge. */
.stage {
  position: relative; container-type: inline-size;
  width: 100%; aspect-ratio: 100 / 34;
  margin: 0;
}
.stage > * { position: absolute; }
.pool { /* light on the "desk" under both devices */
  left: 0; right: 0; top: 24cqw; height: 13cqw; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 28% 45%, rgba(43,212,219,.18), transparent 70%),
              radial-gradient(ellipse 50% 60% at 74% 45%, rgba(76,94,255,.24), transparent 70%);
  filter: blur(18px);
}
.pool-tab { /* the tablet's pool brightens when the window lands */
  left: 48cqw; right: 0; top: 23cqw; height: 13cqw; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 55% at 50% 45%, rgba(43,212,219,.5), rgba(76,94,255,.25) 50%, transparent 75%);
  filter: blur(18px); opacity: 0;
}

/* MacBook: screen 44 x 27.5 (16:10) at (1.6, 2) */
.mac-lid {
  left: 1cqw; top: 1.3cqw; width: 45.2cqw; height: 28.9cqw;
  background: linear-gradient(180deg, #1d2328, #0d1114);
  border-radius: 1.3cqw 1.3cqw .45cqw .45cqw;
  box-shadow: 0 0 0 1px rgba(184,255,249,.14), 0 0 0 2px #05070a, 0 2.5cqw 6cqw -1.5cqw rgba(0,0,0,.9), 0 0 8cqw -2.5cqw rgba(43,212,219,.45);
}
.mac-lid::before { /* camera */
  content: ""; position: absolute; top: .22cqw; left: 50%; width: .3cqw; height: .3cqw; margin-left: -.15cqw; border-radius: 50%; background: #1a2a30;
}
.mac-base {
  left: -1cqw; top: 30.2cqw; width: 49.2cqw; height: 1.3cqw;
  background: linear-gradient(180deg, #2c343a 0%, #171c20 45%, #0a0d10 100%);
  border-radius: .2cqw .2cqw 1.1cqw 1.1cqw / .2cqw .2cqw 1.2cqw 1.2cqw;
  box-shadow: 0 0 0 1px rgba(184,255,249,.12), 0 1.8cqw 3cqw -1.4cqw rgba(0,0,0,.9);
}
.mac-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 15%; height: 40%; transform: translateX(-50%); background: #0a0e11; border-radius: 0 0 .8cqw .8cqw; }

/* Galaxy Tab S8 Ultra: screen 49 x 27.56 (2960:1665) at (50.05, 2), on a desk stand.
   The tablet's screen is the larger of the two, as it is in life (14.6" next to a 13" Mac). */
.tab-body {
  left: 49.4cqw; top: 1.35cqw; width: 50.3cqw; height: 28.85cqw;
  background: linear-gradient(160deg, #262f35, #0b0f12 55%, #141c1f);
  border-radius: 1.4cqw;
  box-shadow:
    0 0 0 1px rgba(184,255,249,.20), 0 0 0 2px #05070a,
    0 2.5cqw 6cqw -1.5cqw rgba(0,0,0,.95),
    0 0 8cqw -2cqw rgba(76,94,255,.55), 0 0 5cqw -2cqw rgba(43,212,219,.55);
}
.tab-glow { /* the rim lights up as the window lands */
  left: 49.4cqw; top: 1.35cqw; width: 50.3cqw; height: 28.85cqw; border-radius: 1.4cqw; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(184,255,249,.95), 0 0 2.4cqw rgba(43,212,219,.8), 0 0 7cqw rgba(76,94,255,.55);
  opacity: 0;
}
.tab-neck {
  left: 71.55cqw; top: 30.1cqw; width: 6cqw; height: .9cqw;
  background: linear-gradient(90deg, #161c20, #3a454c 50%, #161c20);
  box-shadow: 0 0 0 1px rgba(184,255,249,.08);
}
.tab-foot {
  left: 64.55cqw; top: 30.9cqw; width: 20cqw; height: .6cqw;
  background: linear-gradient(180deg, #3a454c, #0a0d10);
  border-radius: .3cqw .3cqw .5cqw .5cqw;
  box-shadow: 0 0 0 1px rgba(184,255,249,.10), 0 1.6cqw 2.4cqw -1.2cqw rgba(0,0,0,.9);
}

.screen { overflow: hidden; background: #0b1113; isolation: isolate; }
.screen > * { position: absolute; left: 0; top: 0; }
.screen > .desk { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen::after { /* glass sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 9;
  background: linear-gradient(118deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,0) 72%, rgba(184,255,249,.04) 100%);
}
.screen-mac { left: 1.6cqw; top: 2cqw; width: 44cqw; height: 27.5cqw; border-radius: .45cqw; }
.screen-tab { left: 50.05cqw; top: 2cqw; width: 49cqw; height: 27.56cqw; border-radius: .75cqw; }
/* The tablet's own empty desktop: a plain brand aurora, no invented UI. */
.wallpaper {
  inset: 0;
  background:
    radial-gradient(70% 90% at 12% 100%, rgba(43,212,219,.42), transparent 60%),
    radial-gradient(70% 80% at 95% 0%, rgba(76,94,255,.5), transparent 60%),
    #0b1113;
}

/* macOS 15 tiling preview: shown while the cursor holds the window at the top edge. */
.tile {
  left: .45cqw; top: .45cqw; right: .45cqw; bottom: .45cqw; border-radius: .7cqw;
  background: rgba(235, 250, 255, .16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.38), 0 0 2.4cqw rgba(43,212,219,.35);
  opacity: 0;
}

/* The window is laid out at the tablet's full size and scaled down, so it stays sharp when it
   fills the tablet. transform-origin 0 0: its translate is its desktop top-left corner. */
.win {
  width: 49cqw; height: 27.56cqw; z-index: 2;
  transform-origin: 0 0; will-change: transform, opacity;
  transform: translate(6.5cqw, 8cqw) scale(.45);
}
.screen-tab .win { transform: translate(-37.5cqw, 8cqw) scale(.45); }
.win-shadow, .win-lift { position: absolute; inset: 0; border-radius: 1.1cqw; }
.win-shadow { box-shadow: 0 .9cqw 2.6cqw rgba(0,0,0,.55), 0 0 0 .14cqw rgba(0,0,0,.35); }
.win-lift {
  box-shadow: 0 5cqw 9cqw -1cqw rgba(0,0,0,.75), 0 0 6cqw -1cqw rgba(43,212,219,.55);
  opacity: 0; will-change: opacity;
}
.win-frame {
  position: absolute; inset: 0; border-radius: 1.1cqw; overflow: hidden;
  background: #fbfaf7;
  box-shadow: inset 0 0 0 .1cqw rgba(255,255,255,.5);
}
.win-bar {
  height: 1.9cqw; display: flex; align-items: center; gap: .55cqw; padding-left: 1cqw;
  background: linear-gradient(180deg, #f2f1ef, #e6e5e2);
  border-bottom: .08cqw solid rgba(0,0,0,.12);
}
.win-bar i { width: .78cqw; height: .78cqw; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .05cqw rgba(0,0,0,.18); }
.win-bar i:nth-child(2) { background: #febc2e; }
.win-bar i:nth-child(3) { background: #28c840; }
.win-frame img { width: 100%; height: calc(100% - 1.9cqw); object-fit: cover; object-position: 50% 0; }

.ripple { /* landing ripple on the tablet's glass, and the click ring on the Mac */
  width: 8cqw; height: 8cqw; margin: -4cqw 0 0 -4cqw; border-radius: 50%; z-index: 6; pointer-events: none;
  border: .16cqw solid var(--tip);
  box-shadow: 0 0 1.4cqw rgba(43,212,219,.85), inset 0 0 1.4cqw rgba(43,212,219,.5);
  opacity: 0; will-change: transform, opacity;
}
.press { width: 3cqw; height: 3cqw; margin: -1.5cqw 0 0 -1.5cqw; border-width: .12cqw; }
.sweep { /* one bright pass across the tablet glass on landing */
  top: -10%; height: 120%; width: 26%; z-index: 7; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.12) 42%, rgba(184,255,249,.28) 50%, rgba(255,255,255,.12) 58%, transparent);
  mix-blend-mode: screen; opacity: 0; will-change: transform, opacity;
}

/* The cursor: its hotspot is the element's origin. macOS black arrow; closed hand while dragging. */
.cursor { z-index: 8; width: 0; height: 0; opacity: 0; will-change: transform, opacity; }
.cursor svg {
  position: absolute; display: block; overflow: visible;
  filter: drop-shadow(0 .1cqw .22cqw rgba(0,0,0,.55));
}
.cursor .arrow { left: -.12cqw; top: -.1cqw; height: 2.2cqw; width: auto; }
.cursor .hand { left: -1.1cqw; top: -1.15cqw; height: 2.2cqw; width: auto; opacity: 0; }

.edge { /* both inner screen edges glow while the window is split across them */
  top: 2.5cqw; height: 26.5cqw; width: .3cqw; border-radius: 99px; z-index: 3; pointer-events: none;
  background: linear-gradient(transparent, var(--tip) 25%, var(--accent) 75%, transparent);
  box-shadow: 0 0 1.4cqw rgba(43,212,219,.9);
  opacity: 0;
}
.edge-mac { left: 45.45cqw; }
.edge-tab { left: 49.9cqw; }

/* ===== Pro moment: S Pen ink on the landed window =====
   The ink lives inside the tablet's copy of the window, over the capture, in the capture's own
   pixel space (1980 x 1048, cover, top-aligned like the img), so it leaves with the window. */
.win-frame .ink {
  position: absolute; left: 0; top: 1.9cqw; width: 100%; height: calc(100% - 1.9cqw);
  overflow: visible; pointer-events: none;
}
.ink line { opacity: 0; stroke-linecap: round; }
.ink .guide { fill: none; stroke: none; }

/* The pen: an anchor whose origin is the pen tip, in stage cqw, placed at the capture's
   top-left on the tablet. The script moves and tilts it. */
.pen {
  left: 50.05cqw; top: 3.9cqw; width: 0; height: 0; z-index: 10; pointer-events: none;
  opacity: 0; will-change: transform, opacity;
}
.pen > * { position: absolute; transform-origin: 0 0; }
.pen-shadow { /* the pen's shadow on the glass, falling down-right from the tip */
  left: 0; top: -.32cqw; width: 15cqw; height: .64cqw; border-radius: 99px;
  background: linear-gradient(90deg, rgba(0,0,0,.5), rgba(0,0,0,.18) 70%, transparent);
  transform-origin: 0 50%; filter: blur(.35cqw); will-change: transform, opacity;
}
.pen-body { will-change: transform; }
/* viewBox -10 -40 420 80 at .0469 cqw per unit: the tip (0, 0) sits on the anchor's origin. */
.pen-body svg { position: absolute; display: block; overflow: visible; left: -.469cqw; top: -1.876cqw; width: 19.7cqw; height: 3.752cqw; }

/* Pro row: sits under the tablet, outside the devices, so nothing is drawn onto the capture. */
.pro-row {
  top: calc(100% + 1.2cqw); left: 49.4cqw; width: 50.3cqw;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px;
  font: 500 13px/1 var(--font); color: var(--text-soft); pointer-events: none;
}
.pro-row > span { opacity: 0; will-change: transform, opacity; }
.pro-chip {
  padding: 5px 10px 4px; border-radius: var(--pill);
  font: 700 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--on-accent); background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  box-shadow: 0 0 0 1px rgba(184,255,249,.5) inset, 0 0 18px -4px rgba(43,212,219,.8);
}
.pro-row .feat { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.pro-row .feat + .feat::before { content: "·"; color: var(--accent); font-weight: 700; }

/* Pause control: a small round button under the Mac (under the stage's right end on a phone, clear
   of the Pro row). */
.stage-col { position: relative; }
.motion-toggle {
  position: absolute; left: 0; top: 100%; margin-top: 12px;
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  color: var(--muted); background: rgba(5,7,13,.6); box-shadow: 0 0 0 1px rgba(184,255,249,.22) inset;
  cursor: pointer; transition: color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.motion-toggle:hover { color: var(--tip); box-shadow: 0 0 0 1px var(--accent) inset, 0 0 16px -2px rgba(43,212,219,.7); }
.motion-toggle[hidden] { display: none; }
.motion-toggle svg { width: 16px; height: 16px; }
.motion-toggle .i-play, .motion-paused .motion-toggle .i-pause { display: none; }
.motion-paused .motion-toggle .i-play { display: block; }
/* Paused, every CSS loop holds where it is. The two one-shot entrances (the underline drawing in,
   a price swapping in) still finish, or they would freeze half-drawn. */
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
.motion-paused .wider .uline, .motion-paused .pr-swap { animation-play-state: running !important; }

/* ===== Narrow: stack the copy over the stage ===== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .copy { text-align: center; }
  .headline { justify-items: center; }
  .hero { min-height: 0; }
  .lead { margin-inline: auto; }
  .get, .trust { justify-content: center; }
  .stage-col { max-width: 760px; width: 100%; margin-inline: auto; padding-bottom: 34px; }
  .motion-toggle { top: calc(100% - 29px); margin-top: 0; } /* in line with the Pro row */
}
@media (max-width: 560px) {
  .nav a.opt { display: none; }
  .eyebrow { font-size: 11px; letter-spacing: .04em; }
  .get { flex-direction: column; }
  .trust { gap: 6px 16px; }
  .trust li { font-size: 14px; }
  /* Bleed the stage to the screen edges so both devices read at phone width. */
  .stage-col { width: calc(100% + 2 * var(--gutter) - 8px); max-width: none; margin: 8px calc(4px - var(--gutter)) 0; }
  /* A real-scale cursor would be a few pixels tall on a phone. */
  .cursor .arrow { height: 3.4cqw; }
  .cursor .hand { left: -1.7cqw; top: -1.8cqw; height: 3.4cqw; }
  /* Under the whole stage on a phone: centred under the tablet it would run off the screen. */
  .pro-row { left: 4cqw; width: 92cqw; top: calc(100% + 12px); font-size: 12px; gap: 6px 8px; }
  .pro-row .feat { gap: 8px; }
  .motion-toggle { left: auto; right: 0; } /* flush with the tablet, clear of the Pro row */
}

/* Reduced motion: no loop. The script draws one still frame, the window mid-drag across the
   gap; the CSS defaults above show the window resting on the Mac if the script never runs. */
@media (prefers-reduced-motion: reduce) {
  .aurora span, .wider *, .wider *::before, .wider *::after { animation: none !important; }
  .spot { display: none; }
  .btn { transition: none; }
  .motion-toggle { display: none; }
}

/* ================================================================
   Sections below the hero: shared section shell, chips and device frames,
   then How it works (tl-) and the features bento (bn-).
   ================================================================ */
.sec { position: relative; isolation: isolate; padding: clamp(80px, 9vw, 136px) 0; scroll-margin-top: 72px; }
.sec + .sec { padding-top: 0; }
.sec-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sec-glow::before, .sec-glow::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .22;
}
.sec-glow::before { width: 46vw; height: 30vw; left: -12vw; top: 8%; background: radial-gradient(closest-side, rgba(43,212,219,.7), transparent); }
.sec-glow::after  { width: 40vw; height: 30vw; right: -10vw; bottom: 0; background: radial-gradient(closest-side, rgba(76,94,255,.8), transparent); }
#how { border-top: 1px solid var(--hair); }

.sec-head { max-width: 760px; margin-bottom: clamp(44px, 5vw, 72px); }
.sec-eyebrow {
  display: block; margin-bottom: 16px;
  font: 600 11.5px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.sec-head h2 {
  margin: 0; font-weight: 800; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.02; letter-spacing: -.035em;
  text-wrap: balance;
}
.sec-head p { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 620px; text-wrap: pretty; }

/* ----- Chips: Free is an outline, Pro is the lit pill the hero already uses ----- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 4px; border-radius: var(--pill);
  font: 700 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.chip-free { color: var(--tip); box-shadow: 0 0 0 1px rgba(43,212,219,.45) inset; background: rgba(43,212,219,.07); }
.chip-pro {
  color: var(--on-accent); background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  box-shadow: 0 0 0 1px rgba(184,255,249,.5) inset, 0 0 18px -4px rgba(43,212,219,.8);
}

/* ----- Real-capture device frames (frames are illustration; the screens are captures) ----- */
.dev { position: relative; }
.dev img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.dev-tab {
  padding: 2.4%; border-radius: clamp(12px, 1.6vw, 22px);
  background: linear-gradient(160deg, #2a3337, #0c1114 60%);
  box-shadow: 0 0 0 1px rgba(184,255,249,.12) inset, 0 30px 60px -24px rgba(0,0,0,.8), 0 0 70px -20px rgba(43,212,219,.45);
}
.dev-tab .glass { aspect-ratio: 16 / 9; border-radius: clamp(6px, .7vw, 10px); overflow: hidden; background: #0b1013; }

/* ----- How it works: three numbered steps on one glowing line ----- */
.tl-wrap { position: relative; }
.tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.tl-rail { /* JS measures the node centres and places this exactly; the CSS is the no-script fallback */
  position: absolute; left: 28px; top: 27px; height: 2px; width: calc(200% / 3 + 2 * clamp(24px, 3vw, 48px) / 3);
  border-radius: 2px; background: rgba(184,255,249,.10); pointer-events: none;
}
.tl-fill {
  position: absolute; inset: 0; border-radius: inherit; transform-origin: 0 0;
  background: linear-gradient(90deg, var(--accent), var(--tip) 55%, var(--indigo-soft));
  box-shadow: 0 0 14px rgba(43,212,219,.9), 0 0 36px rgba(76,94,255,.55);
}
.tl-rail[data-dir="v"] .tl-fill { background: linear-gradient(180deg, var(--accent), var(--tip) 55%, var(--indigo-soft)); }
.js .tl-fill { transform: scaleX(var(--p, 0)); transition: transform 240ms linear; }
.js .tl-rail[data-dir="v"] .tl-fill { transform: scaleY(var(--p, 0)); }

.tl-step { position: relative; display: grid; align-content: start; gap: 0; }
.tl-node {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 28px;
  font: 700 18px/1 var(--mono); color: var(--muted);
  background: radial-gradient(circle at 50% 35%, #18232a, #070b10);
  box-shadow: 0 0 0 1px rgba(184,255,249,.18) inset, 0 0 0 6px var(--bg);
  transition: color 400ms var(--ease), box-shadow 400ms var(--ease);
}
.tl-step.lit .tl-node, html:not(.js) .tl-node {
  color: var(--tip);
  box-shadow: 0 0 0 1.5px var(--accent) inset, 0 0 0 6px var(--bg), 0 0 26px 2px rgba(43,212,219,.55), 0 0 60px rgba(76,94,255,.35);
}
.tl-media { margin: 0 0 26px; max-width: 420px; }
.tl-step h3 { margin: 0 0 10px; font-size: 22px; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; }
.tl-step p { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 40ch; }
.tl-step .tl-free { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.tl-guide { display: inline-block; margin-top: clamp(32px, 3.4vw, 48px); font-size: 15px; font-weight: 600; text-decoration: none; }
.tl-guide:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Step pictures: the scenes of the Play screenshots without their copy, transparent WebPs from
   design/play-screens-105/render.sh website. */
.tl-shot { display: block; width: 100%; height: auto; }

/* ----- Features: bento ----- */
.bn { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.bn-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(24px, 2.4vw, 36px); border-radius: 24px;
  background: linear-gradient(180deg, rgba(20,28,31,.78), rgba(9,13,19,.85));
  box-shadow: 0 0 0 1px var(--hair) inset, 0 30px 60px -40px rgba(0,0,0,.9);
}
.bn-card::before { /* a soft teal wash from the top-left corner */
  content: ""; position: absolute; z-index: -1; inset: -40% auto auto -20%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(43,212,219,.14), transparent); pointer-events: none;
}
.bn-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.bn-key { font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bn-card h3 { margin: 0 0 10px; font-size: clamp(22px, 2vw, 28px); font-weight: 780; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
.bn-card p { color: var(--muted); font-size: 16px; line-height: 1.6; text-wrap: pretty; }

.bn-free { grid-column: 1 / 8; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: center; min-height: 340px; }
.bn-price { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 14px; }
.bn-price b {
  font-size: clamp(76px, 7.6vw, 112px); font-weight: 850; line-height: .9; letter-spacing: -.06em;
  color: transparent; background: linear-gradient(100deg, var(--tip), var(--accent) 45%, var(--indigo-soft));
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 24px rgba(43,212,219,.35));
}
.bn-price span { font: 600 13px/1.3 var(--mono); color: var(--muted); letter-spacing: .04em; }
.bn-free .dev-tab { margin-right: calc(-1 * clamp(24px, 2.4vw, 36px) - 12%); transform: rotate(-2deg); }

.bn-pro {
  grid-column: 8 / 13; grid-row: 1 / 3; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(24,30,58,.85), rgba(9,13,22,.92));
  box-shadow: 0 0 0 1px rgba(143,155,255,.28) inset, 0 0 80px -30px rgba(76,94,255,.7), 0 30px 60px -40px rgba(0,0,0,.9);
}
.bn-pro::before { background: radial-gradient(closest-side, rgba(76,94,255,.25), transparent); inset: -30% -30% auto auto; }
.bn-pro .dev-tab { margin: 6px 0 24px; }
.bn-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; }
.bn-list li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(184,255,249,.08); font-size: 15.5px; color: var(--text); }
.bn-list li span { color: var(--muted); }
.bn-list svg { width: 16px; height: 16px; margin-top: 4px; color: var(--accent); }
.bn-pro .bn-price-line { margin-top: auto; padding-top: 18px; font-size: 14px; color: var(--muted); }
.bn-pro .bn-price-line b { color: var(--text); font-weight: 700; }

.bn-net { grid-column: 1 / 5; }
.bn-priv { grid-column: 5 / 8; }
.bn-art { display: block; width: 100%; height: auto; margin: 2px 0 18px; overflow: visible; }
.bn-art .route { fill: none; stroke-width: 2; stroke-linecap: round; }
.bn-art .route-wifi { stroke: var(--indigo-soft); opacity: .8; }
.bn-art .route-hot { stroke: var(--accent); }
.bn-art .pulse { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 10 190; filter: drop-shadow(0 0 4px currentColor); }
.bn-art .pulse-wifi { stroke: #c5ccff; color: var(--indigo-soft); animation: pulse 3.6s linear infinite; }
.bn-art .pulse-hot { stroke: var(--tip); color: var(--accent); animation: pulse 2.4s linear infinite; }
/* A known exception to transform/opacity-only motion: the dash offset repaints this small SVG each
   frame. A transform cannot bend a dash along the curve; the pause control stops it. */
@keyframes pulse { from { stroke-dashoffset: 200; } to { stroke-dashoffset: 0; } }
.bn-art text { font: 600 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.bn-foot { margin-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.bn-nos { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bn-nos li { padding: 7px 12px; border-radius: var(--pill); font-size: 13.5px; color: var(--text); background: rgba(184,255,249,.05); box-shadow: 0 0 0 1px rgba(184,255,249,.12) inset; }
.bn-nos li::before { content: "✕"; margin-right: 7px; color: var(--accent); font-size: 11px; }

/* ----- Subtle scroll-in reveal (script adds .js; reduced motion skips it) ----- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .bn-free { grid-column: 1 / -1; }
  .bn-pro { grid-column: 1 / -1; grid-row: auto; }
  .bn-pro .dev-tab { max-width: 560px; }
  .bn-net { grid-column: 1 / 7; }
  .bn-priv { grid-column: 7 / -1; }
}
@media (max-width: 760px) {
  .tl { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .tl-step { padding-left: 76px; }
  .tl-node { position: absolute; left: 0; top: 0; margin: 0; }
  html:not(.js) .tl-rail { display: none; }
  .tl-media { max-width: 360px; }
  .tl-guide { margin-left: 76px; }
  .bn-free { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .bn-free .dev-tab { margin-right: 0; transform: none; }
  .bn-net, .bn-priv { grid-column: 1 / -1; }
  .bn-card { border-radius: 20px; }
}
@media (max-width: 420px) {
  .tl-step { padding-left: 66px; }
  .tl-guide { margin-left: 66px; }
  .tl-node { width: 48px; height: 48px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .tl-fill, .tl-node { transition: none; }
  .bn-art .pulse { animation: none; display: none; }
}

/* ================================================================
   Pricing (pr-) and FAQ (faq-)
   ================================================================ */
#pricing, #faq { scroll-margin-top: 72px; }
#pricing .sec-head, #faq .sec-head { margin-inline: auto; text-align: center; }
#pricing .sec-head p { margin-inline: auto; }

.pr-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px);
  max-width: 1080px; margin-inline: auto; align-items: stretch;
}
.pr-card {
  position: relative; isolation: isolate; display: flex; flex-direction: column;
  padding: clamp(28px, 2.8vw, 44px); border-radius: 28px;
  background: linear-gradient(180deg, rgba(20,28,31,.82), rgba(9,13,19,.9));
  box-shadow: 0 0 0 1px var(--hair) inset, 0 30px 60px -40px rgba(0,0,0,.9);
}
.pr-card h3 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.pr-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 40px; }

/* Pro: a slowly turning aurora rim, plus a soft bloom behind the card. */
.pr-pro {
  background: linear-gradient(180deg, rgba(24,30,58,.94), rgba(9,13,22,.96));
  box-shadow: 0 0 0 1px rgba(143,155,255,.22) inset, 0 0 90px -18px rgba(76,94,255,.6), 0 0 60px -26px rgba(43,212,219,.55), 0 40px 80px -40px rgba(0,0,0,.9);
}
.pr-rim { /* the rim: a 1.5px ring, masked out of the card's box */
  position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  overflow: hidden; /* rounds the turning gradient to the card's corners */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  container-type: size;
}
.pr-rim::before { /* a conic gradient about the card's centre, turned by transform (compositor only); a
                     square of side width + height always covers the card */
  content: ""; position: absolute; left: 50%; top: 50%; width: calc(100cqw + 100cqh); aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(var(--accent), var(--indigo), var(--tip), var(--indigo-soft), var(--accent));
  animation: pr-spin 14s linear infinite;
}
.pr-pro::after { /* the bloom */
  content: ""; position: absolute; z-index: -1; inset: -14% -10%; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(closest-side at 30% 40%, rgba(43,212,219,.32), transparent),
    radial-gradient(closest-side at 72% 60%, rgba(76,94,255,.42), transparent);
  filter: blur(48px); opacity: .9;
  animation: pr-breathe 9s ease-in-out infinite alternate;
}
@keyframes pr-spin { to { transform: rotate(1turn); } }
@keyframes pr-breathe { from { transform: scale(.94) translateX(-2%); opacity: .7; } to { transform: scale(1.04) translateX(2%); opacity: 1; } }

.pr-trial {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: var(--pill);
  font-size: 13px; font-weight: 600; color: var(--text);
  background: rgba(43,212,219,.10); box-shadow: 0 0 0 1px rgba(43,212,219,.4) inset, 0 0 22px -6px rgba(43,212,219,.6);
}
.pr-trial b { font: 700 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-accent);
  padding: 4px 7px 3px; border-radius: var(--pill); background: linear-gradient(180deg, var(--accent-hi), var(--accent)); }

/* Monthly / Yearly: real radios (work with no script, arrow keys move between them). */
.pr-bill { border: 0; margin: 22px 0 0; padding: 0; min-width: 0; }
.pr-seg {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--pill);
  background: rgba(5,7,13,.6); box-shadow: 0 0 0 1px rgba(184,255,249,.14) inset;
}
.pr-seg label {
  position: relative; z-index: 1; min-width: 104px; padding: 10px 18px; text-align: center; cursor: pointer;
  font-size: 14px; font-weight: 650; color: var(--muted); border-radius: var(--pill);
  transition: color 260ms var(--ease);
}
.pr-thumb {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--pill);
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  box-shadow: 0 0 0 1px rgba(184,255,249,.6) inset, 0 0 24px -4px rgba(43,212,219,.8);
  transition: transform 320ms var(--ease-emph);
}
#bill-month:checked ~ .pr-thumb { transform: translateX(0); }
#bill-year:checked ~ .pr-thumb { transform: translateX(100%); }
#bill-month:checked + label, #bill-year:checked + label { color: var(--on-accent); }
#bill-month:focus-visible + label, #bill-year:focus-visible + label { outline: 2px solid var(--tip); outline-offset: 3px; }

.pr-price { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 6px; min-height: 92px; }
.pr-price b {
  font-size: clamp(64px, 6vw, 88px); font-weight: 850; line-height: .9; letter-spacing: -.055em;
  color: transparent; background: linear-gradient(100deg, var(--tip), var(--accent) 45%, var(--indigo-soft));
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 24px rgba(43,212,219,.35));
}
.pr-price span { font: 600 14px/1.3 var(--mono); color: var(--muted); letter-spacing: .04em; }
.pr-sub { color: var(--muted); font-size: 15px; line-height: 1.55; min-height: 3.1em; }
.pr-sub strong { color: var(--text); font-weight: 650; }

/* Which period shows: yearly by default (no-:has() browsers show yearly only). */
.pr-m { display: none; }
.pr-pro:has(#bill-month:checked) .pr-m { display: revert; }
.pr-pro:has(#bill-month:checked) .pr-y { display: none; }
@supports not selector(:has(*)) { .pr-bill { display: none; } }
.pr-swap { animation: pr-in 380ms var(--ease) both; }
@keyframes pr-in { from { opacity: 0; transform: translateY(6px); } }

.pr-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; }
.pr-list li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(184,255,249,.08); font-size: 15.5px; color: var(--text); }
.pr-list li span { color: var(--muted); }
.pr-list svg { width: 16px; height: 16px; margin-top: 4px; color: var(--accent); }
.pr-free .pr-list svg { color: var(--tip); }

.pr-cta { margin-top: auto; padding-top: 28px; display: grid; gap: 12px; }
.pr-cta .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pr-cta .store-badge img { width: 169px; height: 50px; }
.pr-cta .btn { min-height: 50px; }
.pr-cta p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.pr-mac {
  margin-top: 26px; padding: 16px 18px; border-radius: 16px; display: flex; align-items: center; gap: 16px;
  background: rgba(43,212,219,.05); box-shadow: 0 0 0 1px rgba(43,212,219,.18) inset;
}
.pr-mac svg { flex: none; width: 40px; height: 30px; color: var(--accent); filter: drop-shadow(0 0 8px rgba(43,212,219,.45)); }
.pr-mac p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.pr-mac p strong { color: var(--text); font-weight: 700; }
.pr-notes { max-width: 820px; margin: clamp(28px, 3vw, 40px) auto 0; display: grid; gap: 14px; text-align: center; }
.pr-notes p { color: var(--muted); font-size: 14.5px; line-height: 1.65; text-wrap: pretty; }
.pr-notes strong { color: var(--text); }

/* ----- FAQ: one column of native <details>, opening smoothly where the browser allows ----- */
#faq { padding-top: 0; }
.faq-list { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item {
  border-radius: 18px; background: linear-gradient(180deg, rgba(20,28,31,.7), rgba(9,13,19,.8));
  box-shadow: 0 0 0 1px var(--hair) inset;
  transition: box-shadow 300ms var(--ease), background 300ms var(--ease);
}
.faq-item[open] {
  background: linear-gradient(180deg, rgba(22,32,40,.86), rgba(9,13,22,.9));
  box-shadow: 0 0 0 1px rgba(43,212,219,.32) inset, 0 0 50px -24px rgba(43,212,219,.55);
}
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; border-radius: 18px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
/* The question is a heading inside the summary, so the page outline keeps every question; it takes
   the summary's type. */
.faq-q { margin: 0; font: inherit; letter-spacing: inherit; }
.faq-item summary:hover { color: var(--tip); }
.faq-item summary:focus-visible { outline-offset: -2px; }
.faq-icon {
  position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(184,255,249,.22) inset; transition: transform 320ms var(--ease-emph), box-shadow 320ms var(--ease);
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.8px; margin: -.9px 0 0 -5.5px;
  border-radius: 2px; background: var(--tip); transition: transform 320ms var(--ease-emph);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { transform: rotate(180deg); box-shadow: 0 0 0 1px var(--accent) inset, 0 0 16px -2px rgba(43,212,219,.7); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-a { padding: 0 24px 22px; }
.faq-a p { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 68ch; text-wrap: pretty; }
.faq-a p + p { margin-top: 12px; }
.faq-a strong { color: var(--text); }

@supports selector(::details-content) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    block-size: 0; overflow: clip; opacity: 0;
    transition: block-size 360ms var(--ease-emph), opacity 300ms var(--ease), content-visibility 360ms allow-discrete;
  }
  .faq-item[open]::details-content { block-size: auto; opacity: 1; }
}

@media (max-width: 860px) {
  .pr-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .pr-notes { text-align: left; }
}
@media (max-width: 420px) {
  .pr-card { border-radius: 22px; }
  .pr-seg label { min-width: 0; padding: 10px 14px; }
  .faq-item summary { padding: 18px 18px; font-size: 16.5px; }
  .faq-a { padding: 0 18px 20px; }
  .faq-a p { font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .pr-rim::before, .pr-pro::after, .pr-swap { animation: none; }
  .pr-thumb, .pr-seg label, .faq-item, .faq-icon, .faq-icon::before, .faq-icon::after { transition: none; }
  .faq-item::details-content { transition: none; }
}

/* ================================================================
   Guides (gd-): every guide page as an index, two columns, one below 760px
   ================================================================ */
.gd-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; max-width: 1080px; }
.gd-index a { display: grid; gap: 4px; padding: 18px 4px; border-top: 1px solid rgba(184,255,249,.12); text-decoration: none; color: var(--text); }
.gd-title { font-size: 20px; font-weight: 760; letter-spacing: -.015em; line-height: 1.25; }
.gd-text { color: var(--muted); font-size: 15.5px; line-height: 1.5; text-wrap: pretty; }
.gd-index a:hover .gd-title, .gd-index a:focus-visible .gd-title { color: var(--tip); }
@media (max-width: 760px) {
  .gd-index { grid-template-columns: minmax(0, 1fr); }
}

/* ================================================================
   Closing two-step tiles (cl-) and the footer (ft-)
   ================================================================ */
#get { border-top: 1px solid var(--hair); scroll-margin-top: 72px; }
#get .sec-head { margin-inline: auto; text-align: center; }
#get .sec-head p { margin-inline: auto; }

.cl-steps {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1080px;
  display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: stretch;
}
.cl-tile {
  position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(28px, 3vw, 44px); border-radius: 28px; min-height: 100%;
  background: linear-gradient(180deg, rgba(20,28,31,.86), rgba(9,13,19,.92));
  box-shadow: 0 0 0 1px rgba(184,255,249,.16) inset, 0 0 80px -24px rgba(43,212,219,.55), 0 30px 60px -40px rgba(0,0,0,.9);
}
.cl-tile::after { /* soft bloom behind each tile */
  content: ""; position: absolute; z-index: -1; inset: -10% -6%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(43,212,219,.22), transparent); filter: blur(40px);
}
.cl-tab {
  background: linear-gradient(180deg, rgba(24,30,58,.92), rgba(9,13,22,.95));
  box-shadow: 0 0 0 1px rgba(143,155,255,.24) inset, 0 0 80px -24px rgba(76,94,255,.6), 0 30px 60px -40px rgba(0,0,0,.9);
}
.cl-tab::after { background: radial-gradient(closest-side, rgba(76,94,255,.28), transparent); }

.cl-head { display: flex; align-items: center; gap: 14px; }
.cl-num {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font: 800 18px/1 var(--font); color: var(--on-accent);
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  box-shadow: 0 0 0 1px rgba(184,255,249,.6) inset, 0 0 28px -4px rgba(43,212,219,.8);
}
.cl-tab .cl-num { color: #fff; background: linear-gradient(180deg, var(--indigo-soft), var(--indigo)); box-shadow: 0 0 0 1px rgba(200,206,255,.5) inset, 0 0 28px -4px rgba(76,94,255,.85); }
.cl-where { font: 600 11.5px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.cl-tab .cl-where { color: var(--indigo-soft); }

.cl-dev { display: flex; align-items: center; gap: 16px; margin: 26px 0 0; }
.cl-dev svg { flex: none; width: 56px; height: 42px; color: var(--tip); }
.cl-tab .cl-dev svg { color: #c8ceff; }
.cl-tile h3 { margin: 0; font-size: clamp(22px, 2vw, 28px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.cl-tile .cl-req { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; }
.cl-act { margin-top: auto; padding-top: 30px; }
.cl-act .btn-primary { min-height: 60px; padding: 0 30px; font-size: 17px; }

.cl-link { position: relative; align-self: center; height: 2px; margin-inline: 8px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--indigo)); box-shadow: 0 0 16px rgba(43,212,219,.7);
  container-type: size; /* the spark travels 100cqw (or 100cqh) of the link, by transform */ }
.cl-link::after { /* chevron */
  content: ""; position: absolute; right: -2px; top: 50%; width: 10px; height: 10px; translate: 0 -50%; rotate: 45deg;
  border: solid var(--indigo-soft); border-width: 2px 2px 0 0;
}
.cl-link::before { /* a spark that travels from step 1 to step 2; transform and opacity only */
  content: ""; position: absolute; top: 50%; left: 0; width: 8px; height: 8px; border-radius: 50%; translate: -50% -50%;
  background: var(--tip); box-shadow: 0 0 12px 3px rgba(184,255,249,.85);
  animation: cl-spark 2.8s var(--ease) infinite;
}
@keyframes cl-spark { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(100cqw); opacity: 0; } }

.cl-meta { max-width: 760px; margin: clamp(36px, 4vw, 52px) auto 0; text-align: center; }
.cl-meta p { color: var(--muted); font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.cl-meta p + p { margin-top: 8px; }
.cl-meta .meta { font: 600 13px/1.6 var(--mono); letter-spacing: .02em; color: var(--text-soft); }
.cl-meta a { color: var(--tip); }

/* ----- Footer ----- */
.site-footer { border-top: 1px solid var(--hair); background: rgba(5,7,13,.7); padding: clamp(48px, 5vw, 72px) 0 32px; }
.ft-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.ft-brand p { margin-top: 14px; max-width: 26em; color: var(--muted); font-size: 15px; line-height: 1.55; }
.ft-col h2 { margin: 0 0 14px; font: 600 11.5px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.ft-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ft-col a { display: inline-block; padding: 6px 0; color: var(--text-soft); text-decoration: none; font-size: 15px; transition: color 160ms var(--ease); }
.ft-col a:hover { color: var(--tip); text-decoration: underline; text-underline-offset: 3px; }
.ft-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(40px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--hair); color: var(--muted); font-size: 13.5px; }
/* The page in every language, each named in its own language (website/README.md, "Languages"). */
.ft-lang ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 14px; }
.ft-lang a { display: inline-block; padding: 6px 0; color: var(--muted); text-decoration: none; transition: color 160ms var(--ease); }
.ft-lang a:hover { color: var(--tip); text-decoration: underline; text-underline-offset: 3px; }
.ft-lang a[aria-current="page"] { color: var(--text-soft); }

@media (max-width: 860px) {
  .cl-steps { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 48px auto; max-width: 560px; }
  .cl-link { justify-self: center; align-self: stretch; width: 2px; height: auto; margin: 8px 0; background: linear-gradient(180deg, var(--accent), var(--indigo)); }
  .cl-link::after { right: auto; left: 50%; top: auto; bottom: -2px; translate: -50% 0; rotate: 135deg; }
  .cl-link::before { left: 50%; top: 0; animation-name: cl-spark-v; }
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-brand { grid-column: 1 / -1; }
}
@keyframes cl-spark-v { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(100cqh); opacity: 0; } }
@media (max-width: 420px) {
  .cl-tile { border-radius: 22px; }
  .ft-grid { gap: 32px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .cl-link::before { animation: none; display: none; }
  .ft-col a, .ft-lang a { transition: none; }
}
