@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --violet: #6d4ad8;
  --violet-hover: #5c3cc4;
  --grad-from: #7950db;
  --grad-to: #5e4bdd;
  --bg: #fbfaff;
  --bg-alt: #f3f0fc;
  --surface: #ffffff;
  --text: #16122b;
  --muted: #4f4866;
  --accent: #6d4ad8;
  --accent-soft: #ede7ff;
  --border: #e4def3;
  --frame: #15111f;
  --shadow: 0 24px 48px -20px rgba(45, 26, 110, 0.35);
  --radius: 20px;
  --max: 1140px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0b1a;
    --bg-alt: #151127;
    --surface: #1b1631;
    --text: #f3f0ff;
    --muted: #b9b2d2;
    --accent: #c5abff;
    --accent-soft: #2a2250;
    --border: #2f2853;
    --frame: #2a2542;
    --shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.7);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a,
button {
  touch-action: manipulation;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  font-weight: 700;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

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

.nav .btn {
  color: #fff;
}

@media (max-width: 760px) {
  .nav a:not(.btn) {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

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

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -45% 35%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(197, 171, 255, 0.35), transparent);
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  .hero {
    background: linear-gradient(135deg, #5a3bc0, #3d2f9e);
  }
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  grid-template-rows: 1fr auto auto auto 1fr;
  grid-template-areas: ". demo" "head demo" "steps demo" "cta demo" ". demo";
  column-gap: 40px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero-head {
  grid-area: head;
}

.hero-cta {
  grid-area: cta;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(30, 14, 92, 0.3);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.5rem, 6vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 176px;
  height: 56px;
  padding: 0 18px 0 14px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
}

.store-badge svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.store-badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.store-badge small {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.92rem;
  color: #fff;
}

.hero-steps {
  grid-area: steps;
  display: grid;
  align-content: center;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 600;
}

.hero-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  counter-increment: step;
}

.hero-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  font-weight: 800;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* The step that matches the demo's current scene. */
.hero-steps li.is-active::before {
  background: #fff;
  border-color: #fff;
  color: var(--violet);
}

/* Hero demo: a live version of the app's ringing screen */

.hero-demo {
  grid-area: demo;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Everything inside scales with this font size. */
.demo {
  position: relative;
  display: grid;
  place-items: center;
  font-size: 16px;
}

/* .phone comes later in this file, so this needs both classes to win. */
.phone.demo-phone {
  position: relative;
  z-index: 1;
  width: 18em;
  padding: 0.56em;
  border-radius: 2.6em;
}

.demo-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  aspect-ratio: 9 / 19;
  padding: 18% 7% 0;
  border-radius: 2.05em;
  background: #f8f9fc;
  color: #141a2e;
  text-align: center;
  overflow: hidden;
}

.demo-time {
  font-size: 4.1em;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.demo-label {
  margin-top: 0.35em;
  color: #525b70;
  font-size: 1.05em;
}

.demo-card {
  display: grid;
  width: 100%;
  margin-top: 1.6em;
  padding: 1.25em 1em;
  border-radius: 1.1em;
  background: #fff;
  box-shadow: 0 6px 20px -8px rgba(20, 26, 46, 0.18);
}

/* Every card state sits in the same grid cell and fades in and out. */
.demo-ch,
.demo-done {
  grid-area: 1 / 1;
  display: grid;
  align-content: center;
  gap: 0.65em;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.demo[data-challenge="math"]:not([data-scene="done"]) .demo-ch[data-ch="math"],
.demo[data-challenge="squat"]:not([data-scene="done"]) .demo-ch[data-ch="squat"],
.demo[data-challenge="shake"]:not([data-scene="done"]) .demo-ch[data-ch="shake"],
.demo[data-scene="done"] .demo-done {
  opacity: 1;
  visibility: visible;
}

.demo-title {
  font-weight: 700;
  font-size: 1.05em;
}

.demo-hint {
  color: #525b70;
  font-size: 0.85em;
  line-height: 1.35;
}

.demo-eq {
  font-size: 1.9em;
  font-weight: 800;
}

.demo-input {
  height: 2.5em;
  padding: 0 0.8em;
  border: 2px solid var(--violet);
  border-radius: 0.6em;
  font-size: 1.1em;
  line-height: calc(2.5em - 4px);
  text-align: left;
}

.demo-btn {
  padding: 0.65em;
  border-radius: 0.8em;
  background: var(--violet);
  color: #fff;
  font-size: 0.95em;
  transition: transform 0.15s ease;
}

.demo-btn.is-pressed {
  transform: scale(0.95);
}

.demo-count {
  font-size: 2.4em;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.demo-bar {
  height: 0.5em;
  border-radius: 999px;
  background: #ece7fb;
  overflow: hidden;
}

.demo-bar span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--violet);
  transition: width 0.2s linear;
}

.demo-done {
  justify-items: center;
  padding: 1.1em 0;
}

.demo-done svg {
  width: 3.5em;
  height: 3.5em;
  padding: 0.75em;
  border-radius: 50%;
  background: #e8f7ee;
  color: #157a3d;
}

/* Ringing: the phone buzzes and sound waves spread out behind it. */
.demo-wave {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 16em;
  height: 16em;
  margin-left: -8em;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.demo:not([data-scene="done"]) .demo-wave {
  animation: wave 1.6s ease-out infinite;
}

.demo:not([data-scene="done"]) .demo-wave + .demo-wave {
  animation-delay: 0.8s;
}

.demo:not([data-scene="done"]) .demo-phone {
  animation: buzz 0.9s ease-in-out infinite;
}

.demo[data-challenge="shake"][data-scene="solve"] .demo-phone {
  animation: shake 0.5s ease-in-out infinite;
}

.demo.is-paused .demo-wave,
.demo.is-paused .demo-phone {
  animation-play-state: paused;
}

@keyframes wave {
  from { transform: scale(0.6); opacity: 0.9; }
  to { transform: scale(1.9); opacity: 0; }
}

@keyframes buzz {
  0%, 40%, 100% { transform: translateX(0); }
  5%, 15%, 25%, 35% { transform: translateX(-3px) rotate(-0.6deg); }
  10%, 20%, 30% { transform: translateX(3px) rotate(0.6deg); }
}

@keyframes shake {
  0%, 100% { transform: rotate(0); }
  25% { transform: translateX(-10px) rotate(-5deg); }
  75% { transform: translateX(10px) rotate(5deg); }
}

.demo-toggle {
  position: absolute;
  z-index: 2;
  right: -14px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(30, 14, 92, 0.55);
  color: #fff;
  cursor: pointer;
}

.demo-toggle:hover {
  background: rgba(30, 14, 92, 0.75);
}

.demo-toggle svg {
  width: 18px;
  height: 18px;
}

.demo-toggle .i-play,
.demo-toggle[aria-pressed="true"] .i-pause {
  display: none;
}

.demo-toggle[aria-pressed="true"] .i-play {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .demo-wave,
  .demo-toggle {
    display: none;
  }

  .demo .demo-phone {
    animation: none !important;
  }
}

/* Phone frame */

.phone {
  flex: none;
  padding: 9px;
  border-radius: 42px;
  background: var(--frame);
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
}

.phone img {
  width: 100%;
  border-radius: 33px;
}

/* Sections */

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.12rem;
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.challenge-grid li {
  padding: 22px 12px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.challenge-grid svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin: 0 auto 10px;
}

.challenge-grid h3 {
  font-size: 1rem;
}

/* Feature rows */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature + .feature {
  margin-top: 112px;
}

.feature.reverse .feature-media {
  order: 2;
}

.feature-media {
  display: flex;
  justify-content: center;
}

/* Feature cards: small live copies of app screens. The finished state is the default, so
   they read correctly without JS or with reduced motion. JS adds .is-armed to show the start
   state and .is-playing when a card scrolls into view. */

.ui {
  width: 100%;
  max-width: 400px;
  padding: 28px;
  border-radius: 28px;
  background: var(--bg-alt);
}

.ui-card {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 20px;
  background: #fff;
  color: #141a2e;
  box-shadow: var(--shadow);
  font-size: 15px;
  line-height: 1.35;
}

.ui-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
}

.ui-row + .ui-row:not(.ui-sound, .ui-check) {
  border-top: 1px solid #eef0f5;
}

.ui-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #ede7ff;
  color: #2a1d63;
}

.ui-icon svg,
.ui-play svg {
  width: 20px;
  height: 20px;
}

.ui-text {
  display: grid;
  flex: 1;
  min-width: 0;
}

.ui-text b {
  font-weight: 600;
}

.ui-text small {
  color: #525b70;
  font-size: 0.85em;
}

.ui-switch {
  position: relative;
  flex: none;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: var(--violet);
}

.ui-switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transform: translateX(18px);
}

/* Sounds */

.ui-tabs {
  display: flex;
  gap: 6px;
  padding: 6px 4px 8px;
  overflow: hidden;
}

.ui-tabs span {
  padding: 6px 12px;
  border-radius: 999px;
  background: #f0f2f7;
  color: #3d4559;
  font-size: 0.85em;
  white-space: nowrap;
}

.ui-tabs .is-on {
  background: var(--violet);
  color: #fff;
}

.ui-sound {
  border: 1.5px solid transparent;
  border-radius: 14px;
}

.ui-sound.is-picked {
  border-color: var(--violet);
}

.ui-play {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f0f2f7;
  color: #3d4559;
}

.ui-sound.is-picked .ui-play {
  color: var(--violet);
}

.ui-radio {
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid #4a5266;
  border-radius: 50%;
}

.ui-sound.is-picked .ui-radio {
  border-color: var(--violet);
  background: radial-gradient(circle, var(--violet) 0 5px, transparent 6px);
}

.ui-volume {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 12px;
  margin-top: 6px;
  padding: 12px 10px 6px;
  border-top: 1px solid #eef0f5;
}

.ui-volume-icon svg {
  width: 22px;
  height: 22px;
  color: var(--violet);
}

.ui-volume-bar {
  height: 8px;
  border-radius: 999px;
  background: #ece7fb;
  overflow: hidden;
}

.ui-volume-bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--violet);
}

.ui-volume-label {
  display: grid;
  grid-column: 2;
  color: #525b70;
  font-size: 0.85em;
}

.ui-volume-label span {
  grid-area: 1 / 1;
}

.ui-volume-label span:first-child {
  opacity: 0;
}

/* Optimizer */

.ui-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 14px;
  border-bottom: 1px solid #eef0f5;
}

.ui-status-icon svg {
  display: block;
  width: 36px;
  height: 36px;
  color: #157a3d;
}

.ui-status-text {
  display: grid;
}

.ui-status-text > span {
  display: grid;
  grid-area: 1 / 1;
}

.ui-status-done b {
  color: #157a3d;
}

.ui-status-busy {
  opacity: 0;
}

.ui-row.ui-check {
  padding: 6px 8px;
}

.ui-check .ui-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.ui-check .ui-icon svg {
  width: 18px;
  height: 18px;
}

.ui-on {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #157a3d;
  font-size: 0.9em;
}

.ui-on svg {
  width: 18px;
  height: 18px;
}

/* Start state, before the card has been seen */

.ui.is-armed:not(.is-playing) *,
.ui.is-armed:not(.is-playing) *::after {
  transition: none !important;
  animation: none !important;
}

.ui.is-armed:not(.is-playing) .ui-switch {
  background: #c9cdd8;
}

.ui.is-armed:not(.is-playing) .ui-switch::after {
  transform: none;
}

.ui.is-armed:not(.is-playing) .ui-tabs .is-on {
  background: #f0f2f7;
  color: #3d4559;
}

.ui.is-armed:not(.is-playing) .ui-sound.is-picked {
  border-color: transparent;
}

.ui.is-armed:not(.is-playing) .ui-sound.is-picked .ui-radio {
  border-color: #4a5266;
  background: none;
}

.ui.is-armed:not(.is-playing) .ui-volume-bar span {
  width: 0;
}

.ui.is-armed:not(.is-playing) .ui-status-busy {
  opacity: 1;
}

.ui.is-armed:not(.is-playing) .ui-status-done,
.ui.is-armed:not(.is-playing) .ui-status-icon,
.ui.is-armed:not(.is-playing) .ui-on {
  opacity: 0;
}

/* Playing: each piece moves to its finished state in turn */

.ui.is-playing .ui-switch,
.ui.is-playing .ui-switch::after {
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.ui.is-playing .ui-row:nth-child(1) .ui-switch,
.ui.is-playing .ui-row:nth-child(1) .ui-switch::after {
  transition-delay: 0.5s;
}

.ui.is-playing .ui-row:nth-child(2) .ui-switch,
.ui.is-playing .ui-row:nth-child(2) .ui-switch::after {
  transition-delay: 1.2s;
}

.ui.is-playing .ui-tabs .is-on {
  transition: background-color 0.25s ease 0.4s, color 0.25s ease 0.4s;
}

.ui.is-playing .ui-sound.is-picked,
.ui.is-playing .ui-sound.is-picked .ui-radio {
  transition: border-color 0.25s ease 0.9s, background 0.25s ease 0.9s;
}

.ui.is-playing .ui-volume-bar span {
  animation: volume 3s ease-in-out 1.3s both;
}

.ui.is-playing .ui-volume-label span {
  animation: label-out 0.3s ease 3.6s both;
}

.ui.is-playing .ui-volume-label span:last-child {
  animation-name: label-in;
}

/* The volume rises slowly, then jumps to full. */
@keyframes volume {
  0% { width: 0; }
  70% { width: 55%; }
  78% { width: 55%; }
  100% { width: 100%; }
}

@keyframes label-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes label-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ui.is-playing .ui-on {
  transition: opacity 0.3s ease;
}

.ui.is-playing .ui-check:nth-child(2) .ui-on { transition-delay: 0.5s; }
.ui.is-playing .ui-check:nth-child(3) .ui-on { transition-delay: 0.85s; }
.ui.is-playing .ui-check:nth-child(4) .ui-on { transition-delay: 1.2s; }
.ui.is-playing .ui-check:nth-child(5) .ui-on { transition-delay: 1.55s; }
.ui.is-playing .ui-check:nth-child(6) .ui-on { transition-delay: 1.9s; }

.ui.is-playing .ui-status-busy,
.ui.is-playing .ui-status-done,
.ui.is-playing .ui-status-icon {
  transition: opacity 0.3s ease 2.3s;
}

.feature-copy > p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.12rem;
}

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

.checklist li {
  position: relative;
  padding-left: 38px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236D4AD8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

@media (prefers-color-scheme: dark) {
  .checklist li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C5ABFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
  }
}

.checklist strong {
  display: block;
  font-weight: 700;
}

.checklist span {
  color: var(--muted);
}

/* Video */

.video-wrap {
  max-width: 880px;
  margin: 0 auto;
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  box-shadow: var(--shadow);
}

.video > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-note {
  margin-top: 14px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
}

.video-play .play-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  box-shadow: 0 12px 30px rgba(20, 10, 60, 0.35);
  transition: transform 0.15s ease;
}

.video-play:hover .play-icon {
  transform: scale(1.06);
}

.video-play svg {
  width: 32px;
  height: 32px;
  margin-left: 5px;
}

/* FAQ */

.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.faq summary {
  position: relative;
  padding: 20px 56px 20px 24px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq .answer {
  padding: 0 24px 22px;
  color: var(--muted);
}

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

/* CTA */

.cta {
  padding: 0 0 96px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .cta-card {
    background: linear-gradient(135deg, #5a3bc0, #3d2f9e);
  }
}

.cta-card h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
}

.cta-card .store-badges {
  margin-top: 0;
  flex: none;
}

/* Footer */

.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

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

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

/* Responsive */

@media (max-width: 960px) {
  /* Phone beside the steps, so the demo is on screen right away. */
  .hero .container {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto;
    grid-template-areas: "head head" "demo steps" "cta cta";
    column-gap: 24px;
    row-gap: 28px;
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .hero-head,
  .hero-cta {
    text-align: center;
  }

  .hero .store-badges {
    margin-top: 0;
  }

  .demo {
    font-size: 11px;
  }

  .store-badges {
    justify-content: center;
  }

  .hero {
    padding-bottom: 0;
  }

  .hero h1 {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-steps {
    margin: 0;
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Phones: heading and points first, then the card. */
  .feature .feature-media,
  .feature.reverse .feature-media {
    order: 2;
  }

  .feature + .feature {
    margin-top: 80px;
  }


  .cta-card {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 72px 0;
  }

  .challenge-grid {
    gap: 10px;
  }

  .challenge-grid li {
    padding: 16px 8px;
  }

  .challenge-grid h3 {
    font-size: 0.9rem;
  }

  .hero .container {
    column-gap: 16px;
    row-gap: 24px;
    padding-top: 28px;
  }

  .eyebrow {
    margin-bottom: 12px;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .demo {
    font-size: 8.5px;
  }

  .hero-steps {
    gap: 14px;
    font-size: 1.02rem;
  }

  .hero-steps li {
    align-items: flex-start;
    gap: 10px;
  }

  .hero-steps li::before {
    width: 28px;
    height: 28px;
    margin-top: -2px;
  }

  .demo-toggle {
    right: -10px;
    bottom: 12px;
  }

  .store-badges {
    gap: 10px;
  }

  .store-badge {
    min-width: 0;
    height: 52px;
    padding: 0 14px 0 12px;
  }

  .store-badge svg {
    width: 22px;
    height: 22px;
  }

  .store-badge span {
    font-size: 1.05rem;
  }

  .ui {
    padding: 16px;
    border-radius: 22px;
  }

  .ui-card {
    font-size: 14px;
  }

  .faq summary {
    padding: 18px 48px 18px 18px;
  }

  .faq .answer {
    padding: 0 18px 20px;
  }
}

/* 404 */

.not-found {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 48px 0;
  text-align: center;
}

.not-found .container {
  display: grid;
  justify-items: center;
  gap: 20px;
  max-width: 36rem;
}

.not-found img {
  width: 72px;
  height: 72px;
}

.not-found h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
}

.not-found p {
  color: var(--muted);
}

/* Privacy Policy and Terms of Service */

.legal {
  padding: 56px 0 96px;
}

.legal article {
  max-width: 44rem;
  margin: 0 auto;
}

.legal h1 {
  font-size: clamp(2.1rem, 5vw, 2.9rem);
  font-weight: 800;
}

.legal-date {
  margin-top: 12px;
  color: var(--muted);
}

.legal h2 {
  margin-top: 44px;
  font-size: 1.35rem;
  font-weight: 700;
}

.legal h3 {
  margin-top: 24px;
  font-size: 1.05rem;
}

.legal p,
.legal ul {
  margin-top: 12px;
}

.legal ul {
  padding-left: 1.3em;
}

.legal li + li {
  margin-top: 8px;
}

.legal a {
  overflow-wrap: anywhere;
}
