/* ============================================================
   Time To Practice — landing page
   Palette is taken from the app's own ColorScheme (lib/shared/theme.dart)
   and the phase colors used on the running-timer screens.
   ============================================================ */

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

/* ── Tokens ─────────────────────────────────────────────── */

:root {
  /* Brand — straight from the app */
  --green: #006c49; /* primary, light theme */
  --green-deep: #00452e;
  --green-bright: #0e8f63;
  --mint: #54dba0; /* primary, dark theme */
  --mint-soft: #bfdad1; /* primaryContainer */

  /* Phase colors, as they appear in the app */
  --warm: #f4511e;
  --grass: #43a047;
  --sky: #1e88e5;
  --cyan: #00acc1;

  /* Light surfaces */
  --bg: #ffffff;
  --bg-alt: #f2f6f4;
  --surface: #ffffff;
  --surface-2: #f7faf8;
  --ink: #08140f;
  --ink-soft: #263d34;
  --muted: #5d7169;
  --line: rgb(8 20 15 / 10%);
  --line-strong: rgb(8 20 15 / 18%);

  --accent: var(--green);
  --accent-ink: #ffffff;
  --accent-soft: rgb(0 108 73 / 8%);

  /* The hero and closing CTA sit on a dark slab, against the light page */
  --hero-bg: #04120c;
  --hero-ink: #f0f7f3;
  --hero-muted: #9dbcae;
  --hero-line: rgb(240 247 243 / 12%);

  --shadow-sm: 0 1px 2px rgb(8 20 15 / 6%), 0 4px 12px rgb(8 20 15 / 5%);
  --shadow-md: 0 2px 6px rgb(8 20 15 / 6%), 0 18px 40px rgb(8 20 15 / 9%);
  --shadow-lg: 0 30px 70px rgb(4 18 12 / 24%);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;

  --shell: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 10vw, 132px);

  --sans: "Manrope", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 0.68, 0.3, 1);
}

/* ── Base ───────────────────────────────────────────────── */

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

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

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

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.028em;
  font-weight: 800;
  text-wrap: balance;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ── Shared bits ────────────────────────────────────────── */

.kicker {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section {
  padding-block: var(--section-y);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 68px);
}

.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}

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

.section-lede {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.06rem;
}

.swatch {
  width: 4px;
  height: 1.15em;
  border-radius: 999px;
  background: var(--c);
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition:
    transform 0.18s var(--ease),
    background 0.18s var(--ease),
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

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

.btn:active {
  transform: translateY(0);
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 18px rgb(0 108 73 / 22%);
}

.btn-accent:hover {
  box-shadow: 0 10px 26px rgb(0 108 73 / 30%);
}

.btn-quiet {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.btn-quiet:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.text-link {
  color: var(--accent);
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s var(--ease);
}

.text-link:hover {
  border-bottom-color: currentColor;
}

.play-badge {
  display: inline-block;
  transition: transform 0.18s var(--ease);
}

.play-badge img {
  width: 178px;
  height: auto;
}

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

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-open {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hero-ink);
  transition: color 0.25s var(--ease);
}

/* The app mark is a green glyph on transparency, so it needs a light tile
   to stay legible on the dark hero header. */
.brand img {
  width: 38px;
  height: 38px;
  padding: 3px;
  border-radius: 11px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgb(8 20 15 / 8%);
}

.site-header.is-scrolled .brand,
.site-header.is-open .brand {
  color: var(--ink);
}

.desktop-nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-size: 0.93rem;
  font-weight: 600;
}

.desktop-nav a {
  color: var(--hero-muted);
  transition: color 0.2s var(--ease);
}

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

.site-header.is-scrolled .desktop-nav a {
  color: var(--muted);
}

.site-header.is-scrolled .desktop-nav a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta {
  padding: 11px 20px;
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 11px 9px;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span[aria-hidden] {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--hero-ink);
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease);
}

.site-header.is-scrolled .menu-toggle span[aria-hidden],
.site-header.is-open .menu-toggle span[aria-hidden] {
  background: var(--ink);
}

.site-header.is-open .menu-toggle span[aria-hidden]:first-child {
  transform: translateY(8px) rotate(45deg);
}

.site-header.is-open .menu-toggle span[aria-hidden]:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px var(--gutter) 28px;
}

.mobile-nav a {
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.mobile-nav-cta {
  margin-top: 16px;
  border: 0 !important;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink) !important;
  text-align: center;
}

.site-header.is-open .mobile-nav {
  display: flex;
}

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  margin-top: -74px;
  padding-top: calc(74px + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(72px, 10vw, 128px);
  background: var(--hero-bg);
  color: var(--hero-ink);
  overflow: hidden;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 120%;
  z-index: -1;
  background:
    radial-gradient(46% 40% at 78% 26%, rgb(84 219 160 / 22%) 0%, transparent 68%),
    radial-gradient(40% 46% at 12% 8%, rgb(0 172 193 / 16%) 0%, transparent 66%),
    radial-gradient(56% 44% at 50% 100%, rgb(0 108 73 / 34%) 0%, transparent 70%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--hero-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-line) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(72% 62% at 50% 34%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(72% 62% at 50% 34%, #000 0%, transparent 100%);
  opacity: 0.55;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--hero-line);
  border-radius: 999px;
  background: rgb(255 255 255 / 4%);
  color: var(--hero-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pulse-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--mint);
  opacity: 0;
  animation: pulse 2.6s var(--ease) infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  70%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.3rem);
  letter-spacing: -0.038em;
}

.grad {
  background: linear-gradient(96deg, var(--mint) 8%, var(--cyan) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  max-width: 46ch;
  margin-top: 24px;
  color: var(--hero-muted);
  font-size: clamp(1.02rem, 1.4vw, 1.14rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  color: var(--hero-muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-meta li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

/* Hero stage — device mockups */

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 540px;
}

.stage-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--hero-line);
}

.stage-ring-one {
  width: 420px;
  height: 420px;
  border-top-color: var(--mint);
  animation: spin 26s linear infinite;
}

.stage-ring-two {
  width: 540px;
  height: 540px;
  border-left-color: rgb(0 172 193 / 55%);
  animation: spin 40s linear infinite reverse;
}

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

.device {
  position: relative;
  padding: 9px;
  border-radius: 34px;
  border: 1px solid rgb(255 255 255 / 14%);
  background: linear-gradient(160deg, #29352f, #0d1512);
  box-shadow: var(--shadow-lg);
}

.device::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: rgb(255 255 255 / 16%);
  transform: translateX(-50%);
  z-index: 2;
}

.device-screen {
  overflow: hidden;
  border-radius: 26px;
  background: #f8f9fa;
}

.device-screen img {
  width: 100%;
  height: auto;
}

.device-front {
  width: min(258px, 60vw);
  z-index: 2;
  transform: translateX(-9%) rotate(-2deg);
}

.device-back {
  position: absolute;
  width: min(212px, 50vw);
  z-index: 1;
  opacity: 0.9;
  transform: translate(46%, -9%) rotate(6deg);
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 15px;
  border: 1px solid rgb(255 255 255 / 12%);
  background: rgb(11 24 18 / 78%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgb(0 0 0 / 40%);
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--hero-ink);
  white-space: nowrap;
}

.float-label {
  color: var(--hero-muted);
  font-weight: 600;
}

.float-card strong {
  font-variant-numeric: tabular-nums;
}

.float-phase {
  top: 12%;
  left: -2%;
  animation: bob 7s ease-in-out infinite;
}

.float-cue {
  right: -1%;
  bottom: 13%;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  animation: bob 7s ease-in-out 1.4s infinite reverse;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

.wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
  margin-top: 5px;
}

.wave i {
  width: 3px;
  border-radius: 2px;
  background: var(--mint);
  animation: wave 1.15s ease-in-out infinite;
}

.wave i:nth-child(1) {
  height: 40%;
  animation-delay: 0s;
}
.wave i:nth-child(2) {
  height: 75%;
  animation-delay: 0.12s;
}
.wave i:nth-child(3) {
  height: 100%;
  animation-delay: 0.24s;
}
.wave i:nth-child(4) {
  height: 65%;
  animation-delay: 0.36s;
}
.wave i:nth-child(5) {
  height: 35%;
  animation-delay: 0.48s;
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(1);
  }
}

/* ── Stats ──────────────────────────────────────────────── */

.stats {
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  position: relative;
  padding: clamp(28px, 4vw, 44px) clamp(14px, 2vw, 28px);
  text-align: center;
}

.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  height: 56%;
  border-left: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
}

.stat strong i {
  margin-left: 4px;
  font-size: 0.42em;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: 0.55em;
  color: var(--muted);
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 600;
}

/* ── Feature bento ──────────────────────────────────────── */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-column: span 2;
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.card h3 {
  font-size: 1.24rem;
  letter-spacing: -0.022em;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-index {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-hero {
  grid-column: span 4;
  flex-direction: row;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
}

.card-hero .card-body {
  flex: 1 1 46%;
}

.card-hero h3 {
  font-size: clamp(1.4rem, 2.1vw, 1.75rem);
}

.card-dark {
  position: relative;
  grid-column: span 2;
  border-color: transparent;
  background: linear-gradient(158deg, #0c1f17, #05120d);
  color: #eef6f2;
  overflow: hidden;
}

.card-dark h3 {
  color: #fff;
}

.card-dark p {
  color: #a4c2b4;
}

.card-dark .card-index {
  color: var(--mint);
}

.card-accent {
  border-color: transparent;
  background: linear-gradient(158deg, var(--mint-soft), color-mix(in srgb, var(--mint-soft) 55%, #fff));
  color: #06231a;
}

.card-accent h3 {
  color: #052018;
}

.card-accent p {
  color: #2c4b40;
}

.card-accent .card-index {
  color: var(--green);
}

.card-wide {
  grid-column: span 4;
  flex-direction: row;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
}

.card-wide .card-body {
  flex: 1 1 50%;
}

/* Phase list inside the big card */

.phase-list {
  flex: 1 1 46%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.phase-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
}

.phase-name {
  font-weight: 700;
}

.phase-time {
  margin-left: auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.phase-total {
  display: flex;
  justify-content: space-between;
  padding: 8px 13px 2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.phase-total strong {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Sound rings */

.rings {
  position: relative;
  display: grid;
  place-items: center;
  height: 116px;
  margin-top: auto;
}

.rings span {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid var(--mint);
  opacity: 0;
  animation: ripple 3.2s var(--ease) infinite;
}

.rings span:nth-child(2) {
  animation-delay: 1.05s;
}

.rings span:nth-child(3) {
  animation-delay: 2.1s;
}

@keyframes ripple {
  0% {
    transform: scale(0.6);
    opacity: 0.75;
  }
  100% {
    transform: scale(2.3);
    opacity: 0;
  }
}

.rings-icon {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--mint);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Quick chips */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.chips span {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 58%);
  font-size: 0.83rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0b3628;
}

/* Laps */

.laps {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.lap {
  display: grid;
  grid-template-columns: 3.4rem 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 10px 4px;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

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

.lap span {
  color: var(--muted);
  font-weight: 700;
}

.lap b {
  font-weight: 700;
}

.lap em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.86em;
}

.lap-best span,
.lap-best b {
  color: var(--green-bright);
}

.lap-worst span,
.lap-worst b {
  color: #d3382b;
}

/* ── How a routine works ────────────────────────────────── */

.routine {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.routine-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.routine-copy h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}

.routine-copy .section-lede {
  max-width: 52ch;
}

.routine-track {
  display: flex;
  gap: 3px;
  height: 10px;
  margin-top: 36px;
}

.routine-track span {
  width: var(--w);
  border-radius: 999px;
  background: var(--c);
}

.routine-legend {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
}

.routine-legend li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 2px;
  font-size: 0.94rem;
}

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

.step-name {
  font-weight: 700;
}

.step-meta {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.85rem;
}

.routine-shot {
  margin: 0;
}

.routine-shot .device {
  width: min(272px, 100%);
  margin-inline: auto;
}

/* Device frame for screenshots shown inside a light section */
.device-flat {
  border-color: var(--line-strong);
  background: linear-gradient(160deg, #2b3a33, #101a15);
  box-shadow: var(--shadow-md);
}

/* ── Use cases ──────────────────────────────────────────── */

.use-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}

.use {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(24px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.use:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.use h3 {
  font-size: 1.1rem;
}

.use p {
  color: var(--muted);
  font-size: 0.93rem;
}

/* ── Privacy ────────────────────────────────────────────── */

.privacy {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.privacy-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.privacy-copy h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
}

.privacy-copy p {
  max-width: 48ch;
  margin-top: 18px;
  color: var(--muted);
}

.privacy-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}

.privacy-facts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.privacy-facts li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 4px;
  font-weight: 700;
  font-size: 0.97rem;
}

.privacy-facts li + li:not(.privacy-source) {
  border-top: 1px solid var(--line);
}

.privacy-facts svg {
  width: 21px;
  height: 21px;
  flex: none;
  padding: 3px;
  border-radius: 50%;
  background: var(--accent-soft);
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.privacy-source {
  margin-top: 8px;
  padding-top: 14px !important;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem !important;
  font-weight: 600 !important;
}

/* ── Final CTA ──────────────────────────────────────────── */

.cta {
  position: relative;
  padding-block: clamp(80px, 11vw, 140px);
  background: var(--hero-bg);
  color: var(--hero-ink);
  overflow: hidden;
  isolation: isolate;
}

.cta-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(48% 60% at 50% 108%, rgb(84 219 160 / 26%) 0%, transparent 68%),
    radial-gradient(38% 46% at 84% 0%, rgb(0 172 193 / 14%) 0%, transparent 70%);
}

.cta-inner {
  display: grid;
  justify-items: center;
  gap: 20px;
  text-align: center;
}

.cta-icon {
  width: 78px;
  height: 78px;
  padding: 9px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 44px rgb(0 0 0 / 45%);
}

.cta h2 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.035em;
}

.cta p {
  max-width: 44ch;
  color: var(--hero-muted);
}

.cta .play-badge {
  margin-top: 12px;
}

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

.site-footer {
  padding-block: clamp(48px, 6vw, 72px) 32px;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.footer-brand .brand {
  color: var(--ink);
}

.footer-brand p {
  max-width: 34ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-content: flex-start;
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 26px;
  color: var(--muted);
  font-size: 0.79rem;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hero-lede {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-meta {
    justify-content: center;
  }

  .hero-stage {
    order: -1;
    min-height: 440px;
    margin-bottom: 12px;
  }

  .stage-ring-one {
    width: 340px;
    height: 340px;
  }

  .stage-ring-two {
    width: 440px;
    height: 440px;
  }

  .privacy-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-toggle {
    display: flex;
  }

  /* Lead with the headline on phones — the device follows the pitch. */
  .hero-stage {
    order: 0;
    margin: 28px 0 0;
    min-height: 0;
  }

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

  .card {
    grid-column: span 1;
  }

  .card-hero,
  .card-wide {
    grid-column: span 2;
  }

  .routine-inner {
    grid-template-columns: 1fr;
  }

  .routine-copy {
    max-width: 640px;
  }

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

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

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

  .stat:nth-child(odd)::before {
    display: none;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .card-hero,
  .card-wide {
    flex-direction: column;
    align-items: stretch;
  }

  /* One device reads far better than a stack at this width. */
  .hero-stage {
    min-height: 0;
  }

  .device-back,
  .stage-ring-two {
    display: none;
  }

  .device-front {
    width: min(228px, 58vw);
    transform: none;
  }

  .stage-ring-one {
    width: 300px;
    height: 300px;
  }

  .float-phase {
    top: 4%;
    left: 0;
  }

  .float-cue {
    right: 0;
    bottom: -4%;
  }
}

@media (max-width: 560px) {
  .bento,
  .use-grid {
    grid-template-columns: 1fr;
  }

  .card-hero,
  .card-wide {
    grid-column: span 1;
  }

  .device-front {
    width: min(206px, 56vw);
  }

  .stage-ring-one {
    width: 264px;
    height: 264px;
  }

  .float-card {
    padding: 10px 13px;
    font-size: 0.76rem;
  }

  .routine-legend li {
    flex-wrap: wrap;
  }

  .step-meta {
    width: 100%;
    margin-left: 16px;
  }
}

/* ── Motion preferences ─────────────────────────────────── */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header {
    display: none;
  }
}
