/* Landing and legal pages, s-o.solutions style: cool paper, white cards,
   Newsreader headlines, system text, one Apple blue. Colours, fonts and
   shadows come from tokens.css; these pages are always light
   (data-theme="light"). Hidden motion start states only apply under
   html.motion (set by site.js) or briefly under html.js, so content never
   stays hidden without JS. */

:root {
  --gutter: clamp(18px, 4vw, 44px);
  --section-gap: clamp(104px, 13vw, 180px);
  --card-radius: clamp(20px, 2.2vw, 30px);
}

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

html {
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

svg {
  display: block;
}

a {
  color: inherit;
}

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

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

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 30;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.wrap {
  width: min(1320px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.wrap-md {
  width: min(1080px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.wrap-sm {
  width: min(760px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Type ------------------------------------------------------------------ */

.t-display,
.t-h2,
.t-h3 {
  margin: 0;
  font-family: var(--font-editorial);
  font-weight: 400;
  text-wrap: balance;
}

.t-display {
  font-size: clamp(3.4rem, 8.6vw, 8.4rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
}

/* The mask needs room on every side: ascenders, descenders, the italic
   overhang of „Verstanden.“ and the tilted pictogram with its badge. */
.t-display .line {
  display: block;
  overflow: hidden;
  padding: 0.2em 0.3em 0.22em;
  margin: -0.2em -0.3em -0.22em;
}

.t-display .line > span {
  display: block;
}

.t-h2 {
  font-size: clamp(2.6rem, 5.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.t-h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.t-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.125rem, 1.45vw, 1.3125rem);
  line-height: 1.55;
}

/* Large italic emphasis; blue passes the 3:1 large-text bar on every ground. */
.accent-italic {
  color: var(--accent);
  font-style: italic;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

.dot {
  display: inline-block;
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
}

.period {
  color: var(--accent);
}

mark.hl {
  padding: 0 0.08em;
  background: linear-gradient(transparent 55%, var(--highlight) 55%) no-repeat;
  background-size: 100% 100%;
  color: inherit;
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Pictograms ------------------------------------------------------------
   Small, real-looking UI objects that sit in headlines like words (the
   özkan.dev funnel pattern). Gradients live once in .picto-defs. */

.picto-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.picto {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  line-height: 0;
  vertical-align: -0.12em;
}

.picto svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0.03em 0.035em rgb(12 20 35 / 0.16)) drop-shadow(0 0.1em 0.14em rgb(12 20 35 / 0.12));
}

.picto-rewind {
  width: 0.85em;
  height: 0.9em;
  rotate: 5deg;
}

.picto-rewind svg {
  transform-origin: 50% 12%;
}

.picto-hand {
  transform-box: view-box;
  transform-origin: 50px 60px;
}

.picto-tap {
  width: 0.9em;
  height: 0.9em;
  rotate: -6deg;
}

.picto-press {
  transform-box: view-box;
  transform-origin: 50px 50px;
}

.picto-ripple {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.picto-answer {
  width: 1.12em;
  height: 0.9em;
  rotate: 3deg;
}

.picto-line,
.picto-hl {
  transform-box: fill-box;
  transform-origin: left center;
}

.picto-badge {
  position: absolute;
  top: -0.5em;
  right: -0.75em;
  display: grid;
  place-items: center;
  height: 1.62em;
  padding: 0 0.5em;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--accent), var(--accent-hover));
  box-shadow: 0 0 0 0.17em var(--surface), 0 0.3em 0.6em -0.15em color-mix(in srgb, var(--accent) 55%, transparent);
  color: var(--accent-ink);
  font-family: var(--font-ui);
  font-size: 0.22em;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

.t-display .picto-rewind {
  margin: 0 0.06em 0 0.1em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s var(--ease-soft), background-color var(--dur-base) var(--ease);
}

.btn:has(.btn-icon) {
  padding-right: 7px;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-soft {
  background: var(--tint);
  color: var(--tint-ink);
}

.btn-ghost {
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--ink);
}

.btn-light {
  background: var(--inverse-ink);
  color: var(--inverse-bg);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-large {
  min-height: 60px;
  padding-inline: 28px;
  font-size: 17px;
}

.btn-large:has(.btn-icon) {
  padding-right: 9px;
}

.btn-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent-ink) 20%, transparent);
  transition: transform var(--dur-base) var(--ease);
}

.btn-light .btn-icon {
  background: color-mix(in srgb, var(--inverse-bg) 14%, transparent);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--tint);
  color: var(--tint-ink);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

.chip-light {
  background: var(--surface);
}

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

.hero-card {
  margin: clamp(8px, 1.2vw, 18px);
  padding: 0 var(--gutter) clamp(56px, 7vw, 104px);
  border-radius: clamp(24px, 2.8vw, 40px);
  background:
    radial-gradient(90% 55% at 50% 108%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-high);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  min-height: 76px;
  padding-block: 10px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--font-editorial);
  font-size: 27px;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 26px;
  font-size: 15px;
  font-weight: 500;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.site-nav a::after,
.legal-nav a::after {
  position: absolute;
  right: 0;
  bottom: 10px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.site-nav a:hover::after,
.legal-nav a:hover::after {
  transform: scaleX(1);
}

/* Wide screens keep links and button inline in the header row; the wrapper only
   exists so phones can fold both into one panel (see the 680px block). */
.site-menu {
  display: contents;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px 0 20px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.menu-bars {
  position: relative;
  width: 16px;
  height: 10px;
}

.menu-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.menu-bars span:first-child {
  top: 0;
}

.menu-bars span:last-child {
  bottom: 0;
}

.site-header.is-open .menu-bars span {
  top: 4px;
  bottom: auto;
}

.site-header.is-open .menu-bars span:first-child {
  rotate: 45deg;
}

.site-header.is-open .menu-bars span:last-child {
  rotate: -45deg;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: min(1060px, 100%);
  margin: 0 auto;
  padding-top: clamp(40px, 6vw, 92px);
  text-align: center;
}

/* 8.4em = 14ch in Newsreader; ch would change with the font during loading. */
.hero .t-display {
  max-width: 8.4em;
}

.hero-lead {
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.hero-cta {
  box-shadow: 0 16px 34px -16px color-mix(in srgb, var(--accent) 75%, transparent);
}

.hero-note {
  margin: -6px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.showcase {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin: clamp(24px, 3.4vw, 48px) 0 0;
  padding: clamp(22px, 3.2vw, 40px) clamp(20px, 3.6vw, 48px);
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: var(--shadow-high);
  text-align: left;
}

.showcase-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  color: var(--ink-soft);
  font-size: 14px;
}

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

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--switch-on);
}

.bubble-row {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  gap: 6px;
  max-width: min(440px, 100%);
}

.bubble {
  margin: 0;
  padding: 12px 18px;
  border-radius: 22px 22px 22px 6px;
  background: var(--bubble);
  font-size: 18px;
  line-height: 1.4;
}

.bubble-caption {
  padding-left: 8px;
  color: var(--ink-soft);
  font-size: 13px;
}

/* Three dots while MicClip answers; only shown during the hero sequence. */
.typing {
  display: none;
  align-self: flex-end;
  gap: 5px;
  margin: 0;
  padding: 14px 18px;
  overflow: hidden;
  border-radius: 22px 22px 6px 22px;
  background: var(--tint);
}

.typing span {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--tint-ink);
  opacity: 0.4;
}

.answer-bubble {
  display: flex;
  flex-direction: column;
  align-self: flex-end;
  gap: 10px;
  max-width: min(720px, 100%);
  padding: 20px 24px;
  border-radius: 24px 24px 6px 24px;
  background: var(--tint);
}

.answer-label {
  margin: 0;
  color: var(--tint-ink);
  font-size: 13px;
  font-weight: 700;
}

.showcase-answer {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.36;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

/* Story: the pinned scroll scene ------------------------------------------- */

.story {
  position: relative;
  margin-top: var(--section-gap);
}

.story-pin {
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  width: min(1320px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.story-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.story-captions {
  display: grid;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-caption h3 {
  margin: 0 0 12px;
  font-family: var(--font-editorial);
  font-size: clamp(2rem, 4.4vw, 4rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.story-caption h3 .picto {
  margin-left: 0.08em;
}

.story-caption p {
  max-width: 30rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
}

.story-cta {
  margin-top: 22px;
}

.story-dots {
  display: none;
  gap: 6px;
  margin: 4px 0 0;
}

.story-dots span {
  width: 22px;
  height: 4px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--ink) 14%, transparent);
  transition: background-color 0.4s var(--ease);
}

.story-dots span.is-active {
  background: var(--accent);
}

@media (min-width: 960px) {
  .story-pin {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
  }
}

/* The scene: MicClip on a tablet, listening to the lesson. Each beat is a
   data-beat value; without motion it shows beat 4, the finished answer. */
.scene {
  display: flex;
  flex-direction: column;
  justify-self: center;
  gap: 12px;
  width: min(560px, 100%);
  padding: clamp(14px, 2.2vw, 24px);
  border-radius: clamp(24px, 3vw, 34px);
  background: var(--surface);
  box-shadow: var(--shadow-high);
}

.scene-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 13px;
}

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

.scene-stage {
  position: relative;
  display: grid;
  min-height: clamp(190px, 30vh, 250px);
}

.scene-listen,
.scene-result {
  grid-area: 1 / 1;
  transition: opacity 0.55s var(--ease), transform 0.7s var(--ease);
}

.scene-listen {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scene-teacher {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.scene-speech {
  display: grid;
  min-height: 2.6em;
  margin: 0;
  font-family: var(--font-editorial);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.25;
}

.speech {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease);
}

.speech-1 {
  color: var(--accent-text);
}

.scene-buffer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: var(--bg);
  transition: box-shadow 0.5s var(--ease), transform 0.6s var(--ease);
}

.buffer-head,
.buffer-scale {
  display: flex;
  justify-content: space-between;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.buffer-scale {
  font-weight: 400;
}

.buffer-clip {
  display: none;
  color: var(--accent-text);
}

.buffer-tape {
  position: relative;
  height: 46px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--tint);
}

/* Ticks fade out on the left: older audio is overwritten all the time. */
.buffer-tape::before {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--tint-ink) 26%, transparent) 0 2px, transparent 2px 14px);
  background-size: 14px 100%;
  content: "";
  -webkit-mask-image: linear-gradient(90deg, transparent, black 18%);
  mask-image: linear-gradient(90deg, transparent, black 18%);
}

.buffer-question {
  position: absolute;
  top: 7px;
  right: 8px;
  bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64%;
  padding: 0 12px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--accent);
  color: var(--tint-ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.8s var(--ease), opacity 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.scene-result {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--tint);
}

.scene-result p {
  margin: 0;
}

.scene-heard {
  font-size: 14px;
}

.scene-heard span,
.scene-label {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.scene-label {
  color: var(--tint-ink);
}

.scene-answer {
  font-family: var(--font-editorial);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.35;
}

.scene-meta {
  color: var(--ink-soft);
  font-size: 12px;
}

.scene-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 0 16px 0 22px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--accent);
  color: var(--accent-ink);
  transition: transform 0.3s var(--ease-soft);
}

.scene-button-main {
  font-family: var(--font-editorial);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
}

.scene-key {
  padding: 3px 9px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-ink) 18%, transparent);
  font-size: 12px;
  font-weight: 700;
}

.scene-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent-ink) 35%, transparent);
  opacity: 0;
  pointer-events: none;
}

/* Beats. 0: the lesson runs. 1: the question falls into the buffer.
   2: time passed, it drifts left and glows. 3: the tap takes the 25 s.
   4: the answer covers the listening view. */
.scene[data-beat="0"] .speech-0,
.scene[data-beat="1"] .speech-1,
.scene[data-beat="2"] .speech-2,
.scene[data-beat="3"] .speech-2 {
  opacity: 1;
  transform: none;
}

.scene[data-beat="0"] .buffer-question {
  opacity: 0;
  transform: translateX(110%);
}

.scene[data-beat="2"] .buffer-question,
.scene[data-beat="3"] .buffer-question {
  transform: translateX(-34%);
}

.scene[data-beat="2"] .buffer-question {
  box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent);
}

.scene[data-beat="3"] .scene-buffer {
  box-shadow: 0 0 0 2px var(--accent), var(--shadow-low);
  transform: translateY(-4px);
}

.scene[data-beat="3"] .buffer-clip {
  display: inline;
}

.scene[data-beat="3"] .buffer-count,
.scene[data-beat="3"] .buffer-name {
  display: none;
}

.scene[data-beat="3"] .scene-button {
  transform: scale(0.97);
}

.scene[data-beat="4"] .scene-listen {
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
}

.scene:not([data-beat="4"]) .scene-result {
  opacity: 0;
  transform: translateY(24px);
}

/* Proof, privacy, closing ------------------------------------------------ */

.proof,
.privacy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.proof {
  padding-top: var(--section-gap);
}

.proof-number {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: clamp(7rem, 22vw, 18rem);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 0.82;
  letter-spacing: -0.06em;
}

.proof-caption {
  max-width: 22ch;
}

.badge {
  margin: 0;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--tint);
  color: var(--tint-ink);
  font-size: 15px;
  font-weight: 600;
}

.fine {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.privacy-sheet {
  margin: var(--section-gap) clamp(8px, 1.2vw, 18px) 0;
  padding: clamp(5rem, 10vw, 7.5rem) 0;
  border-radius: 2.5rem;
  background: var(--tint);
}

.privacy .t-lead {
  max-width: 36rem;
  color: var(--ink);
}

.switch-list {
  width: min(30rem, 100%);
  margin: 6px 0 0;
  padding: 4px 18px;
  border-radius: 1.25rem;
  background: var(--surface);
  list-style: none;
  text-align: left;
}

.switch-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  font-size: 16px;
}

.switch-list li + li {
  border-top: 1px solid var(--line);
}

.switch-state {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 13px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--bg-deep);
}

.switch::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 25%, transparent);
  content: "";
}

.switch.is-on {
  background: var(--switch-on);
}

.switch.is-on::after {
  left: 20px;
}

.consent {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.closing {
  padding-top: var(--section-gap);
}

.closing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: clamp(56px, 8vw, 104px) clamp(24px, 5vw, 64px);
  border-radius: 2.5rem;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--inverse-ink) 14%, transparent), transparent 60%),
    var(--inverse-bg);
  box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--inverse-bg) 70%, transparent);
  color: var(--inverse-ink);
  text-align: center;
}

.closing-card p {
  margin: 0;
  color: var(--inverse-soft);
  font-size: clamp(1.08rem, 1.45vw, 1.3rem);
}

/* Pricing: two Wallet passes --------------------------------------------- */

.pricing {
  padding-top: var(--section-gap);
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto clamp(48px, 6vw, 88px);
  text-align: center;
}

.plans {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.plan {
  --plan-pad: clamp(26px, 3vw, 32px);
  display: flex;
  flex: 1 1 300px;
  flex-direction: column;
  max-width: 460px;
  border-radius: 2rem;
  background: var(--surface);
  box-shadow: var(--shadow-high);
}

.plan-pro {
  background: var(--inverse-bg);
  color: var(--inverse-ink);
}

.plan-head,
.plan-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: var(--plan-pad);
}

.plan-head {
  padding-bottom: 24px;
}

.plan-body {
  flex: 1 1 auto;
  gap: 20px;
  padding-top: 24px;
}

.plan-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.plan-name {
  color: var(--ink);
}

.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}

.plan-amount {
  font-family: var(--font-editorial);
  font-size: clamp(3.4rem, 6vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.plan-period,
.plan-list {
  color: var(--ink-soft);
}

.plan-pro .plan-top,
.plan-pro .plan-period,
.plan-pro .plan-list {
  color: var(--inverse-soft);
}

.plan-pro .plan-name,
.plan-pro .plan-amount {
  color: var(--inverse-accent);
}

.plan-quota {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

/* Perforation with two notches, cut in the page colour. */
.plan-perf {
  position: relative;
  height: 0;
  margin: 0 22px;
  border-top: 2px dashed color-mix(in srgb, currentColor 18%, transparent);
}

.plan-perf::before,
.plan-perf::after {
  position: absolute;
  top: -13px;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  content: "";
}

.plan-perf::before {
  left: -36px;
}

.plan-perf::after {
  right: -36px;
}

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  font-size: 1.0625rem;
  line-height: 1.5;
  list-style: none;
}

.plan .btn {
  min-height: 50px;
  margin-top: auto;
}

/* FAQ -------------------------------------------------------------------- */

.faq {
  padding-top: var(--section-gap);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 5%, transparent);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 24px;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.faq-item summary::after {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--tint);
  color: var(--tint-ink);
  content: "+";
  font-size: 20px;
  font-weight: 400;
  transition: transform var(--dur-base) var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--ink-soft);
}

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

.site-footer {
  padding: var(--section-gap) 0 32px;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 32px;
}

.footer-nav a {
  color: var(--ink);
  font-family: var(--font-editorial);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: opacity var(--dur-base) var(--ease);
}

.footer-nav:hover a:not(:hover) {
  opacity: 0.45;
}

.wordmark-giant {
  margin: clamp(32px, 4vw, 56px) 0 0;
  padding: 0 0.04em;
  overflow: hidden;
  font-family: var(--font-editorial);
  font-size: clamp(5rem, 21vw, 19rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.wordmark-giant span {
  display: inline-block;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  text-align: left;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.legal-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  text-decoration: none;
}

/* Dock: floats once the hero is gone, hides at the closing call --------- */

.dock {
  position: fixed;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 7px 7px 7px 22px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: var(--shadow-high);
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 140%);
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease), visibility 0s 0.6s;
}

.dock.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease), visibility 0s;
}

.dock-text {
  color: var(--ink-soft);
  font-size: 14px;
  white-space: nowrap;
}

.dock-text strong {
  color: var(--ink);
  font-family: var(--font-editorial);
  font-size: 17px;
  font-weight: 400;
}

/* Legal pages ------------------------------------------------------------ */

.legal-page {
  padding-block: clamp(40px, 6vw, 96px) 0;
}

.legal-header {
  width: min(1320px, 100% - 2 * var(--gutter));
  margin: 0 auto;
}

.pending {
  padding: 0 6px;
  border-radius: 6px;
  background: var(--highlight);
  color: var(--ink);
  font-style: italic;
}

.legal-draft {
  display: inline-flex;
  margin: 0 0 24px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--tint);
  color: var(--tint-ink);
  font-size: 14px;
  font-weight: 600;
}

.legal-page h1 {
  margin: 0 0 32px;
}

.legal-page h2 {
  margin: 48px 0 12px;
  font-family: var(--font-editorial);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.legal-page p,
.legal-page li {
  color: var(--ink-soft);
}

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

/* Responsive ------------------------------------------------------------- */

/* The inline header (wordmark, links, button) needs about 610px, so it folds
   into the menu earlier than the phone rules below. Keep NARROW in
   site-menu.js in step with this width. */
@media (max-width: 680px) {
  /* Header: wordmark and a menu button in one bar; links and call to action sit
     in a panel below it. Without site-menu.js (no html.has-menu) the panel just
     stays open under the wordmark. */
  .site-header {
    position: relative;
    z-index: 20;
    min-height: 68px;
  }

  .site-menu {
    display: flex;
    flex: 1 0 100%;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 16px;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    font-family: var(--font-editorial);
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: -0.02em;
  }

  .site-nav a {
    min-height: 56px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }

  .site-menu .btn {
    width: 100%;
    min-height: 54px;
  }

  html.has-menu .menu-toggle {
    display: inline-flex;
  }

  html.has-menu .site-menu {
    position: absolute;
    top: calc(100% - 6px);
    right: 0;
    left: 0;
    gap: 8px;
    padding: 8px 20px 20px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow-high);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
  }

  html.has-menu .site-header.is-open .site-menu {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  @media (prefers-reduced-motion: no-preference) {
    html.has-menu .site-menu {
      transition: opacity 0.3s var(--ease), transform 0.45s var(--ease), visibility 0s 0.3s;
    }

    html.has-menu .site-header.is-open .site-menu {
      transition: opacity 0.3s var(--ease), transform 0.45s var(--ease), visibility 0s;
    }

    .menu-bars span {
      transition: top 0.3s var(--ease), bottom 0.3s var(--ease), rotate 0.3s var(--ease);
    }
  }
}

@media (max-width: 600px) {
  .hero-actions {
    align-self: stretch;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* The pinned story has to fit a phone screen (iPhone SE: ~548 px). */
  .story-caption h3 {
    font-size: 1.85rem;
  }

  .story-caption p {
    font-size: 15px;
  }

  .story-cta {
    min-height: 44px;
    margin-top: 14px;
  }

  html.motion .story-copy .kicker {
    display: none;
  }

  .scene-stage {
    min-height: 176px;
  }

  .scene-speech {
    font-size: 1.05rem;
  }

  .buffer-tape {
    height: 40px;
  }

  .scene-button {
    min-height: 50px;
  }

  .dock {
    right: 12px;
    left: 12px;
    justify-content: space-between;
    transform: translateY(140%);
  }

  .dock.is-visible {
    transform: none;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* The pinned story: the section grows to five screens of scroll travel, the
   scene stays in view and site.js sets the beat. */
html.motion .story {
  height: 540vh;
  height: 540svh;
}

html.motion .story-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  align-content: center;
  padding-block: clamp(12px, 3vh, 32px);
}

html.motion .story-captions {
  gap: 0;
}

html.motion .story-caption {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.7s var(--ease), filter 0.55s var(--ease), visibility 0s 0.55s;
}

html.motion .story-caption.is-active {
  visibility: visible;
  opacity: 1;
  filter: none;
  transform: none;
  transition: opacity 0.55s var(--ease), transform 0.7s var(--ease), filter 0.55s var(--ease), visibility 0s;
}

html.motion .story-dots {
  display: flex;
}

@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal]:not([data-reveal="rise"]) {
    transition:
      opacity 1s var(--ease) var(--d, 0ms),
      transform 1s var(--ease) var(--d, 0ms),
      filter 1s var(--ease) var(--d, 0ms);
  }

  html.js [data-reveal]:not([data-reveal="rise"]):not(.is-in) {
    opacity: 0;
    transform: translateY(1.6rem);
    filter: blur(8px);
  }

  html.js [data-reveal="rise"] .line > span {
    transition: transform 1.1s var(--ease);
  }

  html.js [data-reveal="rise"] .line + .line > span {
    transition-delay: 90ms;
  }

  html.js [data-reveal="rise"]:not(.is-in) .line > span {
    transform: translateY(108%);
  }

  html.js .wordmark-giant span {
    transition: transform 1s var(--ease) calc(var(--i, 0) * 55ms);
  }

  html.js .wordmark-giant:not(.is-in) span {
    transform: translateY(105%);
  }

  /* If site.js never runs, nothing may stay hidden. */
  html.js:not(.motion) [data-reveal]:not(.is-in),
  html.js:not(.motion) [data-reveal]:not(.is-in) .line > span,
  html.js:not(.motion) .wordmark-giant:not(.is-in) span {
    animation: reveal-fallback 0.01s 2.5s forwards;
  }

  /* The headline looks back once: the hand sweeps 25 seconds back and paints
     the blue sector, then the badge pops and the watch gives a small ding. */
  html.js .t-display .picto-sector {
    animation: picto-sweep 2.6s var(--ease) 0.9s both;
  }

  html.js .t-display .picto-hand {
    animation: picto-back 2.6s var(--ease) 0.9s both;
  }

  html.js .t-display .picto-badge {
    animation: picto-pop 0.55s var(--ease-soft) 1.2s both, picto-bump 0.6s var(--ease) 3.5s;
  }

  html.js .t-display .picto-rewind svg {
    animation: picto-ding 0.85s var(--ease) 3.5s;
  }

  /* The hero answers itself: question, three dots, then the model answer
     with its highlighter stroke. */
  html.motion .showcase:not(.is-in) .bubble-row,
  html.motion .showcase:not(.is-in) .answer-bubble {
    opacity: 0;
  }

  html.motion .showcase.is-in .bubble-row {
    animation: chat-in 0.6s var(--ease) 0.45s both;
  }

  html.motion .showcase.is-in .typing {
    display: inline-flex;
    animation: typing-life 1.5s linear 1s both;
  }

  html.motion .showcase.is-in .typing span {
    animation: typing-dot 0.9s var(--ease) infinite;
  }

  html.motion .showcase.is-in .typing span:nth-child(2) {
    animation-delay: 0.15s;
  }

  html.motion .showcase.is-in .typing span:nth-child(3) {
    animation-delay: 0.3s;
  }

  html.motion .showcase.is-in .answer-bubble {
    animation: chat-in 0.7s var(--ease) 2.45s both;
  }

  html.motion .showcase.is-in .answer-bubble .hl {
    animation: hl-sweep 0.9s var(--ease) 3.2s both;
  }

  /* Story: the tape keeps rolling until the question is caught, the tap
     sends a ripple through the button, the answer gets its highlighter. */
  .buffer-tape::before {
    animation: roll 0.7s linear infinite;
  }

  .scene[data-beat="2"] .buffer-tape::before,
  .scene[data-beat="3"] .buffer-tape::before {
    animation-play-state: paused;
  }

  html.motion .scene[data-beat="3"] .scene-ripple {
    animation: scene-ripple 0.9s var(--ease) 0.15s both;
  }

  html.motion .scene[data-beat="4"] .scene-answer .hl {
    animation: hl-sweep 0.9s var(--ease) 0.5s both;
  }

  .story-caption .picto-sector {
    animation: picto-sweep-loop 4.8s var(--ease) infinite;
  }

  .story-caption .picto-hand {
    animation: picto-back-loop 4.8s var(--ease) infinite;
  }

  .story-caption .picto-press {
    animation: picto-press 2.4s var(--ease) infinite;
  }

  .story-caption .picto-ripple {
    animation: picto-ripple 2.4s var(--ease) infinite;
  }

  .story-caption .picto-finger {
    animation: picto-finger 2.4s var(--ease) infinite;
  }

  .story-caption .picto-line {
    animation: picto-write 4.2s var(--ease) infinite;
  }

  .story-caption .picto-line-2 {
    animation-delay: 0.25s;
  }

  .story-caption .picto-line-3 {
    animation-delay: 0.5s;
  }

  .story-caption .picto-hl {
    animation: picto-highlight 4.2s var(--ease) infinite;
  }
}

@keyframes reveal-fallback {
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes chat-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes typing-life {
  0% {
    max-height: 0;
    padding-block: 0;
    opacity: 0;
  }

  12%,
  82% {
    max-height: 48px;
    padding-block: 14px;
    opacity: 1;
  }

  100% {
    max-height: 0;
    padding-block: 0;
    margin-block: -8px;
    opacity: 0;
  }
}

@keyframes typing-dot {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes hl-sweep {
  from {
    background-size: 0% 100%;
  }
}

@keyframes roll {
  to {
    background-position: -14px 0;
  }
}

@keyframes scene-ripple {
  from {
    opacity: 0.9;
    transform: scale(0.3);
  }

  to {
    opacity: 0;
    transform: scale(9);
  }
}

@keyframes picto-sweep {
  from {
    stroke-dasharray: 0 100;
  }

  to {
    stroke-dasharray: 41.7 58.3;
  }
}

@keyframes picto-back {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-150deg);
  }
}

@keyframes picto-sweep-loop {
  0% {
    stroke-dasharray: 0 100;
  }

  50%,
  88% {
    stroke-dasharray: 41.7 58.3;
  }

  100% {
    stroke-dasharray: 0 100;
  }
}

@keyframes picto-back-loop {
  0% {
    transform: rotate(0deg);
  }

  50%,
  88% {
    transform: rotate(-150deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes picto-pop {
  from {
    opacity: 0;
    transform: scale(0.2);
  }
}

@keyframes picto-bump {
  35% {
    transform: scale(1.28);
  }
}

@keyframes picto-ding {
  18% {
    transform: rotate(-11deg);
  }

  40% {
    transform: rotate(8deg);
  }

  62% {
    transform: rotate(-4deg);
  }

  82% {
    transform: rotate(2deg);
  }
}

@keyframes picto-press {
  0%,
  28%,
  100% {
    transform: scale(1);
  }

  12% {
    transform: scale(0.93);
  }
}

@keyframes picto-ripple {
  0%,
  8% {
    opacity: 0;
    transform: scale(0.5);
  }

  14% {
    opacity: 0.95;
  }

  55%,
  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}

@keyframes picto-finger {
  0%,
  40%,
  100% {
    opacity: 0;
  }

  6%,
  22% {
    opacity: 1;
  }
}

@keyframes picto-write {
  0% {
    transform: scaleX(0);
  }

  22%,
  86% {
    transform: scaleX(1);
  }

  100% {
    transform: scaleX(0);
  }
}

@keyframes picto-highlight {
  0%,
  30% {
    transform: scaleX(0);
  }

  48%,
  86% {
    transform: scaleX(1);
  }

  100% {
    transform: scaleX(0);
  }
}
