/* sonivora.app
   Colors, radii, spacing and fonts come from the Sonivora design system (tokens.json); the additions
   for the website (display fonts, page width, device) are in its "Website" section. Colors only appear
   in :root; everything else uses the variables (scripts/build.py --check checks this). Like the app, the website
   only has the dark appearance. */

:root {
  color-scheme: dark;

  /* Colors from the design system */
  --background: #0a0a0d;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.11);
  --separator: rgba(255, 255, 255, 0.08);
  --ink: #ffffff;
  --ink-secondary: rgba(255, 255, 255, 0.62);
  --ink-tertiary: rgba(255, 255, 255, 0.4);
  --accent: #ffb13e;
  --accent-deep: #ff6b3d;
  --on-accent: #000000;
  --ai-amber: #ff9e4d;
  --ai-rose: #ed5c8c;
  --ai-violet: #8561fa;
  --ai-sky: #4dbfff;
  --orb-amber: #ffbd52;
  --orb-coral: #ff7352;
  --orb-magenta: #eb3d85;
  --orb-violet: #7545f2;
  --liked-coral: #ff6b5c;
  --liked-pink: #ed337a;
  --liked-violet: #7338e6;
  --audiobook-violet: #9980ff;
  --audiobook-deep: #4d33b3;
  --podcast-teal: #4dd9bf;
  --podcast-deep: #1a738c;
  --scrim: rgba(0, 0, 0, 0.55);

  /* Website additions (design system, "Website" section) */
  --device-frame: #1b1b21;
  --device-edge: rgba(255, 255, 255, 0.16);
  --glass: rgba(10, 10, 13, 0.72);

  /* Radii and spacing from the design system */
  --radius-6: 6px;
  --radius-8: 8px;
  --radius-10: 10px;
  --radius-16: 16px;
  --radius-20: 20px;
  --radius-pill: 9999px;
  --space-8: 8px;
  --space-12: 12px;
  --space-18: 18px;
  --space-24: 24px;
  --space-30: 30px;
  --gutter: 16px;
  --tap-target: 44px;
  --primary-height: 50px;

  /* Fonts: Apple's system font, without font files */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;

  /* Website: width, margin, sections, display sizes */
  --page-width: 1140px;
  --page-gutter: clamp(16px, 5vw, 56px);
  --section-space: clamp(64px, 10vw, 144px);
  --display-xl: clamp(46px, min(9.5vw, 10.5svh), 112px);
  --display-l: clamp(38px, 6.4vw, 76px);
  --display-m: clamp(30px, 4.2vw, 52px);
  --lead: clamp(19px, 1.9vw, 23px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Height of a phone relative to its width (screen 780 × 1696 plus frame): phones follow the
     window height, so they're fully visible even on a 14-inch MacBook. */
  --phone-ratio: 2.25;
}

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

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 400 17px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--accent); color: var(--on-accent); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-8);
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--page-width) + 2 * var(--page-gutter));
  margin-inline: auto;
  padding-inline: max(var(--page-gutter), env(safe-area-inset-left));
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Typography ---------- */

.eyebrow {
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}

.display-xl {
  font-size: var(--display-xl);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.display-l {
  font-size: var(--display-l);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.display-m {
  font-size: var(--display-m);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.lead {
  font-size: var(--lead);
  line-height: 1.45;
  color: var(--ink-secondary);
  text-wrap: pretty;
}

.lead strong, .text strong { color: var(--ink); font-weight: 600; }

.text {
  color: var(--ink-secondary);
  text-wrap: pretty;
}

.title3 { font-size: 20px; line-height: 25px; font-weight: 700; letter-spacing: -0.01em; }
.headline { font-size: 17px; line-height: 22px; font-weight: 600; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.page .site-header {
  background: var(--glass);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
  border-bottom-color: var(--separator);
}

.bar {
  display: flex;
  align-items: center;
  gap: var(--space-18);
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap-target);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand .orb { width: 30px; height: 30px; }
/* When small, the orb breathes a little deeper, otherwise you wouldn't see it */
.brand .orb .body { transform: scale(calc(1 + 0.04 * var(--breath, 0))); }

.nav {
  display: flex;
  gap: 4px;
  margin-inline: auto;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--separator);
}

.nav a {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="true"] { color: var(--ink); background: var(--surface-strong); }

.bar-end { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav + .bar-end { margin-left: 0; }

.popover { position: relative; }

.popover > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: var(--tap-target);
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--separator);
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.popover > summary::-webkit-details-marker { display: none; }
.popover > summary:hover, .popover[open] > summary { color: var(--ink); background: var(--surface-strong); }
.popover > summary .icon { width: 17px; height: 17px; }

.popover-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  padding: 6px;
  border-radius: var(--radius-16);
  background: var(--device-frame);
  border: 1px solid var(--device-edge);
  box-shadow: 0 24px 60px var(--scrim);
}

.popover-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--tap-target);
  padding: 0 12px;
  border-radius: var(--radius-10);
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 15px;
}

.popover-panel a:hover { background: var(--surface); color: var(--ink); }
.popover-panel a[aria-current="page"] { color: var(--ink); }
.popover-panel a[aria-current="page"]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.menu { display: none; }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; }
  .nav + .bar-end { margin-left: auto; }
}

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-12); }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: var(--primary-height);
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.2s;
}

.pill .icon { width: 18px; height: 18px; }

.pill-accent {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 34px color-mix(in srgb, var(--accent) 28%, transparent);
}

.pill-glass {
  background: var(--surface-strong);
  color: var(--ink);
  border: 1px solid var(--separator);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

a.pill:hover { transform: translateY(-1px); }
a.pill-glass:hover { background: color-mix(in srgb, var(--ink) 16%, transparent); }

.soon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--on-accent);
  opacity: 0.55;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.link .icon { width: 16px; height: 16px; }

/* ---------- Brand mark (sound orb) ---------- */

.orb { overflow: visible; }
.orb .stop-amber { stop-color: var(--orb-amber); }
.orb .stop-coral { stop-color: var(--orb-coral); }
.orb .stop-magenta { stop-color: var(--orb-magenta); }
.orb .stop-violet { stop-color: var(--orb-violet); }
.orb .stop-clear { stop-color: var(--background); stop-opacity: 0; }
.orb .stop-shade { stop-color: var(--on-accent); stop-opacity: 0.35; }
.orb .stop-gloss { stop-color: var(--ink); stop-opacity: 0.55; }
.orb .stop-gloss-end { stop-color: var(--ink); stop-opacity: 0; }
.orb .wave { fill: none; stroke: var(--ink); stroke-width: 6.4; stroke-linecap: round; stroke-linejoin: round; }
.orb .echo { fill: none; stroke: var(--ink); stroke-width: 2.8; stroke-linecap: round; opacity: 0; }
.orb .echo-1 { opacity: calc(0.2 * var(--live, 0)); }
.orb .echo-2 { opacity: calc(0.08 * var(--live, 0)); }
.orb .ring { fill: none; stroke: var(--ink); stroke-width: 0.8; }
.orb .ring-1 { stroke-opacity: 0.07; }
.orb .ring-2 { stroke-opacity: 0.05; }
.orb .ring-3 { stroke-opacity: 0.03; }
.orb .body {
  transform-origin: 100px 100px;
  transform: scale(calc(1 + 0.012 * var(--breath, 0)));
}
.orb .glow {
  filter: drop-shadow(0 6px 18px color-mix(in srgb, var(--orb-magenta) 58%, transparent));
}

/* ---------- Home: hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 76px 0 96px;
  text-align: center;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}

.hero::before {
  width: min(70vw, 760px);
  aspect-ratio: 1;
  left: -18vw;
  bottom: -10vh;
  background: radial-gradient(circle, color-mix(in srgb, var(--orb-coral) 30%, transparent), transparent 64%);
}

.hero::after {
  width: min(64vw, 700px);
  aspect-ratio: 1;
  right: -16vw;
  top: -12vh;
  background: radial-gradient(circle, color-mix(in srgb, var(--orb-violet) 34%, transparent), transparent 64%);
}

/* Glow under the pointer (site.js sets --gx and --gy), only with a mouse or trackpad */
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 40%),
    color-mix(in srgb, var(--orb-amber) 30%, transparent),
    color-mix(in srgb, var(--orb-magenta) 15%, transparent) 170px,
    transparent 400px);
}

.hero-glow.is-on { opacity: 1; }

.hero-inner { display: grid; justify-items: center; gap: 14px; }

.hero-orb {
  /* Margins relative to the orb (percentages would be relative to the page width): the rings touch neither header nor text */
  --orb: clamp(150px, min(30vw, 23svh), 340px);
  width: var(--orb);
  aspect-ratio: 1;
  margin: calc(var(--orb) * -0.03) 0 calc(var(--orb) * -0.02);
  transform: translate(calc(var(--px, 0) * 14px), calc(var(--py, 0) * 14px - var(--hero-p, 0) * 60px)) scale(calc(1 - var(--hero-p, 0) * 0.16));
  opacity: calc(1 - var(--hero-p, 0) * 0.9);
  transition: transform 0.6s var(--ease);
  cursor: default;
}

.hero-orb .orb { width: 100%; height: 100%; }

.hero h1 { max-width: 15ch; text-wrap: balance; }
.hero .lead { max-width: 34em; }
.hero .meta { max-width: 40em; font-size: 14px; color: var(--ink-tertiary); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-secondary);
}

.motion .status-dot { animation: pulse 2.4s var(--ease) infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--ink-tertiary);
}

.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 9px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: var(--radius-pill);
  background: var(--ink-secondary);
}

.motion .scroll-cue::after { animation: cue 2.2s var(--ease) infinite; }

/* On the phone the text fills the screen anyway: no empty space left before the phone below */
@media (max-width: 600px) {
  .hero { min-height: 0; padding: 92px 0 48px; }
  .scroll-cue { display: none; }
}

@keyframes cue {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  80% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Device ---------- */

.phone {
  position: relative;
  width: var(--phone-width, 320px);
  /* Percentages in padding would refer to the parent block, so it's computed from the phone's width. */
  padding: calc(var(--phone-width, 320px) * 0.036);
  border-radius: 15.5% / 7.3%;
  background: var(--device-frame);
  box-shadow:
    0 0 0 1px var(--device-edge),
    inset 0 0 0 1px color-mix(in srgb, var(--ink) 6%, transparent),
    0 50px 120px -30px var(--scrim),
    0 30px 80px -40px color-mix(in srgb, var(--tint, var(--orb-violet)) 70%, transparent);
  flex: none;
}


.screen {
  position: relative;
  width: 100%;
  aspect-ratio: 780 / 1696;
  overflow: hidden;
  border-radius: 12.4% / 5.7%;
  background: var(--background);
}

.screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s var(--ease);
}

.screen img + img { opacity: 0; }
.screen img.is-active { opacity: 1; }
.screen img.is-hidden { opacity: 0; }

/* ---------- Hero phone ---------- */

.showcase {
  position: relative;
  display: grid;
  justify-items: center;
  margin-top: calc(var(--section-space) * -0.35);
  padding-bottom: var(--section-space);
}

.showcase .phone {
  --phone-width: clamp(220px, min(30vw, calc((100svh - 150px) / var(--phone-ratio))), 360px);
  --tint: var(--orb-magenta);
}

.motion .showcase .phone {
  transform: translateY(calc((1 - var(--rise, 1)) * 90px)) scale(calc(0.94 + var(--rise, 1) * 0.06));
  opacity: calc(0.25 + var(--rise, 1) * 0.75);
}

.showcase-caption {
  margin-top: 28px;
  max-width: 30em;
  text-align: center;
  font-size: 14px;
  color: var(--ink-tertiary);
}

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

.section { position: relative; padding-block: var(--section-space); }
.section-tight { padding-block: calc(var(--section-space) * 0.6); }

.section-head { display: grid; gap: clamp(12px, 1.6vw, 18px); max-width: 46rem; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head + * { margin-top: clamp(32px, 5.5vw, 72px); }

.separator { height: 1px; background: var(--separator); border: 0; margin: 0; }

/* ---------- Statement (word by word) ---------- */

.statement {
  max-width: 22ch;
  margin-inline: auto;
  font-size: var(--display-m);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.022em;
  text-align: center;
  text-wrap: balance;
}

.statement .w { transition: color 0.35s var(--ease); }
.motion .statement .w { color: color-mix(in srgb, var(--ink) 18%, transparent); }
.motion .statement .w.on { color: var(--ink); }
.statement .w.accent.on { color: var(--accent); }

/* ---------- Tour with a fixed phone ---------- */

.tour { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); }

.tour-steps { display: grid; }

.tour-step {
  min-height: 86svh;
  display: grid;
  align-content: center;
  gap: 16px;
  max-width: 30rem;
}

.tour-step .num {
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

.tour-step .phone { display: none; }

.motion .tour-step > :not(.phone) { opacity: 0.28; transition: opacity 0.5s var(--ease); }
.motion .tour-step.is-active > :not(.phone) { opacity: 1; }

.tour-stage {
  --pw: min(30vw, 340px, calc((100svh - 140px) / var(--phone-ratio)));
  position: sticky;
  /* Middle of the area below the header (60 px) */
  top: calc(60px + (100svh - 60px - var(--pw) * var(--phone-ratio)) / 2);
  height: fit-content;
  align-self: start;
  margin-top: 7svh;
}

.tour-stage .phone { --phone-width: var(--pw); --tint: var(--accent-deep); }

@media (max-width: 860px) {
  .tour { grid-template-columns: 1fr; }
  .tour-stage { display: none; }
  .tour-step { min-height: 0; padding-block: 24px; gap: 12px; justify-items: start; }
  .tour-step .phone { display: block; --phone-width: min(62vw, 260px); margin-top: 12px; justify-self: center; }
  .motion .tour-step > :not(.phone) { opacity: 1; }
}

/* ---------- Three areas ---------- */

.tabs {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 40px);
  border-bottom: 1px solid var(--separator);
  margin-bottom: clamp(24px, 5vw, 56px);
}

.tab {
  position: relative;
  min-height: var(--tap-target);
  padding: 10px 2px 14px;
  border: 0;
  background: none;
  color: var(--ink-tertiary);
  font: 600 clamp(17px, 2vw, 20px)/1 var(--font-sans);
  cursor: pointer;
}

.tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--area, var(--accent));
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}

.tab:hover { color: var(--ink-secondary); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }

.area-music { --area: var(--accent); }
.area-audiobooks { --area: var(--audiobook-violet); }
.area-podcasts { --area: var(--podcast-teal); }

.world {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.js .world[hidden] { display: none; }

.world-text { display: grid; gap: 18px; max-width: 30rem; }
.world-text .eyebrow { color: var(--area); }

.world-phones { display: flex; gap: clamp(14px, 2vw, 24px); align-items: flex-end; }
.world-phones .phone { --phone-width: clamp(180px, min(22vw, calc((100svh - 220px) / var(--phone-ratio))), 280px); --tint: var(--area); }
.world-phones .phone:last-child { margin-bottom: clamp(28px, 5vw, 64px); }

.facts { list-style: none; padding: 0; display: grid; gap: 0; margin-top: 8px; }

.facts li {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--separator);
  color: var(--ink-secondary);
}

.facts li:last-child { border-bottom: 1px solid var(--separator); }
.facts .icon { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--area, var(--accent)); }

@media (max-width: 960px) {
  .world { grid-template-columns: 1fr; justify-items: center; }
  .world-text { max-width: 36rem; }
}

@media (max-width: 520px) {
  .world-phones .phone { --phone-width: 44vw; }
  .world-phones .phone:last-child { margin-bottom: 36px; }
}

/* ---------- AI ---------- */

.ai {
  overflow: clip;
  isolation: isolate;
}

.ai::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8% -20% auto;
  height: 80%;
  background:
    radial-gradient(40% 50% at 22% 40%, color-mix(in srgb, var(--ai-amber) 20%, transparent), transparent 70%),
    radial-gradient(38% 46% at 52% 60%, color-mix(in srgb, var(--ai-rose) 18%, transparent), transparent 70%),
    radial-gradient(42% 52% at 80% 36%, color-mix(in srgb, var(--ai-violet) 24%, transparent), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.ai-mark { width: 44px; height: 44px; }
.ai-mark .s1 { stop-color: var(--ai-amber); }
.ai-mark .s2 { stop-color: var(--ai-rose); }
.ai-mark .s3 { stop-color: var(--ai-violet); }

.motion .ai-mark .spark { transform-origin: center; transform-box: fill-box; animation: twinkle 3.2s var(--ease) infinite; }
.motion .ai-mark .spark-2 { animation-delay: 0.6s; }
.motion .ai-mark .spark-3 { animation-delay: 1.2s; }

@keyframes twinkle {
  0%, 100% { transform: scale(1); opacity: 1; }
  45% { transform: scale(0.72); opacity: 0.7; }
}

.ai-gradient-text {
  background: linear-gradient(100deg, var(--ai-amber), var(--ai-rose) 50%, var(--ai-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ai-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.ai-layout .phone { --phone-width: clamp(230px, min(27vw, calc((100svh - 150px) / var(--phone-ratio))), 330px); --tint: var(--ai-violet); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px;
  border-radius: var(--radius-20);
  background: var(--surface);
  border: 1px solid var(--separator);
}

.card .text { font-size: 15px; line-height: 1.5; }

.note {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-16);
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 15px;
}

@media (max-width: 960px) {
  .ai-layout { grid-template-columns: 1fr; justify-items: center; }
  .ai-layout .phone { order: 2; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; gap: 10px; }
  .card { padding: 18px 20px; }
}

/* ---------- Tiles (Sonos, Watch, Offline, Car) ---------- */

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.tile {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 26px 24px 28px;
  border-radius: var(--radius-20);
  background: var(--surface);
  border: 1px solid var(--separator);
}

.glyph {
  display: grid;
  place-items: center;
  width: var(--tap-target);
  height: var(--tap-target);
  border-radius: 50%;
  background: var(--surface-strong);
  border: 1px solid var(--separator);
  color: var(--ink);
  flex: none;
}

.glyph .icon { width: 22px; height: 22px; }
.tile .glyph { margin-bottom: 10px; }
.tile .text { font-size: 15px; line-height: 1.5; }

.soon-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-strong);
  color: var(--ink-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  vertical-align: 3px;
}

@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr; gap: 10px; }
  /* On the phone the symbol goes next to the text, like the promises: half as tall */
  .tile { grid-template-columns: auto 1fr; gap: 4px 16px; padding: 18px 20px; }
  .tile .glyph { grid-row: span 2; margin-bottom: 0; }
}

/* AI everywhere: symbols and edges in the AI gradient, only here and in the AI rows of the three worlds */

.ai-more { padding-top: 0; }
.ai-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ai-tiles .tile { border-color: color-mix(in srgb, var(--ai-violet) 22%, var(--separator)); }
.ai-tiles .glyph .icon,
.facts .ai-fact .icon { stroke: url(#ai-g); }
.facts .ai-fact span { color: var(--ink); }

@media (max-width: 960px) { .ai-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ai-tiles { grid-template-columns: 1fr; } }

/* ---------- Statistics ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.split .phone { --phone-width: clamp(230px, min(27vw, calc((100svh - 150px) / var(--phone-ratio))), 330px); --tint: var(--accent); }

.figures { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 10px; }
.figure { display: grid; gap: 2px; }
.figure b { font: 800 clamp(34px, 4vw, 44px)/1 var(--font-rounded); letter-spacing: -0.01em; }
.figure span { font-size: 14px; color: var(--ink-secondary); }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; justify-items: center; }
}

/* ---------- Privacy ---------- */

.counters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--separator);
}

.counter {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 34px 12px;
  text-align: center;
}

.counter + .counter { border-left: 1px solid var(--separator); }
.counter b { font: 800 clamp(56px, 8vw, 96px)/0.9 var(--font-rounded); letter-spacing: -0.02em; }

@media (max-width: 720px) {
  .counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counter:nth-child(3) { border-left: 0; }
  .counter:nth-child(n + 3) { border-top: 1px solid var(--separator); }
}

.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: clamp(24px, 4vw, 40px); }

.promise {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 4px 16px;
  padding: 24px;
  border-radius: var(--radius-20);
  background: var(--surface);
}

.promise .glyph { grid-row: span 2; }
.promise .text { font-size: 15px; line-height: 1.5; }

@media (max-width: 720px) {
  .promises { grid-template-columns: 1fr; gap: 10px; }
  .promise { padding: 18px 20px; }
  .counter { padding: 24px 12px; }
}

.aside {
  margin-top: 28px;
  max-width: 52rem;
  color: var(--ink-secondary);
  font-size: 15px;
}

/* ---------- What you need and questions ---------- */

.needs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.need {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 2px 16px;
  padding: 22px 24px;
  border-radius: var(--radius-20);
  border: 1px solid var(--separator);
}

.need .glyph { grid-row: span 2; }
.need .tag { font-size: 12px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--ink-tertiary); }
.need .text { font-size: 15px; line-height: 1.5; }

@media (max-width: 720px) { .needs { grid-template-columns: 1fr; } }

.faq { max-width: 52rem; margin-inline: auto; }

.faq details { border-top: 1px solid var(--separator); }
.faq details:last-of-type { border-bottom: 1px solid var(--separator); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 16px 0;
  font-size: 19px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-right: 2px solid var(--ink-tertiary);
  border-bottom: 2px solid var(--ink-tertiary);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > div { padding: 0 0 22px; max-width: 44rem; color: var(--ink-secondary); }
.faq details > div p + p { margin-top: 10px; }
.faq .more { margin-top: 26px; text-align: center; }

/* ---------- Finale ---------- */

.finale { text-align: center; overflow: clip; isolation: isolate; }

.finale::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: min(90vw, 900px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--orb-magenta) 16%, transparent), transparent 60%);
  pointer-events: none;
}

.finale .orb-wrap { width: clamp(120px, 16vw, 180px); margin: 0 auto 30px; }
.finale .orb { width: 100%; height: 100%; }
.finale .lead { margin: 18px auto 34px; max-width: 30em; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 56px 0 calc(48px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--separator);
  color: var(--ink-tertiary);
  font-size: 13px;
}

.site-footer .brand { color: var(--ink); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: var(--ink-secondary); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--ink); }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 26px; }
.footer-langs a { color: var(--ink-tertiary); text-decoration: none; }
.footer-langs a:hover, .footer-langs a[aria-current="page"] { color: var(--ink); }
.footer-note { margin-top: 18px; max-width: 64rem; line-height: 1.6; }

/* ---------- Text pages (privacy, legal notice, help) ---------- */

.page main { padding: 128px 0 var(--section-space); }

.doc { max-width: 46rem; margin-inline: auto; }
.doc-head { display: grid; gap: 16px; margin-bottom: 48px; }
.doc-head .lead { font-size: 20px; }

.doc h2 {
  margin: 56px 0 14px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.doc h3 { margin: 30px 0 8px; font-size: 19px; line-height: 1.3; font-weight: 600; }
.doc p, .doc li { color: var(--ink-secondary); }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 1.2em; margin-top: 12px; display: grid; gap: 8px; }
.doc ul + p { margin-top: 14px; }
.doc a { color: var(--accent); text-underline-offset: 3px; }
.doc strong { color: var(--ink); font-weight: 600; }

.doc blockquote {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: var(--radius-16);
  background: var(--surface);
}

.doc blockquote p { color: var(--ink-secondary); }

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.toc a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.toc a:hover { background: var(--surface-strong); color: var(--ink); }

.credits { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 14px; }
.credits th, .credits td { padding: 10px 12px 10px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--separator); }
.credits th { color: var(--ink-tertiary); font-weight: 600; font-size: 12px; letter-spacing: 0.6px; text-transform: uppercase; }
.credits td { color: var(--ink-secondary); }

@media (max-width: 600px) {
  .credits thead { display: none; }
  .credits tr { display: grid; padding: 10px 0; border-top: 1px solid var(--separator); }
  .credits td { border: 0; padding: 2px 0; }
}

/* ---------- Help Center ---------- */

.term { color: var(--ink); font-weight: 600; }

.help-filter { position: relative; margin: 8px 0 40px; }

.help-filter input {
  width: 100%;
  min-height: var(--primary-height);
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--separator);
  background: var(--surface);
  color: var(--ink);
  font: 400 17px/1 var(--font-sans);
  -webkit-appearance: none;
  appearance: none;
}

.help-filter input::placeholder { color: var(--ink-tertiary); }
.help-filter input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.help-empty { margin-top: 18px; color: var(--ink-secondary); }

.topic-group + .topic-group { margin-top: 40px; }
.topic-group > .eyebrow { margin: 0 0 14px; }
.doc .topic-group h2 { font-size: 13px; line-height: 16px; margin: 0 0 14px; }

.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.topic {
  display: grid;
  gap: 6px;
  padding: 20px 22px;
  border-radius: var(--radius-20);
  background: var(--surface);
  border: 1px solid var(--separator);
  text-decoration: none;
  transition: background-color 0.2s, transform 0.25s var(--ease);
}

.doc a.topic { color: var(--ink); }
.topic:hover { background: var(--surface-strong); transform: translateY(-1px); }
.topic-title { font-size: 17px; font-weight: 600; color: var(--ink); }
.topic-summary { font-size: 15px; line-height: 1.45; color: var(--ink-secondary); }
.topic[hidden], .topic-group[hidden] { display: none; }

@media (max-width: 640px) { .topics { grid-template-columns: 1fr; } }

.topic-layout { display: grid; grid-template-columns: minmax(0, 46rem); justify-content: center; gap: clamp(32px, 6vw, 88px); }
.topic-layout.has-shot { grid-template-columns: minmax(0, 44rem) auto; }
.topic-layout .doc { margin: 0; }

.topic-shot {
  position: sticky;
  top: calc(60px + (100svh - 60px - var(--pw) * var(--phone-ratio)) / 2);
  align-self: start;
  --pw: min(26vw, 300px, calc((100svh - 140px) / var(--phone-ratio)));
}

.topic-shot .phone { --phone-width: var(--pw); --tint: var(--orb-violet); }

@media (max-width: 960px) {
  .topic-layout.has-shot { grid-template-columns: minmax(0, 46rem); }
  .topic-shot { position: static; justify-self: center; order: -1; --pw: min(64vw, 280px); }
}

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.crumb .flip { transform: rotate(180deg); width: 16px; height: 16px; }
.doc ol { padding-left: 1.3em; margin-top: 12px; display: grid; gap: 8px; }
.doc ol li { color: var(--ink-secondary); }

.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 64px; }

.pager a {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border-radius: var(--radius-16);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.pager a:hover { background: var(--surface-strong); }
.pager-next { grid-column: 2; text-align: right; }

.not-found { min-height: 70svh; display: grid; place-items: center; text-align: center; }
.not-found .orb-wrap { width: 120px; margin: 0 auto 26px; }

/* ---------- Motion ---------- */

.motion [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion [data-reveal="late"] { transition-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
