/*
 * Symbiose landing page.
 *
 * Tokens and motion are lifted from the app rather than approximated:
 * colours from apps/mobile/src/design/theme.ts, bubble and card shapes from
 * the chat and onboarding surfaces, and every timing below names the
 * component it was taken from. scripts/home.js swaps the spring fallbacks for
 * the app's real spring curves where the browser supports `linear()` easing.
 */

:root {
  --bg: #fbf8f4;
  --paper: #f5f0e8;
  --surface: #ffffff;
  --translation: #f1f3f5;
  --ink: #0a2144;
  --muted: #5b6e8c;
  --accent: #123f85;
  --accent-strong: #061f4b;
  --accent-soft: #e8effa;
  --teal: #12b8a6;
  --teal-strong: #086f64;
  --teal-soft: #ddf5f1;
  --mint: #35e2b2;
  --sun: #f5a524;
  --sun-strong: #8a5405;
  --sun-soft: #fff1da;
  --border: #e0d8cd;
  --hairline: rgba(10, 33, 68, 0.1);

  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Nunito", "Geist", -apple-system, BlinkMacSystemFont, sans-serif;

  --shell: 1180px;
  --gutter: 24px;

  /* Fallbacks; home.js replaces these with the app's springs. */
  --spring-enter: cubic-bezier(0.2, 1.1, 0.35, 1);
  --spring-enter-ms: 520ms;
  --spring-floaty: cubic-bezier(0.25, 1.3, 0.4, 1);
  --spring-floaty-ms: 900ms;
  --spring-pop: cubic-bezier(0.3, 1.6, 0.45, 1);
  --spring-pop-ms: 600ms;
  --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-lock: cubic-bezier(0.16, 1, 0.3, 1);

  --card-shadow: 0 14px 28px -10px rgba(10, 33, 68, 0.16), 0 2px 6px rgba(10, 33, 68, 0.05);
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

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

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

/* Icons in the sprite are line art, like the app's. */
use {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------------- nav */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: #fff;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.is-solid {
  color: var(--ink);
  background: rgba(251, 248, 244, 0.82);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 var(--hairline);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand__mark use {
  stroke: none;
  fill: currentColor;
  transition: fill 0.3s ease;
}

.nav.is-solid .brand__mark .brand__navy use {
  fill: var(--accent);
}

.nav.is-solid .brand__mark .brand__mint use {
  fill: var(--teal);
}

.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
}

.nav__links a {
  opacity: 0.86;
  transition: opacity 0.2s ease;
}

.nav__links a:hover {
  opacity: 1;
}

/* ------------------------------------------------------------- buttons */

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.25s var(--spring-pop), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pill-button:hover {
  transform: translateY(-2px);
}

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

.pill-button--glass {
  height: 42px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav.is-solid .pill-button--glass {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 8px 18px -8px rgba(10, 33, 68, 0.5);
}

.pill-button--outline {
  color: var(--ink);
  border-color: var(--border);
  background: var(--surface);
}

.pill-button--outline:hover {
  border-color: var(--ink);
}

.pill-button--light {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45);
}

/* ------------------------------------------------------------- reveal */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease-out-cubic) var(--d, 0ms), transform 0.6s var(--ease-out-cubic) var(--d, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------- floaty pieces */
/*
 * onboarding-story.tsx `Floaty`: drops in on a spring from 34px below at 86%
 * scale with 2.4× its resting tilt, then bobs on its own slow sine.
 */

.floaty {
  --r: 0deg;
  --delay: 0ms;
  --drift: 5px;
  --period: 3600ms;
}

.js .floaty {
  opacity: 0;
  transform: translateY(34px) scale(0.86) rotate(calc(var(--r) * 2.4));
  transition:
    transform var(--spring-floaty-ms) var(--spring-floaty) var(--delay),
    opacity 0.35s ease var(--delay);
}

.js .is-in .floaty,
.floaty.is-in {
  opacity: 1;
  transform: rotate(var(--r));
}

.js .is-in .floaty.step:not(.is-on) {
  opacity: 0;
  transform: translateY(34px) scale(0.86) rotate(calc(var(--r) * 2.4));
  transition-delay: 0s;
  transition-duration: 0.25s;
  pointer-events: none;
}

.bob {
  animation: bob calc(var(--period) * 2) linear calc(var(--delay) + 500ms) infinite both;
}

@keyframes bob {
  0% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.61, 1, 0.88, 1);
  }
  25% {
    transform: translateY(calc(var(--drift) * -1));
    animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.61, 1, 0.88, 1);
  }
  75% {
    transform: translateY(var(--drift));
    animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
  }
  100% {
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: 112px 0 104px;
  overflow: hidden;
  isolation: isolate;
  background: var(--accent-strong);
  color: #fff;
}

/*
 * The colour is drawn small and blurred hard, so nothing in it has an edge:
 * the canvas bleeds past the section so the blur never pulls in a dark rim.
 */
.aura {
  position: absolute;
  top: -90px;
  left: -90px;
  z-index: -2;
  width: calc(100% + 180px);
  height: calc(100% + 180px);
  filter: blur(42px) saturate(1.12);
}

/*
 * brand-aura.tsx: a faint light from the upper left, and everything below the
 * colour dissolving into the page so the next section sits on flat paper.
 */
.hero__fade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 70% at 22% 8%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 70%),
    linear-gradient(to bottom, rgba(6, 31, 75, 0) 60%, rgba(6, 31, 75, 0.35) 100%);
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 40px;
}

.hero__copy {
  max-width: 680px;
  text-shadow: 0 2px 30px rgba(6, 31, 75, 0.35);
}

.lockmark svg {
  overflow: visible;
}

.lockmark use {
  stroke: none;
  fill: #fff;
}

/*
 * symbiose-mark.tsx `AnimatedSymbioseMark`: the two halves start 0.85 of the
 * mark apart, turned 9° each way, and close on the lock point in 500ms on one
 * decelerating curve with no overshoot, 70ms after the screen opens.
 */
.lockmark g {
  transition:
    transform 500ms var(--ease-lock) 70ms,
    opacity 160ms linear 70ms;
}

.js .lockmark:not(.is-locked) .lockmark__navy {
  transform: translate(-808px, -898px) rotate(-9deg);
  opacity: 0;
}

.js .lockmark:not(.is-locked) .lockmark__mint {
  transform: translate(808px, 898px) rotate(9deg);
  opacity: 0;
}

.lockmark__navy,
.lockmark__mint {
  transform-box: fill-box;
  transform-origin: center;
}

.hero__title {
  font-family: var(--display);
  font-size: clamp(46px, 5.4vw, 78px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero__who {
  display: block;
  white-space: nowrap;
}

.hero__who .caret {
  height: 0.82em;
  width: 4px;
  margin-left: 6px;
  vertical-align: -0.04em;
  border-radius: 2px;
}

.hero__accent {
  white-space: nowrap;

  background: linear-gradient(100deg, #35e2b2 10%, #b9fbe6 60%, #9ccbff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.hero__tagline {
  max-width: 34em;
  text-wrap: balance;
  margin-top: 22px;
  font-size: 19px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84);
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--mint);
  border-radius: 1px;
  animation: blink 1s steps(1) infinite;
}

.caret--teal {
  background: var(--teal);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.stores--center {
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 172px;
  padding: 10px 20px 10px 16px;
  border-radius: 16px;
  color: #fff;
  background: rgba(6, 31, 75, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-shadow: none;
  transition: transform 0.25s var(--spring-pop), background-color 0.2s ease;
}

a.store-badge:hover {
  transform: translateY(-2px);
  background: rgba(6, 31, 75, 0.7);
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.store-badge__text small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
}

.store-badge__text strong {
  white-space: nowrap;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.store-badge--unavailable {
  cursor: default;
}

.hero__note {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.hero__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 640px;
}

.chip-pos {
  position: absolute;
  z-index: 4;
}

.hero__pair {
  top: 8%;
  left: 0;
}

.hero__private {
  right: -2%;
  bottom: 18%;
}

/* ------------------------------------------------------------- device */

.device {
  position: relative;
  width: 300px;
  height: 624px;
  padding: 9px;
  border-radius: 52px;
  background: linear-gradient(150deg, #2a3754 0%, #0b1325 45%, #050a16 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.1),
    inset 0 0 0 5px #0a1120,
    0 50px 90px -30px rgba(6, 31, 75, 0.55),
    0 24px 40px -24px rgba(6, 31, 75, 0.5);
  text-shadow: none;
  color: var(--ink);
}

.device__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 43px;
  background: var(--bg);
  font-size: 13.5px;
  line-height: 1.42;
}

.device__screen::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 104px;
  height: 4px;
  margin-left: -52px;
  border-radius: 4px;
  background: var(--ink);
  opacity: 0.85;
}

.status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  height: 46px;
  padding: 4px 26px 0 30px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.status__island {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 90px;
  height: 26px;
  margin-left: -45px;
  border-radius: 20px;
  background: #05080f;
}

.status__icons {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.status__icons b {
  width: 3.5px;
  border-radius: 1px;
  background: var(--ink);
}

.status__icons b:nth-child(1) {
  height: 5px;
}

.status__icons b:nth-child(2) {
  height: 8px;
}

.status__icons b:nth-child(3) {
  height: 11px;
}

.chat-head {
  display: flex;
  align-items: center;
  flex: none;
  gap: 9px;
  padding: 4px 14px 10px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
}

.chat-head__back {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.avatar {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--hairline);
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar--initial {
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal-strong);
  font-size: 14px;
  font-weight: 800;
}

.avatar--ai {
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--accent) 0%, var(--teal) 100%);
  color: #fff;
}

.avatar--ai svg {
  width: 17px;
  height: 17px;
}

.chat-head__who {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  line-height: 1.2;
}

.chat-head__who strong {
  font-size: 14.5px;
  font-weight: 700;
}

.chat-head__who > span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--muted);
}

.online {
  color: var(--teal-strong) !important;
  font-weight: 600;
}

.online--muted {
  color: var(--muted) !important;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.flag {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--hairline);
}

.flag--xs {
  width: 13px;
  height: 13px;
}

.flag--md {
  width: 23px;
  height: 23px;
}

.thread {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 12px 14px;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.thread__day {
  align-self: center;
  margin-bottom: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(10, 33, 68, 0.05);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.row--out {
  justify-content: flex-end;
}

.col {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* opening-conversation-preview.tsx and onboarding-story.tsx bubbles. */
.bubble {
  text-wrap: pretty;
  max-width: 86%;
  padding: 9px 13px;
  border-radius: 22px;
  overflow: hidden;
}

.bubble--in {
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 7px;
}

.row--in .bubble {
  max-width: 100%;
}

.bubble--out {
  color: #fff;
  background: var(--accent);
  border-bottom-right-radius: 7px;
}

.bubble--draft {
  background: var(--accent-soft);
  border-bottom-right-radius: 7px;
}

.meaning {
  display: block;
  margin: 8px -13px 0;
  padding: 7px 13px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.38;
}

.meaning--icon {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meaning--icon svg {
  flex: none;
  width: 13px;
  height: 13px;
  color: var(--teal-strong);
}

/* A beat in a scene. Hidden until the script reaches it, then it opens on
   the app's `springs.enter` (onboarding-story.tsx `Appear`). */
.step:not(.floaty):not(.is-on) {
  display: none !important;
}

.step.is-on:not(.floaty) {
  animation: appear var(--spring-enter-ms) var(--spring-enter) both;
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.typing {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 13px 15px;
  border-radius: 22px;
  border-bottom-left-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.typing.is-on {
  display: flex;
  animation: appear 0.24s ease-out both;
}

.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1.2s ease-in-out infinite;
}

.typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing {
  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: none;
  }
  30% {
    opacity: 0.85;
    transform: translateY(-2px);
  }
}

/* The translate control beside a message, and the breath that invites the
   tap (opening-conversation-preview.tsx `TranslateControl`). */
.translate-btn {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-top: 4px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--spring-pop);
}

.translate-btn:active {
  transform: scale(0.9);
}

.translate-btn svg {
  width: 16px;
  height: 16px;
}

.translate-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.translate-btn__pulse {
  position: absolute;
  inset: -1px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.translate-btn.is-pulsing .translate-btn__pulse {
  animation: breathe-ring 1.8s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}

@keyframes breathe-ring {
  from {
    opacity: 0.45;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.7);
  }
}

.actions {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.actions span {
  padding: 8px 11px;
  color: var(--accent-strong);
  font-size: 11.5px;
  font-weight: 800;
}

.suggest {
  display: flex;
  align-items: center;
  align-self: flex-end;
  gap: 7px;
  max-width: 92%;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.suggest.is-on {
  display: flex;
}

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

.suggest__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.suggest__icon svg {
  width: 15px;
  height: 15px;
}

/* onboarding-story.tsx `UnderstandCollage`. */
.translate-dot {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 4px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.translate-dot svg {
  width: 14px;
  height: 14px;
}

.translate-dot__on {
  display: none !important;
  color: #fff;
}

.translate-dot__on use {
  stroke-width: 2.4;
}

.translate-dot.is-done {
  background: var(--teal);
  border-color: var(--teal);
}

.translate-dot.is-done .translate-dot__off {
  display: none;
}

.translate-dot.is-done .translate-dot__on {
  display: block !important;
  animation: appear var(--spring-pop-ms) var(--spring-pop) both;
}

.gutter {
  flex: none;
  width: 28px;
}

/* onboarding-story.tsx `TapPulse`: a teal ring where the finger lands, twice. */
.tap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 2px solid rgba(18, 184, 166, 0.9);
  border-radius: 50%;
  background: rgba(18, 184, 166, 0.28);
  opacity: 0;
  pointer-events: none;
}

.tap--sm {
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
}

.tap.is-on {
  animation: tap 1300ms linear both;
}

@keyframes tap {
  0% {
    opacity: 0;
    transform: scale(0.6);
    animation-timing-function: cubic-bezier(0.5, 1, 0.89, 1);
  }
  6% {
    opacity: 0.9;
  }
  40% {
    opacity: 0;
    transform: scale(1.9);
  }
  40.1% {
    opacity: 0;
    transform: scale(0.6);
    animation-timing-function: cubic-bezier(0.5, 1, 0.89, 1);
  }
  46% {
    opacity: 0.9;
  }
  80%,
  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}

.word {
  position: relative;
  padding: 0 2px;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.word.is-on {
  background: var(--teal-soft);
  color: var(--teal-strong);
}

.popover {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px 7px 11px;
  border: 1.5px solid var(--teal);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 6px 12px rgba(10, 33, 68, 0.12);
}

.popover::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 22px;
  width: 10px;
  height: 10px;
  background: var(--surface);
  border-left: 1.5px solid var(--teal);
  border-top: 1.5px solid var(--teal);
  transform: rotate(45deg);
}

.popover b {
  font-size: 14px;
  font-weight: 800;
}

.popover > span:not(.popover__save) {
  color: var(--teal-strong);
  font-size: 14px;
  font-weight: 700;
}

.popover__chev {
  width: 13px;
  height: 13px;
  color: var(--muted);
}

.popover__save {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-strong);
  transition: transform 0.3s var(--spring-pop), background-color 0.2s ease, color 0.2s ease;
}

.popover__save svg {
  width: 12px;
  height: 12px;
}

.popover__save.is-active {
  background: var(--teal);
  color: #fff;
  transform: scale(1.12);
}

.popover__save.is-active use {
  fill: currentColor;
}

/* Composer */
.composer {
  display: flex;
  align-items: center;
  flex: none;
  gap: 6px;
  padding: 9px 10px 24px;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
}

.composer__field {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  min-height: 34px;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.composer__field--live {
  color: var(--ink);
}

.composer__btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.3s var(--spring-pop);
}

.composer__btn svg {
  width: 15px;
  height: 15px;
}

.composer__btn use {
  stroke-width: 2.2;
}

.composer__btn--soft {
  background: var(--teal-soft);
  color: var(--teal-strong);
}

.composer__btn--soft.is-active {
  background: var(--teal);
  color: #fff;
  transform: scale(1.08);
}

.caret.is-off {
  display: none;
}

/* Writing help, rising beside the composer (`HelpCollage`). */
.help-card-pos {
  right: -13%;
  bottom: 19%;
  width: 272px;
}

.help-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 24px 48px -16px rgba(10, 33, 68, 0.3), 0 4px 10px rgba(10, 33, 68, 0.06);
  color: var(--ink);
}

.help-card__head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
}

.help-card__mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
}

.help-card__mark svg {
  width: 13px;
  height: 13px;
}

.help-card__label {
  color: var(--muted);
  font-size: 11.5px;
}

.help-card__suggestion {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 9px 9px 11px;
  border-radius: 14px;
  background: var(--teal-soft);
}

.help-card__suggestion b {
  flex: 1;
  font-size: 14.5px;
  font-weight: 800;
}

.use-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  background: var(--teal-strong);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  transition: transform 0.3s var(--spring-pop);
}

.use-pill svg {
  width: 12px;
  height: 12px;
}

.use-pill use {
  stroke-width: 2.6;
}

.use-pill.is-active {
  transform: scale(0.92);
}

/* Practice: the flashcard that came out of the chat. */
.practice-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex: none;
  padding: 8px 20px 12px;
  background: var(--surface);
}

.practice-head strong {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.practice-head__count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.progress {
  flex: none;
  height: 6px;
  margin: 0 20px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--border);
}

.progress i {
  display: block;
  width: 18%;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  transition: width 0.6s var(--ease-out-cubic);
}

.progress i.is-on {
  width: 25%;
}

.deck {
  position: relative;
  display: grid;
  flex: 1;
  place-items: center;
  perspective: 900px;
  transition: opacity 0.3s ease;
}

.deck__card {
  position: absolute;
  width: 212px;
  height: 252px;
  border: 1px solid var(--border);
  border-radius: 26px;
}

.deck__card--back2 {
  background: var(--teal-soft);
  transform: rotate(9deg) translateY(4px);
}

.deck__card--back1 {
  background: var(--accent-soft);
  transform: rotate(4deg);
}

/* flip-card.tsx: turns over in place, 320ms in-out cubic, perspective 900. */
.flip {
  position: relative;
  width: 222px;
  height: 262px;
  transform: rotate(-3deg);
  transform-style: preserve-3d;
  transition: transform 320ms cubic-bezier(0.65, 0, 0.35, 1);
}

.flip.is-flipped {
  transform: rotate(-3deg) rotateY(180deg);
}

.flip__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  text-align: center;
}

.flip__face--back {
  transform: rotateY(180deg);
}

.saved-pill {
  position: absolute;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-strong);
  font-size: 11px;
  font-weight: 700;
}

.saved-pill svg {
  width: 11px;
  height: 11px;
}

.saved-pill use {
  stroke-width: 2.4;
}

.flip__word {
  margin-top: 8px;
  font-family: var(--display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.flip__word--meaning {
  color: var(--teal-strong);
  font-size: 36px;
}

.flip__blank {
  width: 90px;
  height: 10px;
  border-radius: 6px;
  background: var(--border);
  opacity: 0.8;
}

.flip__quote {
  color: var(--muted);
  font-size: 12.5px;
}

.flip__quote em {
  color: var(--teal-strong);
  font-style: normal;
  font-weight: 700;
}

.flip__face small {
  position: absolute;
  bottom: 14px;
  color: var(--muted);
  font-size: 11px;
}

.rate {
  display: flex;
  flex: none;
  gap: 6px;
  padding: 0 14px 30px;
}

.rate span {
  position: relative;
  flex: 1;
  padding: 9px 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  transition: transform 0.3s var(--spring-pop), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rate .rate__good {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal-strong);
}

.rate .rate__good.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  transform: scale(0.94);
}

/* Floating pills (onboarding-story.tsx glass/hint/streak pills). */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  text-shadow: none;
}

.chip .flag {
  width: 19px;
  height: 19px;
}

.chip__icon {
  width: 13px;
  height: 13px;
  color: var(--muted);
}

.chip__icon--teal {
  color: var(--teal);
}

.chip--ink {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.chip--ink .chip__icon {
  color: var(--bg);
}

.chip--glass {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.chip--glass .chip__icon {
  color: #fff;
}

.chip--sun {
  border-color: var(--sun);
  background: var(--sun-soft);
  color: var(--sun-strong);
  font-size: 13px;
  box-shadow: 0 10px 22px -10px rgba(245, 165, 36, 0.6);
}

.chip--sun .chip__icon {
  width: 15px;
  height: 15px;
  color: var(--sun);
}

.chip--sun use {
  stroke-width: 2.2;
}

.chip--sun b {
  display: inline-block;
  margin-right: -6px;
}

.chip--sun b.is-on {
  animation: pop var(--spring-pop-ms) var(--spring-pop) both;
}

@keyframes pop {
  from {
    transform: scale(0.4);
  }
  to {
    transform: scale(1);
  }
}

/* The level ring that fills while you watch (`LevelRing`). */
.level-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.ring {
  width: 52px;
  height: 52px;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke-width: 6;
}

.ring__track {
  stroke: var(--border);
}

.ring__fill {
  stroke: url(#ring-grad);
  stroke-linecap: round;
  stroke-dasharray: 144.5 144.5;
  stroke-dashoffset: 144.5;
  transition: stroke-dashoffset 1400ms var(--ease-out-cubic);
}

.level-card__label {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 52px;
  margin-top: -0.6em;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.level-card__copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.level-card__copy small {
  color: var(--muted);
  font-size: 11px;
}

.level-card__copy strong {
  font-size: 14px;
  font-weight: 800;
}

/* thinking-mark.tsx: the bulb glows, a ring travels round it. */
.thinking {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 2px 0 2px 2px;
}

.thinking__glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--teal);
  animation: glow 1240ms cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes glow {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.09);
  }
}

.thinking__ring {
  position: absolute;
  inset: 0;
  width: 34px;
  height: 34px;
  animation: spin 1100ms linear infinite;
}

.thinking__ring circle {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
}

.thinking__track {
  opacity: 0.28;
}

.thinking__arc {
  stroke-linecap: round;
  stroke-dasharray: 29.2 97.4;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.thinking__bulb {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
}

.thinking__bulb svg {
  width: 15px;
  height: 15px;
}

.thinking__bulb use {
  stroke-width: 2;
}

/* A scene clearing itself before it plays again, and switching language. */
[data-t],
[data-flag],
[data-avatar] {
  transition: opacity 0.3s ease;
}

.is-resetting [data-t],
.is-resetting [data-flag],
.is-resetting [data-avatar],
.is-resetting .thread,
.is-resetting .deck,
.is-resetting .rate,
.is-resetting .composer__field {
  opacity: 0;
}

.composer__field,
.rate {
  transition: opacity 0.3s ease;
}

/* ----------------------------------------------------------- languages */

.hello {
  position: relative;
  z-index: 3;
  margin-top: -44px;
  padding: 40px 0 26px;
  border-radius: 44px 44px 0 0;
  background: var(--bg);
  overflow: hidden;
}

.hello__mask {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.hello__track {
  display: flex;
  width: max-content;
}

.js .hello__track {
  animation: marquee 46s linear infinite;
}

.hello:hover .hello__track {
  animation-play-state: paused;
}

.hello__list {
  display: flex;
  gap: 56px;
  margin: 0;
  padding: 0 56px 0 0;
  list-style: none;
}

.hello__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.hello__list .flag {
  width: 30px;
  height: 30px;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ------------------------------------------------------------ features */

.story {
  overflow-x: clip;
  padding: 40px 0 60px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 72px;
  padding-top: 70px;
  padding-bottom: 70px;
}

.feature--flip .feature__stage {
  order: 2;
}

.feature__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 720px;
}

.feature__copy {
  max-width: 470px;
}

.feature--flip .feature__copy {
  justify-self: end;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kicker i {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--teal);
}

.feature h2,
.section__head h2 {
  margin-top: 16px;
  font-family: var(--display);
  font-size: clamp(36px, 4.3vw, 58px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.feature p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.facts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 600;
}

.facts svg {
  box-sizing: content-box;
  flex: none;
  width: 18px;
  height: 18px;
  padding: 10px;
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal-strong);
}

/* A wash of the brand behind each phone, drifting like the aura does. */
.glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 640px;
  height: 640px;
  margin: -320px 0 0 -320px;
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
  animation: drift 22s ease-in-out infinite alternate;
}

.glow--navy {
  background:
    radial-gradient(closest-side at 38% 42%, rgba(36, 88, 184, 0.34), transparent),
    radial-gradient(closest-side at 66% 64%, rgba(53, 226, 178, 0.3), transparent);
}

.glow--mint {
  background:
    radial-gradient(closest-side at 62% 40%, rgba(53, 226, 178, 0.36), transparent),
    radial-gradient(closest-side at 36% 66%, rgba(156, 203, 255, 0.4), transparent);
}

.glow--sun {
  background:
    radial-gradient(closest-side at 64% 36%, rgba(245, 165, 36, 0.24), transparent),
    radial-gradient(closest-side at 38% 62%, rgba(53, 226, 178, 0.28), transparent);
}

.glow--mix {
  background:
    radial-gradient(closest-side at 40% 38%, rgba(18, 184, 166, 0.32), transparent),
    radial-gradient(closest-side at 62% 66%, rgba(36, 88, 184, 0.3), transparent);
}

@keyframes drift {
  from {
    transform: translate(-3%, -2%) rotate(0deg) scale(1);
  }
  to {
    transform: translate(3%, 3%) rotate(24deg) scale(1.08);
  }
}

/* ----------------------------------------------------------- manifesto */

.manifesto {
  position: relative;
  padding: 150px 0 140px;
  overflow: hidden;
  isolation: isolate;
  background: var(--accent-strong);
  color: #fff;
}

.manifesto .aura {
  opacity: 0.7;
}

.manifesto::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 31, 75, 0.25), rgba(6, 31, 75, 0.7));
  pointer-events: none;
}

.manifesto__quote em {
  font-style: normal;
  background: linear-gradient(100deg, #35e2b2 10%, #b9fbe6 60%, #9ccbff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.manifesto__quote {
  max-width: 15em;
  font-family: var(--display);
  font-size: clamp(38px, 5.6vw, 80px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.versus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 900px;
  margin-top: 72px;
}

.versus__col {
  padding: 28px 30px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.versus__col h3 {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

.versus__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.versus__col li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 17px;
  color: rgba(255, 255, 255, 0.62);
}

.versus__col li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
}

.versus__col--ours {
  border-color: rgba(53, 226, 178, 0.4);
  background: rgba(53, 226, 178, 0.1);
}

.versus__col--ours h3 {
  color: var(--mint);
  opacity: 1;
}

.versus__col--ours li {
  color: #fff;
}

.versus__col--ours li::before {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23061F4B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.5 4.5 8.5-9.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ------------------------------------------------------------- sections */

.section {
  padding: 130px 0;
}

.section--paper {
  background: var(--paper);
}

.section__head {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.section__head--left {
  margin: 0;
  text-align: left;
}

.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
  text-align: left;
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 56px auto 0;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 36px 34px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: var(--surface);
}

.plan h3 {
  font-size: 17px;
  font-weight: 800;
}

.plan__price {
  margin: 10px 0 24px;
  font-family: var(--display);
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.plan__price span {
  display: block;
  margin-top: 10px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  opacity: 0.65;
}

.plan ul {
  flex: 1;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.plan li {
  position: relative;
  padding: 9px 0 9px 32px;
  font-size: 16px;
}

.plan li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23086F64' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.5 4.5 8.5-9.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.plan--plus {
  border-color: transparent;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(53, 226, 178, 0.35), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(36, 88, 184, 0.6), transparent 60%),
    linear-gradient(160deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  box-shadow: 0 40px 80px -30px rgba(6, 31, 75, 0.6);
}

.plan--plus li::before {
  background-color: var(--mint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23061F4B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.5 4.5 8.5-9.5'/%3E%3C/svg%3E");
}

.plans__note {
  margin-top: 26px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
}

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

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

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

.faq summary::after {
  content: "";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A2144' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: 0 0 0 1px var(--border);
  transition: transform 0.35s var(--spring-pop), background-color 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--teal-soft);
}

.faq details p {
  max-width: 38em;
  padding: 0 0 24px;
  color: var(--muted);
  font-size: 16.5px;
}

.faq details[open] p {
  animation: appear 0.4s var(--ease-out-cubic) both;
}

.faq a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Blog */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--spring-pop);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

.posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.post {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  transition: transform 0.35s var(--spring-pop), box-shadow 0.3s ease, opacity 0.6s var(--ease-out-cubic) var(--d, 0ms) !important;
}

.post:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 24px 48px -24px rgba(10, 33, 68, 0.3);
}

.post__tag {
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-strong);
  font-size: 12px;
  font-weight: 700;
}

.post__tag--sun {
  background: var(--sun-soft);
  color: var(--sun-strong);
}

.post__tag--navy {
  background: var(--accent-soft);
  color: var(--accent);
}

.post h3 {
  margin: 18px 0 auto;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.post h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.post__meta {
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
}

/* Finale */
.finale {
  position: relative;
  margin: 40px var(--gutter) 0;
  padding: 150px 0 160px;
  border-radius: 48px;
  overflow: hidden;
  isolation: isolate;
  background: var(--accent-strong);
  color: #fff;
  text-align: center;
}

.finale__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-shadow: 0 2px 30px rgba(6, 31, 75, 0.35);
}

.lockmark--lg {
  margin-bottom: 30px;
}

.finale h2 {
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 84px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.finale p {
  margin-top: 18px;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.84);
}

/* Footer */
.footer {
  padding: 36px 0 52px;
  color: var(--muted);
  font-size: 14px;
}

.footer__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand--ink {
  color: var(--ink);
  font-size: 18px;
}

.footer nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.footer nav a:hover {
  color: var(--ink);
}

/* ----------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .feature {
    gap: 40px;
  }

  .help-card-pos {
    right: -2%;
  }
}

@media (max-width: 900px) {
  .br-wide {
    display: none;
  }

  :root {
    --gutter: 20px;
  }

  .nav__links {
    display: none;
  }

  .nav__inner {
    justify-content: space-between;
  }

  .hero {
    padding: 100px 0 72px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    min-height: 0;
  }

  .hero__copy {
    max-width: 640px;
  }

  .hero__stage {
    min-height: 620px;
  }

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

  .feature--flip .feature__stage {
    order: 0;
  }

  .feature--flip .feature__copy {
    justify-self: start;
  }

  .feature__stage {
    min-height: 680px;
  }

  .feature__copy {
    max-width: 560px;
  }

  .versus,
  .plans,
  .faq-grid,
  .posts {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-grid {
    gap: 24px;
  }

  .section {
    padding: 96px 0;
  }

  .manifesto {
    padding: 110px 0 100px;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 16px;
  }

  .hero__title {
    font-size: clamp(40px, 11.5vw, 56px);
  }

  .hero__tagline {
    font-size: 17px;
  }

  .store-badge {
    min-width: 0;
    flex: 1;
    gap: 9px;
    padding: 10px 12px;
  }

  .store-badge__text strong {
    font-size: 16px;
  }

  .hero__stage,
  .feature__stage {
    min-height: 600px;
  }

  .hero__stage > .floaty:first-child,
  .feature__stage > .floaty:not(.chip-pos) {
    scale: 0.88;
  }

  .help-card-pos {
    right: -8px;
    bottom: 16%;
    width: 248px;
  }

  .chip-pos {
    scale: 0.92;
  }

  .glow {
    width: 420px;
    height: 420px;
    margin: -210px 0 0 -210px;
  }

  .hello__list li {
    font-size: 22px;
  }

  .plan {
    padding: 30px 26px;
  }

  .footer__inner {
    flex-wrap: wrap;
    gap: 16px 24px;
  }

  .footer nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .section__head--row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Reduce Motion keeps every composition and stops everything moving. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .thinking__ring {
    animation: none !important;
  }

  .js .hello__track {
    animation: none;
  }
}
