/*
 * The palette is PhoneTheme.END, unchanged - the same violet the mod, MasterPanel and the phone
 * itself all wear. This is the one place a visitor meets the product before installing anything,
 * so it has to look like the same product, not a landing page built by a different team.
 *
 * Motion: everything that moves is either a CSS animation (switched off wholesale under
 * prefers-reduced-motion at the bottom of this file) or driven by effects.js, which checks the same
 * media query. Scroll reveals only hide content under html.js, so a visitor without scripts sees
 * the whole page.
 */
:root {
  --bg: #0D0715;
  --frame: #3A2D50;
  --screen: #140C1F;
  --panel: #17102A;
  --panel-2: #1F1738;
  --line: #332650;
  --line-soft: #251B40;
  --text: #F2E8FF;
  --dim: #A995C4;
  --dimmer: #7A6699;
  --accent: #B388FF;
  --accent-2: #E07BFF;
  --accent-ink: #1A0F2E;
  --good: #5AD6A4;
  --bad: #FF6B80;
  --sans: 'Manrope', system-ui, sans-serif;
  --display: 'Sora', var(--sans);
  --mono: ui-monospace, 'Cascadia Code', Consolas, monospace;
  --radius: 16px;
  --nav-h: 64px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  interpolate-size: allow-keywords;
}

/* Registered so they can be animated: the hero phone's bob, and the rotating border on the
   recommended download card. */
@property --bob { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* overflow-x on body alone leaks on iOS; clip the root too (clip, unlike hidden, keeps sticky working). */
html, body { overflow-x: clip; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; margin: 0 0 .4em; letter-spacing: -.01em; }
p { margin: 0 0 1em; color: var(--dim); text-wrap: pretty; }
a { color: var(--accent); }
strong { color: var(--text); font-weight: 700; }
em { color: var(--text); }
img { max-width: 100%; }
code {
  font-family: var(--mono); font-size: .88em;
  background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 6px; padding: 1px 6px;
  color: var(--text);
}
kbd {
  font-family: var(--mono); font-size: .82em; font-weight: 700; color: var(--text);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-bottom-width: 2.5px; border-radius: 6px;
  padding: 1px 7px; white-space: nowrap;
}
::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 24px; }
.wrap.narrow { max-width: 860px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.anchor { position: absolute; top: 0; }
.center { text-align: center; justify-content: center; }
.pixel { image-rendering: pixelated; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 60; padding: 10px 14px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
/* The same sparkle the logo scatters around the wordmark. */
.sparkle { width: 12px; height: 12px; fill: var(--accent); flex: none; animation: spin-slow 8s linear infinite; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-anim {
  background: linear-gradient(100deg, var(--accent), var(--accent-2), #8FD1FF, var(--accent));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-slide 8s linear infinite;
}
.fineprint { font-size: 12.5px; color: var(--dimmer); margin: 10px 0 0; }
.pill {
  display: inline-block; font-size: .78em; font-weight: 800; letter-spacing: .03em; padding: 1px 8px; border-radius: 999px;
  color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); border: 1px solid color-mix(in srgb, var(--good) 35%, transparent);
}
.pill.dim { color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 12%, transparent); border-color: color-mix(in srgb, var(--accent-2) 35%, transparent); }

@keyframes grad-slide { to { background-position: 300% 0; } }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ scroll progress */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 40; pointer-events: none; }
.progress span {
  display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent);
}

/* ---------------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,.8);
}
.navrow { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; image-rendering: pixelated; box-shadow: 0 0 0 1px var(--line), 0 0 18px -4px color-mix(in srgb, var(--accent) 60%, transparent); transition: transform .4s var(--ease-spring); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
.brand-word { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.brand.small .brand-mark { width: 24px; height: 24px; border-radius: 6px; }
.brand.small .brand-word { font-size: 15px; }
.navlinks { display: flex; gap: 4px; margin-left: auto; }
.navlinks a:not(.btn) {
  position: relative; color: var(--dim); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 6px 10px; border-radius: 8px; transition: color .15s, background .15s;
}
.navlinks a:not(.btn):hover { color: var(--text); background: color-mix(in srgb, var(--panel-2) 70%, transparent); }
.navlinks a:not(.btn)::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transition: transform .3s var(--ease-out);
}
.navlinks a.active { color: var(--text); }
.navlinks a.active::after { transform: scaleX(1); }
.nav-cta-mobile { display: none !important; }
.menu-btn {
  display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  align-items: center; justify-content: center;
}
.menu-btn .ic { width: 22px; height: 22px; }
.menu-btn .ic-close { display: none; }
.menu-btn[aria-expanded="true"] .ic-open { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }

/* ------------------------------------------------------------------- buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: 15px; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--sans);
  transition: transform .2s var(--ease-out), filter .15s, border-color .15s, background .15s, box-shadow .2s;
  overflow: hidden; isolation: isolate;
}
.btn.small { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--accent-2)));
  color: var(--accent-ink);
  box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--accent) 80%, transparent), inset 0 1px 0 rgba(255,255,255,.25);
}
/* A light sweep across primary buttons on hover. */
.btn.primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease-out);
}
.btn.primary:hover::before { transform: translateX(120%); }
.btn.primary:hover { filter: brightness(1.08); box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--accent) 90%, transparent), inset 0 1px 0 rgba(255,255,255,.25); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: color-mix(in srgb, var(--panel) 60%, transparent); border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--panel)); }
.btn.ghost .ic { transition: transform .2s var(--ease-out); }
.btn.ghost:hover .ic { transform: translateX(3px); }
.btn.is-soon { background: var(--panel-2); color: var(--dim); box-shadow: none; border-color: var(--line); cursor: default; filter: none; transform: none; }
.btn.is-soon::before { display: none; }

/* --------------------------------------------------------------------- hero */
.hero { position: relative; padding-block: 48px 96px; overflow: hidden; isolation: isolate; min-height: calc(100svh - var(--nav-h)); display: flex; align-items: center; }
.hero > .wrap { width: 100%; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 130%; pointer-events: none; z-index: -2;
  background:
    radial-gradient(40% 45% at 75% 40%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%),
    radial-gradient(30% 35% at 18% 18%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 70%),
    radial-gradient(35% 30% at 50% 100%, color-mix(in srgb, #6A3DFF 16%, transparent), transparent 70%);
  animation: glow-drift 18s ease-in-out infinite alternate;
}
@keyframes glow-drift { to { transform: translate3d(-3%, 2%, 0) scale(1.05); } }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-logo { display: block; width: 240px; height: auto; margin: 0 0 12px -8px; filter: drop-shadow(0 10px 30px color-mix(in srgb, var(--accent) 35%, transparent)); animation: logo-in 1s var(--ease-spring) both; }
@keyframes logo-in { from { opacity: 0; transform: translateY(-14px) scale(.92); } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-size: 13px; font-weight: 700; color: var(--text); padding: 6px 14px 6px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--panel-2) 80%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: 0 0 24px -8px color-mix(in srgb, var(--accent) 60%, transparent);
  animation: rise .8s .1s var(--ease-out) both;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero-copy h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.03; margin-bottom: .3em; font-weight: 800; animation: rise .9s .15s var(--ease-out) both; }
.typed { font-family: var(--display); font-size: clamp(17px, 1.9vw, 21px); font-weight: 700; color: var(--accent); min-height: 1.6em; margin: 0 0 14px; animation: rise .9s .25s var(--ease-out) both; }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -.15em; background: var(--accent-2); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-copy .lede { font-size: 17.5px; max-width: 50ch; animation: rise .9s .35s var(--ease-out) both; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-copy .hero-actions { animation: rise .9s .45s var(--ease-out) both; }
.hero-actions.center { justify-content: center; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 0; animation: rise .9s .55s var(--ease-out) both; }
.chips li {
  font-size: 12.5px; font-weight: 600; color: var(--dim); padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 70%, transparent);
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.hero-art { --pw: min(290px, 70vw); position: relative; display: flex; justify-content: center; align-items: center; min-height: 600px; perspective: 1200px; animation: art-in 1.2s .2s var(--ease-out) both; }
@keyframes art-in { from { opacity: 0; transform: translateY(40px) scale(.96); } }
.float-sparkle { position: absolute; fill: var(--accent); opacity: .8; animation: twinkle 4s ease-in-out infinite; z-index: 3; }
.float-sparkle.s1 { width: 18px; height: 18px; top: 6%; left: 10%; }
.float-sparkle.s2 { width: 12px; height: 12px; top: 58%; right: 2%; animation-delay: 1.3s; fill: var(--accent-2); }
.float-sparkle.s3 { width: 10px; height: 10px; bottom: 4%; left: 20%; animation-delay: 2.4s; }
@keyframes twinkle { 50% { opacity: .25; transform: scale(.6) rotate(45deg); } }

/* An End-portal ring turning slowly behind the phone. */
.portal-ring {
  position: absolute; width: 420px; height: 420px; border-radius: 50%; z-index: 0;
  background: conic-gradient(from 0deg, transparent, color-mix(in srgb, var(--accent) 50%, transparent), transparent 30%, color-mix(in srgb, var(--accent-2) 45%, transparent), transparent 60%, color-mix(in srgb, #6A8BFF 40%, transparent), transparent);
  -webkit-mask: radial-gradient(closest-side, transparent 72%, #000 74%, #000 100%);
  mask: radial-gradient(closest-side, transparent 72%, #000 74%, #000 100%);
  filter: blur(6px); opacity: .75; animation: spin-slow 26s linear infinite;
}

/* The hero phone: the Modern phone, built in HTML so it can move. Sized from one variable so every
   part of it scales together on small screens. */
.phone {
  --rx: 0deg; --ry: 0deg;
  position: relative; z-index: 2; width: var(--pw); height: calc(var(--pw) * 2.02);
  font-size: calc(var(--pw) / 22.3);
  padding: .8em; border-radius: 3.4em;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--frame) 70%, #fff 12%), var(--frame) 40%, color-mix(in srgb, var(--frame) 80%, #000) 100%);
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent),
    inset 0 1px 0 rgba(255,255,255,.25),
    0 50px 80px -30px rgba(0,0,0,.8),
    0 0 70px -10px color-mix(in srgb, var(--accent) 35%, transparent);
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--bob));
  transform-style: preserve-3d;
  animation: bob 7s ease-in-out infinite;
  transition: box-shadow .3s;
}
@keyframes bob { 50% { --bob: -12px; } }
.phone-shine {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.10) 45%, transparent 55%);
  background-size: 250% 100%; background-position: var(--shine, 80%) 0;
  mix-blend-mode: screen;
}
.phone-screen {
  position: relative; height: 100%; border-radius: 2.7em; overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    var(--screen);
  display: flex; flex-direction: column;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.6);
}
.phone-screen::before { /* earpiece slot */
  content: ""; position: absolute; top: .7em; left: 50%; width: 4.6em; height: .45em; border-radius: 1em;
  transform: translateX(-50%); background: #07040C; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.ps-status { display: flex; align-items: center; gap: .6em; padding: 1.9em 1.5em .5em; font-size: .88em; }
.ps-time { font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.ps-where { margin-left: auto; color: var(--dim); font-weight: 600; }
.ps-conn { width: .55em; height: .55em; border-radius: 50%; background: var(--good); box-shadow: 0 0 .6em var(--good); }
.ps-card { margin: .4em 1em; border-radius: 1.3em; background: color-mix(in srgb, var(--panel-2) 90%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.ps-notif { display: flex; gap: .8em; align-items: center; padding: .8em .9em; transition: transform .5s var(--ease-spring), opacity .35s; }
.ps-notif.swap { transform: translateY(-1.6em) scale(.94); opacity: 0; }
.ps-avatar {
  flex: none; display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink);
  font-family: var(--display); font-weight: 800; font-size: 1.05em;
}
.ps-notif-body { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.ps-row { display: flex; justify-content: space-between; align-items: baseline; }
.ps-row b { font-size: 1em; color: var(--text); }
.ps-row i { font-style: normal; font-size: .78em; color: var(--dimmer); }
.ps-msg { font-size: .92em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-sub { font-size: .76em; color: var(--dimmer); }
.ps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9em .5em; padding: 1em 1.3em .6em; }
.ps-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: .35em; }
.ps-tile img { width: 3.7em; height: 3.7em; border-radius: 1.05em; box-shadow: 0 .5em 1em -.5em rgba(0,0,0,.7); transition: transform .3s var(--ease-spring); }
.ps-tile.pop img { animation: tile-pop .6s var(--ease-spring); }
@keyframes tile-pop { 40% { transform: scale(1.14); } }
.ps-tile i { font-style: normal; font-size: .74em; font-weight: 600; color: var(--dim); }
.ps-badge {
  position: absolute; top: -.35em; right: .45em; min-width: 1.5em; height: 1.5em; padding: 0 .35em; border-radius: 1em;
  display: grid; place-items: center; font-size: .72em; font-weight: 800; color: #fff; background: var(--bad);
  box-shadow: 0 0 0 .2em var(--screen); transition: transform .4s var(--ease-spring);
}
.ps-badge.bump { transform: scale(1.35); }
.ps-now { display: flex; align-items: center; gap: .8em; padding: .8em .9em; margin-top: auto; }
.ps-art { flex: none; display: grid; place-items: center; width: 3em; height: 3em; border-radius: .8em; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); }
.ps-art .ic { width: 1.6em; height: 1.6em; }
.ps-now-body { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.35; }
.ps-now-body b { font-size: .95em; }
.ps-now-body > span { font-size: .74em; color: var(--dim); }
.ps-track { display: block; height: .32em; border-radius: 1em; background: var(--line); margin-top: .5em; overflow: hidden; }
.ps-progress { display: block; height: 100%; width: 60%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); animation: progress 24s linear infinite; }
@keyframes progress { from { width: 8%; } to { width: 100%; } }
.ps-eq { display: flex; align-items: flex-end; gap: .2em; height: 1.6em; }
.ps-eq i { width: .28em; height: 100%; border-radius: .2em; background: var(--accent); transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.ps-eq i:nth-child(2) { animation-delay: -.3s; }
.ps-eq i:nth-child(3) { animation-delay: -.6s; }
.ps-eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.ps-dots { display: flex; justify-content: center; gap: .5em; padding: .9em 0 .3em; }
.ps-dots i { width: .5em; height: .5em; border-radius: 1em; background: var(--line); transition: width .3s; }
.ps-dots i.on { width: 1.4em; background: var(--accent); }
.ps-homebar { width: 7em; height: .35em; border-radius: 1em; background: color-mix(in srgb, var(--text) 60%, transparent); margin: .4em auto .8em; }

/* Glass cards orbiting the phone. */
.float-card {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 16px; width: max-content; white-space: nowrap;
  background: color-mix(in srgb, var(--panel-2) 72%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.8);
  animation: float 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: 13.5px; color: var(--text); line-height: 1.25; }
.float-card small { display: block; font-size: 11.5px; color: var(--dim); }
.fc-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.fc-ico.good { color: #06170F; background: var(--good); animation: ring 1.6s ease-in-out infinite; }
@keyframes ring { 0%, 50%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-12deg); } 20%, 40% { transform: rotate(12deg); } }
/* Placed from the phone's edge, overlapping only its frame, so they never cover the screen. */
.fc-call { top: 30%; right: calc(50% + var(--pw) / 2 - 36px); }
.fc-prox { top: 55%; left: calc(50% + var(--pw) / 2 - 36px); animation-delay: -2s; }
.fc-way { bottom: 20%; right: calc(50% + var(--pw) / 2 - 36px); animation-delay: -4s; }
.fc-bars { display: flex; align-items: center; gap: 3px; height: 34px; width: 34px; justify-content: center; border-radius: 10px; background: color-mix(in srgb, var(--accent) 16%, transparent); }
.fc-bars i { width: 3px; height: 16px; border-radius: 2px; background: var(--accent); animation: eq .9s ease-in-out infinite; }
.fc-bars i:nth-child(2) { animation-delay: -.2s; }
.fc-bars i:nth-child(3) { animation-delay: -.5s; }
.fc-bars i:nth-child(4) { animation-delay: -.7s; }
.fc-bars i:nth-child(5) { animation-delay: -.35s; }
@keyframes float { 50% { transform: translateY(-10px); } }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; border: 2px solid var(--line); display: flex; justify-content: center; padding-top: 7px; }
.scroll-cue span { width: 4px; height: 8px; border-radius: 2px; background: var(--accent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(12px); } }

/* ------------------------------------------------------------------ marquee */
.marquee-band { padding: 26px 0 22px; border-block: 1px solid var(--line-soft); background: color-mix(in srgb, var(--panel) 60%, var(--bg)); }
.marquee-title { text-align: center; font-family: var(--display); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dimmer); margin: 0 0 14px; }
.marquee {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 12px; width: max-content; list-style: none; margin: 0; padding: 0; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  flex: none; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--dim);
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--accent-2) 70%, transparent); text-decoration-thickness: 2px;
}
/* The track is doubled by effects.js; without it the list just wraps and sits still. */
html:not(.js) .marquee-track { flex-wrap: wrap; justify-content: center; width: auto; animation: none; padding-inline: 24px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* -------------------------------------------------------------------- stats */
.stats-band { padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.big-stat { text-align: center; padding: 18px 10px; border-radius: 18px; background: linear-gradient(180deg, color-mix(in srgb, var(--panel-2) 70%, transparent), transparent); border: 1px solid var(--line-soft); }
.big-n { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(38px, 4.6vw, 56px); line-height: 1.05; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, var(--text), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big-k { display: block; font-size: 13.5px; color: var(--dim); margin-top: 6px; }

/* ------------------------------------------------------------------ status */
.status-overall {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 8px 0 26px; padding: 14px 18px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  font-family: var(--display); font-weight: 700; font-size: 17px;
}
.status-updated { margin-left: auto; font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--dimmer); }
.status-dot {
  flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--dimmer);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dimmer) 22%, transparent);
}
[data-state="up"] > .status-dot { background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 22%, transparent); animation: status-pulse 2.4s ease-in-out infinite; }
[data-state="down"] > .status-dot { background: var(--bad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 25%, transparent); }
[data-state="partial"] > .status-dot { background: #FFC56B; box-shadow: 0 0 0 4px color-mix(in srgb, #FFC56B 25%, transparent); }
@keyframes status-pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--good) 8%, transparent); } }
@media (prefers-reduced-motion: reduce) { [data-state="up"] > .status-dot { animation: none; } }
.status-grid { margin-bottom: 22px; }
.status-services {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.status-services li {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px;
  background: color-mix(in srgb, var(--panel-2) 70%, transparent); border: 1px solid var(--line-soft);
}
.svc-name { font-weight: 600; }
.svc-state { margin-left: auto; font-size: 13px; color: var(--dim); }
.status-services li[data-state="up"] .svc-state { color: var(--good); }
.status-services li[data-state="down"] .svc-state { color: var(--bad); }

/* ------------------------------------------------------------------ reveals */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }
/* Once in, cards get their own quick hover transitions back (the reveal's slow ones would win otherwise). */
html.js .reveal.done { transition-delay: 0s; }
html.js .card.reveal.done { transition: transform .35s var(--ease-out), border-color .25s, box-shadow .3s; }

/* ------------------------------------------------------------------ sections */
.section { position: relative; padding-block: 104px; }
.section.alt {
  background: linear-gradient(180deg, var(--panel), color-mix(in srgb, var(--panel) 60%, var(--bg)));
  border-block: 1px solid var(--line-soft);
}
.section h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.08; font-weight: 800; }
.section-lede { max-width: 64ch; font-size: 17px; }

/* --------------------------------------------------------------------- apps */
.apps-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; align-items: stretch; }
.app-picker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-content: start; }
.app-picker button {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px;
  background: transparent; border: 1px solid transparent; border-radius: 18px; cursor: pointer;
  color: var(--dim); font-family: var(--sans); font-weight: 700; font-size: 12.5px;
  transition: background .2s, border-color .2s, color .2s, transform .3s var(--ease-spring);
}
.app-picker img { width: 58px; height: 58px; border-radius: 16px; box-shadow: 0 10px 20px -12px rgba(0,0,0,.9); transition: transform .35s var(--ease-spring), box-shadow .3s; }
.app-picker button:hover { background: color-mix(in srgb, var(--panel-2) 70%, transparent); color: var(--text); }
.app-picker button:hover img { transform: translateY(-3px) scale(1.06); }
.app-picker button[aria-selected="true"] {
  color: var(--text); background: var(--panel-2); border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}
.app-picker button[aria-selected="true"] img { transform: scale(1.08); box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--accent) 80%, transparent); }

.app-stage {
  position: relative; overflow: hidden; border-radius: 26px; padding: 36px;
  background:
    radial-gradient(80% 60% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    var(--panel);
  border: 1px solid var(--line); min-height: 380px;
  box-shadow: 0 40px 70px -50px rgba(0,0,0,.9);
}
.app-stage::after { /* auto-advance timer */
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.app-stage.auto::after { animation: timer var(--cycle, 6s) linear forwards; }
@keyframes timer { to { transform: scaleX(1); } }
html.js .app-detail:not(.on) { display: none; }
.app-detail + .app-detail { margin-top: 32px; }
html.js .app-detail + .app-detail { margin-top: 0; }
.app-detail.on { animation: detail-in .55s var(--ease-out); }
@keyframes detail-in { from { opacity: 0; transform: translateX(22px); } }
.ad-icon { width: 88px; height: 88px; border-radius: 24px; box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--accent) 70%, transparent); margin-bottom: 18px; }
.app-detail.on .ad-icon { animation: icon-pop .7s var(--ease-spring); }
@keyframes icon-pop { from { transform: scale(.6) rotate(-10deg); opacity: 0; } }
.app-detail h3 { font-size: 28px; }
.app-detail p { font-size: 16px; }
.app-detail ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.app-detail li { position: relative; padding-left: 26px; color: var(--text); font-size: 15px; }
.app-detail li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px; border-radius: 3px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); transform: rotate(45deg); }

/* --------------------------------------------------------------------- voice */
.voice-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; color: var(--dim); }
.ticks .ic { margin-top: 3px; }
.ic.ok { color: var(--accent); }
.ic.good { color: var(--good); }

.voice-demo { border-radius: 24px; background: var(--screen); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), 0 0 60px -30px color-mix(in srgb, var(--accent) 60%, transparent); }
.vd-head, .vd-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; flex-wrap: wrap; }
.vd-head { border-bottom: 1px solid var(--line-soft); }
.vd-foot { border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--dim); }
.vd-foot #vd-mode { transition: color .3s; }
.voice-demo.verified #vd-mode { color: var(--good); }
.vd-title { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 14px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); animation: pulse-red 1.6s infinite; }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--bad) 70%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.vd-body { display: grid; grid-template-columns: 1fr 190px; }
.vd-canvas { display: block; width: 100%; height: 340px; cursor: grab; touch-action: none; }
.vd-canvas.dragging { cursor: grabbing; }
.vd-list { list-style: none; margin: 0; padding: 12px; display: grid; gap: 8px; align-content: start; border-left: 1px solid var(--line-soft); }
.vd-list li { padding: 9px 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line-soft); font-size: 12.5px; transition: border-color .2s, opacity .2s; }
.vd-list li.far { opacity: .45; }
.vd-list li.talking { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.vd-list .vl-top { display: flex; justify-content: space-between; gap: 8px; }
.vd-list b { color: var(--text); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.vd-list b i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.vd-list span { color: var(--dimmer); font-variant-numeric: tabular-nums; }
.vd-list .vl-bar { height: 5px; border-radius: 4px; background: var(--line-soft); margin-top: 7px; overflow: hidden; }
.vd-list .vl-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .15s linear; }
.voice-demo.verified .vd-list .vl-bar i { background: linear-gradient(90deg, var(--good), #9CF0CF); }
#vd-talk { user-select: none; -webkit-user-select: none; touch-action: none; }
#vd-talk.on { background: color-mix(in srgb, var(--accent) 25%, var(--panel)); border-color: var(--accent); }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--dim); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--line); transition: background .25s; }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text); transition: transform .3s var(--ease-spring); }
.switch input:checked + .switch-track { background: var(--good); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(18px); }
.switch input:checked ~ .switch-label { color: var(--good); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 3px; }

.voice-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.codec-bars { display: grid; gap: 10px; margin-top: 18px; }
.codec-bars span { display: block; font-size: 11.5px; font-weight: 700; color: var(--dim); }
.codec-bars span::after { content: ""; display: block; height: 8px; margin-top: 4px; border-radius: 6px; }
.cb-old::after { width: 100%; background: var(--line); }
.cb-new { color: var(--accent) !important; }
.cb-new::after { width: 19%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px -2px var(--accent); }
html.js .cb-new::after { width: 0; transition: width 1.2s .4s var(--ease-out); }
html.js .in .cb-new::after { width: 19%; }
.regions { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.regions li { display: grid; grid-template-columns: 30px 64px 1fr 52px; align-items: center; gap: 8px; font-size: 13px; padding: 6px 8px; border-radius: 10px; border: 1px solid transparent; transition: border-color .3s, background .3s; }
.regions li.best { border-color: color-mix(in srgb, var(--good) 45%, transparent); background: color-mix(in srgb, var(--good) 8%, transparent); }
.rg-flag { font-family: var(--display); font-weight: 800; font-size: 11px; color: var(--accent); }
.rg-name { color: var(--text); font-weight: 600; }
.rg-bar { height: 6px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.rg-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .8s var(--ease-out); }
.regions li.best .rg-bar i { background: var(--good); }
.rg-ms { white-space: nowrap; text-align: right; color: var(--dim); font-variant-numeric: tabular-nums; font-weight: 700; }
.regions li.best .rg-ms { color: var(--good); }
.mini-compare { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 12.5px; font-weight: 800; }
.mini-compare span:not(.arrow) { padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--dim); }
.mini-compare .good { color: var(--good) !important; border-color: color-mix(in srgb, var(--good) 45%, transparent) !important; background: color-mix(in srgb, var(--good) 10%, transparent); }
.mini-compare .arrow { color: var(--accent); animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }

/* ------------------------------------------------------------------- cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.card {
  --mx: 50%; --my: 50%; --tx: 0deg; --ty: 0deg;
  position: relative; background: var(--panel-2); border: 1px solid var(--line); border-radius: 20px; padding: 26px;
  transition: transform .35s var(--ease-out), border-color .25s, box-shadow .3s, opacity .8s var(--ease-out);
  isolation: isolate; overflow: hidden;
}
.card.glow::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 20%, transparent), transparent 45%);
}
.card.glow:hover::before { opacity: 1; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: 0 24px 50px -26px color-mix(in srgb, var(--accent) 55%, transparent); }
html.js .card.tilt.in:hover, html.js .card.tilt.in.tilting { transform: perspective(900px) rotateX(var(--tx)) rotateY(var(--ty)) translateY(-4px); }
.card-icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; margin-bottom: 16px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  transition: transform .4s var(--ease-spring);
}
.card:hover .card-icon { transform: rotate(-8deg) scale(1.08); }
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 18px; margin-bottom: 6px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.card p { font-size: 14.5px; margin: 0; }
.replaces { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.replaces li { font-size: 11.5px; font-weight: 700; color: var(--dim); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); }
.feat-grid .replaces li { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--accent-2) 60%, transparent); }
.feat-grid .card:last-child .replaces li { text-decoration: none; color: var(--good); border-color: color-mix(in srgb, var(--good) 35%, transparent); }
.link-card { text-decoration: none; color: inherit; }
.link-card .go { color: var(--accent); transition: transform .25s var(--ease-out); }
.link-card:hover .go { transform: translateX(4px); }
.card-app { width: 46px; height: 46px; border-radius: 13px; margin-bottom: 16px; display: block; }

/* keycaps */
.keys { margin-top: 56px; padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), transparent); }
.keys-title { font-size: 18px; }
.keys-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px 18px; }
.keys-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--dim); }
.cap {
  display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; font-size: 15px; border-radius: 10px;
  border: 1px solid var(--line); border-bottom-width: 4px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel-2) 80%, #fff 6%), var(--panel));
  transition: transform .12s, border-bottom-width .12s, box-shadow .2s, color .2s, border-color .2s;
}
.cap.wide { min-width: 88px; font-size: 13px; }
.cap.lit, .keys-list li:hover .cap {
  transform: translateY(3px); border-bottom-width: 1px; color: var(--accent-ink); border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--accent-2)));
  box-shadow: 0 0 22px -4px color-mix(in srgb, var(--accent) 80%, transparent);
}

/* ------------------------------------------------------------------- styles */
.styles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.controls { display: grid; gap: 18px; margin-top: 28px; }
.ctl { display: grid; gap: 8px; justify-items: start; }
.ctl-k { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dimmer); }
.theme-name { color: var(--accent); margin-left: 6px; letter-spacing: .04em; }
.seg-btns { display: inline-flex; padding: 4px; gap: 4px; border-radius: 14px; background: var(--screen); border: 1px solid var(--line); flex-wrap: wrap; }
.seg-btns button {
  font: inherit; font-weight: 700; font-size: 14px; color: var(--dim); background: transparent; border: 0;
  padding: 8px 16px; border-radius: 10px; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s;
}
.seg-btns button:hover { color: var(--text); }
.seg-btns button[aria-pressed="true"] { color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--accent-2))); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.seg-btns button:disabled { opacity: .35; cursor: not-allowed; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.sw {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; border: 2px solid var(--line); padding: 0;
  background: conic-gradient(var(--sw) 0 50%, var(--sw2) 0 100%); transform: rotate(-45deg);
  transition: transform .3s var(--ease-spring), border-color .2s, box-shadow .2s;
}
.sw:hover { transform: rotate(-45deg) scale(1.1); }
.sw[aria-pressed="true"] { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sw) 45%, transparent), 0 0 20px -2px var(--sw); }
.sw-end { --sw: #B388FF; --sw2: #3A2D50; }
.sw-midnight { --sw: #4FA3FF; --sw2: #404040; }
.sw-nether { --sw: #FF7043; --sw2: #5A2418; }
.sw-grove { --sw: #66BB6A; --sw2: #2C4A32; }
.sw-deep { --sw: #29B6F6; --sw2: #24384F; }
.sw-rose { --sw: #FF6E9F; --sw2: #55303F; }

.showcase { container-type: inline-size; display: grid; place-items: center; min-height: 600px; }
/* The phone's six themes, straight from PhoneTheme. */
.theme-end      { --t-frame: #3A2D50; --t-screen: #140C1F; --t-text: #F2E8FF; --t-dim: #A995C4; --t-acc: #B388FF; }
.theme-midnight { --t-frame: #404040; --t-screen: #101418; --t-text: #FFFFFF; --t-dim: #A0A0A0; --t-acc: #4FA3FF; }
.theme-nether   { --t-frame: #5A2418; --t-screen: #1A0A07; --t-text: #FFEDE2; --t-dim: #C49384; --t-acc: #FF7043; }
.theme-grove    { --t-frame: #2C4A32; --t-screen: #0A140D; --t-text: #E9F6EA; --t-dim: #93B49A; --t-acc: #66BB6A; }
.theme-deep     { --t-frame: #24384F; --t-screen: #070E18; --t-text: #E4F0FF; --t-dim: #8AA3BE; --t-acc: #29B6F6; }
.theme-rose     { --t-frame: #55303F; --t-screen: #190A11; --t-text: #FFE9F1; --t-dim: #C08FA2; --t-acc: #FF6E9F; }

.sp {
  --pw: min(270px, 48cqw);
  position: relative; display: flex; flex-direction: column;
  width: var(--pw); height: calc(var(--pw) * 2); font-size: calc(var(--pw) / 21);
  padding: .75em; border-radius: 3.2em;
  background: linear-gradient(150deg, color-mix(in srgb, var(--t-frame) 70%, #fff 14%), var(--t-frame) 40%, color-mix(in srgb, var(--t-frame) 80%, #000) 100%);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--t-acc) 55%, transparent), 0 50px 80px -30px rgba(0,0,0,.8), 0 0 80px -20px color-mix(in srgb, var(--t-acc) 45%, transparent);
  transition: width .7s var(--ease-out), height .7s var(--ease-out), border-radius .5s, background .5s, box-shadow .5s, padding .5s;
}
.sp.landscape { width: calc(var(--pw) * 2); height: var(--pw); }
.sp.turning { animation: turn .7s var(--ease-out); }
@keyframes turn { 30% { transform: rotate(var(--turn, -8deg)) scale(.94); } }
.sp-screen {
  position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 2.5em; color: var(--t-text);
  background: radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--t-acc) 18%, transparent), transparent 60%), var(--t-screen);
  transition: border-radius .5s, background .5s;
}
.sp-status { display: flex; align-items: center; gap: .6em; padding: 1.4em 1.5em .4em; font-size: .85em; font-weight: 800; }
.sp-where { margin-left: auto; color: var(--t-dim); font-weight: 600; }
.sp-conn { width: .55em; height: .55em; border-radius: 50%; background: var(--good); }
.sp-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sp-card { display: flex; gap: .7em; align-items: center; margin: .4em 1em; padding: .75em .85em; border-radius: 1.2em; background: color-mix(in srgb, var(--t-frame) 45%, var(--t-screen)); border: 1px solid color-mix(in srgb, var(--t-acc) 25%, transparent); }
.sp-av { flex: none; display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--t-acc); color: #120a1d; font-weight: 800; }
.sp-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; flex: 1; }
.sp-txt b { font-size: .95em; }
.sp-txt small { font-size: .76em; color: var(--t-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8em .4em; padding: .9em 1.2em .5em; }
.sp-apps span { display: flex; flex-direction: column; align-items: center; gap: .3em; }
.sp-apps img { width: 3.5em; height: 3.5em; border-radius: 1em; transition: border-radius .5s, width .5s, height .5s; }
.sp-apps i { font-style: normal; font-size: .7em; font-weight: 600; color: var(--t-dim); }
.sp-extra { display: none !important; }
.sp-now { margin-top: auto; }
.sp-art { flex: none; width: 2.8em; height: 2.8em; border-radius: .8em; background: linear-gradient(135deg, var(--t-acc), color-mix(in srgb, var(--t-acc) 50%, #fff)); }
.sp-track { display: block; height: .3em; border-radius: 1em; background: color-mix(in srgb, var(--t-dim) 30%, transparent); margin-top: .45em; overflow: hidden; }
.sp-track i { display: block; height: 100%; width: 40%; background: var(--t-acc); border-radius: inherit; animation: progress 20s linear infinite; }
.sp-nav { display: flex; align-items: center; justify-content: space-between; padding: .6em 1.6em 1em; color: var(--t-dim); }
.sp-chev { font-style: normal; font-size: 1.6em; line-height: 1; }
.sp-bar { width: 6em; height: .35em; border-radius: 1em; background: color-mix(in srgb, var(--t-text) 60%, transparent); }
.sp-buttons { display: none; }

/* Modern, landscape: cards on the left, apps on the right, controls in a column on the far right. */
.sp.modern.landscape .sp-screen { flex-direction: row; flex-wrap: wrap; }
.sp.modern.landscape .sp-status { width: 100%; padding: .9em 1.5em .2em; }
.sp.modern.landscape .sp-main { display: grid; grid-template-columns: 1fr 1.25fr; grid-template-rows: auto 1fr; flex: 1; align-content: start; }
.sp.modern.landscape .sp-msg { grid-column: 1; grid-row: 1; }
.sp.modern.landscape .sp-now { grid-column: 1; grid-row: 2; margin-top: .4em; align-self: start; }
.sp.modern.landscape .sp-apps { grid-column: 2; grid-row: 1 / span 2; grid-template-columns: repeat(4, 1fr); gap: .5em .3em; padding: .3em .6em; align-content: start; }
.sp.modern.landscape .sp-apps img { width: 2.7em; height: 2.7em; }
.sp.modern.landscape .sp-extra { display: flex !important; }
.sp.modern.landscape .sp-extra:nth-last-child(-n+1) { display: none !important; }
.sp.modern.landscape .sp-nav { flex-direction: column; justify-content: center; gap: 1.2em; padding: .4em .9em; }
.sp.modern.landscape .sp-bar { width: .35em; height: 4em; }

/* Classic: the original pixel handset - squared off, chunky bezel, three buttons under the screen. */
.sp.classic {
  border-radius: .5em; padding: .9em .9em .5em;
  background: var(--t-frame);
  box-shadow:
    inset 0 0 0 .3em color-mix(in srgb, var(--t-frame) 70%, #fff 18%),
    inset 0 0 0 .6em var(--t-frame),
    0 0 0 .3em color-mix(in srgb, var(--t-frame) 60%, #000),
    0 50px 80px -30px rgba(0,0,0,.8);
}
.sp.classic .sp-screen { border-radius: 0; background: var(--t-screen); box-shadow: inset 0 0 0 .2em rgba(0,0,0,.5); }
.sp.classic .sp-status { padding: .8em 1em .4em; font-family: var(--mono); background: color-mix(in srgb, var(--t-frame) 50%, transparent); }
.sp.classic .sp-where { display: none; }
.sp.classic .sp-conn { margin-left: auto; border-radius: 0; }
.sp.classic .sp-card, .sp.classic .sp-nav { display: none; }
.sp.classic .sp-extra { display: flex !important; }
.sp.classic .sp-apps { gap: 1em .3em; padding: 1.2em .9em; }
.sp.classic .sp-apps img { border-radius: .25em; width: 3.4em; height: 3.4em; image-rendering: auto; }
.sp.classic .sp-apps i { font-family: var(--mono); font-size: .64em; text-transform: uppercase; letter-spacing: .02em; }
.sp.classic .sp-buttons { display: flex; justify-content: center; gap: 1.2em; padding: .7em 0 .2em; }
.sp.classic .sp-buttons i { width: 2.4em; height: 1.2em; background: color-mix(in srgb, var(--t-frame) 60%, #000); box-shadow: inset 0 -.2em 0 rgba(0,0,0,.35), inset 0 .15em 0 rgba(255,255,255,.12); }
.sp.classic .sp-buttons i:nth-child(2) { width: 1.5em; background: color-mix(in srgb, var(--t-acc) 70%, #000); }
.sp.classic.landscape { flex-direction: row; padding: .9em .5em .9em .9em; }
.sp.classic.landscape .sp-apps { grid-template-columns: repeat(6, 1fr); padding: .6em; gap: .5em .2em; }
.sp.classic.landscape .sp-apps img { width: 2.6em; height: 2.6em; }
.sp.classic.landscape .sp-buttons { flex-direction: column; padding: 0 .2em 0 .7em; }
.sp.classic.landscape .sp-buttons i { width: 1.2em; height: 2.4em; }
.sp.classic.landscape .sp-buttons i:nth-child(2) { height: 1.5em; }

/* ---------------------------------------------------------------- how it works */
.modes { display: grid; gap: 28px; margin-top: 40px; }
.mode {
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 30px;
  box-shadow: 0 30px 60px -40px rgba(0,0,0,.8);
}
.mode-addon { border-color: color-mix(in srgb, var(--good) 35%, var(--line)); }
.mode-head h3 { font-size: 22px; margin: 10px 0 6px; }
.mode-head p { max-width: 70ch; margin: 0; }
.tag {
  display: inline-block; font-family: var(--display); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.tag-good { color: var(--good); background: color-mix(in srgb, var(--good) 12%, transparent); border-color: color-mix(in srgb, var(--good) 35%, transparent); }

.dg { margin: 26px 0 22px; }
.dg svg { display: block; width: 100%; height: auto; overflow: visible; }
.dg-tall { display: none !important; max-width: 420px; margin-inline: auto; }

.dg-card { fill: var(--panel-2); stroke: var(--line); stroke-width: 1.5; }
.dg-plain { fill: color-mix(in srgb, var(--panel-2) 50%, var(--panel)); stroke-dasharray: 5 5; }
.dg-hub { fill: color-mix(in srgb, var(--accent) 16%, var(--panel-2)); stroke: var(--accent); stroke-width: 2; animation: hub-glow 3s ease-in-out infinite; }
@keyframes hub-glow { 50% { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 70%, transparent)); } }
.dg-server { fill: color-mix(in srgb, var(--good) 9%, var(--panel-2)); stroke: var(--good); stroke-width: 2; }
.dg-title { font-family: var(--display); font-weight: 700; font-size: 16px; fill: var(--text); }
.dg-hub-t { font-size: 20px; }
.dg-sub { font-family: var(--sans); font-weight: 600; font-size: 13px; fill: var(--dim); }
.dg-sub2 { font-family: var(--sans); font-size: 12px; fill: var(--dimmer); }
.dg-note { font-family: var(--sans); font-size: 13px; fill: var(--dimmer); font-style: italic; }
.dg-lbl { font-family: var(--sans); font-weight: 700; font-size: 12.5px; fill: var(--dim); }
.dg-lbl-good { fill: var(--good); }
.dg-flow { fill: none; stroke: color-mix(in srgb, var(--accent) 55%, transparent); stroke-width: 2.5; }
.dg-game { fill: none; stroke: var(--dimmer); stroke-width: 1.8; stroke-dasharray: 5 6; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.dg-verified { fill: none; stroke: color-mix(in srgb, var(--good) 60%, transparent); stroke-width: 2.5; }
/* Packets travelling along the flows: a short dash on a path whose length is normalised to 100. */
.dg-packet {
  fill: none; stroke: var(--accent-2); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 10 110; stroke-dashoffset: 10;
  filter: drop-shadow(0 0 5px var(--accent-2));
  animation: packet 2.2s linear infinite;
}
.dg-packet.d2 { animation-delay: -1.1s; }
.dg-packet.good { stroke: #9CF0CF; filter: drop-shadow(0 0 5px var(--good)); animation-duration: 1.6s; }
@keyframes packet { to { stroke-dashoffset: -100; } }
.mk-acc { fill: var(--accent); }
.mk-good { fill: var(--good); }
.mk-dim { fill: var(--dimmer); }

.mode-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mode-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--dim); }
.mode-points .ic { margin-top: 3px; }
.soon {
  flex: none; display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-2); border: 1px solid color-mix(in srgb, var(--accent-2) 40%, transparent);
  border-radius: 999px; padding: 2px 8px;
}

.legend { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 22px; font-size: 13px; color: var(--dim); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg { display: inline-block; width: 26px; height: 0; border-top: 2.5px solid var(--accent); }
.lg-game { border-top: 2px dashed var(--dimmer); }
.lg-good { border-top-color: var(--good); }

.compare-wrap { margin-top: 44px; overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.compare caption { text-align: left; padding: 18px 20px 6px; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--text); }
.compare th, .compare td { padding: 13px 20px; text-align: left; border-top: 1px solid var(--line-soft); }
.compare thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--dimmer); font-weight: 700; border-top: none; }
.compare tbody th { font-weight: 600; color: var(--text); }
.compare td { color: var(--dim); }
.compare td.y::before, .compare td.g::before { content: "\2713"; font-weight: 800; margin-right: 8px; }
.compare td.y::before { color: var(--accent); }
.compare td.g { color: var(--good); font-weight: 600; }
.compare td.n { color: var(--dimmer); }
.compare td.p { color: var(--dim); }
.compare tbody tr { transition: background .2s; }
.compare tbody tr:hover { background: color-mix(in srgb, var(--panel-2) 70%, transparent); }

/* ----------------------------------------------------------------- endernet */
.net-grid { grid-template-columns: repeat(3, 1fr); }
.soon-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 26px 0 0; font-size: 14.5px; }
.soon-line img { width: 24px; height: 24px; }

/* ----------------------------------------------------------------- download */
.get-section { overflow: hidden; }
.get-glow { position: absolute; inset: 10% 10% auto; height: 70%; pointer-events: none; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.picker { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 30px; }
.get-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.get-card {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 30px;
  overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; isolation: isolate;
}
.get-card .btn { margin-top: auto; }
.get-card::after {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 300px; height: 300px; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 18%, transparent), transparent);
  pointer-events: none;
}
/* The recommended card wears a slowly turning gradient border. */
.get-card.featured { border-color: transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, conic-gradient(from var(--angle), var(--accent), var(--accent-2), #6A8BFF, var(--accent)) border-box; animation: border-spin 6s linear infinite; box-shadow: 0 30px 70px -40px color-mix(in srgb, var(--accent) 80%, transparent); }
@keyframes border-spin { to { --angle: 360deg; } }
.ribbon { position: absolute; top: 0; right: 24px; border-radius: 0 0 10px 10px; padding: 4px 12px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.get-head { align-self: stretch; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.get-card.featured .get-head { margin-top: 8px; }
.get-head h3 { font-size: 25px; margin: 0; }
.ver { font-size: 12.5px; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 3px 10px; border-radius: 999px; transition: transform .3s var(--ease-spring); }
.ver.flash { transform: scale(1.12); }
.get-card > p { margin: 12px 0 14px; }
.get-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.get-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--dim); }
.get-list .ic { margin-top: 2px; }
.fineprint.center { text-align: center; margin-top: 18px; }

/* ------------------------------------------------------------ server owners */
.servers-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.server-side { display: grid; gap: 18px; }
.steps { list-style: none; padding: 0; margin: 26px 0 6px; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps li div { display: flex; flex-direction: column; gap: 2px; }
.steps strong { font-size: 15px; }
.steps span:not(.step-n) { font-size: 14px; color: var(--dim); }
.step-n {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  font-family: var(--display); font-weight: 800; font-size: 14px; color: var(--good);
  background: color-mix(in srgb, var(--good) 12%, transparent); border: 1px solid color-mix(in srgb, var(--good) 35%, transparent);
}
.code-card { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #0A0612; box-shadow: 0 30px 60px -40px rgba(0,0,0,.9); }
.code-top { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); background: var(--panel); font-size: 12px; color: var(--dimmer); font-family: var(--mono); }
.code-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.code-top i:nth-child(1) { background: #FF6B80; } .code-top i:nth-child(2) { background: #FFC766; } .code-top i:nth-child(3) { background: var(--good); }
.code-top span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code { margin: 0; padding: 16px 18px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--dim); }
.code code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.code .k { color: var(--accent); } .code .s { color: #FFC0E8; } .code .b { color: var(--good); } .code .n { color: #8FD1FF; }
.stat-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.stat { display: flex; align-items: center; gap: 16px; }
.stat-n { font-family: var(--display); font-size: 38px; line-height: 1; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; min-width: 30px; }
.stat-k { font-size: 14px; color: var(--dim); }

/* ---------------------------------------------------------------------- faq */
.faq-list { margin-top: 28px; display: grid; gap: 10px; }
details { border: 1px solid var(--line-soft); border-radius: 16px; background: color-mix(in srgb, var(--panel) 60%, transparent); transition: border-color .25s, background .25s; }
details:hover { border-color: var(--line); }
details[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--panel); }
summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 16.5px; color: var(--text);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  font-size: 20px; font-weight: 400; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
  transition: transform .3s var(--ease-spring);
}
details[open] summary::after { transform: translateY(-50%) rotate(135deg); }
details::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete; }
details[open]::details-content { block-size: auto; }
.faq-a p { margin: 0; padding: 0 20px 20px; max-width: 70ch; }

/* ---------------------------------------------------------------------- cta */
.cta { position: relative; overflow: hidden; padding-block: 120px; text-align: center; isolation: isolate; border-top: 1px solid var(--line-soft); }
.cta-portal { position: absolute; inset: 0; display: grid; place-items: center; z-index: -1; pointer-events: none; }
.cta-portal span { grid-area: 1 / 1; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); animation: portal 6s linear infinite; width: 900px; height: 900px; opacity: 0; }
.cta-portal span:nth-child(2) { animation-delay: -2s; }
.cta-portal span:nth-child(3) { animation-delay: -4s; }
@keyframes portal { from { transform: scale(.15); opacity: 0; } 20% { opacity: 1; } to { transform: scale(1); opacity: 0; } }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(40% 50% at 50% 50%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); }
.cta-mark { width: 72px; height: 72px; border-radius: 18px; image-rendering: pixelated; box-shadow: 0 0 0 1px var(--line), 0 0 50px -6px color-mix(in srgb, var(--accent) 80%, transparent); animation: bob-plain 5s ease-in-out infinite; }
@keyframes bob-plain { 50% { transform: translateY(-8px) rotate(-3deg); } }
.cta h2 { font-size: clamp(38px, 6vw, 72px); font-weight: 800; line-height: 1.02; margin: 22px 0 12px; }
.cta p { font-size: 18px; }

/* -------------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line-soft); padding-block: 48px 40px; background: color-mix(in srgb, var(--panel) 50%, var(--bg)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-brand p { font-size: 14px; margin: 12px 0 0; }
.footer-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; font-size: 14px; }
.footer-col h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dimmer); margin: 0 0 4px; }
.footer-col a { color: var(--dim); text-decoration: none; transition: color .15s; }
.footer-col a:hover { color: var(--text); }
.footer-note { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 22px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--dimmer); }
.linklike {
  background: none; border: none; color: var(--dim); font: inherit; font-size: 14px; text-align: left;
  cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px;
}
.linklike:hover { color: var(--accent); }

/* -------------------------------------------------------------------- dialog */
dialog#feedback-dialog {
  border: 1px solid var(--line); border-radius: 20px; background: var(--panel);
  color: var(--text); padding: 26px; width: min(460px, calc(100vw - 32px));
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), 0 0 60px -30px color-mix(in srgb, var(--accent) 70%, transparent);
}
dialog#feedback-dialog[open] { animation: dialog-in .35s var(--ease-spring); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
dialog#feedback-dialog::backdrop { background: rgba(5, 2, 10, .65); backdrop-filter: blur(4px); }
.feedback-form h3 { margin-bottom: 16px; }
.seg { display: flex; gap: 16px; margin-bottom: 16px; }
.seg label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--dim); cursor: pointer; }
.seg input { accent-color: var(--accent); }
.feedback-form label { display: block; font-size: 12px; font-weight: 700; color: var(--dim); margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .05em; }
.feedback-form .seg label { text-transform: none; font-size: 14px; letter-spacing: 0; margin: 0; display: flex; }
.optional { text-transform: none; font-weight: 400; letter-spacing: 0; color: var(--dimmer); }
.feedback-form textarea,
.feedback-form input[type="text"] {
  width: 100%; background: var(--screen); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); padding: 10px 12px; font-family: var(--sans); font-size: 14px; resize: vertical;
}
.feedback-form textarea:focus,
.feedback-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.fb-status { font-size: 13px; min-height: 1.4em; color: var(--dim); }
.fb-status.ok { color: var(--good); }
.fb-status.bad { color: var(--bad); }
.fb-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }

/* ------------------------------------------------------------------- laptop */
@media (max-width: 1100px) {
  .navlinks a:not(.btn) { padding: 6px 7px; font-size: 13.5px; }
  .app-picker { grid-template-columns: repeat(4, 1fr); }
  .keys-list { grid-template-columns: repeat(3, 1fr); }
}
/* ------------------------------------------------------------------- tablet */
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav-cta { display: none; }
  .navlinks {
    position: absolute; top: var(--nav-h); left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 2px; padding: 12px 16px 18px;
    /* Solid: a backdrop-filter inside the nav's own backdrop-filter can't see the page behind it. */
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -20px rgba(0,0,0,.8);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease-out), visibility .25s;
  }
  .navlinks.open { transform: none; opacity: 1; visibility: visible; }
  .navlinks a:not(.btn) { font-size: 16px; padding: 12px 10px; }
  .navlinks a:not(.btn)::after { display: none; }
  .navlinks a.active { background: var(--panel-2); }
  .nav-cta-mobile { display: inline-flex !important; margin-top: 10px; }
  .hero { min-height: 0; }
  .hero-grid, .servers-grid, .voice-grid, .styles-grid, .apps-layout { grid-template-columns: 1fr; }
  .hero-art { min-height: 560px; margin-top: 12px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .grid, .net-grid, .voice-cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .showcase { min-height: 0; padding-block: 12px; }
  .app-picker { grid-template-columns: repeat(7, 1fr); }
}
/* The wide diagrams shrink their text below reading size on phones, so swap in the stacked versions. */
@media (max-width: 720px) {
  .dg-wide { display: none !important; }
  .dg-tall { display: block !important; }
  .section { padding-block: 72px; }
  .mode { padding: 22px 18px; }
  .get-grid, .grid, .net-grid, .voice-cards { grid-template-columns: 1fr; }
  .compare { min-width: 0; font-size: 13px; }
  .compare th, .compare td { padding: 11px 10px; }
  .compare caption { padding-inline: 12px; }
  .compare thead th { font-size: 10.5px; letter-spacing: .05em; }
  .compare td.y::before, .compare td.g::before { margin-right: 4px; }
  .app-picker { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .app-picker button { padding: 10px 2px 8px; font-size: 11px; border-radius: 14px; }
  .app-picker img { width: 46px; height: 46px; border-radius: 13px; }
  .app-stage { padding: 26px 22px; min-height: 0; }
  .vd-body { grid-template-columns: 1fr; }
  .vd-canvas { height: 280px; }
  .vd-list { grid-template-columns: 1fr 1fr; border-left: 0; border-top: 1px solid var(--line-soft); }
  .keys-list { grid-template-columns: 1fr 1fr; }
  /* No room beside the phone: the cards sit above and below it instead. */
  .hero-art { min-height: calc(var(--pw) * 2.02 + 130px); }
  .fc-way, .scroll-cue { display: none; }
  .fc-call { top: 0; right: auto; left: 2%; }
  .fc-prox { top: auto; bottom: 0; left: auto; right: 2%; }
}
/* ------------------------------------------------------------------- phone */
@media (max-width: 480px) {
  .wrap { padding-inline: 16px; }
  .hero { padding-block: 28px 80px; }
  .hero-logo { width: 190px; }
  .hero-badge { font-size: 12px; }
  .hero-copy .lede { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .portal-ring { width: 320px; height: 320px; }
  .hero-art { --pw: min(250px, 66vw); }
  .float-card { padding: 8px 10px 8px 8px; gap: 8px; }
  .float-card b { font-size: 12px; }
  .float-card small { font-size: 10.5px; }
  .fc-ico, .fc-bars { width: 28px; height: 28px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stats-grid .big-stat:last-child { grid-column: 1 / -1; }
  .stat-n { font-size: 32px; }
  .app-picker { grid-template-columns: repeat(4, 1fr); }
  .ad-icon { width: 70px; height: 70px; border-radius: 20px; }
  .app-detail h3 { font-size: 24px; }
  .vd-list { grid-template-columns: 1fr; }
  .keys { padding: 20px 16px; }
  .keys-list { grid-template-columns: 1fr; }
  .picker { gap: 16px; }
  .get-card { padding: 24px 20px; }
  .regions li { grid-template-columns: 24px 56px 1fr 54px; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta { padding-block: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; width: auto; padding-inline: 24px; }
  .marquee-track li[aria-hidden="true"] { display: none; }
  .dg-packet { display: none; }
  .cta-portal { display: none; }
}

/* ------------------------------------------------------------------ brand scenes
 * The illustrated scenes from the brand pack (tools/brand-assets.py makes the WebP copies). Framed
 * like the site's cards, and cropped to a wide band so a section isn't pushed a screen down. */
.scene {
  position: relative; margin: 36px 0; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); background: var(--screen);
  box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--accent) 55%, transparent);
}
.scene img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; }
.scene.wide img { aspect-ratio: 21 / 9; }
/* The picture fades into the page along its bottom edge, as if lit from the section above. */
.scene::after { content: ""; position: absolute; inset: auto 0 0; height: 28%; pointer-events: none;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 70%, transparent), transparent); }

.cta-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; text-align: left; }
.cta-split .cta-copy { text-align: center; }
.cta-scene { margin: 0; }
.cta-scene img { aspect-ratio: 1168 / 784; }

@media (max-width: 960px) {
  .cta-split { grid-template-columns: 1fr; gap: 32px; }
  .scene img, .scene.wide img { aspect-ratio: 16 / 9; }
}

/* ------------------------------------------------------------ E-Launcher, under the install scene */
.launcher-band {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; margin-top: 24px;
  padding: 22px 26px; border-radius: 24px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: radial-gradient(60% 120% at 0% 50%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), var(--panel);
  box-shadow: 0 30px 70px -45px color-mix(in srgb, var(--accent) 80%, transparent);
}
.launcher-ic { width: 80px; height: 80px; border-radius: 20px; filter: drop-shadow(0 10px 24px color-mix(in srgb, var(--accent) 45%, transparent)); }
.launcher-txt h3 { font-size: 22px; margin: 0 0 6px; }
.launcher-txt p { margin: 0; color: var(--dim); font-size: 15px; max-width: 62ch; }
.launcher-go { display: grid; justify-items: center; gap: 8px; }
.launcher-go .btn { white-space: nowrap; }
.launcher-meta { font-size: 12.5px; color: var(--dimmer); font-variant-numeric: tabular-nums; }
.or-jar { text-align: center; color: var(--dimmer); font-size: 14px; margin: 26px 0 0; }
@media (max-width: 860px) {
  .launcher-band { grid-template-columns: auto 1fr; }
  .launcher-go { grid-column: 1 / -1; justify-items: stretch; }
  .launcher-go .btn { justify-content: center; }
}
@media (max-width: 520px) {
  .launcher-band { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 22px 18px; }
  .launcher-go { justify-items: center; width: 100%; }
}
