:root {
  --ink: #0c1220;
  --navy: #17253a;
  --surface: #f7f9f8;
  --paper: #ffffff;
  --mint: #a8e4be;
  --accent: #2f6a52;
  --accent-ink: #ffffff;
  --amber: #f4c676;
  --amber-ink: #6b4a08;
  --indigo: #5b6fd6;
  --text: #192637;
  --muted: #4d5c70;
  --line: #dce5e7;
  --line-strong: #c5d2d6;
  --danger: #a03a2c;
  --night-text: #e8eef3;
  --night-muted: #a9b8c8;
  --radius-card: 16px;
  --radius-control: 10px;
  --max: 1120px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0f1622;
    --paper: #162132;
    --text: #e6edf3;
    --muted: #a6b4c4;
    --line: #26354a;
    --line-strong: #34465e;
    --accent: #8fd6ab;
    --accent-ink: #0d1a14;
    --amber-ink: #f4c676;
    --indigo: #9aa8f0;
    --danger: #f19a8c;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--surface); color: var(--text); font: 400 17px/1.6 var(--sans); }
svg { display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font: 650 1.2rem/1.3 var(--sans); letter-spacing: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--text); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.eyebrow { font: 650 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.kicker { font: 600 .78rem/1 var(--sans); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; display: block; }
.opt { font-weight: 400; color: var(--muted); font-size: .88em; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--radius-control); font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--mint); color: #0c1220; }
.btn-primary:hover { background: #c3efd2; }
.btn-ghost { color: var(--night-text); border-color: #3c5170; background: transparent; }
.btn-ghost:hover { border-color: var(--mint); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: default; }

.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ink) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid #1d2a40; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 600 1.18rem/1 var(--display); }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--night-muted); text-decoration: none; padding: 10px 12px; font-size: .95rem; font-weight: 500; }
.nav a:not(.btn):hover { color: #fff; }
.nav .btn { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid #3c5170; color: #fff; border-radius: 8px; min-height: 42px; padding: 0 14px; font: 600 .95rem var(--sans); }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: 8px 16px 18px; border-bottom: 1px solid #1d2a40; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 6px; border-bottom: 1px solid #1a2639; }
  .nav .btn { margin: 14px 0 0; }
}

.night { position: relative; background: radial-gradient(1100px 520px at 80% -10%, #263f73 0%, transparent 60%), linear-gradient(180deg, var(--ink) 0%, var(--navy) 100%); color: var(--night-text); }
.night .lede { color: var(--night-muted); }
.night .eyebrow { color: var(--mint); }
.night a:not(.btn) { color: var(--mint); }
.night h1, .night h2 { color: #fff; }
.stars { position: absolute; inset: 0; pointer-events: none; opacity: .7; background-image: radial-gradient(1.2px 1.2px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 27% 64%, #cfe0ff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 44% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 58% 78%, #cfe0ff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 71% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 86% 58%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 93% 12%, #cfe0ff 50%, transparent 51%), radial-gradient(1px 1px at 6% 82%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 36% 40%, #fff 50%, transparent 51%); }
.hero { padding: 72px 0 84px; overflow: hidden; }
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { max-width: 14ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.trust-note { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--night-muted); padding: 0; margin: 0; list-style: none; }
.trust-note li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); margin-right: 8px; vertical-align: 2px; }
.page-hero { padding: 56px 0; }
.horizon { height: 6px; background: linear-gradient(90deg, var(--navy) 0%, #3c5f86 40%, var(--amber) 75%, #ffe3b0 100%); }

.night-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; padding: 26px; backdrop-filter: blur(6px); }
.night-card-title { font: 600 1.25rem var(--display); color: #fff; margin-bottom: 18px; }
.night-card-foot { font-size: .82rem; color: var(--night-muted); margin: 16px 0 0; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(180deg, var(--amber), var(--indigo) 50%, var(--amber)); opacity: .7; }
.timeline li { position: relative; padding: 10px 0 10px 34px; display: grid; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 16px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--ink); }
.t-eve::before, .t-morn::before { background: var(--amber); }
.t-night::before { background: #8fa0ff; }
.t-time { font: 650 .76rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--mint); }
.timeline strong { display: block; color: #fff; font-size: 1.08rem; }
.timeline div span { color: var(--night-muted); font-size: .94rem; }

section.block { padding: 84px 0; }
section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px; }
section.alt .card { background: var(--surface); }

.phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 900px) { .phases { grid-template-columns: repeat(3, 1fr); } }
.phase { border-radius: var(--radius-card); padding: 28px; border: 1px solid var(--line); background: var(--paper); }
.phase p { margin: 0; color: var(--muted); }
.phase-tag { display: inline-block; font: 650 .74rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; margin-bottom: 16px; }
.p-eve .phase-tag, .p-morn .phase-tag { background: color-mix(in srgb, var(--amber) 28%, transparent); color: var(--amber-ink); }
.p-night { background: linear-gradient(180deg, #131c30, #1b2a47); border-color: #2a3b5c; }
.p-night h3 { color: #fff; }
.p-night p { color: var(--night-muted); }
.p-night .phase-tag { background: rgba(143, 160, 255, .2); color: #c5ceff; }

.preview { max-width: 820px; }
.demo-label { background: #fff6e2; color: #5c3f06; border: 1px solid #f1e0b8; border-radius: 12px; padding: 12px 16px; margin-bottom: 22px; font-size: .95rem; }
@media (prefers-color-scheme: dark) { .demo-label { background: #2b2412; color: #f6dca3; border-color: #4a3d1b; } }
.tabs { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; margin-bottom: 18px; max-width: 100%; }
.tabs button { background: transparent; border: 0; padding: 12px 20px; font: 600 .98rem var(--sans); color: var(--muted); cursor: pointer; min-height: 46px; }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) { .tabs button[aria-selected="true"] { background: var(--mint); color: #0c1220; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; }
.panel[hidden] { display: none; }
.script { font: 400 1.16rem/1.75 var(--display); border-left: 3px solid var(--amber); padding-left: 20px; }
.script p:last-child { margin: 0; }
.player { display: flex; gap: 18px; align-items: center; background: linear-gradient(180deg, #131c30, #1b2a47); color: var(--night-text); border-radius: 14px; padding: 20px; }
.play { flex: none; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--mint); cursor: pointer; display: grid; place-items: center; }
.play svg { width: 28px; height: 28px; fill: #0c1220; }
.play .i-stop, .play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-stop { display: block; }
.player-main { display: grid; gap: 4px; flex: 1; min-width: 0; }
.player-main > span { color: var(--night-muted); font-size: .9rem; }
.vol { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--night-muted); margin-top: 6px; }
.vol input { flex: 1; max-width: 220px; accent-color: var(--mint); }
.cues { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cues li { font: 400 1rem var(--display); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); }
.morning-card { background: linear-gradient(180deg, #fff3d6, #fffaf0); color: #2a2110; border: 1px solid #f1e0b8; border-radius: 14px; padding: 24px; }
.mc-label { font: 650 .74rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #6b4a08; margin: 0 0 4px; }
.mc-idea { font: 600 1.4rem/1.3 var(--display); margin-bottom: 20px; }
.mc-action { font-size: 1.08rem; margin-bottom: 18px; }
.morning-card .check { color: #2a2110; }
.morning-card #didItMsg { margin: 10px 0 0; color: #2f6a52; font-weight: 600; min-height: 1.4em; }

.track h3 { font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
.track ul { margin: 0 0 18px; padding-left: 20px; color: var(--muted); }
.track li { margin-bottom: 6px; }
.track { border-top: 4px solid var(--line-strong); display: flex; flex-direction: column; }
.track ul { flex: 1; }
.t-biz { border-top-color: var(--accent); } .t-mind { border-top-color: var(--amber); } .t-lang { border-top-color: var(--indigo); } .t-create { border-top-color: #d9778a; }
.pill { align-self: flex-start; font: 600 .74rem/1 var(--sans); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }

.evidence { margin: 0; padding-left: 20px; }
.evidence li { margin-bottom: 12px; }
.evidence li:last-child { margin: 0; }
cite { font-style: italic; }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 36px 20px 0; font-weight: 600; font-size: 1.05rem; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 0 20px; color: var(--muted); max-width: 70ch; }

.final { padding: 88px 0; }
.form-wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .form-wrap { grid-template-columns: .9fr 1.1fr; } }
form.card, .form-success { background: var(--paper); color: var(--text); padding: 28px; border-radius: 20px; }
.night form a:not(.btn), .night .form-success a { color: var(--accent); }
form .btn-primary { background: var(--accent); color: var(--accent-ink); width: 100%; }
form .btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
fieldset { border: 0; padding: 0; margin: 0 0 20px; }
legend { font-weight: 600; font-size: .95rem; margin-bottom: 10px; padding: 0; }
.field { margin-bottom: 18px; }
.field > label:not(.check) { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.req { color: var(--danger); }
input[type=text], input[type=email] { width: 100%; min-height: 48px; padding: 10px 12px; font: 400 1rem var(--sans); color: var(--text); background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: var(--radius-control); }
input[type=text]:focus, input[type=email]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: .88rem; margin-top: 6px; display: block; }
.two { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-size: .93rem; font-weight: 500; }
.chips input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chips input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .93rem; cursor: pointer; font-weight: 400; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error-summary { border: 2px solid var(--danger); border-radius: 12px; padding: 12px 16px; margin-bottom: 20px; }
.error-summary h3 { font-size: 1rem; color: var(--danger); margin: 0 0 6px; }
.error-summary ul { margin: 0; padding-left: 20px; }
.form-success h3 { font: 600 1.6rem var(--display); }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose li { margin-bottom: 6px; }
.notice { border-left: 4px solid var(--amber); background: var(--paper); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 0 0 28px; font-size: .95rem; }

.site-footer { background: var(--ink); color: var(--night-muted); padding: 44px 0 36px; font-size: .92rem; }
.site-footer a { color: var(--night-text); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-row { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer .legal { border-top: 1px solid #1d2a40; margin: 28px 0 0; padding-top: 20px; font-size: .84rem; max-width: 90ch; }

@media (prefers-reduced-motion: no-preference) {
  .stars { animation: twinkle 6s ease-in-out infinite alternate; }
  @keyframes twinkle { from { opacity: .45; } to { opacity: .85; } }
  .play[aria-pressed="true"] { animation: breathe 5s ease-in-out infinite; }
  @keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(168, 228, 190, .35); } 50% { box-shadow: 0 0 0 14px rgba(168, 228, 190, 0); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
