/* Dodo design system (Claude Design): night-blue accent, night-light amber only for attention,
   Instrument Sans + IBM Plex Mono for times, hairlines instead of shadows, 4px grid. */
@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/ibm-plex-mono-500-latin.woff2) format("woff2"); font-weight: 500; font-display: swap; }
:root {
  /* tokens: surface, surface-raised, ink, ink-muted, line, line-strong, accent, on-accent, accent-soft, glow, glow-soft */
  --bg: #FFFFFF; --surface: #F6F7F9; --text: #141C2B; --muted: #556074; --line: #DDE1E8; --line-strong: #7C869A;
  --accent: #2C4A9A; --accent-text: #FFFFFF; --soft: #E7ECF7; --glow: #A5601A; --warn-bg: #FBF1E4; --warn-line: #A5601A;
  --radius: 10px; --radius-sm: 6px; --shadow: none;
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:has(body.night) {
    --bg: #0D121B; --surface: #151C28; --text: #E7EBF2; --muted: #98A2B6; --line: #263146; --line-strong: #5E6A82;
    --accent: #93ABE8; --accent-text: #0D121B; --soft: #1B2740; --glow: #E2A45F; --warn-bg: #2A2114; --warn-line: #E2A45F;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 var(--font-sans);
}
a { color: var(--accent); }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
header.site { padding: 18px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 0; font-weight: 600; font-size: 1.3rem; text-decoration: none; color: var(--text); letter-spacing: -.02em; }
.logo::before { content: ""; width: 26px; height: 26px; margin-right: 6px; background: url(img/mark.svg) center / contain no-repeat; }
.logo span { color: inherit; }
nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
nav a { padding: 6px 8px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: .92rem; }
nav a[aria-current="page"] { color: var(--text); font-weight: 650; }
nav a.nav-cta { background: var(--soft); color: var(--accent); font-weight: 650; padding: 6px 12px; }
nav a.nav-cta[aria-current="page"] { background: var(--accent); color: var(--accent-text); }
@media (max-width: 420px) { header.site .wrap { gap: 6px; } nav { gap: 0; flex-wrap: nowrap; } nav a { padding: 6px 4px; font-size: .84rem; } nav a.nav-cta { padding: 6px 8px; margin-left: 2px; } .logo { font-size: 1.15rem; } .logo::before { width: 22px; height: 22px; margin-right: 4px; } }
main { padding-bottom: 48px; }
h1 { font-size: clamp(1.75rem, 5vw, 2.25rem); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; margin: 24px 0 12px; text-wrap: balance; }
h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; margin: 32px 0 12px; text-wrap: balance; }
h3 { font-weight: 600; }
.time { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.recap td { font-variant-numeric: tabular-nums; font-weight: 600; }
.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 22px; }
.btn {
  display: inline-block; border: 0; border-radius: 999px; padding: 14px 24px; font: inherit; font-weight: 600;
  background: var(--accent); color: var(--accent-text); text-decoration: none; cursor: pointer; text-align: center;
}
.btn.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); }
.btn:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, label:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin: 16px 0; }
.eyebrow { color: var(--accent); font-size: .95rem; line-height: 1.3; font-weight: 600; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.trust-strip span { background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 5px 10px; color: var(--muted); font-size: .82rem; }
.trust-strip span::before { content: "✓ "; color: var(--accent); font-weight: 800; }
.benefit-grid, .plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.benefit-grid .card, .plan-grid .card { margin: 0; }
.feature h3, .plan h3 { margin: 6px 0; font-size: 1.05rem; }
.feature p, .plan p { margin-top: 6px; }
.feature-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--soft); color: var(--accent); font-weight: 800; }
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); position: relative; }
.plan-price { font-size: 1.25rem; font-weight: 750; }
.plan .btn { margin-top: auto; }
.mobile-cta { display: none; }
.steps { display: grid; gap: 12px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 14px 52px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 24px; height: 24px; border-radius: 50%; background: var(--soft); text-align: center; font-weight: 700; font-size: .9rem; line-height: 24px; }
.note { font-size: .92rem; color: var(--muted); }
.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius); padding: 14px 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
footer.site { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: .9rem; color: var(--muted); }
footer.site p { margin: 0 0 8px; }
.feature .btn-link { display: inline-block; margin-top: 8px; font-weight: 650; }
@media (max-width: 620px) {
  body.subscription-page { padding-bottom: 76px; }
  .benefit-grid, .plan-grid { grid-template-columns: 1fr; }
  .mobile-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
  .mobile-cta .btn { display: block; max-width: 720px; margin: 0 auto; }
}

/* Assessment */
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 12px 0 20px; }
.progress > div { height: 100%; background: var(--accent); width: 0; transition: width .2s; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: 1.2rem; font-weight: 600; margin-bottom: 6px; }
.choices { display: grid; gap: 10px; margin: 16px 0; }
.choice { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--soft); }
.choice input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; flex: none; }
.field { display: grid; gap: 6px; margin: 14px 0; }
.field input[type=email] { font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.price { font-size: 2rem; font-weight: 700; }
.error { color: #c0392b; font-weight: 600; }
@media (prefers-color-scheme: dark) { body.night .error { color: #ff8a7a; } }

/* Sound player */
.player { text-align: center; }
.kinds, .timers { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pill { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 10px 16px; font: inherit; cursor: pointer; }
.pill[aria-pressed=true] { border-color: var(--accent); background: var(--soft); font-weight: 600; }
.big { font-size: 1.15rem; padding: 18px 34px; min-width: 200px; }
input[type=range] { width: min(320px, 100%); accent-color: var(--accent); }
.status { min-height: 1.6em; color: var(--muted); }
.stopbar { position: sticky; bottom: 12px; display: none; justify-content: center; margin-top: 16px; }
.stopbar.on { display: flex; }

/* Journal */
.log-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.log-btn { display: grid; gap: 4px; justify-items: center; align-content: center; padding: 16px 6px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 1rem; cursor: pointer; min-height: 84px; }
.log-btn span { font-size: .9rem; font-weight: 600; }
.log-btn:active { transform: scale(.97); }
.log-btn.unusual { background: var(--warn-bg); border-color: var(--glow); }
.log-btn b { font-size: 1.3rem; font-weight: 400; color: var(--accent); }
.log-btn.unusual b { color: var(--glow); }
.past { margin-top: 14px; }
.past summary { cursor: pointer; color: var(--accent); }
.past select, .past input { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.toast { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 696px; margin: 0 auto !important; z-index: 5; background: var(--text); color: var(--bg); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 12px 0; }
.toast .pill { background: transparent; color: inherit; border-color: currentColor; }
.night h3 { margin: 0 0 4px; font-size: 1.05rem; }
.night ul { margin: 8px 0 0; padding-left: 18px; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: .85rem; cursor: pointer; margin-left: 6px; }
@media print {
  header.site, footer.site, .log-grid, .past, .actions, .toast, .promo, .lead, .note:not(.meta) { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border: 1px solid #999; box-shadow: none; break-inside: avoid; }
}

/* FAQ */
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 8px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 2px; }
.recap { width: 100%; border-collapse: collapse; font-size: .95rem; }
.recap th, .recap td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.recap thead th { font-size: .85rem; color: var(--muted); font-weight: 600; }
.recap td { font-variant-numeric: tabular-nums; }

.toast { flex-direction: column; align-items: stretch; }
.toast-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.detail-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; font-size: .9rem; }
.detail-chips .pill { padding: 8px 12px; }
.focus strong { display: block; font-size: 1.1rem; margin: 2px 0 4px; }
.focus p:last-child { margin: 0; }

/* Subscription demo */
.timeline-demo { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 12px; }
.timeline-demo .card { margin: 0; }
.timeline-demo h3 { margin: 4px 0 6px; font-size: 1.05rem; }
.timeline-demo p { margin: 6px 0; }
.tag { display: inline-block; border-radius: 999px; padding: 2px 8px; font-size: .72rem; letter-spacing: .02em; text-transform: none; }
.tag.ok { background: var(--soft); color: var(--accent); }
.tag.soon { background: var(--warn-bg); color: var(--text); border: 1px solid var(--warn-line); }
.recap.demo { margin: 8px 0; }

/* ---- Airy layout (feedback 25/09: pages felt heavy) ----
   More white space, fewer boxes: a card only for something you act on; everything else sits on the page. */
body { line-height: 1.6; }
.wrap { max-width: 640px; padding: 0 20px; }
header.site { padding: 20px 0 8px; }
main { padding-bottom: 72px; }
main > section + section { margin-top: 64px; }
main > section > h2:first-child { margin-top: 0; }
h1 { margin: 40px 0 16px; }
h2 { margin: 56px 0 16px; }
p { margin: 0 0 12px; }
.lead { font-size: 1.125rem; line-height: 1.55; max-width: 36ch; margin-bottom: 28px; }
.actions { gap: 12px; margin: 24px 0; }
.card { border: 0; box-shadow: none; padding: 20px; margin: 20px 0; }
.warn { border: 0; }
.trust { color: var(--muted); font-size: .88rem; margin-top: 8px; }
.tools { list-style: none; padding: 0; margin: 0; }
.tools li { border-top: 1px solid var(--line); }
.tools li:last-child { border-bottom: 1px solid var(--line); }
.tools a { display: grid; gap: 2px; padding: 16px 28px 16px 0; text-decoration: none; color: var(--text); position: relative; }
.tools span { color: var(--muted); font-size: .95rem; }
.more { font-weight: 600; text-decoration: none; }
.quiet { color: var(--muted); }
.health { color: var(--text); }
.health strong { color: var(--glow); }
footer.site { margin-top: 24px; padding: 28px 0 48px; font-size: .85rem; }

/* ---- Glass bubbles (iOS "liquid glass" feel) for stacked, tappable items: tools list and FAQ ---- */
:root {
  --glass: rgb(242 244 247 / .8); --glass-edge: transparent; --glass-line: rgb(20 28 43 / .06);
  --glass-shadow: none;
  --ambient: none;
}
@media (prefers-color-scheme: dark) {
  :root:has(body.night) {
    --glass: rgb(30 40 60 / .45); --glass-edge: rgb(255 255 255 / .10); --glass-line: rgb(255 255 255 / .04);
    --glass-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 10px 30px rgb(0 0 0 / .35);
    --ambient: radial-gradient(70% 45% at 90% -5%, rgb(147 171 232 / .10), transparent 70%);
  }
}
body { background: var(--ambient), var(--bg); background-attachment: fixed; }
.hero { padding-top: 32px; }
main > p.eyebrow:first-child { margin-top: 32px; }
details.faq {
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 22px; box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
}
details.faq { padding: 0; margin: 10px 0; overflow: hidden; }
details.faq summary { list-style: none; padding: 16px 44px 16px 18px; position: relative; font-weight: 600; cursor: pointer; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.3rem; font-weight: 400; transition: transform .2s ease; }
details.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details.faq p { margin: 0; padding: 0 18px 16px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { details.faq summary::after { transition: none; } }

.timeline-demo .card, .benefit-grid .card, .plan-grid .card, .card.focus {
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 22px; box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
}
.plan.featured { border: 1.5px solid var(--accent); }
.benefit-grid, .plan-grid { gap: 10px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover, footer.site a:focus-visible { color: var(--accent); text-decoration: underline; }

/* ---- Assessment synthesis: short compartments instead of a wall of bullets ---- */
.block { margin-top: 44px; }
.block h2 { margin: 0 0 14px; font-size: 1.15rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin: 0; }
.facts div { padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .82rem; margin-bottom: 2px; }
.facts dd { margin: 0; font-weight: 600; line-height: 1.35; }
.notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.notes li { display: grid; gap: 2px; }
.notes strong { font-size: .95rem; }
.notes span { color: var(--muted); }
.observe { margin: 0; padding: 0; list-style: none; counter-reset: o; display: grid; gap: 10px; }
.observe li { counter-increment: o; display: flex; gap: 12px; align-items: baseline; }
.observe li::before { content: counter(o); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--soft); color: var(--accent); font-size: .8rem; font-weight: 600; display: grid; place-items: center; }

/* Health and safety notices: plain text with an amber title, never an orange box */
.warn { background: none; border: 0; padding: 0; border-radius: 0; }
.warn strong:first-child { color: var(--glow); }

/* Home: "three yes" block — problem, solution sought, result */
.yes { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.yes li { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; }
.yes li::before { content: "✓"; grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; background: var(--soft); color: var(--accent); font-size: .8rem; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }
.yes strong { font-size: 1.02rem; }
.yes span { color: var(--muted); }

/* Home: tangible preview of the journal (Huckleberry-style product glimpse), drawn in HTML, not an image */
.phone { margin: 36px auto 0; width: min(280px, 100%); }
.phone-screen { background: #FFFFFF; color: var(--text); border-radius: 34px; padding: 22px 18px 20px; box-shadow: 0 0 0 8px #EEF0F4, 0 20px 44px rgb(20 28 43 / .10); display: grid; gap: 14px; }
.phone-eyebrow { margin: 0; font-size: .85rem; color: var(--accent); font-weight: 600; }
.phone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.phone-grid span { display: grid; justify-items: center; gap: 2px; padding: 12px 4px; border-radius: 12px; background: #F6F7F9; border: 1px solid #DDE1E8; color: var(--accent); font-size: 1.05rem; }
.phone-grid span.on { border-color: var(--accent); background: #E7ECF7; }
.phone-grid small { color: var(--text); font-size: .7rem; font-weight: 600; }
.phone-toast { margin: 0; background: #141C2B; color: #FFFFFF; border-radius: 12px; padding: 10px 12px; font-size: .85rem; line-height: 1.35; }
.phone-toast small { color: #C9CFDA; }
.phone-recap { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: .78rem; color: var(--muted); border-top: 1px solid #DDE1E8; padding-top: 12px; }
.phone-recap b { color: var(--text); font-variant-numeric: tabular-nums; }
.phone figcaption { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 14px; }
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.trust-list li { display: grid; gap: 2px; padding-left: 16px; position: relative; }
.trust-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.trust-list span { color: var(--muted); }
@media (min-width: 760px) {
  .hero { display: grid; grid-template-columns: 1fr 260px; column-gap: 40px; align-items: start; }
  .hero > *:not(.phone) { grid-column: 1; }
  .hero .phone { grid-column: 2; grid-row: 1 / span 5; margin-top: 24px; }
  .wrap { max-width: 760px; }
}

/* Headings receive programmatic focus (for screen readers) when a step renders: no visible ring on them */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }

/* Coach page: example conversation as soft bubbles */
.chat { display: grid; gap: 10px; margin: 16px 0 24px; }
.msg { margin: 0; max-width: 85%; padding: 12px 16px; border-radius: 20px; line-height: 1.45; font-size: .97rem; }
.msg.parent { justify-self: end; background: var(--soft); color: var(--text); border-bottom-right-radius: 6px; }
.msg.coach { justify-self: start; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.coach::before { content: "Coach IA"; display: block; font-size: .72rem; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
.msg.coach.alert strong { color: var(--glow); }

/* Coach page: the price, made visible */
.price-block { background: var(--soft); border-radius: 24px; padding: 28px 22px; }
.price-block h2 { margin: 6px 0 16px; font-size: 1.3rem; }
.price-big { margin: 0; font-size: 2.6rem; line-height: 1; font-weight: 600; letter-spacing: -.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.price-big small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-day { margin: 8px 0 18px; color: var(--muted); }
.price-day strong { color: var(--text); }
.price-includes { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.price-includes li { padding-left: 26px; position: relative; }
.price-includes li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.compare { display: grid; gap: 8px; margin: 4px 0 20px; }
.compare p { margin: 0; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.compare span { font-size: .9rem; }
.compare strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; text-align: right; }
.compare small { grid-column: 1 / -1; color: var(--muted); font-size: .8rem; }
.compare p:first-child strong { color: var(--muted); font-weight: 500; }
.compare p:first-child { opacity: .85; }
.compare .ours strong { font-size: 1.5rem; }
.compare .ours { border: 1.5px solid var(--accent); }
.compare .ours strong { color: var(--accent); }

.punch { margin: -6px 0 18px; font-size: 1.05rem; color: var(--text); font-weight: 500; }

.launch { margin: 4px 0 16px; padding: 10px 14px; border-radius: 14px; background: var(--soft); font-size: .9rem; line-height: 1.4; }
.launch strong { color: var(--accent); }

/* Referral block after an interest */
.referral { margin: 36px 0 12px; padding: 24px 20px; border-radius: 24px; background: var(--soft); }
.referral h2 { margin: 4px 0 10px; font-size: 1.25rem; }

/* Sticky call to action on phones (home and coach pages) */
.sticky-cta { display: none; }
@media (max-width: 620px) {
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s ease; }
  .sticky-cta.on { transform: none; }
  .sticky-cta .btn { display: block; width: 100%; }
  body:has(.sticky-cta) main { padding-bottom: 110px; }
}
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }
/* End of the assessment: folded details and the coach pitch. */
details.more-facts { margin-top: 10px; }
details.more-facts summary { cursor: pointer; color: var(--accent); font-size: .92rem; padding: 6px 0; }
details.more-facts .facts { margin-top: 4px; }
.pitch .yes { margin-top: 12px; }
#subscription-offer .price-big { margin: 4px 0 6px; }
#price-question { margin: 18px 0 6px; }
#price-question p { margin: 0 0 6px; }
#subscription-offer .compare p { background: var(--surface); }
.tag.demo { background: var(--surface); color: var(--muted); border: 1px dashed var(--line-strong); }
.status-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.status-list li { display: grid; gap: 4px; }
.status-list .tag { justify-self: start; }

/* Subscriber space of the coach (mon-coach.html) */
.coach-app .gate-form { display: grid; gap: 8px; max-width: 360px; margin: 16px 0; }
.coach-app .gate-form input { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; letter-spacing: .04em; }
.coach-bar { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.coach-bar .note { margin: 0; }
.chat-log { display: flex; flex-direction: column; gap: 8px; padding: 14px 0 10px; min-height: 30vh; }
.chat-log .msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.chat-log .msg.coach { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 6px; }
.chat-log .msg.coach::before { content: none; }
.chat-log .msg.parent { align-self: flex-end; background: var(--accent); color: var(--accent-text); border-bottom-right-radius: 6px; }
.chat-log .msg.disclosure { font-weight: 600; }
.chat-log .msg.missing, .chat-log .msg.uncertainty, .chat-log .msg.proof { color: var(--muted); font-size: .92rem; }
.chat-log .msg.fact, .chat-log .msg.bilan, .chat-log .msg.analysis { background: var(--bg); border: 1px solid var(--line); }
.chat-log .msg.rule, .chat-log .msg.plan { background: var(--soft); }
.chat-log .msg.urgent { color: #9B1C1C; font-weight: 600; }
.chat-log .msg.reassurance { font-style: italic; }
.coach-dock { position: sticky; bottom: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); }
.coach-choices { display: flex; flex-wrap: wrap; gap: 6px; max-height: 40vh; overflow-y: auto; }
.coach-choices button { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--accent); background: var(--bg); color: var(--accent); font: inherit; cursor: pointer; text-align: left; }
.coach-free { display: flex; gap: 6px; margin-top: 8px; }
.coach-free input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; font: inherit; }
.coach-free button { padding: 10px 14px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-text); font: inherit; cursor: pointer; }
.coach-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.coach-controls button { padding: 8px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; font-size: .82rem; cursor: pointer; }
.coach-controls button:disabled { opacity: .4; }
@media (min-width: 560px) { .coach-controls { grid-template-columns: repeat(4, 1fr); } }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; font: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* The one orchestrated moment (frontend-design skill): on the home page, the night's wake-up gets noted. */
@keyframes dodo-noted { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.phone .phone-toast { animation: dodo-noted .5s ease-out .6s both; }
.phone .phone-recap { animation: dodo-noted .5s ease-out 1.3s both; }
@media (prefers-reduced-motion: reduce) { .phone .phone-toast, .phone .phone-recap { animation: none; } }

/* Touch targets of at least 44 px (ui-ux-pro-max, priority 2): parents tap one-handed, often at night. */
.logo, nav a { min-height: 44px; }
nav a { display: inline-flex; align-items: center; }
.link-btn, .linklike { min-height: 44px; padding: 0 6px; }
.past summary { display: flex; align-items: center; min-height: 44px; }
input[type=range] { min-height: 44px; }
.coach-choices button, .coach-controls button, .coach-free button, .coach-free input { min-height: 44px; }
.tag { font-size: .8rem; }
.more { display: inline-flex; align-items: center; min-height: 44px; }
/* End of the assessment: the plan and its call to action, right after the summary. */
.plan-card { margin-top: 32px; padding: 20px 18px 4px; border: 1.5px solid var(--accent); border-radius: 14px; }
.plan-card h2 { color: var(--accent); }
.plan-card .plan-founders { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
.plan-card .actions { margin: 16px 0 8px; }
.plan-card .btn { width: 100%; justify-content: center; }
#price-question { margin-top: 28px; }
/* Plan chooser: annual first, preselected and highlighted; the saving is a badge, the monthly plan stays plain. */
.plans { border: 0; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan-option { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 12px; row-gap: 2px; padding: 14px 14px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); cursor: pointer; min-height: 44px; }
.plan-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.plan-option.best { background: var(--soft); }
.plan-option.is-checked, .plan-option:has(input:checked) { border: 2px solid var(--accent); padding: 13.5px 13.5px 11.5px; }
.plan-option:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.plan-option:focus-within:not(:has(:focus-visible)) { outline: none; }
.plan-option.is-checked::after { content: "✓"; content: "✓" / ""; position: absolute; top: 10px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-size: .8rem; display: grid; place-items: center; }
div.plan-option { cursor: default; }
div.plan-option.best { border-color: var(--accent); }
.plan-name { grid-column: 1 / -1; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-right: 26px; }
.plan-save { font-style: normal; font-size: .78rem; font-weight: 600; color: var(--accent-text); background: var(--accent); border-radius: 999px; padding: 2px 8px; }
.plan-amount { white-space: nowrap; font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.plan-option.best .plan-amount { color: var(--accent); }
.plan-amount small { font-size: .85rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-terms { font-size: .82rem; color: var(--muted); justify-self: end; text-align: right; }
.plan-price .plan-save { margin-left: 6px; vertical-align: middle; }
/* Public pages: the monthly price leads, the annual plan sits underneath. */
.plan-alt { margin: 4px 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .95rem; }
.plan-alt strong { color: var(--accent); }
/* Home phone preview: the same moment icons as the journal (Codex, PR #23), so the promise matches the product. */
.phone-grid .moment-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #E7ECF7; color: #2C4A9A; font-style: normal; }
.phone-grid .moment-icon svg { width: 20px; height: 20px; }
.phone-grid .wake .moment-icon { background: #FBF1E4; color: #A5601A; }

/* Coach IA: lost code, consent to send written messages to the AI */
.coach-app .recover { margin: 8px 0 20px; }
.coach-app .recover summary { cursor: pointer; color: var(--accent); min-height: 44px; display: flex; align-items: center; }
.coach-app .ai-consent { margin: 12px 0; border: 2px solid var(--accent); }
.coach-app .ai-consent .actions { margin-top: 8px; }
.chat-log .msg.ai { font-style: normal; }
.code-box { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: clamp(1.2rem, 5.5vw, 1.6rem); letter-spacing: .06em; color: var(--accent); background: var(--soft); border-radius: 12px; padding: 14px 16px; margin: 8px 0; overflow-wrap: anywhere; user-select: all; }
