/* Tokens mirror TempoiOS/TempoiOS/Views/Theme.swift */
:root {
  --page: #f2f2f7;
  --card: #ffffff;
  --ink: #0e0f12;
  --muted: #6b6f7b;
  --green: #16b85d;
  --practice: #087542;
  --mint: #a3f0c2;
  --navy: #1c2130;
  --orange: #ff9838;
  --red: #ff3b30;
  --serif: "Newsreader", "New York", ui-serif, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --radius: 32px;
}

* { box-sizing: border-box; }
section[id] { scroll-margin-top: 70px; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

h1, h2, h3, .app-head, .wpm, .time, .sticker b, .watch-screen b {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(48px, 7.4vw, 92px); line-height: 0.98; }
h2 { font-size: clamp(36px, 4.8vw, 60px); line-height: 1.04; }
h3 { font-size: clamp(27px, 2.6vw, 34px); line-height: 1.1; }
h3.big { font-size: clamp(32px, 3.4vw, 44px); }
h4 { font-size: 17px; font-weight: 650; }

/* Marker stroke under a word, like markerUnderline() in the app */
.mark {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M3 6C30 0 70 11 97 4' fill='none' stroke='%2316b85d' stroke-opacity='.55' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 50% 96% / 100% 0.3em;
  white-space: nowrap;
}
.mark-red { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M3 6C30 0 70 11 97 4' fill='none' stroke='%23ff3b30' stroke-opacity='.6' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.mark-mint { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M3 6C30 0 70 11 97 4' fill='none' stroke='%23a3f0c2' stroke-opacity='.75' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.mark-navy { color: var(--navy); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M3 6C30 0 70 11 97 4' fill='none' stroke='%23ffffff' stroke-opacity='.7' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(22, 184, 93, .18); }
.eyebrow.on-green { color: var(--mint); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 34em; margin-top: 22px; }
.lede.on-green { color: rgba(255, 255, 255, .82); }

/* Buttons: capsules, like PillButtonStyle */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 28px; border-radius: 999px;
  font-weight: 600; font-size: 17px; text-decoration: none;
  transition: transform .15s ease-out, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--navy); color: #fff; box-shadow: 0 10px 30px -10px rgba(28, 33, 48, .6); }
.btn-green { background: var(--green); color: #fff; }
.btn-white { background: #fff; color: var(--navy); box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .35); }
.btn-small { padding: 10px 18px; font-size: 15px; }
.btn:hover { transform: translateY(-2px); }

/* Floating nav, like the app's tab bar */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(760px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 10px 34px -14px rgba(20, 24, 40, .28), 0 0 0 1px rgba(20, 24, 40, .05);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; }
.brand img { border-radius: 9px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.nav nav { display: flex; gap: 4px; }
.nav nav a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; }
.nav nav a:hover { background: rgba(20, 24, 40, .06); color: var(--ink); }

/* Hero */
.hero { position: relative; padding: 150px 0 0; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 38%, rgba(22, 184, 93, .2), transparent 70%),
    radial-gradient(40% 40% at 10% 10%, rgba(163, 240, 194, .35), transparent 70%);
  transition: opacity .8s;
}
.hero::after { /* the pink wash the app shows on an alert */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 70% at 75% 35%, rgba(255, 99, 99, .32), transparent 72%);
  opacity: 0; transition: opacity .7s;
}
.hero.alert::after { opacity: 1; }
.hero.alert .hero-glow { opacity: 0; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 34px; }
.cta-note { font-size: 14px; color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.badges img { height: 46px; width: auto; }
.badges a { transition: transform .15s ease-out; }
.badges a:hover { transform: translateY(-2px); }

.hero-demo { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.scribble {
  position: absolute; top: -8px; left: -6px; z-index: 2;
  font: 600 30px/1 var(--hand); color: var(--green); transform: rotate(-9deg);
}

/* The phone, drawn in HTML so the gauge can move */
.phone {
  --zone: var(--green);
  width: 330px; max-width: 100%;
  padding: 9px; border-radius: 56px; background: #0b0c10;
  box-shadow: 0 40px 80px -30px rgba(20, 24, 40, .5), 0 0 0 2px #2a2d36 inset;
  transform: rotate(2.5deg);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.phone[data-zone="fast"] { --zone: var(--orange); }
.phone[data-zone="red"] { --zone: var(--red); transform: rotate(0deg) scale(1.015); }
.phone-screen {
  position: relative; overflow: hidden;
  border-radius: 47px; background: var(--page);
  padding: 58px 20px 22px;
}
.phone-screen::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #fba3a3 0%, #f9c6c8 55%, #f3e2e6 100%);
  opacity: 0; transition: opacity .6s;
}
.phone[data-zone="red"] .phone-screen::before { opacity: 1; }
.phone-screen > * { position: relative; }
.island { position: absolute !important; top: 13px; left: 50%; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #0b0c10; }
.app-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.app-head { font-size: 35px; line-height: 1.06; margin-top: 14px; }
.app-head .mark { background-image: none; position: relative; }
.app-head .mark::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 1px; height: 9px; border-radius: 9px;
  background: var(--zone); opacity: .5; transform: rotate(-1deg); z-index: -1; transition: background .4s;
}
.app-sub { font-size: 13.5px; line-height: 1.35; color: var(--muted); margin-top: 8px; min-height: 3.9em; }

.gauge { position: relative; margin: 6px -4px 0; }
.gauge svg { display: block; width: 100%; overflow: visible; }
.seg { fill: none; stroke-width: 13; opacity: .28; transition: opacity .35s; }
.seg-good { stroke: var(--green); stroke-dasharray: 121 240; }
.seg-fast { stroke: var(--orange); stroke-dasharray: 46 240; stroke-dashoffset: -125; }
.seg-red { stroke: var(--red); stroke-dasharray: 65 240; stroke-dashoffset: -175; }
.phone[data-zone="good"] .seg-good,
.phone[data-zone="fast"] .seg-fast,
.phone[data-zone="red"] .seg-red { opacity: 1; }
.disc { fill: var(--zone); opacity: .13; transition: fill .4s; }
.knob-dot { fill: var(--zone); transition: fill .3s; }
#demo-knob { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); }
.gauge-center { position: absolute; left: 0; right: 0; top: 63.5%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; }
.wpm { font-size: 62px; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.unit { font-size: 13px; color: var(--muted); margin-top: 4px; }
.zone { font-size: 14px; font-weight: 650; color: var(--zone); margin-top: 6px; transition: color .3s; }

.timer-pill, .stop-pill { background: var(--navy); color: #fff; border-radius: 999px; }
.timer-pill { display: flex; align-items: center; gap: 12px; padding: 11px 20px 11px 14px; margin-top: 14px; }
.ring-arc { stroke: var(--zone); transition: stroke .3s; }
.time { font-size: 26px; font-variant-numeric: tabular-nums lining-nums; }
.pill-right { margin-left: auto; text-align: right; line-height: 1.25; font-size: 13px; }
.pill-right b { display: block; font-weight: 650; }
.pill-right small { color: rgba(255, 255, 255, .6); font-size: 11.5px; }
.stop-pill { display: flex; justify-content: center; align-items: center; gap: 9px; padding: 14px; margin-top: 10px; font-weight: 600; font-size: 14.5px; }
.stop-pill i { width: 11px; height: 11px; border-radius: 2.5px; background: #fff; }

.rush {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none;
  padding: 11px 18px; border-radius: 999px;
  font: 600 14px var(--sans); color: var(--ink); background: #fff;
  box-shadow: 0 6px 20px -8px rgba(20, 24, 40, .3), 0 0 0 1px rgba(20, 24, 40, .06);
  transition: transform .15s, background .2s, color .2s;
}
.rush svg { color: var(--orange); }
.rush.down { transform: scale(.95); background: var(--red); color: #fff; }
.rush.down svg { color: #fff; }

/* Words flowing by, colored the way the replay colors them */
.ticker { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; margin-top: 56px; padding: 14px 0 14px 20px; background: #fff; border-block: 1px solid rgba(20, 24, 40, .06); }
.ticker-label { flex: none; font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ticker-track { flex: 1; min-width: 0; display: flex; justify-content: flex-end; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 18%); mask: linear-gradient(90deg, transparent, #000 18%); }
.ticker-words { display: flex; gap: 7px; white-space: nowrap; padding-right: 20px; min-height: 34px; font: 500 19px/1 var(--serif); }
.ticker-words span { padding: 7px 9px; border-radius: 9px; animation: pop .25s ease-out; }
.ticker-words .good { color: #0d8a45; background: rgba(22, 184, 93, .13); }
.ticker-words .fast { color: #c96a00; background: rgba(255, 152, 56, .2); }
.ticker-words .red { color: #d92a20; background: rgba(255, 59, 48, .18); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }

/* Strip */
.strip { padding: 26px 0; }
.strip-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 16px; font-size: 14px; font-weight: 550; color: var(--muted); }
.strip-row i { width: 4px; height: 4px; border-radius: 50%; background: #c4c6ce; }

/* Sections */
.section { padding: 90px 0; }
.section.tight { padding: 0 0 20px; }
.section-head { max-width: 780px; margin-bottom: 44px; }

/* Cards */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento > .card { grid-column: span 2; }
.bento > .span-2 { grid-column: span 4; }
.card {
  position: relative; overflow: hidden;
  background: var(--card); border-radius: var(--radius);
  padding: 32px 32px 0; min-height: 560px;
  display: flex; flex-direction: column;
}
.card.pad-lg { padding: 44px; min-height: 0; }
.card p { color: var(--muted); margin-top: 12px; font-size: 16px; }
.kicker { font-size: 13px !important; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--green) !important; margin: 0 0 12px !important; }
.kicker.red { color: var(--red) !important; }
.kicker.mint { color: var(--mint) !important; }
.card-navy { background: var(--navy); color: #fff; }
.card-navy p { color: rgba(255, 255, 255, .68); }
.card-mint { background: linear-gradient(180deg, #dff5e8, #c9efd9); }
.card-mint p { color: #3e5a4a; }
.card-alert { background: linear-gradient(160deg, #fdb1b0 0%, #f9cfd1 55%, #f6e4e8 100%); flex-direction: row; gap: 24px; padding-bottom: 0; }
.card-alert p { color: #6a3f43; }
.card-alert .card-copy { flex: 1; padding-bottom: 32px; align-self: center; }
.card-alert h3 { font-size: clamp(40px, 4.6vw, 60px); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 0; }
.chips li { padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: rgba(255, 255, 255, .6); color: #7a2b2b; }
.link { margin-top: 20px; font-weight: 600; color: var(--green); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Real screenshots in a drawn frame */
.device {
  flex: none; width: 250px; margin: 30px auto 0;
  padding: 7px 7px 0; border-radius: 42px 42px 0 0; background: #0b0c10;
  box-shadow: 0 30px 60px -25px rgba(20, 24, 40, .45);
}
.device img { border-radius: 35px 35px 0 0; }
.device.peek { margin-top: auto; max-height: 300px; overflow: hidden; transform: translateY(0); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.card > .card-copy { margin-bottom: 30px; }
.card > .device.peek { margin-top: auto; }
.card:hover .device.peek { transform: translateY(-10px); }
.device.tilt-r { width: 270px; align-self: flex-end; max-height: 500px; overflow: hidden; margin: 36px 16px 0 0; transform: rotate(3deg) translateY(12px); transform-origin: bottom center; }

/* Watch */
.watch { position: relative; margin: auto auto 0; padding-top: 30px; width: 170px; }
.watch-band { width: 112px; margin: 0 auto; background: #2b3144; }
.watch-band.top { height: 34px; border-radius: 16px 16px 0 0; }
.watch-band.bottom { height: 70px; }
.watch-body { position: relative; padding: 8px; border-radius: 46px; background: #05060a; box-shadow: 0 0 0 2px #3a4055 inset, 0 20px 40px -15px rgba(0, 0, 0, .6); }
.watch-screen { position: relative; border-radius: 38px; aspect-ratio: 1 / 1.18; background: radial-gradient(120% 90% at 50% 0%, #4a1614, #0c0c10 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.watch-screen small { font-size: 10.5px; color: rgba(255, 255, 255, .55); }
.watch-screen b { font-size: 58px; line-height: 1; margin-top: 6px; }
.watch-screen em { font-style: normal; font-weight: 650; font-size: 14px; color: #ff6b61; margin-top: 4px; }
.pulse { position: absolute; inset: -6px; border-radius: 52px; border: 2px solid rgba(255, 107, 97, .7); animation: pulse 2.4s ease-out infinite; }
.pulse.p2 { animation-delay: 1.2s; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.32); opacity: 0; } }

/* Practice: its own green place, like in the app */
.practice { position: relative; overflow: hidden; background: var(--practice); color: #fff; padding: 100px 0; margin: 20px 0; }
.practice-art, .final-art {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 85% 20%, rgba(163, 240, 194, .28), transparent 45%),
    repeating-radial-gradient(circle at 85% 20%, transparent 0 78px, rgba(255, 255, 255, .07) 78px 80px),
    radial-gradient(rgba(255, 255, 255, .13) 1.5px, transparent 1.6px) 0 0 / 18px 18px;
  -webkit-mask: linear-gradient(200deg, #000 20%, transparent 85%); mask: linear-gradient(200deg, #000 20%, transparent 85%);
}
.practice-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.stickers { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.sticker { background: #fff; color: var(--ink); border-radius: 20px; padding: 12px 18px; box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .5); }
.sticker:nth-child(1) { transform: rotate(-3deg); }
.sticker:nth-child(2) { transform: rotate(2deg); }
.sticker:nth-child(3) { transform: rotate(-1.5deg); }
.sticker b { display: block; font-size: 26px; line-height: 1.1; }
.sticker span { font-size: 12.5px; color: var(--muted); }
.warmup { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); padding: 28px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.warmup-tag { font-size: 12.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); }
.warmup ol { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 14px; }
.warmup li { display: flex; gap: 14px; align-items: center; }
.warmup li > span { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 600 18px var(--serif); background: var(--mint); color: var(--practice); }
.warmup li b { display: block; font-weight: 650; }
.warmup li small { display: block; font-size: 13.5px; line-height: 1.35; color: rgba(255, 255, 255, .7); }
.warmup-cta { text-align: center; padding: 16px; border-radius: 999px; background: #fff; color: var(--practice); font-weight: 650; }
.drills { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 56px; }
.drill { border-radius: 22px; padding: 18px; background: rgba(0, 0, 0, .16); }
.drill b { display: block; font: 600 20px/1.15 var(--serif); }
.drill span { display: block; margin-top: 6px; font-size: 13.5px; color: rgba(255, 255, 255, .72); }

/* Details grid */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mini { background: var(--card); border-radius: 26px; padding: 22px; }
.mini p { font-size: 14.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; font: 600 17px var(--serif); color: #0d8a45; background: rgba(22, 184, 93, .13); }
.ico-blue { color: #1a6fd6; background: rgba(40, 130, 255, .12); }
.ico-purple { color: #b12ad6; background: rgba(190, 60, 230, .12); }
.ico-navy { color: #fff; background: var(--navy); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.duo > .card { height: 100%; }

/* Why + FAQ */
.why p:not(.eyebrow) { color: var(--muted); margin-top: 18px; max-width: 30em; }
.why .sign { font: 600 34px/1 var(--hand); color: var(--ink) !important; margin-top: 22px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: 22px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--green); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin-top: -4px; }

/* Final CTA */
.final { position: relative; overflow: hidden; margin: 0 20px; border-radius: 44px; background: linear-gradient(160deg, #21c56a, #0f9c4c); color: #fff; padding: 110px 0; text-align: center; }
.final-art { -webkit-mask: none; mask: none; background:
    repeating-radial-gradient(circle at 50% 120%, transparent 0 88px, rgba(255, 255, 255, .09) 88px 90px),
    radial-gradient(rgba(255, 255, 255, .16) 1.5px, transparent 1.6px) 0 0 / 18px 18px; }
.final-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.final-inner img { border-radius: 20px; box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .4); }
.final h2 { font-size: clamp(42px, 6.4vw, 84px); font-family: var(--sans); font-weight: 750; letter-spacing: -0.035em; }

.footer { padding: 34px 0 44px; font-size: 14px; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

@media (max-width: 980px) {
  .bento > .card { grid-column: span 3; }
  .bento > .span-2 { grid-column: span 6; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .drills { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .nav nav { display: none; }
  .hero { padding-top: 110px; }
  .hero-grid, .practice-grid, .duo { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .lede { margin-inline: auto; }
  .cta-row, .badges { justify-content: center; }
  .hero-demo { margin-top: 24px; }
  .scribble { left: calc(50% - 190px); }
  .section { padding: 64px 0; }
  .practice { padding: 72px 0; }
  .card.pad-lg { padding: 30px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bento > .card, .bento > .span-2 { grid-column: span 6; }
  .card { min-height: 0; padding: 26px 24px 0; }
  .card-alert { flex-direction: column; }
  .card-alert .card-copy { padding-bottom: 0; }
  .device.tilt-r { align-self: center; margin-right: 0; max-height: 380px; }
  .watch { margin-top: 10px; }
  .drills { grid-template-columns: 1fr 1fr; }
  .grid-4 { gap: 12px; }
  .mini { padding: 18px; }
  .ticker-label { display: none; }
  .scribble { left: 4px; font-size: 26px; }
  .final { margin: 0 10px; border-radius: 34px; padding: 80px 0; }
  .footer-row { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pulse, .ticker-words span { animation: none; }
  .pulse { opacity: .5; }
}
