@font-face { font-family: 'Caveat'; font-weight: 500; font-display: swap; src: url('fonts/caveat-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Caveat'; font-weight: 700; font-display: swap; src: url('fonts/caveat-latin-700-normal.woff2') format('woff2'); }
/* Fenn site: white and teal like the app, gold only for "flagged" moments, fox orange as a rare accent.
   Layout idea: a calm editorial column with one live "transcript tape" in the hero that gets flagged. */
:root {
  --bg: #ffffff;
  --paper: #f3f8f7;
  --ink: #0b1f1d;
  --ink-soft: #4b5f5c;
  --teal: #0e6b63;
  --teal-deep: #0a4f49;
  --teal-soft: #e7f1f0;
  --line: #d7e6e3;
  --gold: #d99a1e;
  --gold-soft: #fbf1dc;
  --fox: #e0823f;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Figtree", "Helvetica Neue", system-ui, sans-serif;
  --radius: 22px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--ink); text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--ink-soft); text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 640px) { .nav-links a:not(.btn) { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: 999px;
}
.btn:hover { background: var(--teal-deep); }
.btn.big { font-size: 17px; padding: 16px 26px; }
.btn svg { width: 18px; height: 18px; }
.soon { font-size: 13px; color: var(--ink-soft); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 40px 0 72px; }
.tagline { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--teal); margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 5.2vw, 64px); font-weight: 800; }
.hero h1 .flagged { background: linear-gradient(transparent 58%, var(--gold-soft) 58%); padding: 0 4px; }
.hero .lede { font-size: 20px; color: var(--ink-soft); max-width: 34ch; margin: 22px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 16px; gap: 36px; } }

/* The tape: a live transcript card where one line gets flagged */
.stage { position: relative; padding-top: 146px; }
.stage .fox { position: absolute; right: 34px; top: 0; width: 150px; z-index: 2; filter: drop-shadow(0 10px 12px rgba(11,31,29,.10)); }
.tape { position: relative; z-index: 1; }
/* Fenn rig: same layers and moves as in the app. Ears twitch, sparkles twinkle. He never floats. */
.rig { aspect-ratio: 1; }
.rig img { position: absolute; inset: 0; width: 100%; height: 100%; }
.rig .ear.l { transform-origin: 33.6% 41.6%; animation: earL 5s ease-in-out infinite; }
.rig .ear.r { transform-origin: 61.3% 40.8%; animation: earR 5s ease-in-out 2.5s infinite; }
.rig .s0 { transform-origin: 85.8% 20.2%; animation: twinkle 1.5s ease-in-out infinite alternate; }
.rig .s1 { transform-origin: 82.4% 32.6%; animation: pop 1.5s ease-out .25s infinite; }
.rig .s2 { transform-origin: 83.9% 37.8%; animation: pop 1.5s ease-out .5s infinite; }
@keyframes earL { 0%, 84%, 100% { transform: rotate(0); } 88% { transform: rotate(-5deg); } 93% { transform: rotate(0); } }
@keyframes earR { 0%, 84%, 100% { transform: rotate(0); } 88% { transform: rotate(5deg); } 93% { transform: rotate(0); } }
@keyframes twinkle { from { transform: scale(.86) rotate(-10deg); opacity: .75; } to { transform: scale(1.16) rotate(10deg); opacity: 1; } }
@keyframes pop { 0% { transform: scale(.8); opacity: .55; } 17% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(.8); opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .rig img { animation: none !important; } }
.tape {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 18px; box-shadow: 0 30px 60px -30px rgba(14,107,99,.35);
}
.tape-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.rec { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.rec i { width: 9px; height: 9px; border-radius: 50%; background: #d64545; animation: pulse 1.6s ease-in-out infinite; }
.line { display: grid; grid-template-columns: 46px 1fr; gap: 10px; padding: 9px 10px; border-radius: 12px; font-size: 15.5px; }
.line time { font-family: var(--display); font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; padding-top: 2px; }
.line.flag { background: var(--gold-soft); box-shadow: inset 3px 0 0 var(--gold); animation: flagin .5s ease-out 1.2s both; }
.line.flag time { color: #9a6a0c; font-weight: 700; }
.note {
  margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 15px;
}
.note img { width: 26px; }
.note b { font-family: var(--display); display: block; font-size: 16px; }
.note span { color: var(--ink-soft); }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes flagin { from { background: transparent; box-shadow: inset 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .rec i, .line.flag { animation: none; } }
@media (max-width: 520px) { .stage { padding-top: 118px; } .stage .fox { width: 122px; right: 20px; } }

/* Sections */
section { padding: 84px 0; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.sec-title { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; max-width: 18ch; }
.sec-lede { color: var(--ink-soft); font-size: 19px; max-width: 52ch; margin-top: 16px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; counter-reset: step; }
.step { border-top: 2px solid var(--ink); padding-top: 18px; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--display); font-weight: 800; color: var(--teal); font-size: 15px; }
.step h3 { font-size: 26px; margin: 10px 0 8px; }
.step p { color: var(--ink-soft); }
.step.gold { border-color: var(--gold); }
.step.gold::before { color: #9a6a0c; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Feature band */
.band { background: var(--paper); border-block: 1px solid var(--line); }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 44px; }
.feat { background: #fff; padding: 26px 24px 28px; }
.feat h3 { font-size: 21px; margin-bottom: 8px; }
.feat p { color: var(--ink-soft); font-size: 16px; }
.feat .tag { display: inline-block; vertical-align: 1px; font-size: 12px; font-weight: 700; color: #6d28d9; background: #f0e9fd; border-radius: 999px; padding: 1px 9px; margin-left: 4px; white-space: nowrap; }
@media (max-width: 860px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } }

/* Use cases */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.use { border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; justify-content: flex-start; gap: 16px; }
.use h3 { font-size: 30px; }
.use p { font-size: 16px; }
.use ul { margin: 0; padding-left: 18px; font-size: 16px; display: grid; gap: 6px; }
.use.lec { background: #e8edfd; color: #1e2f75; }
.use.meet { background: var(--teal-soft); color: var(--teal-deep); }
.use.int { background: #fdeee4; color: #7a2e0b; }
@media (max-width: 860px) { .uses { grid-template-columns: 1fr; } }

/* Pricing */
.price-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; }
.plan.best { border: 2px solid var(--teal); position: relative; }
.plan.best .badge { position: absolute; top: -13px; left: 22px; background: var(--teal); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 20px; }
.plan .amt { font-family: var(--display); font-size: 44px; font-weight: 800; margin: 10px 0 2px; font-variant-numeric: tabular-nums; }
.plan .amt small { font-size: 16px; font-weight: 600; color: var(--ink-soft); }
.plan p { color: var(--ink-soft); font-size: 15px; }
.fine { font-size: 14px; color: var(--ink-soft); margin-top: 16px; }
@media (max-width: 860px) { .price-wrap { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 36px; border-top: 1px solid var(--line); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-soft); margin-top: 10px; max-width: 62ch; }

/* Closing */
.closing { text-align: center; }
.closing-fox { position: relative; width: 170px; margin: 0 auto 18px; }
.rig .blink { opacity: 0; animation: blink 4.5s linear 1s infinite; }
@keyframes blink { 0%, 90%, 100% { opacity: 0; } 91%, 93% { opacity: 1; } 94%, 95% { opacity: 0; } 96%, 98% { opacity: 1; } }
.closing h2 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; }
.closing p { color: var(--ink-soft); margin: 14px auto 26px; max-width: 40ch; font-size: 19px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 14px; color: var(--ink-soft); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* Legal pages */
.legal { padding: 24px 0 80px; }
.legal article { max-width: 720px; }
.legal h1 { font-size: clamp(38px, 5vw, 56px); font-weight: 800; margin-bottom: 8px; }
.legal .meta { color: var(--ink-soft); margin-bottom: 36px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal p, .legal li { color: #24403c; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 10px 0; }
.legal li { margin: 6px 0; }
.legal .tablewrap { overflow-x: auto; margin: 14px 0; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 560px; }
.legal th, .legal td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; }
.legal th { font-family: var(--display); }
.legal .short { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }

/* ---------- Motion (calm, no bounce). Everything is visible without it. ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mark { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes bar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

/* Hero load sequence */
.hero .tagline { animation: rise .6s ease-out both; }
.hero h1 { animation: rise .7s ease-out .08s both; }
.hero h1 .flagged { background: linear-gradient(var(--gold-soft), var(--gold-soft)) no-repeat 0 62% / 100% 38%; animation: markline .9s ease-out .7s both; }
@keyframes markline { from { background-size: 0% 38%; } to { background-size: 100% 38%; } }
.hero .lede { animation: rise .7s ease-out .18s both; }
.hero-cta { animation: rise .7s ease-out .28s both; }
.stage { animation: fade .8s ease-out .2s both; }

/* Live captions: script adds .play, then reveals each line word by word in time order.
   Without script (or with reduced motion) everything is simply visible. */
.tape.play .line { opacity: 0; }
.tape.play .line.on { opacity: 1; animation: fade .2s ease-out; }
.tape.play .w { opacity: 0; }
.tape.play .w.on { opacity: 1; animation: fade .18s ease-out; }
.tape.play .line.flag.flagged { animation: flagin .5s ease-out; }
.tape.play .line.flag:not(.flagged) { background-color: transparent; box-shadow: inset 0 0 0 transparent; }
.tape.play .line.flag:not(.flagged) time { color: var(--ink-soft); font-weight: 400; }
.tape.play .note { opacity: 0; }
.tape.play .note.on { opacity: 1; animation: rise .5s ease-out; }
.line.flag { animation: none; }
.wave { display: inline-flex; gap: 2px; align-items: center; height: 12px; margin-left: 8px; vertical-align: -1px; }
.wave b { width: 3px; height: 12px; border-radius: 2px; background: var(--teal); transform-origin: center; animation: bar 1s ease-in-out infinite; }
.wave b:nth-child(2) { animation-delay: .15s; } .wave b:nth-child(3) { animation-delay: .3s; } .wave b:nth-child(4) { animation-delay: .45s; } .wave b:nth-child(5) { animation-delay: .6s; }

/* Hover: a small lift, no spring */
.feat, .use, .plan { transition: transform .25s ease-out, box-shadow .25s ease-out; }
.feat:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -16px rgba(11,31,29,.35); position: relative; z-index: 1; }
.use:hover, .plan:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -20px rgba(11,31,29,.4); }
.btn { transition: background .2s ease-out, transform .2s ease-out; }
.btn:hover { transform: translateY(-1px); }

/* Scroll reveals, only where the browser supports scroll-driven animation */
@supports (animation-timeline: view()) {
  .sec-title, .sec-lede, .step, .feat, .use, .plan, .faq details, .closing h2, .closing p, .closing .btn {
    animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%;
  }
  .step { animation-range: entry 5% entry 55%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero h1 .flagged { background-size: 100% 38%; }
}

/* ================= v2: student story ================= */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 50; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--teal); transform: scaleX(0); transform-origin: 0 50%; }

/* Hero headline: words rise one by one */
.hero h1.go { animation: none; }
.hw-w { display: inline-block; animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 .flagged { animation-delay: 1s; }

/* Story layout */
.story-sec { padding-bottom: 40px; }
.story { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: start; margin-top: 12px; }
.chapter { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; max-width: 30rem; opacity: .28; transform: translateY(10px); transition: opacity .6s ease-out, transform .6s ease-out; }
.chapter.on { opacity: 1; transform: none; }
.chapter .when { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--teal); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.chapter h3 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; margin-bottom: 16px; }
.chapter p:not(.when) { font-size: 19px; color: var(--ink-soft); }
.chapter:first-child { min-height: 60vh; }
.chapter:last-child { min-height: 80vh; }

.phone-col { position: sticky; top: calc(50vh - 350px); height: 700px; display: flex; flex-direction: column; align-items: center; }
.phone {
  position: relative; width: 320px; height: 660px; border-radius: 50px; background: #fff;
  border: 10px solid var(--ink); overflow: hidden;
  box-shadow: 0 50px 80px -40px rgba(14,107,99,.45), 0 0 0 1px rgba(11,31,29,.06);
}
.island { position: absolute; top: 10px; left: 50%; width: 96px; height: 28px; margin-left: -48px; background: var(--ink); border-radius: 20px; z-index: 5; }
.dots { display: flex; gap: 8px; margin-top: 18px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .4s, width .4s; }
.dots i.on { background: var(--teal); width: 22px; border-radius: 4px; }

.screen { position: absolute; inset: 0; padding: 58px 18px 20px; font-size: 13.5px; opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .55s ease-out, transform .55s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.screen.active { opacity: 1; transform: none; }
.muted { color: var(--ink-soft); }
.chip { display: inline-block; font-size: 11px; font-weight: 700; color: var(--teal); background: var(--teal-soft); border-radius: 999px; padding: 1px 8px; margin-left: 4px; font-variant-numeric: tabular-nums; }

/* Staggered entrances inside a screen (only while .play) */
@keyframes inUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.screen.play .st { animation: inUp .5s cubic-bezier(.2,.7,.2,1) both; }

/* 0: messy notes */
.s-mess { background: repeating-linear-gradient(#fff 0 31px, #dbe7f6 31px 32px); background-position: 0 92px; }
.s-mess::before { content: ""; position: absolute; top: 0; bottom: 0; left: 40px; width: 1px; background: #f3c3c3; }
.paper-title { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 0 0 6px 32px; }
.hw { font-style: italic; font-weight: 500; font-size: 15.5px; line-height: 32px; margin-left: 32px; color: #2a3b6e; }
.hw.faint { color: #8a96b8; }
.hw.scrawl { color: #c0392b; transform: rotate(-3deg); transform-origin: left; margin-top: 8px; }
.s-mess.play .hw { animation: inUp .45s ease-out both; }
.s-mess.play .hw:nth-of-type(2) { animation-delay: .15s; } .s-mess.play .hw:nth-of-type(3) { animation-delay: .5s; }
.s-mess.play .hw:nth-of-type(4) { animation-delay: .85s; } .s-mess.play .hw:nth-of-type(5) { animation-delay: 1.2s; }
.s-mess.play .hw:nth-of-type(6) { animation-delay: 1.55s; } .s-mess.play .hw:nth-of-type(7) { animation-delay: 2.2s; }
.s-mess s { text-decoration-thickness: 2px; }

/* 1 + 2: recording */
.rec-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.rec-top .rec { font-size: 15px; }
.bigwave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 70px; margin: 18px 0 10px; }
.bigwave b { width: 5px; height: 60px; border-radius: 3px; background: var(--teal); animation: bar 1.1s ease-in-out infinite; transform: scaleY(.3); }
.bigwave b:nth-child(odd) { animation-duration: .9s; } .bigwave b:nth-child(3n) { animation-duration: 1.3s; }
.bigwave b:nth-child(2) { animation-delay: .1s; } .bigwave b:nth-child(4) { animation-delay: .3s; } .bigwave b:nth-child(5) { animation-delay: .2s; }
.bigwave b:nth-child(7) { animation-delay: .45s; } .bigwave b:nth-child(8) { animation-delay: .15s; } .bigwave b:nth-child(10) { animation-delay: .35s; }
.bigwave b:nth-child(11) { animation-delay: .5s; } .bigwave b:nth-child(13) { animation-delay: .25s; }
.tx p { display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 8px; border-radius: 10px; line-height: 1.45; }
.tx time { font-family: var(--display); font-size: 12px; color: var(--ink-soft); padding-top: 1px; font-variant-numeric: tabular-nums; }
.s-rec.play .type { opacity: 0; }
.s-rec.play .type.in { opacity: 1; }
.screen.play .w { opacity: 0; transition: opacity .2s ease-out; }
.screen.play .w.on { opacity: 1; }
.rec-btns { position: absolute; left: 18px; right: 18px; bottom: 26px; display: flex; align-items: center; gap: 12px; }
.flagbtn { flex: 1; text-align: center; font-weight: 700; font-size: 14px; color: #7a5208; background: var(--gold-soft); border: 1.5px solid var(--gold); border-radius: 999px; padding: 12px; }
.stop { width: 46px; height: 46px; border-radius: 50%; background: #fbe3e3; position: relative; }
.stop::after { content: ""; position: absolute; inset: 15px; border-radius: 4px; background: #d64545; }

.s-flag .tx { margin-top: 22px; }
.s-flag .dim { opacity: .5; }
.s-flag .hit { transition: background .4s ease-out, box-shadow .4s ease-out; }
.s-flag.active .hit { background: var(--gold-soft); box-shadow: inset 3px 0 0 var(--gold); }
.s-flag.play .hit { animation: flagin .5s ease-out .9s both; }
@keyframes press { 0%, 100% { transform: scale(1); } 40% { transform: scale(.95); background: #f6dfa8; } }
.s-flag.play .flagbtn.press { animation: press .45s ease-in-out .5s both; }
.toast { position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%); background: var(--ink); color: #fff; font-weight: 600; font-size: 12.5px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.s-flag.play .toast { animation: toast 2.6s ease-out 1s both; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 8px); } 12%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

/* 3: notes */
.n-title { font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.1; letter-spacing: -.01em; }
.n-meta { color: var(--ink-soft); font-size: 12px; margin: 6px 0 12px; }
.tabs { display: flex; gap: 4px; background: var(--paper); border-radius: 999px; padding: 3px; font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-bottom: 12px; }
.tabs span { flex: 1; text-align: center; padding: 6px 0; border-radius: 999px; }
.tabs .on { background: #fff; color: var(--teal-deep); box-shadow: 0 1px 3px rgba(11,31,29,.12); }
.tabs .on.purple { color: #6d28d9; }
.quizrow { display: flex; align-items: center; gap: 10px; border: 1px solid #e4dafb; background: #f7f3ff; color: #5b21b6; font-weight: 700; border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; }
.quizrow .qi { width: 22px; height: 22px; border-radius: 7px; background: #7c3aed; position: relative; }
.quizrow .qi::after { content: "?"; position: absolute; inset: 0; color: #fff; font-size: 13px; display: grid; place-items: center; font-family: var(--display); }
.quizrow i { margin-left: auto; font-style: normal; font-size: 18px; color: #8b5cf6; }
.n-card { border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; display: grid; gap: 2px; }
.n-card.gold { background: var(--gold-soft); box-shadow: inset 3px 0 0 var(--gold); }
.n-card b { font-size: 12px; color: #9a6a0c; }
.n-h { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--teal); margin: 6px 0 4px; }
.n-p { line-height: 1.45; }
.n-list { margin: 0; padding-left: 18px; display: grid; gap: 3px; }
.s-notes.play > * { animation: inUp .5s cubic-bezier(.2,.7,.2,1) both; }
.s-notes.play > :nth-child(2) { animation-delay: .08s; } .s-notes.play > :nth-child(3) { animation-delay: .16s; }
.s-notes.play > :nth-child(4) { animation-delay: .3s; } .s-notes.play > :nth-child(5) { animation-delay: .5s; }
.s-notes.play > :nth-child(6) { animation-delay: .7s; } .s-notes.play > :nth-child(7) { animation-delay: .8s; }
.s-notes.play > :nth-child(8) { animation-delay: 1s; } .s-notes.play > :nth-child(9) { animation-delay: 1.1s; }
.s-notes.play .n-list li { animation: inUp .45s ease-out both; }
.s-notes.play .n-list li:nth-child(1) { animation-delay: 1.25s; } .s-notes.play .n-list li:nth-child(2) { animation-delay: 1.4s; } .s-notes.play .n-list li:nth-child(3) { animation-delay: 1.55s; }

/* 4: quiz (purple: it's AI) */
.q-top { display: flex; justify-content: space-between; font-weight: 700; color: #5b21b6; }
.q-top .x { color: var(--ink-soft); font-size: 18px; line-height: 1; }
.q-bar { height: 5px; background: #ede7fb; border-radius: 3px; margin: 10px 0 22px; overflow: hidden; }
.q-bar i { display: block; height: 100%; width: 40%; background: #7c3aed; border-radius: 3px; transform-origin: left; }
.s-quiz.play .q-bar i { animation: fillbar .8s ease-out .2s both; }
@keyframes fillbar { from { transform: scaleX(.5); } to { transform: scaleX(1); } }
.q-q { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.2; margin-bottom: 16px; }
.q-opt { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 9px; font-weight: 600; transition: background .35s, border-color .35s, color .35s; }
.s-quiz.active .q-opt.right { background: #e5f4e4; border-color: #3f9b4f; color: #1d5e2a; }
.s-quiz.play .q-opt.right { animation: pick .35s ease-out 1.5s both; }
@keyframes pick { from { background: #fff; border-color: var(--line); color: var(--ink); } }
.q-exp { margin-top: 12px; background: #f7f3ff; border-radius: 14px; padding: 12px 14px; line-height: 1.45; }
.q-exp b { color: #1d5e2a; }
.s-quiz.play .q-q, .s-quiz.play .q-opt { animation: inUp .45s ease-out both; }
.s-quiz.play .q-q { animation-delay: .15s; }
.s-quiz.play .q-opt:nth-of-type(1) { animation-delay: .3s; } .s-quiz.play .q-opt:nth-of-type(2) { animation-delay: .38s; }
.s-quiz.play .q-opt:nth-of-type(3) { animation-delay: .46s; } .s-quiz.play .q-opt:nth-of-type(4) { animation-delay: .54s; }
.s-quiz.play .q-opt.right { animation: inUp .45s ease-out .38s both, pick .35s ease-out 1.5s both; }
.s-quiz.play .q-exp { animation: inUp .5s ease-out 1.9s both; }

/* 5: ask (purple) */
.bubble { max-width: 85%; padding: 10px 13px; border-radius: 18px; line-height: 1.45; margin-bottom: 10px; }
.bubble.me { margin-left: auto; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.bubble.fenn { background: #f3eefe; color: #2e1065; border-bottom-left-radius: 6px; }
.bubble.fenn .chip { color: #6d28d9; background: #fff; opacity: 1; transition: opacity .3s; }
.s-ask.play .bubble.me { animation: inUp .45s ease-out .3s both; }
.s-ask.play .bubble.fenn { animation: inUp .45s ease-out 1.2s both; }
.s-ask.play:not(.answered) .bubble.fenn .chip { opacity: 0; }
.askbar { position: absolute; left: 18px; right: 18px; bottom: 26px; border: 1.5px solid #e4dafb; border-radius: 999px; padding: 12px 16px; color: #8b7bb8; }

/* Privacy band */
.private-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.promises li { display: grid; gap: 2px; padding: 20px 22px 20px 62px; border: 1px solid var(--line); border-radius: var(--radius); position: relative; background: #fff; }
.promises li::before { content: ""; position: absolute; left: 22px; top: 22px; width: 24px; height: 24px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat; }
.promises b { font-family: var(--display); font-size: 20px; }
.promises span { color: var(--ink-soft); }
@media (max-width: 860px) { .private-wrap { grid-template-columns: 1fr; } }

@supports (animation-timeline: view()) {
  .promises li { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
}

/* Story on tablets and phones: side by side like desktop, with a smaller phone that stays put on the right */
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr 210px; gap: 24px; }
  .phone-col { top: calc(50vh - 230px); height: 460px; }
  .phone { transform: scale(.6); transform-origin: top left; margin: 0 -136px -272px 0; align-self: flex-start; }
  .dots { margin-top: 12px; align-self: center; }
  .chapter { min-height: 70vh; }
  .chapter:first-child { min-height: 55vh; }
  .chapter h3 { font-size: 30px; }
  .chapter p:not(.when) { font-size: 17px; }
}
@media (max-width: 520px) {
  .story { grid-template-columns: 1fr 140px; gap: 14px; }
  .phone-col { top: calc(50vh - 170px); height: 340px; }
  .phone { transform: scale(.41); margin: 0 -200px -401px 0; }
  .dots { margin-top: 10px; gap: 5px; }
  .dots i { width: 5px; height: 5px; }
  .dots i.on { width: 14px; }
  .chapter { min-height: 64vh; }
  .chapter .when { font-size: 13px; margin-bottom: 10px; }
  .chapter h3 { font-size: 23px; margin-bottom: 10px; }
  .chapter p:not(.when) { font-size: 15px; line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  .chapter { opacity: 1; transform: none; }
  .screen { transition: none; }
}

/* Hero example switcher: Lecture · Meeting · Interview */
.scenes { position: absolute; left: 0; top: 96px; display: inline-flex; gap: 2px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px; z-index: 3; }
.scenes button { position: relative; z-index: 1; border: 0; background: none; font: 600 14px var(--body); color: var(--ink-soft); padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: color .3s; }
.scenes button.on { color: #fff; }
.scenes .pill { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; background: var(--teal); border-radius: 999px; transition: transform .45s cubic-bezier(.2,.7,.2,1), width .45s cubic-bezier(.2,.7,.2,1); }
.tape { transition: opacity .35s ease-out, transform .35s ease-out; }
.tape.swap .line, .tape.swap .note { opacity: 0 !important; transition: opacity .3s; }
@media (max-width: 520px) { .scenes { top: 70px; } .scenes button { padding: 6px 11px; font-size: 13px; } }
/* Features: 4 across */
.feats { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } }

/* Button names in body copy */
.ui { font-weight: 700; color: var(--ink); }

/* Four use cards, four example tabs */
.uses { grid-template-columns: repeat(4, 1fr); }
.use h3 { font-size: 26px; }
.use.int { background: #fce8ef; color: #831843; }
.use.doc { background: #fdeee4; color: #7a2e0b; }
@media (max-width: 1000px) { .uses { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .uses { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .scenes button { padding: 6px 9px; font-size: 12.5px; } }
@media (max-width: 520px) {
  .stage { padding-top: 168px; }
  .stage .fox { width: 112px; right: 16px; }
  .scenes { top: 118px; }
}
@media (min-width: 521px) { .stage .fox { width: 132px; right: 4px; top: 10px; } }
/* Single-column hero (phones, small tablets): Fenn and the example tabs centered above the card */
@media (max-width: 860px) {
  .stage { padding-top: 176px; }
  .stage .fox { width: 120px; left: 0; right: 0; top: 0; margin: 0 auto; }
  .scenes { top: 122px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
}
/* Phones: Fenn centered above the example tabs, tabs centered above the card */
@media (max-width: 520px) {
  .stage { padding-top: 186px; }
  .stage .fox { width: 118px; left: 50%; right: auto; top: 0; margin-left: -59px; }
  .scenes { left: 50%; transform: translateX(-50%); top: 128px; white-space: nowrap; }
}
/* Footer on phones: centered and stacked, links first, copyright last */
@media (max-width: 640px) {
  .foot { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .foot nav { order: -1; justify-content: center; gap: 10px 22px; }
  .foot nav a[href^="mailto"] { flex-basis: 100%; }
}

/* Messy handwritten notes (story screen 0): real handwriting on ruled lines, written in line by line */
.s-mess { background: #fff; padding: 52px 0 0; }
.s-mess::before { display: none; }
.s-mess .paper {
  --row: 34px;
  position: relative; height: 100%; padding: 0 16px 0 46px;
  background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--row) - 1px), #d6e3f5 calc(var(--row) - 1px) var(--row));
}
.s-mess .paper::before { content: ""; position: absolute; top: 0; bottom: 0; left: 36px; width: 1.5px; background: #f2b8b8; }
.s-mess .hw {
  margin: 0; height: var(--row); line-height: calc(var(--row) - 4px); padding-top: 7px;
  font-family: 'Caveat', 'Bradley Hand', 'Marker Felt', cursive; font-style: normal; font-weight: 500; font-size: 22px;
  color: #22337a; white-space: nowrap; overflow: visible;
  transform-origin: left center;
}
.s-mess .hw.title { font-weight: 700; font-size: 25px; color: #1a2860; }
.s-mess .hw.title .date { font-size: 18px; font-weight: 500; color: #6b7aa8; margin-left: 10px; }
.s-mess .hw:nth-child(2) { transform: rotate(-0.6deg); }
.s-mess .hw:nth-child(3) { transform: rotate(0.5deg) translateX(2px); }
.s-mess .hw:nth-child(4) { transform: rotate(-0.4deg); }
.s-mess .hw.faint { color: #8d99c2; transform: rotate(0.7deg); }
.s-mess .hw.scrawl { color: #c0392b; font-weight: 700; font-size: 23px; transform: rotate(-3deg) translateX(10px); margin: 0; }
.s-mess s { text-decoration: none; position: relative; }
.s-mess s::after { content: ""; position: absolute; left: -2px; right: -2px; top: 52%; height: 2px; background: #22337a; transform: rotate(-4deg); border-radius: 2px; }
.s-mess .arrow { color: #c0392b; font-weight: 700; margin-left: 6px; }
/* Each line writes itself in, left to right */
@keyframes write { from { clip-path: inset(-6px 100% -6px 0); } to { clip-path: inset(-6px -12px -6px 0); } }
.s-mess.play .hw { animation: write .7s steps(18, end) both; }
.s-mess.play .hw:nth-child(1) { animation-delay: .1s; }
.s-mess.play .hw:nth-child(2) { animation-delay: .6s; }
.s-mess.play .hw:nth-child(3) { animation-delay: 1.1s; }
.s-mess.play .hw:nth-child(4) { animation-delay: 1.6s; }
.s-mess.play .hw:nth-child(5) { animation-delay: 2.15s; }
.s-mess.play .hw:nth-child(6) { animation-delay: 2.6s; }
.s-mess.play .hw:nth-child(7) { animation-delay: 3.3s; animation-duration: .9s; }
.s-mess.play .hw:nth-child(n+8) { animation: none; }

/* Hero tape: show HOW a line gets flagged (the app's gold button) and that the note comes from the flag */
.tape { padding-bottom: 78px; }
.tape-foot { position: absolute; left: 22px; right: 22px; bottom: 18px; display: flex; align-items: center; gap: 12px; }
.tflag { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: #7a5208; background: var(--gold-soft); border: 1.5px solid var(--gold); border-radius: 999px; padding: 9px 16px; transition: background .2s, transform .2s; }
.tflag svg { width: 15px; height: 15px; color: var(--gold); }
@keyframes tpress { 0%, 100% { transform: scale(1); } 40% { transform: scale(.94); background: #f6dfa8; } }
.tflag.press { animation: tpress .45s ease-in-out; }
.tflag-toast { font-size: 13px; color: var(--ink-soft); opacity: 0; transform: translateX(-6px); transition: opacity .3s ease-out, transform .3s ease-out; }
.tflag-toast b { color: #9a6a0c; font-variant-numeric: tabular-nums; }
.tflag-toast.on { opacity: 1; transform: none; }
.line.flag { position: relative; padding-right: 30px; }
.line.flag.flagged::after, .tape:not(.play) .line.flag::after { content: "★"; position: absolute; right: 11px; top: 9px; color: var(--gold); font-size: 15px; line-height: 1.4; }
.note-tag { display: block; font-style: normal; font-size: 12px; font-weight: 700; color: #9a6a0c; letter-spacing: .02em; margin-bottom: 2px; }
@media (max-width: 520px) { .tape-foot { left: 16px; right: 16px; } .tflag { font-size: 13px; padding: 8px 13px; } }
