/* JL apps + LOIGO. Static site: no dependencies, no third-party requests.
   Color, radius and type tokens live in :root. One theme (the app's night blue). */

/* Headings: Unbounded. Body and UI: Manrope. Both SIL OFL 1.1, Latin subset, wght 400-800.
   The "fallback" faces are Arial scaled to each font's width and metrics, so the swap barely moves the layout. */
@font-face {
  font-family: "Unbounded";
  src: url("/fonts/Unbounded-Latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/fonts/Manrope-Latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Unbounded fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial");
  font-weight: 400 800;
  size-adjust: 129%;
  ascent-override: 77%;
  descent-override: 19%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Manrope fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 101.4%;
  ascent-override: 105%;
  descent-override: 29.6%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark;

  /* The app's mesh background, darkest to lightest. */
  --night: #05070f;
  --navy: #0b1b3a;
  --deep: #12336b;
  --blue: #1e5aa8;
  --teal: #256e9e;
  --amber: #ffe066;
  --amber-dim: rgba(255, 224, 102, 0.45);

  --ink: #f3f5fa;
  --ink-2: #bac4d8;
  --ink-3: #8f9bb3;
  --line: rgba(186, 196, 216, 0.16);
  --line-strong: rgba(186, 196, 216, 0.28);
  --surface: #0a1428;
  --surface-2: #0f1d38;

  --display: "Unbounded", "Unbounded fallback", ui-sans-serif, system-ui, sans-serif;
  --body: "Manrope", "Manrope fallback", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;

  /* Radius rule: interactive = pill, containers = 28px, inner tiles = 16px, devices = physical. */
  --r-pill: 999px;
  --r-box: 28px;
  --r-tile: 16px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(16px, 4.5vw, 40px);
  --max: 1200px;
  --measure: 66ch;

  /* z-index scale */
  --z-base: 1;
  --z-header: 20;
  --z-skip: 40;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

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

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 450;
  line-height: 1.65;
  font-variant-numeric: lining-nums;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  text-wrap: balance;
}

/* Unbounded is for the big lines. Small headings (cards, tiers, legal sections) go in Manrope, heavy. */
h3 {
  font-family: var(--body);
  font-weight: 800;
  letter-spacing: -0.01em;
}

p,
li,
dd {
  text-wrap: pretty;
}

a {
  color: var(--amber);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 160ms ease, text-decoration-thickness 160ms ease;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: var(--z-skip);
  background: var(--amber);
  color: var(--night);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  left: var(--gutter);
}

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

/* ───────── Header ───────── */

.site-header {
  position: relative;
  z-index: var(--z-header);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-link img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand-link .wordmark-img {
  width: auto;
  height: 26px;
  border-radius: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(186, 196, 216, 0.08);
}

.nav .lang {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.nav .nav-section {
  display: none;
}

@media (min-width: 760px) {
  .nav .nav-section {
    display: inline-flex;
  }
}

/* ───────── Buttons and badges ───────── */

/* Our own "coming soon" button: amber, with the LOIGO icon. Deliberately unlike the store's official badge. */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 11px 24px 11px 11px;
  border-radius: var(--r-pill);
  background: var(--amber);
  color: var(--night);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 14px 34px -14px rgba(255, 224, 102, 0.55);
}

.store-badge .dot {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--night);
  display: grid;
  place-items: center;
}

.store-badge .dot img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.store-badge small {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4a3f0c;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: rgba(5, 7, 15, 0.35);
  color: var(--ink);
  font: 600 0.9375rem/1.2 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  background: rgba(186, 196, 216, 0.12);
  border-color: var(--ink-3);
}

.button:active {
  transform: scale(0.97);
}

/* ───────── LOIGO hero ───────── */

/* One protagonist: the line. The logo lives small in the bar; the demo runs inside a phone. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  padding-top: 64px;
}

/* Mesh: the app's blues, layered and drifting slowly (transform only). */
.hero-mesh {
  position: absolute;
  inset: -30%;
  z-index: -2;
  background:
    radial-gradient(34% 30% at 74% 34%, rgba(46, 116, 206, 0.95), transparent 70%),
    radial-gradient(30% 36% at 94% 72%, rgba(37, 130, 178, 0.85), transparent 70%),
    radial-gradient(42% 40% at 50% 100%, rgba(24, 66, 140, 0.95), transparent 70%),
    radial-gradient(46% 46% at 12% 16%, rgba(3, 5, 12, 0.98), transparent 72%),
    linear-gradient(162deg, var(--night) 0%, var(--navy) 40%, var(--deep) 78%, #17407f 100%);
}

.hero-mesh::before,
.hero-mesh::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* A warm glint behind the phone, and a cold pool low on the left: depth, not decoration. */
.hero-mesh::before {
  background: radial-gradient(18% 20% at 70% 46%, rgba(255, 224, 102, 0.12), transparent 70%);
}

.hero-mesh::after {
  background: radial-gradient(26% 28% at 36% 70%, rgba(37, 110, 158, 0.5), transparent 70%);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-mesh {
    animation: mesh-drift 26s var(--ease-in-out) infinite alternate;
  }

  .hero-mesh::after {
    animation: mesh-drift-2 17s var(--ease-in-out) infinite alternate;
  }

  .hero-mesh::before {
    animation: mesh-glow 9s ease-in-out infinite alternate;
  }
}

@keyframes mesh-drift {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  100% {
    transform: translate3d(-6%, 4%, 0) rotate(8deg) scale(1.08);
  }
}

@keyframes mesh-drift-2 {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(16%, -12%, 0);
  }
}

@keyframes mesh-glow {
  0% {
    opacity: 0.55;
  }
  100% {
    opacity: 1;
  }
}

.motion-paused .hero-mesh,
.motion-paused .hero-mesh::before,
.motion-paused .hero-mesh::after {
  animation-play-state: paused;
}

/* The voice, huge and faint, crossing the hero behind everything. It talks when the demo talks. */
.hero-voice {
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: 50%;
  height: min(46vh, 420px);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1vw;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 80%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 80%, transparent 100%);
}

.hero-voice span {
  width: clamp(3px, 0.4vw, 6px);
  height: 100%;
  border-radius: 99px;
  background: rgba(255, 224, 102, 0.13);
  transform: scaleY(0.1);
  transition: transform 700ms var(--ease-out), background-color 600ms ease;
}

.hero-voice span:nth-child(3n + 1) { transform: scaleY(0.18); }
.hero-voice span:nth-child(4n + 2) { transform: scaleY(0.3); }
.hero-voice span:nth-child(7n + 3) { transform: scaleY(0.44); }

.hero-voice.is-waiting span {
  background: rgba(243, 245, 250, 0.09);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-voice.is-speaking span {
    animation: talk-big 1400ms ease-in-out infinite alternate;
  }

  .hero-voice.is-speaking span:nth-child(2n) {
    animation-duration: 1100ms;
    animation-delay: -400ms;
  }

  .hero-voice.is-speaking span:nth-child(3n) {
    animation-duration: 1700ms;
    animation-delay: -900ms;
  }

  .hero-voice.is-speaking span:nth-child(5n) {
    animation-duration: 900ms;
    animation-delay: -250ms;
  }
}

@keyframes talk-big {
  0% {
    transform: scaleY(0.08);
  }
  40% {
    transform: scaleY(0.5);
  }
  70% {
    transform: scaleY(0.22);
  }
  100% {
    transform: scaleY(0.7);
  }
}

.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
  padding-top: clamp(12px, 3vw, 24px);
  padding-bottom: 40px;
}

.hero-copy {
  position: relative;
}

.hero-claim {
  margin: 0;
  max-width: 6.2em;
  font-size: clamp(3.25rem, 15vw, 7.5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-wrap: balance;
}

.hero-lead {
  margin: clamp(20px, 3vw, 36px) 0 clamp(24px, 3vw, 36px);
  max-width: 27em;
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}

.hero-actions {
  display: grid;
  justify-items: start;
  gap: 16px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: rgba(5, 7, 15, 0.42);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

/* Scroll hint: a short track with the reading dot sliding down it. */
.scroll-hint {
  display: none;
}

@media (min-width: 980px) {
  .scroll-hint {
    position: absolute;
    left: var(--gutter);
    bottom: 20px;
    display: inline-grid;
    place-items: start center;
    width: 44px;
    height: 56px;
    border-radius: var(--r-pill);
  }

  .scroll-hint::before {
    content: "";
    width: 2px;
    height: 44px;
    margin-top: 6px;
    border-radius: 2px;
    background: linear-gradient(var(--line-strong), rgba(186, 196, 216, 0));
  }

  .scroll-hint::after {
    content: "";
    position: absolute;
    top: 6px;
    left: calc(50% - 4px);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amber);
  }

  .scroll-hint:hover::before {
    background: linear-gradient(var(--ink-3), rgba(186, 196, 216, 0));
  }
}

@media (min-width: 980px) and (prefers-reduced-motion: no-preference) {
  .scroll-hint::after {
    animation: hint 2.4s var(--ease-in-out) infinite;
  }

  .motion-paused .scroll-hint::after {
    animation-play-state: paused;
  }
}

@keyframes hint {
  0%,
  15% {
    transform: translateY(0);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    transform: translateY(36px);
    opacity: 0;
  }
}

@media (min-width: 980px) {
  .hero {
    min-height: min(100svh, 1040px);
    display: flex;
    flex-direction: column;
  }

  .hero > .hero-grid {
    flex: 1;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-grid {
    position: relative;
  }

  .hero-copy {
    position: static;
    padding-bottom: 40px;
  }
}

/* ───────── The demo, inside a phone ───────── */

.demo {
  --w: min(74vw, 300px);
  margin: 0;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 22px;
}

/* A modern phone drawn in CSS: titanium rim, black bezel, island, side buttons. No vendor marks. */
.device {
  position: relative;
  /* One box. The height comes from the width (9:19.5, iPhone), not from aspect-ratio plus a child
     at height:100%, which Safari let come apart on wide screens: the screen ended while the rim kept
     going. Rim, screen, island and buttons are all fractions of the same --w. */
  flex: none;
  width: var(--w);
  height: calc(var(--w) * 19.5 / 9);
  border-radius: calc(var(--w) * 0.176);
  background:
    linear-gradient(135deg, #9fa3ab 0%, #4b4f57 14%, #2a2d33 32%, #5d6169 52%, #25282d 72%, #8b8f97 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 2px 0 rgba(255, 255, 255, 0.06),
    0 50px 90px -30px rgba(2, 4, 12, 0.95),
    0 0 140px -30px rgba(46, 116, 206, 0.75);
  transform: rotate(-2deg);
}

.device-bezel {
  position: absolute;
  inset: calc(var(--w) * 0.012);
  border-radius: calc(var(--w) * 0.164);
  background: #020203;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.device-btn {
  position: absolute;
  width: calc(var(--w) * 0.012);
  border-radius: 2px;
  background: linear-gradient(90deg, #3a3e45, #8d9199 60%, #50545b);
}

.device-btn--action { left: calc(var(--w) * -0.009); top: 17%; height: 5%; }
.device-btn--up { left: calc(var(--w) * -0.009); top: 25%; height: 8.5%; }
.device-btn--down { left: calc(var(--w) * -0.009); top: 35.5%; height: 8.5%; }
.device-btn--side { right: calc(var(--w) * -0.009); top: 28%; height: 12.5%; }
.device-btn--control { right: calc(var(--w) * -0.007); top: 59%; height: 9%; width: calc(var(--w) * 0.009); }

/* Glass: one soft diagonal sheen over the screen. */
.device::after {
  content: "";
  position: absolute;
  inset: calc(var(--w) * 0.042);
  border-radius: calc(var(--w) * 0.134);
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 34%, transparent 35%);
  pointer-events: none;
}

.demo-screen {
  position: absolute;
  inset: calc(var(--w) * 0.03);
  display: flex;
  flex-direction: column;
  border-radius: calc(var(--w) * 0.134);
  background:
    radial-gradient(120% 40% at 50% 100%, rgba(30, 90, 168, 0.22), transparent 70%),
    #000;
  overflow: hidden;
}

.device-island {
  position: absolute;
  top: calc(var(--w) * 0.03);
  left: 50%;
  width: calc(var(--w) * 0.31);
  height: calc(var(--w) * 0.09);
  transform: translateX(-50%);
  border-radius: var(--r-pill);
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
  z-index: 2;
}

.device-island::after {
  content: "";
  position: absolute;
  right: 18%;
  top: 50%;
  width: calc(var(--w) * 0.03);
  height: calc(var(--w) * 0.03);
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2b3550, #07090f 70%);
}

.demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(var(--w) * 0.15) calc(var(--w) * 0.06) calc(var(--w) * 0.035);
  font-size: calc(var(--w) * 0.036);
  color: var(--ink-2);
}

.demo-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.35em 0.8em;
  border-radius: var(--r-pill);
  background: rgba(255, 224, 102, 0.12);
  font-weight: 700;
  color: var(--amber);
  transition: background-color 300ms ease, color 300ms ease;
}

.demo-status::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: currentColor;
}

.demo-status.is-waiting {
  color: var(--ink);
  background: rgba(243, 245, 250, 0.12);
}

.demo-status-text {
  transition: opacity 200ms ease;
}

.demo-bar > span:last-child {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.demo-view {
  --band-top: 96px;
  --line-h: 1.38em;
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  font-family: var(--body);
  font-size: calc(var(--w) * 0.074);
  font-weight: 700;
  line-height: var(--line-h);
  letter-spacing: -0.01em;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 78%, transparent 100%);
}

/* Reading band: the line being read sits here, like in the app. */
.demo-band {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--band-top) - 0.12em);
  height: calc(var(--line-h) + 0.24em);
  background: linear-gradient(90deg, rgba(255, 224, 102, 0.16), rgba(255, 224, 102, 0.07) 70%, rgba(255, 224, 102, 0));
  border-radius: 6px;
}

.demo-text {
  position: relative;
  margin: 0;
  padding: var(--band-top) calc(var(--w) * 0.06) 160px;
  color: var(--amber);
  transition: transform 520ms var(--ease-out), opacity 400ms ease;
}

.demo-text .w {
  transition: color 260ms ease;
}

.demo-text .w.said {
  color: var(--amber-dim);
}

.demo-text.is-resetting {
  opacity: 0;
}

.demo-voice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(var(--w) * 0.04) calc(var(--w) * 0.06) calc(var(--w) * 0.09);
  min-height: 74px;
}

.demo-mic {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 224, 102, 0.12);
}

.demo-mic img {
  width: 24px;
  height: 24px;
}

/* One waveform density everywhere: 4px bars, 6px apart. */
.wave {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  height: 34px;
  overflow: hidden;
}

.wave span {
  flex: none;
  width: 4px;
  height: 100%;
  border-radius: 3px;
  background: var(--amber);
  transform: scaleY(0.12);
  transition: transform 320ms var(--ease-out);
}

/* Resting shape when silent: a static waveform. */
.wave span:nth-child(3n + 1) {
  transform: scaleY(0.22);
}

.wave span:nth-child(4n + 2) {
  transform: scaleY(0.4);
}

.wave span:nth-child(7n + 3) {
  transform: scaleY(0.6);
}

@media (prefers-reduced-motion: no-preference) {
  .wave.is-speaking span {
    animation: talk 760ms ease-in-out infinite alternate;
  }

  .wave.is-speaking span:nth-child(2n) {
    animation-duration: 540ms;
    animation-delay: -120ms;
  }

  .wave.is-speaking span:nth-child(3n) {
    animation-duration: 900ms;
    animation-delay: -300ms;
  }

  .wave.is-speaking span:nth-child(5n) {
    animation-duration: 430ms;
    animation-delay: -210ms;
  }

  .wave.is-speaking span:nth-child(7n + 1) {
    animation-duration: 640ms;
    animation-delay: -470ms;
  }
}

@keyframes talk {
  0% {
    transform: scaleY(0.12);
  }
  35% {
    transform: scaleY(0.75);
  }
  65% {
    transform: scaleY(0.3);
  }
  100% {
    transform: scaleY(0.95);
  }
}

/* The improvised line: what you say off script. Hidden until the demo improvises. */
.demo-aside {
  position: absolute;
  left: calc(var(--w) * 0.06);
  right: calc(var(--w) * 0.06);
  bottom: calc(100% + 6px);
  margin: 0;
  padding: 0.5em 0.8em;
  border-radius: 14px;
  background: rgba(243, 245, 250, 0.1);
  font-size: calc(var(--w) * 0.04);
  font-style: italic;
  line-height: 1.35;
  color: var(--ink);
  opacity: 0;
  transform: translateY(6px);
  filter: blur(3px);
  transition: opacity 260ms ease, transform 360ms var(--ease-out), filter 260ms ease;
  pointer-events: none;
}

.demo-aside.is-on {
  opacity: 1;
  transform: none;
  filter: none;
}

.demo-caption {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 30em;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: center;
}

.demo-caption p {
  margin: 0;
}

.demo-toggle[hidden] {
  display: none;
}

.demo-toggle .icon {
  width: 14px;
  height: 14px;
  display: inline-grid;
  grid-auto-flow: column;
  gap: 3px;
}

.demo-toggle .icon::before,
.demo-toggle .icon::after {
  content: "";
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: currentColor;
}

.demo-toggle[aria-pressed="true"] .icon {
  gap: 0;
  width: 12px;
}

.demo-toggle[aria-pressed="true"] .icon::before {
  width: 0;
  height: 0;
  border-radius: 0;
  background: none;
  border-left: 12px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.demo-toggle[aria-pressed="true"] .icon::after {
  display: none;
}

/* Desktop: the phone on the right half of the hero column (the hero is at most --max wide and
   centred), as tall as the window allows and never more than 760px: min(78vh, 760px), and short
   enough to leave the bar and a margin free. It sits in the flow, so it can't climb under the
   navigation or be cut at the bottom; the hero grows instead. Tilted in 2D only, so nothing is
   distorted. The caption sits beside it, bottom-aligned (below it on narrower desktops). */
@media (min-width: 980px) {
  .demo {
    --h: min(78vh, 760px, calc(100svh - 150px));
    --w: max(240px, min(calc(var(--h) * 9 / 19.5), 30vw));
    display: grid;
    grid-template-columns: auto auto;
    justify-content: end;
    align-items: end;
    gap: 40px;
    padding: 24px 12px 40px 0;
  }

  .device {
    order: 2;
    transform: rotate(-3deg);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.28),
      -10px 0 0 -6px #23262c,
      -30px 60px 110px -30px rgba(2, 4, 12, 0.95),
      0 0 180px -20px rgba(46, 116, 206, 0.8);
  }

  .demo-caption .button {
    white-space: nowrap;
  }

  .demo-caption {
    order: 1;
    max-width: 15em;
    justify-items: start;
    text-align: left;
    font-size: 0.875rem;
  }

  .site-header--overlay {
    z-index: 10;
  }
}

@media (min-width: 980px) and (max-width: 1199px) {
  .demo {
    --h: min(78vh, 760px, calc(100svh - 300px));
    grid-template-columns: auto;
    justify-content: center;
    justify-items: center;
  }

  .demo-caption {
    order: 3;
    max-width: 20em;
    justify-items: center;
    text-align: center;
    font-size: 0.8125rem;
  }
}

@media (min-width: 980px) and (prefers-reduced-motion: no-preference) {
  .device {
    animation: device-in 1100ms var(--ease-out) both;
  }
}

@keyframes device-in {
  from {
    opacity: 0;
    transform: translateY(24px) rotate(-7deg);
  }
}

/* ───────── Sections ───────── */

.section {
  padding: clamp(72px, 11vw, 140px) 0;
}

.section-title {
  margin: 0 0 clamp(28px, 4vw, 48px);
  max-width: 18ch;
  font-size: clamp(1.875rem, 4.6vw, 3.375rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.section-lead {
  margin: -18px 0 clamp(32px, 5vw, 56px);
  max-width: 36em;
  color: var(--ink-2);
  font-size: 1.125rem;
}

/* ───────── Screenshots ───────── */

.shots {
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy) 0%, var(--night) 60%);
}

.shots-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(64vw, 250px);
  gap: 20px;
  margin: 0;
  padding: 8px var(--gutter) 24px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.shots-track:focus-visible {
  outline-offset: -2px;
}

.shot {
  margin: 0;
  scroll-snap-align: start;
}

.shot figure {
  margin: 0;
}

.shot figcaption {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--ink-2);
  line-height: 1.45;
}

.shot figcaption strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 800;
}

/* Every screenshot in the same frame: same rim, same screen radius, same size, one baseline. */
.phone {
  position: relative;
  padding: 2.4%;
  border-radius: 13.5% / 6.4%;
  background: linear-gradient(135deg, #9fa3ab 0%, #4b4f57 14%, #2a2d33 32%, #5d6169 52%, #25282d 72%, #8b8f97 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    0 30px 60px -24px rgba(2, 4, 12, 0.95);
}

.phone picture {
  display: block;
  padding: 2.2%;
  border-radius: 12% / 5.6%;
  background: #020203;
}

.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 1320 / 2868;
  object-fit: cover;
  border-radius: 10.4% / 4.8%;
  background: #000;
}

.tablet img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  background: #000;
}

.shots-track {
  align-items: end;
}

@media (min-width: 1100px) {
  .shots-track {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: calc(1040px + 2 * var(--gutter));
    gap: 28px;
    overflow: visible;
    margin: 0 auto;
    align-items: start;
  }
}

/* Desktop only: on mobile the row is a swipeable carousel and moves under the finger. */
@supports (animation-timeline: view()) {
  @media (min-width: 1100px) and (prefers-reduced-motion: no-preference) {
    .shot {
      animation: shot-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
    }

    .shot:nth-child(2) { animation-range: entry 4% cover 37%; }
    .shot:nth-child(3) { animation-range: entry 8% cover 39%; }
    .shot:nth-child(4) { animation-range: entry 12% cover 41%; }
  }
}

@keyframes shot-rise {
  from {
    opacity: 0.2;
    transform: translateY(80px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* iPad row */
.tablet-row {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-top: clamp(64px, 9vw, 120px);
}

.tablet {
  padding: 12px;
  border-radius: 34px;
  background: linear-gradient(145deg, #2a3348, #0c111d 45%, #1a2236);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 40px 80px -30px rgba(2, 4, 12, 0.95),
    0 0 140px -50px rgba(37, 110, 158, 0.8);
  max-width: 460px;
  justify-self: center;
  width: 100%;
}

.tablet img {
  border-radius: 22px;
}

.tablet-copy h3 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.tablet-copy p {
  margin: 0;
  max-width: 28em;
  color: var(--ink-2);
  font-size: 1.125rem;
}

@media (min-width: 860px) {
  .tablet-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .tablet-copy {
    order: 2;
  }
}

/* ───────── Features (bento with mixed cells) ───────── */

.features {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 3.2vw, 36px);
  border-radius: var(--r-box);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}

.feature h3 {
  margin: 0 0 10px;
  font-size: clamp(1.3125rem, 2.2vw, 1.625rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--ink-2);
  max-width: 34em;
}

.tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  background: rgba(255, 224, 102, 0.14);
  color: var(--amber);
}

.tag.free {
  background: rgba(186, 196, 216, 0.12);
  color: var(--ink);
}

.feature--voice {
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(30, 90, 168, 0.55), transparent 70%),
    var(--surface);
}

.feature--export {
  background:
    radial-gradient(90% 80% at 0% 100%, rgba(37, 110, 158, 0.45), transparent 70%),
    var(--surface);
}

.feature--cloud {
  background: linear-gradient(100deg, var(--surface-2), var(--surface) 60%);
}

@media (min-width: 860px) {
  .features {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .feature--voice {
    grid-column: span 4;
  }

  .feature--export {
    grid-column: span 2;
  }

  .feature--takes,
  .feature--mirror {
    grid-column: span 3;
  }

  .feature--cloud {
    grid-column: span 6;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Voice: the three states of following. A real sequence, so it is numbered. */
.states {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: st;
}

.states li {
  position: relative;
  padding: 14px 14px 16px;
  border-radius: var(--r-tile);
  background: rgba(5, 7, 15, 0.55);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--ink-2);
}

.states b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.states .meter {
  display: flex;
  gap: 3px;
  height: 18px;
  align-items: flex-end;
  margin-bottom: 10px;
}

.states .meter i {
  width: 4px;
  border-radius: 2px;
  background: var(--amber);
}

.states .meter i:nth-child(1) { height: 30%; }
.states .meter i:nth-child(2) { height: 80%; }
.states .meter i:nth-child(3) { height: 55%; }
.states .meter i:nth-child(4) { height: 100%; }
.states .meter i:nth-child(5) { height: 40%; }

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

  .states li {
    display: grid;
    grid-template-columns: 28px 1fr;
    column-gap: 12px;
    align-items: center;
  }

  .states .meter {
    grid-row: span 2;
    margin: 0;
  }
}

.states li:nth-child(2) .meter i {
  background: var(--ink-3);
}

.states .arrow {
  display: block;
  font-size: 0.8125rem;
  margin-top: 6px;
  color: var(--amber);
  font-weight: 600;
}

.states li:nth-child(2) .arrow {
  color: var(--ink);
}

/* Takes: recording order on top, the assembly below. */
.takes {
  display: grid;
  gap: 12px;
  font-size: 0.8125rem;
}

.takes-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.takes-label {
  flex: 0 0 100%;
  color: var(--ink-3);
}

.clip {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--night);
  background: var(--amber);
}

.clip.bad {
  color: var(--ink-2);
  background: repeating-linear-gradient(135deg, rgba(186, 196, 216, 0.16) 0 6px, rgba(186, 196, 216, 0.06) 6px 12px);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  text-decoration: line-through;
}

.clip.a { flex: 3; }
.clip.b { flex: 1.6; }
.clip.c { flex: 2.4; }
.clip.d { flex: 1.6; }

.takes-row.assembled .clip {
  border-radius: 0;
}

.takes-row.assembled .clip:first-of-type {
  border-radius: 8px 0 0 8px;
}

.takes-row.assembled .clip:last-of-type {
  border-radius: 0 8px 8px 0;
}

.takes-row.assembled .gap-line {
  flex: 2.5;
}

.takes-note {
  margin: 0;
  color: var(--ink-3);
}

@media (prefers-reduced-motion: no-preference) {
  .takes-row.assembled .clip {
    transition: transform 600ms var(--ease-out);
  }
}

/* Mirror */
.mirror {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: var(--r-tile);
  background: #000;
  box-shadow: inset 0 0 0 1px var(--line);
}

.mirror span {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.4vw, 2.125rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--amber);
}

.mirror .flip {
  transform: scaleX(-1);
  transform-origin: center;
  text-align: right;
  color: var(--amber-dim);
  transition: transform 600ms var(--ease-in-out), color 400ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .feature--mirror:hover .flip {
    transform: scaleX(1);
    color: var(--amber);
  }
}

.remote {
  display: flex;
  gap: 8px;
}

.remote span {
  flex: 1;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(186, 196, 216, 0.1);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

.remote span.on {
  background: var(--amber);
  color: var(--night);
  box-shadow: none;
}

/* Export: a fan of files */
.files {
  position: relative;
  height: 156px;
  max-width: 340px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.files li {
  position: absolute;
  bottom: 14px;
  width: 112px;
  height: 128px;
  padding: 12px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--night);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 16px 30px -12px rgba(2, 4, 12, 0.9);
  transition: transform 500ms var(--ease-out);
}

.files li::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 26px;
  height: 26px;
  border-bottom-left-radius: 8px;
  background: linear-gradient(225deg, var(--night) 50%, #c9d1e2 50%);
}

.files li:nth-child(1) { left: 0; transform: rotate(-10deg); background: #c9d1e2; }
.files li:nth-child(2) { left: 18%; transform: rotate(-3deg); background: #dde3ee; }
.files li:nth-child(3) { left: 36%; transform: rotate(4deg); }
.files li:nth-child(4) { left: 54%; transform: rotate(11deg); background: var(--amber); }

.files li:nth-child(1)::before { background: linear-gradient(225deg, var(--surface) 50%, #a9b4ca 50%); }
.files li:nth-child(2)::before { background: linear-gradient(225deg, var(--surface) 50%, #bcc6d8 50%); }
.files li:nth-child(3)::before { background: linear-gradient(225deg, var(--surface) 50%, #c9d1e2 50%); }
.files li:nth-child(4)::before { background: linear-gradient(225deg, var(--surface) 50%, #d9b947 50%); }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .feature--export:hover .files li:nth-child(1) { transform: rotate(-16deg) translate(-8px, -6px); }
  .feature--export:hover .files li:nth-child(2) { transform: rotate(-6deg) translateY(-10px); }
  .feature--export:hover .files li:nth-child(3) { transform: rotate(6deg) translateY(-10px); }
  .feature--export:hover .files li:nth-child(4) { transform: rotate(17deg) translate(8px, -6px); }
}

/* iCloud: formats you can bring in */
.formats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.formats li {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

@media (min-width: 860px) {
  .feature--cloud .formats {
    justify-content: flex-end;
    max-width: 46%;
  }
}

/* ───────── Who it's for ───────── */

/* Read like a script: as each row crosses the middle of the screen, the reading band passes over it,
   the name lights up and its little voice meter talks. Without scroll timelines it is a still list. */
.audience {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.audience li {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 8px;
  padding: clamp(24px, 3.4vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  view-timeline: --row block;
}

.audience li::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10px calc(-1 * min(18px, var(--gutter) - 4px));
  border-radius: var(--r-tile);
  background: linear-gradient(90deg, rgba(255, 224, 102, 0.13), rgba(255, 224, 102, 0.05) 60%, rgba(255, 224, 102, 0));
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
}

.audience b {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--display);
  font-size: clamp(1.5rem, 4.4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

/* The meter: five bars drawn with gradients, so the markup stays a plain list. */
.audience b::after {
  content: "";
  flex: none;
  width: 0.62em;
  height: 0.5em;
  --bar: linear-gradient(var(--amber), var(--amber));
  background: var(--bar), var(--bar), var(--bar), var(--bar), var(--bar);
  background-repeat: no-repeat;
  background-position: 0 50%, 25% 50%, 50% 50%, 75% 50%, 100% 50%;
  background-size: 12% 30%, 12% 75%, 12% 50%, 12% 100%, 12% 40%;
  opacity: 0.55;
}

.audience li:nth-child(2) b::after { background-size: 12% 60%, 12% 35%, 12% 100%, 12% 55%, 12% 25%; }
.audience li:nth-child(3) b::after { background-size: 12% 45%, 12% 100%, 12% 30%, 12% 70%, 12% 50%; }
.audience li:nth-child(4) b::after { background-size: 12% 80%, 12% 50%, 12% 65%, 12% 30%, 12% 100%; }

.audience span {
  color: var(--ink-2);
  max-width: 30em;
}

@media (min-width: 860px) {
  .audience li {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: 32px;
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .audience li::before {
      animation: row-band linear both;
      animation-timeline: --row;
      animation-range: cover 36% cover 64%;
    }

    .audience b {
      animation: row-name linear both;
      animation-timeline: --row;
      animation-range: cover 36% cover 64%;
    }

    .audience b::after {
      animation: row-meter linear both, row-talk 620ms ease-in-out infinite alternate;
      animation-timeline: --row, auto;
      animation-range: cover 36% cover 64%, normal;
    }

    .audience li:nth-child(2n) b::after {
      animation-duration: auto, 780ms;
    }
  }
}

@keyframes row-band {
  0% { transform: scaleX(0); opacity: 1; }
  45% { transform: scaleX(1); opacity: 1; }
  70% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

@keyframes row-name {
  0%, 15% { color: var(--ink); }
  40%, 70% { color: var(--amber); }
  100% { color: var(--ink); }
}

@keyframes row-meter {
  0%, 20% { opacity: 0.35; }
  40%, 70% { opacity: 1; }
  100% { opacity: 0.35; }
}

@keyframes row-talk {
  from { background-size: 12% 30%, 12% 75%, 12% 50%, 12% 100%, 12% 40%; }
  to { background-size: 12% 90%, 12% 35%, 12% 100%, 12% 45%, 12% 70%; }
}

.motion-paused .audience b::after {
  animation-play-state: running, paused;
}

/* ───────── Price ───────── */

.price {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
}

.price::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 70% at 0% 0%, rgba(30, 90, 168, 0.55), transparent 70%),
    radial-gradient(40% 60% at 100% 100%, rgba(37, 110, 158, 0.4), transparent 70%);
}

.price-grid {
  display: grid;
  gap: clamp(36px, 6vw, 64px);
}

.price-figure {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.75rem, 12vw, 6.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.price-note {
  margin: 14px 0 0;
  font-size: 1.125rem;
  color: var(--ink);
}

.price-body {
  margin: 22px 0 28px;
  max-width: 30em;
  color: var(--ink-2);
}

.tiers {
  display: grid;
  gap: 16px;
}

.tier {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--r-box);
  background: rgba(5, 7, 15, 0.6);
  box-shadow: inset 0 0 0 1px var(--line);
}

.tier--pro {
  background: rgba(5, 7, 15, 0.8);
  box-shadow: inset 0 0 0 1px rgba(255, 224, 102, 0.45);
}

.tier h3 {
  margin: 0 0 14px;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.tier h3 small {
  display: block;
  margin-top: 2px;
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0;
}

.tier ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.tier li {
  position: relative;
  padding-left: 22px;
  line-height: 1.45;
}

.tier li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(-45deg);
}

.tier--pro li::before {
  border-color: var(--amber);
}

.trial {
  margin: 0;
  padding: 18px 22px;
  border-radius: var(--r-tile);
  background: rgba(255, 224, 102, 0.1);
  color: var(--ink);
}

.trial strong {
  color: var(--amber);
}

.req {
  margin: 18px 0 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

@media (min-width: 900px) {
  .price-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }

  .tiers {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .trial {
    grid-column: span 2;
  }
}

/* ───────── FAQ ───────── */

.faq-list {
  max-width: 820px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

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

.faq-list summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border-right: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 220ms var(--ease-out);
}

.faq-list details[open] summary::after {
  transform: rotate(225deg) translate(-3px, -3px);
}

.faq-list summary:hover {
  color: var(--amber);
}

.faq-answer {
  padding: 0 0 24px;
  max-width: var(--measure);
  color: var(--ink-2);
}

.faq-answer p {
  margin: 0 0 10px;
}

.faq-answer ul {
  margin: 0;
  padding-left: 1.2em;
}

@media (prefers-reduced-motion: no-preference) {
  .faq-list details[open] .faq-answer {
    animation: answer-in 280ms var(--ease-out);
  }
}

@keyframes answer-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ───────── Footer ───────── */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: grid;
  gap: 24px;
}

.footer-brand {
  display: inline-flex;
  width: max-content;
}

.footer-brand img {
  height: 30px;
  width: auto;
}

.footer-brand.text {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.site-footer ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  margin-left: -10px;
  margin-right: 6px;
  border-radius: var(--r-pill);
  color: var(--ink);
  text-decoration: none;
}

.site-footer ul a:hover {
  color: var(--amber);
}

.site-footer p {
  margin: 0;
}

.site-footer p a {
  color: var(--ink);
}

/* Revisión legal: las marcas citadas, de sus titulares. */
.site-footer p.marks {
  margin-top: -12px;
  font-size: 0.8125rem;
}

@media (min-width: 860px) {
  .site-footer .wrap {
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 48px;
  }

  .site-footer ul {
    justify-content: flex-end;
  }

  .site-footer p {
    grid-column: 1 / -1;
  }
}

/* ───────── JL apps hub ───────── */

.studio-hero {
  position: relative;
  padding: clamp(56px, 10vw, 128px) 0 clamp(48px, 7vw, 88px);
}

.studio-hero h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.375rem, 7.4vw, 5.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.studio-hero p {
  margin: 28px 0 0;
  max-width: 30em;
  font-size: clamp(1.125rem, 2.4vw, 1.3125rem);
  color: var(--ink-2);
}

.shelf {
  padding-bottom: clamp(72px, 10vw, 128px);
}

.app-card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 32px;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 85% 20%, rgba(30, 90, 168, 0.95), transparent 70%),
    radial-gradient(50% 60% at 100% 100%, rgba(37, 110, 158, 0.9), transparent 70%),
    linear-gradient(160deg, var(--night) 0%, var(--navy) 40%, var(--deep) 100%);
  box-shadow: inset 0 0 0 1px rgba(186, 196, 216, 0.14), 0 50px 100px -50px rgba(30, 90, 168, 0.6);
  transition: transform 300ms var(--ease-out), box-shadow 300ms ease;
}

.app-card:has(.app-card-link:focus-visible) {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.app-card-link:focus-visible {
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .app-card:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px rgba(255, 224, 102, 0.35), 0 60px 110px -50px rgba(30, 90, 168, 0.8);
  }
}

.app-card-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.app-card-head .app-icon {
  width: clamp(64px, 10vw, 96px);
  height: auto;
  border-radius: 22.5%;
  box-shadow: 0 12px 30px -10px rgba(2, 4, 12, 0.8);
}

.app-card-head .app-wordmark {
  width: clamp(130px, 22vw, 200px);
  height: auto;
}

.app-card h2 {
  margin: 28px 0 14px;
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.app-card p {
  margin: 0 0 28px;
  max-width: 28em;
  color: var(--ink);
  font-size: 1.0625rem;
}

.app-card-link {
  color: var(--amber);
  font-weight: 600;
  text-decoration: none;
}

/* The whole card is the link target. */
.app-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.app-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.app-card-facts li {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(5, 7, 15, 0.45);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 0.875rem;
}

.app-card-visual {
  justify-self: center;
  width: min(260px, 70vw);
  margin-bottom: calc(-1 * clamp(28px, 5vw, 64px) - 140px);
}

.app-card-visual .phone {
  transform: rotate(4deg);
}

@media (min-width: 860px) {
  .app-card {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
    min-height: 520px;
  }

  .app-card-visual {
    align-self: start;
    margin-top: 12px;
  }
}

.shelf-note {
  margin: 28px 0 0;
  color: var(--ink-3);
}

/* ───────── Text pages (legal, support) ───────── */

.page-top {
  background:
    radial-gradient(60% 120% at 80% -40%, rgba(30, 90, 168, 0.5), transparent 70%),
    radial-gradient(40% 90% at 0% -30%, rgba(18, 51, 107, 0.7), transparent 70%),
    var(--night);
}

.doc {
  padding: clamp(32px, 6vw, 64px) 0 clamp(48px, 8vw, 96px);
}

.doc .wrap {
  max-width: calc(46rem + 2 * var(--gutter));
}

.doc h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.doc .updated {
  margin: 0 0 32px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.doc h2 {
  margin: 44px 0 10px;
  font-family: var(--body);
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.doc p,
.doc ul,
.doc ol,
.doc dl {
  margin: 0 0 16px;
}

.doc p,
.doc li,
.doc dd {
  color: #d9dfeb;
  line-height: 1.7;
}

.doc ul,
.doc ol {
  padding-left: 1.3em;
}

.doc li {
  margin-bottom: 8px;
}

.doc li::marker {
  color: var(--amber);
}

.doc strong {
  color: var(--ink);
}

.doc dl {
  display: grid;
  gap: 4px 20px;
  padding: 22px 24px;
  border-radius: var(--r-tile);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.doc dt {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.doc dd {
  margin: 0 0 12px;
}

.doc .intro {
  font-size: 1.1875rem;
  color: var(--ink);
}

.faq h2 {
  font-size: 1.3125rem;
}

.path {
  white-space: nowrap;
  color: var(--ink);
}

@media (min-width: 600px) {
  .doc dl {
    grid-template-columns: max-content 1fr;
  }

  .doc dd {
    margin: 0;
  }
}

/* ───────── 404 ───────── */

.notfound {
  padding: clamp(56px, 12vw, 140px) 0;
}

.notfound .code {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.5rem, 18vw, 8.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--amber);
}

.notfound h1,
.notfound h2 {
  margin: 28px 0 8px;
  font-size: clamp(1.375rem, 3.4vw, 1.75rem);
  letter-spacing: -0.03em;
}

.notfound p {
  margin: 0;
}

.notfound a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Header laid over the hero (it stays outside <main> as the page banner). */
.site-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

/* Mini demo inside the voice card: same mechanism as the hero, smaller and slower. */
.mini {
  border-radius: var(--r-tile);
  background: #000;
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}

.mini-view {
  --band-top: 34px;
  --line-h: 1.4em;
  height: 112px;
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  font-weight: 700;
}

.mini-view .demo-text {
  padding: var(--band-top) 16px 80px;
}

.mini-voice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 12px;
  border-top: 1px solid rgba(186, 196, 216, 0.1);
}

.mini-voice img {
  flex: none;
  width: 20px;
  height: 20px;
}

/* Same bars and spacing as the hero; only shorter. */
.wave--mini {
  height: 22px;
}

/* Beat `.feature p`: the script stays amber and full width. */
.mini .demo-text {
  max-width: none;
  color: var(--amber);
}
