/* Kind Regards: one stylesheet for every page. Brand tokens from docs/brand/tokens.json. Fonts are served from this
   site (no outside requests, no cookies). The site is the day look only (brief 03c); the app keeps day and night.
   Phone width first. */

@font-face { font-family: 'Instrument Sans'; src: url('/fonts/InstrumentSans_400Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/InstrumentSans_500Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/InstrumentSans_600SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/fonts/InstrumentSerif_400Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/fonts/InstrumentSerif_400Regular_Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ground: #F8F4EF;   /* chalk */
  --band: #ECE4DA;     /* stone */
  --words: #2E1520;    /* ink */
  --brand: #6B2142;    /* berry */
  --coach: #F6C29A;    /* peach */
  --heat: #C2405C;     /* raspberry */
  --soft: #74505E;     /* text muted */
  --line: #D8CBC0;
  --card: #FFFFFF;
  --serif: 'Instrument Serif', Georgia, serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--words);
  font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
}
a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
svg.defs { position: absolute; width: 0; height: 0; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: 1160px; }

header.top { padding: 20px 0; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: block; height: 36px; width: auto; }

/* ---------- Text pages (privacy, terms, support, 404): layout unchanged ---------- */
main.page { padding: 8px 0 48px; }
main.page h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 9vw, 52px); line-height: 1.05; margin: 8px 0 8px; }
main.page h2 { font-size: 19px; font-weight: 600; margin: 32px 0 6px; }
main.page p, main.page li { margin: 0 0 12px; }
main.page ul { padding-left: 22px; margin: 0 0 12px; }
.updated { color: var(--soft); font-size: 15px; margin-bottom: 24px !important; }
.box { background: var(--band); border-radius: 18px; padding: 16px 18px; margin: 20px 0; }

footer.bottom { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--soft); font-size: 15px; }
footer.bottom nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 10px; }
footer.bottom a { color: var(--soft); }
footer.bottom .line { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--words); }

/* ---------- The home page ---------- */
section[id] { scroll-margin-top: 16px; }
nav.sections { border-bottom: 1px solid var(--line); }
nav.sections .wrap { display: flex; align-items: center; gap: 6px 22px; padding-bottom: 14px; overflow-x: auto; white-space: nowrap; font-size: 15px; }
nav.sections a { color: var(--words); text-decoration: none; }
nav.sections a:hover { text-decoration: underline; }
nav.sections a.pill { margin-left: auto; background: var(--brand); color: var(--ground); border-radius: 999px; padding: 8px 16px; font-weight: 600; }
@media (max-width: 759px) { nav.sections a:not(.pill) { display: none; } nav.sections .wrap { justify-content: flex-end; } }

main section { padding: 64px 0; }
main section.band { background: var(--band); }
.kicker { text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; font-weight: 600; color: var(--soft); margin: 0 0 12px; }
main h1, main h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; }
main h2 { font-size: clamp(40px, 9vw, 72px); line-height: 1.02; margin: 0 0 32px; max-width: 16ch; }
main h3 { font-size: 20px; line-height: 1.3; margin: 16px 0 8px; }
main p { margin: 0 0 14px; }
.footnote { color: var(--soft); font-size: 15px; margin-top: 28px; max-width: 760px; }
.note { color: var(--soft); font-size: 15px; }

/* The phone frame: an ink bezel round a real screenshot (or a mock-up screen). */
.phone { position: relative; width: min(300px, 78vw); margin: 0 auto; padding: 9px; background: var(--words); border-radius: 46px; box-shadow: 0 30px 60px -20px rgba(46, 21, 32, 0.35), 0 10px 24px -12px rgba(46, 21, 32, 0.25); }
.phone > img, .phone .screen { display: block; width: 100%; height: auto; aspect-ratio: 552 / 1200; border-radius: 37px; background: var(--ground); object-fit: cover; }

/* Hero: big and centred, the product live underneath. */
.hero { text-align: center; padding: 24px 0 72px; }
.headline { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero h1 { font-size: clamp(60px, 15vw, 132px); line-height: 0.95; margin: 0 0 20px; letter-spacing: -0.02em; }
.hero h1 .word { display: inline-block; }
.hero-coach { width: 96px; height: auto; overflow: visible; }
.coach .body { transform-box: fill-box; transform-origin: 50% 100%; }
.coach .eyes { transform-box: fill-box; }
.moments { font-size: clamp(20px, 4.6vw, 28px); line-height: 1.3; margin: 0 auto 28px; max-width: 34ch; color: var(--words); }
.cycle { display: inline-grid; text-align: left; vertical-align: top; }
.cycle > span { grid-area: 1 / 1; color: var(--brand); font-style: italic; font-family: var(--serif); font-size: 1.12em; line-height: 1.15; }
.cycle > span:not(:first-child) { visibility: hidden; }
.js .cycle > span { visibility: visible; opacity: 0; }
.js .cycle > span.on { opacity: 1; }
.badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 0 0 8px; }
.badge, a.mail { display: inline-flex; flex-direction: column; justify-content: center; border-radius: 16px; padding: 9px 20px; font-weight: 600; font-size: 17px; line-height: 1.2; min-height: 54px; }
.badge { background: var(--words); color: var(--ground); text-align: left; }
.badge small, a.mail small { font-weight: 400; font-size: 12px; opacity: 0.85; }
a.mail { border: 1.5px solid var(--brand); color: var(--brand); text-decoration: none; }
a.mail:hover { background: var(--brand); color: var(--ground); }
.hero-phone { margin-top: 48px; width: min(320px, 80vw); }
.brandline { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--soft); margin: 56px 0 18px; }
.intro { max-width: 600px; margin: 0 auto; }
.intro .lead { font-size: 20px; line-height: 1.55; }
.intro .aside { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--brand); }

/* How it works. Stacked by default (phones, no JavaScript, reduce motion); pinned on wide screens with motion. */
.steps { display: grid; gap: 56px; }
.step { display: grid; gap: 22px; }
.step .phone { width: min(270px, 74vw); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; margin-top: 0; }
.pin-phone { display: none; }

/* It learns them. */
.split { display: grid; gap: 40px; align-items: center; }
.chips-label { font-weight: 600; margin: 28px 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font: inherit; font-size: 16px; font-weight: 500; color: var(--words); background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 18px; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--ground); }
.screen.person { padding: 64px 18px 18px; font-size: 14px; line-height: 1.35; text-align: left; }
.phone .screen[hidden] { display: none; }
.screen.person { position: relative; }
.screen.person::before { content: ''; position: absolute; top: 12px; left: 50%; width: 96px; height: 28px; margin-left: -48px; border-radius: 999px; background: var(--words); }
.screen .say { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; font-size: 15.5px; line-height: 1.4; }
.screen .say p { margin: 0; }
.coach.tiny { width: 34px; height: auto; flex: none; overflow: visible; }
.screen .pill { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; margin: 0 0 16px; font-weight: 500; }
.screen .pill span { color: var(--soft); font-weight: 400; }
.learned { background: var(--band); border: 1px solid var(--line); border-radius: 20px; padding: 12px 14px 4px; }
.learned p { margin: 0 0 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.learned p span { display: block; color: var(--soft); font-size: 12.5px; }
.learned .lt { border-top: 0; padding-top: 0; color: var(--brand); font-weight: 600; }
.learned .first { color: var(--brand); font-weight: 600; }
.land { margin-top: 64px; }
ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { padding-left: 30px; position: relative; margin-bottom: 16px; }
ul.ticks li::before { content: ''; position: absolute; left: 4px; top: 0.5em; width: 12px; height: 12px; border-radius: 50%; background: var(--coach); }

/* The research: a two-by-two grid of big cards. */
.grid2 { display: grid; gap: 16px; }
.card { background: var(--ground); border-radius: 32px; padding: 28px; }
.card h3 { font-size: 22px; margin-top: 4px; }
.card p { color: var(--soft); }
.num { font-family: var(--serif); font-size: 22px; color: var(--soft) !important; margin: 0; }
.num b { font-weight: 400; font-size: clamp(52px, 14vw, 72px); line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.num span { margin: 0 4px; }
.breather .coach { width: 84px; height: auto; display: block; margin: 4px 0 6px; overflow: visible; }
.cols2 { display: grid; gap: 8px 40px; margin-top: 40px; }
sup a { text-decoration: none; font-size: 0.75em; font-weight: 600; padding: 0 1px; }
ol.refs { margin: 32px 0 0; padding-left: 22px; font-size: 14px; line-height: 1.5; color: var(--soft); max-width: 820px; }
ol.refs li { margin-bottom: 6px; }
ol.refs a { color: var(--soft); }

/* The one big card: stone, the coach huge and bleeding off its right edge. */
.bigcard { position: relative; overflow: hidden; background: var(--band); border-radius: 40px; padding: 40px 28px 260px; margin-bottom: 20px; }
.bigcard .words { position: relative; z-index: 1; }
.bigcard h2 { font-size: clamp(36px, 7vw, 60px); margin-bottom: 28px; }
.promise { font-family: var(--serif); font-size: clamp(28px, 6vw, 44px); line-height: 1.1; margin: 0 0 6px !important; color: var(--brand); }
.coach.big { position: absolute; width: 300px; height: auto; right: -70px; bottom: -40px; overflow: visible; }
.cards { display: grid; gap: 16px; margin-bottom: 20px; }
.cards article { background: var(--band); border-radius: 28px; padding: 22px 24px; }
.cards h3 { margin-top: 0; }
.cards p { margin: 0; color: var(--soft); }
.more { color: var(--soft); max-width: 760px; }

.prices { display: grid; gap: 16px; }
.prices article { background: var(--ground); border-radius: 32px; padding: 28px; }
.prices .tier { text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; font-weight: 600; color: var(--soft); margin: 0; }
.prices .amount { font-family: var(--serif); font-size: 64px; line-height: 1.1; margin: 4px 0 2px; }
.prices .amount small { font-family: 'Instrument Sans', sans-serif; font-size: 17px; color: var(--soft); }
.prices .alt { color: var(--soft); margin-bottom: 12px; }

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 19px; list-style: none; position: relative; padding-right: 36px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; position: absolute; right: 4px; top: -4px; font-weight: 400; font-size: 26px; color: var(--brand); transition: transform 0.3s ease; }
details[open] summary::after { transform: rotate(45deg); }
details .ans { overflow: hidden; }
details .ans p { margin: 10px 0 0; color: var(--soft); }

section.close { text-align: center; background: var(--brand); color: var(--ground); padding: 96px 0; }
section.close h2 { color: var(--ground); margin: 0 auto 20px; font-size: clamp(48px, 11vw, 96px); }
section.close .badge { background: var(--ground); color: var(--words); }
section.close a.mail { border-color: var(--ground); color: var(--ground); }
section.close a.mail:hover { background: var(--ground); color: var(--brand); }

@media (min-width: 760px) {
  body { font-size: 18px; }
  main section { padding: 112px 0; }
  .split { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .split.reverse { grid-template-columns: 1fr 1.1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 64px 40px; }
  .grid2 { grid-template-columns: 1fr 1fr; gap: 20px; }
  .card { padding: 40px; border-radius: 40px; }
  .cols2 { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .prices { grid-template-columns: 1fr 1fr; max-width: 860px; }
  .bigcard { padding: 72px 64px; min-height: 520px; }
  .bigcard .words { max-width: 54%; }
  .coach.big { width: 520px; right: -130px; bottom: auto; top: 50%; margin-top: -280px; }
}

@media (min-width: 960px) {
  .hero { padding-top: 48px; }
  .headline { flex-direction: row; justify-content: center; gap: 40px; }
  .hero-coach { width: 200px; flex: none; }
  .headline .copy { text-align: left; }
  .headline .badges { justify-content: flex-start; }
  .headline .moments { margin-left: 0; }

  /* Pinned how-it-works: the steps scroll past on the left, one phone on the right swaps its screen. */
  .motion .pinned { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
  .motion .steps { display: block; }
  .motion .step { min-height: 78vh; display: flex; align-items: center; }
  .motion .step .phone { display: none; }
  .motion .step .txt { max-width: 440px; opacity: 0.3; transition: opacity 0.4s ease; }
  .motion .step.on .txt { opacity: 1; }
  .motion .pin-phone { display: block; position: sticky; top: calc(50vh - 330px); height: 660px; align-self: start; }
  .motion .pin-phone .phone { width: 304px; }
  .motion .pin-phone img + img { position: absolute; inset: 9px; width: calc(100% - 18px); }
  .motion .pin-phone img { opacity: 0; transition: opacity 0.2s ease 0.45s; }
  .motion .pin-phone img.on { opacity: 1; z-index: 1; transition: opacity 0.45s ease 0s; }
}

/* Lenis, from its own stylesheet (lenis@1.3.27/dist/lenis.css). */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }
html.lenis { scroll-behavior: auto; }

/* Reduce motion: no smooth scrolling, nothing moves; the hero line shows its first moment. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .cycle > span { opacity: 0; }
  .js .cycle > span:first-child { opacity: 1; }
}
