/* Sober Mindset — site stylesheet
   Sections: tokens · base · header · stage rail · hero · prose · cards ·
   path · pager · buttons · tools · home · daily · help · footer · print */

/* ─── Tokens ───────────────────────────────────── */
:root {
    --bg: #faf6ee;
    --bg-card: #ffffff;
    --bg-soft: #f3ecdf;
    --bg-sand: #e9dfcb;
    --sage: #56704f;
    --sage-dark: #3f563a;
    --sage-soft: #dbe4d6;
    --terracotta: #b84d24;
    --terracotta-dark: #963c1a;
    --terracotta-soft: #f6dfd3;
    --text: #1d211d;
    --text-soft: #45413a;
    --text-muted: #736a5f;
    --border: #e1d6c0;
    --ink: #221d18;
    --on-ink: #faf6ee;
    --shadow-sm: 0 1px 3px rgba(60, 45, 30, 0.06), 0 2px 8px rgba(60, 45, 30, 0.04);
    --shadow-md: 0 4px 10px rgba(60, 45, 30, 0.06), 0 12px 28px rgba(60, 45, 30, 0.08);
    --radius: 14px;
    --radius-sm: 9px;
    --measure: 700px;
    --wide: 1120px;
    --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --accent: var(--sage);
    --accent-dark: var(--sage-dark);
    --accent-soft: var(--sage-soft);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #181613;
        --bg-card: #221f1b;
        --bg-soft: #26231e;
        --bg-sand: #302b24;
        --sage: #9db894;
        --sage-dark: #b9d0b1;
        --sage-soft: #2b3528;
        --terracotta: #ec8a5e;
        --terracotta-dark: #f3a583;
        --terracotta-soft: #3d281e;
        --text: #f1ebdf;
        --text-soft: #d2c9ba;
        --text-muted: #a2988a;
        --border: #3a342c;
        --ink: #100e0c;
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    }
}

/* First Summer runs hotter than the rest of the site. */
.section-summer {
    --accent: var(--terracotta);
    --accent-dark: var(--terracotta-dark);
    --accent-soft: var(--terracotta-soft);
}

/* ─── Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-soft);
    background: var(--bg);
    font-weight: 400;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--display);
    font-weight: 600;
    color: var(--text);
    line-height: 1.15;
    text-wrap: balance;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--terracotta-dark); }
strong { color: var(--text); font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; border-radius: 4px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 300;
    background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: var(--on-ink); }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ─── Header ───────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 200;
    background: color-mix(in srgb, var(--bg-card) 92%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: var(--wide);
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--text);
    font-family: var(--display); font-size: 1.35rem; font-weight: 600;
    letter-spacing: 0.02em; white-space: nowrap;
}
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.brand:hover { color: var(--text); }

.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
    color: var(--text-soft); text-decoration: none;
    padding: 8px 12px; border-radius: 999px;
    font-size: 0.95rem; font-weight: 500; white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--text); }
.site-nav a[aria-current] { background: var(--sage-soft); color: var(--sage-dark); }

.help-btn {
    background: var(--terracotta); color: #fff; text-decoration: none;
    padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
    white-space: nowrap; transition: background 0.15s ease;
}
.help-btn:hover { background: var(--terracotta-dark); color: #fff; }
@media (prefers-color-scheme: dark) { .help-btn, .help-btn:hover { color: #1a0f08; } }

.nav-toggle {
    display: none; margin-left: auto;
    width: 42px; height: 42px; border-radius: 10px;
    background: transparent; border: 1px solid var(--border); cursor: pointer;
    align-items: center; justify-content: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px;
    position: relative; transition: transform 0.2s ease;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

@media (max-width: 920px) {
    .nav-toggle { display: inline-flex; }
    .header-inner { flex-wrap: wrap; gap: 10px; }
    .site-nav {
        display: none; order: 5; width: 100%; margin: 0;
        flex-direction: column; gap: 2px; padding: 6px 0 10px;
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 12px 14px; border-radius: 10px; font-size: 1.02rem; }
}

/* ─── Stage rail ───────────────────────────────── */
.stage-rail { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.stage-rail ol {
    list-style: none; max-width: var(--wide); margin: 0 auto; padding: 8px 20px;
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
}
.stage-rail ol::-webkit-scrollbar { display: none; }
.stage-rail li { flex: 1 0 auto; }
.stage-rail a {
    display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: center;
    padding: 6px 12px 6px 6px; border-radius: 999px; text-decoration: none;
    color: var(--text-muted); border: 1px solid transparent;
}
.stage-rail a:hover { background: var(--bg-card); color: var(--text); }
.rail-n { width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 600; font-size: 0.9rem;
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text-soft);
}
.rail-name { font-weight: 600; font-size: 0.88rem; line-height: 1.15; white-space: nowrap; color: var(--text-soft); }
.rail-time { font-size: 0.74rem; line-height: 1.15; white-space: nowrap; }
.stage-rail a[aria-current] { background: var(--bg-card); border-color: var(--border); box-shadow: var(--shadow-sm); }
.stage-rail a[aria-current] .rail-n { background: var(--sage); border-color: var(--sage); color: var(--bg-card); }
.stage-rail a[aria-current] .rail-name { color: var(--text); }

/* ─── Page hero ────────────────────────────────── */
.page-hero {
    position: relative;
    background: linear-gradient(160deg, var(--accent-soft) 0%, var(--bg-soft) 70%);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.page-hero-inner { max-width: 860px; margin: 0 auto; padding: 64px 24px 56px; position: relative; }
.page-hero h1 { font-size: clamp(2.3rem, 5.6vw, 3.6rem); letter-spacing: -0.01em; margin-bottom: 16px; }

.kicker {
    font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
    font-weight: 600; color: var(--accent-dark); margin-bottom: 12px;
}

.hero-lede { font-size: 1.22rem; line-height: 1.6; color: var(--text-soft); max-width: 640px; }

.hero-quote { margin-top: 26px; padding-left: 18px; border-left: 3px solid var(--accent); max-width: 620px; }
.hero-quote p { font-family: var(--display); font-style: italic; font-size: 1.3rem; line-height: 1.45; color: var(--text); }
.hero-quote cite { display: block; margin-top: 6px; font-style: normal; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }

.page-hero.has-image { background: var(--ink); border-bottom: 0; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.page-hero.has-image::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20, 16, 12, 0.25) 0%, rgba(20, 16, 12, 0.72) 100%);
}
.page-hero.has-image .page-hero-inner { z-index: 1; padding-top: 110px; }
.page-hero.has-image h1, .page-hero.has-image .hero-quote p { color: #fff; }
.page-hero.has-image .hero-lede { color: rgba(255, 255, 255, 0.92); }
.page-hero.has-image .kicker { color: #ffd9c4; }
.page-hero.has-image .hero-quote cite { color: rgba(255, 255, 255, 0.75); }

.section-summer .page-hero h1,
.section-summer .content-block h2 {
    font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.01em;
}
.section-summer .page-hero h1 { font-size: clamp(2rem, 5.4vw, 3.3rem); line-height: 1.05; }
.section-summer .content-block h2 { font-size: 1.45rem; letter-spacing: 0.03em; }

/* ─── Prose ────────────────────────────────────── */
.content-block { max-width: var(--measure); margin: 52px auto; padding: 0 24px; }
.content-block.wide { max-width: var(--wide); }
.content-block h2 { font-size: clamp(1.7rem, 3.4vw, 2.15rem); margin-bottom: 14px; }
.content-block h3 { font-size: 1.35rem; margin: 28px 0 8px; color: var(--terracotta-dark); }
.content-block p { margin-bottom: 16px; }
.content-block p:last-child { margin-bottom: 0; }
.content-block .lede { font-size: 1.2rem; line-height: 1.65; color: var(--text); }

.content-block ul, .content-block ol.plain { list-style: none; margin: 14px 0 18px; }
.content-block ul li, .content-block ol.plain li { position: relative; padding: 5px 0 5px 26px; }
.content-block ul li::before {
    content: ''; position: absolute; left: 5px; top: 0.92em;
    width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.content-block ol.plain { counter-reset: n; }
.content-block ol.plain li { counter-increment: n; padding-left: 34px; }
.content-block ol.plain li::before {
    content: counter(n); position: absolute; left: 0; top: 7px;
    width: 23px; height: 23px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark);
    font-size: 0.8rem; font-weight: 600; display: grid; place-items: center;
}

.wide-image { max-width: var(--wide); margin: 48px auto; padding: 0 24px; }
.wide-image img { width: 100%; height: clamp(220px, 34vw, 400px); object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.wide-image figcaption { font-size: 0.88rem; color: var(--text-muted); margin-top: 10px; text-align: center; }

/* Evidence note / callouts */
.evidence, .callout {
    margin: 26px 0; padding: 20px 22px; border-radius: var(--radius-sm);
    background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--sage);
    font-size: 0.98rem;
}
.evidence > p:first-child::before, .callout-label {
    display: block; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
    font-weight: 600; color: var(--sage-dark); margin-bottom: 6px;
}
.evidence > p:first-child::before { content: 'What the research says'; }
.evidence p, .callout p { margin-bottom: 10px; }
.evidence p:last-child, .callout p:last-child { margin-bottom: 0; }
.evidence .src { font-size: 0.86rem; color: var(--text-muted); }

.callout.warn { border-left-color: var(--terracotta); background: var(--terracotta-soft); border-color: transparent; border-left: 4px solid var(--terracotta); }
.callout.warn .callout-label { color: var(--terracotta-dark); }
.callout.warn, .callout.warn strong { color: var(--text); }

.private-note { font-size: 0.88rem; color: var(--text-muted); display: flex; gap: 8px; align-items: baseline; }
.private-note::before { content: '🔒'; font-size: 0.8rem; }

/* ─── Cards ────────────────────────────────────── */
.topic-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px;
    max-width: var(--wide); margin: 28px auto; padding: 0;
}
.content-block:not(.wide) .topic-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.topic-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px 22px; box-shadow: var(--shadow-sm); overflow: hidden;
    display: flex; flex-direction: column; gap: 8px;
}
.topic-card .icon { font-size: 1.6rem; line-height: 1; }
.topic-card h3 { font-size: 1.3rem; margin: 0; color: var(--text); }
.topic-card p { font-size: 0.97rem; line-height: 1.65; margin: 0; }
.topic-card img { width: calc(100% + 44px); max-width: none; height: 190px; object-fit: cover; margin: -24px -22px 8px; }
.topic-card .meta { font-size: 0.82rem; color: var(--text-muted); letter-spacing: 0.02em; }
.topic-card .card-link { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.topic-card .card-link::after { content: ' →'; }
a.topic-card { text-decoration: none; color: inherit; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
a.topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); color: inherit; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag {
    font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark);
}

.action-card {
    max-width: var(--measure); margin: 56px auto; padding: 32px 30px;
    background: var(--ink); color: var(--on-ink); border-radius: var(--radius);
}
@media (min-width: 760px) { .action-card { margin-left: auto; margin-right: auto; width: calc(100% - 48px); } }
@media (max-width: 759px) { .action-card { margin-left: 16px; margin-right: 16px; } }
.action-card .label { font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: #f0a988; margin-bottom: 8px; }
.action-card h3 { font-size: 1.75rem; color: #fff; margin-bottom: 10px; }
.action-card p { color: rgba(250, 246, 238, 0.82); }
.action-card .btn { margin-top: 18px; }
.action-card a:not(.btn) { color: #f0c3ad; }

/* ─── The Path: step lists and stage blocks ────── */
.step-list { list-style: none; display: grid; gap: 10px; margin: 22px 0 0; counter-reset: step; }
.step-list li { padding: 0 !important; counter-increment: step; }
.step-list li::before { display: none; }

.step-card {
    display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: center;
    padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); text-decoration: none; color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.step-list.numbered .step-card { grid-template-columns: auto 1fr auto; }
.step-list.numbered .step-card::before {
    content: counter(step); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); font-weight: 600;
}
.step-card:hover { border-color: var(--accent); transform: translateX(3px); box-shadow: var(--shadow-sm); color: inherit; }
.step-card-title { font-family: var(--display); font-size: 1.3rem; font-weight: 600; color: var(--text); line-height: 1.2; }
.step-card-text { grid-column: 1; font-size: 0.93rem; line-height: 1.5; color: var(--text-muted); }
.step-list.numbered .step-card-text { grid-column: 2; }
.step-card-go { grid-row: 1 / span 2; grid-column: -2 / -1; font-size: 1.2rem; color: var(--accent-dark); }

.stage-block { max-width: 820px; margin: 0 auto; padding: 44px 24px; border-bottom: 1px solid var(--border); }
.stage-block:last-of-type { border-bottom: 0; }
.stage-block-head { display: flex; gap: 18px; align-items: flex-start; }
.stage-block-head h2 { font-size: 2rem; margin-bottom: 6px; }
.stage-block-head h2 a { color: inherit; text-decoration: none; }
.stage-block-head h2 a:hover { color: var(--sage-dark); text-decoration: underline; }
.stage-block-head .kicker { margin-bottom: 4px; }

.stage-num {
    flex: none; width: 46px; height: 46px; border-radius: 50%;
    background: var(--sage); color: var(--bg-card);
    font-family: var(--display); font-size: 1.5rem; font-weight: 600;
    display: grid; place-items: center; line-height: 1;
}

.stage-cards { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stage-cards a {
    height: 100%; display: flex; flex-direction: column; gap: 6px;
    padding: 20px 18px; border-radius: var(--radius); text-decoration: none;
    background: var(--bg-card); border: 1px solid var(--border); color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.stage-cards a:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--sage); }
.stage-cards .stage-num { width: 38px; height: 38px; font-size: 1.25rem; margin-bottom: 6px; }
.stage-card-time { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--terracotta-dark); }
.stage-card-title { font-family: var(--display); font-size: 1.32rem; font-weight: 600; line-height: 1.15; color: var(--text); }
.stage-card-text { font-size: 0.9rem; line-height: 1.5; color: var(--text-muted); }
@media (max-width: 1000px) { .stage-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stage-cards { grid-template-columns: 1fr; } }

/* ─── Pager ────────────────────────────────────── */
.pager {
    max-width: var(--wide); margin: 64px auto 72px; padding: 0 24px;
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 14px;
}
.pager a {
    display: flex; flex-direction: column; gap: 3px; padding: 20px 24px;
    border-radius: var(--radius); text-decoration: none; border: 1px solid var(--border);
    background: var(--bg-card); color: inherit; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pager a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: inherit; }
.pager-label { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--text-muted); }
.pager-title { font-family: var(--display); font-size: 1.45rem; font-weight: 600; color: var(--text); line-height: 1.2; }
.pager-why { font-size: 0.93rem; color: var(--text-muted); margin-top: 4px; }
.pager-next { background: var(--accent) !important; border-color: var(--accent) !important; text-align: right; align-items: flex-end; }
.pager-next .pager-label { color: color-mix(in srgb, var(--bg-card) 80%, transparent); }
.pager-next .pager-title { color: var(--bg-card); font-size: 1.7rem; }
.pager-next .pager-title::after { content: ' →'; }
.pager-next .pager-why { color: color-mix(in srgb, var(--bg-card) 86%, transparent); }
.pager-prev .pager-title::before { content: '← '; }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } .pager-next { order: -1; } }

/* ─── Buttons ──────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px; border: 1px solid var(--accent);
    background: var(--accent); color: var(--bg-card); font-weight: 600; font-size: 0.98rem;
    text-decoration: none; cursor: pointer; line-height: 1.2;
    transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--bg-card); transform: translateY(-1px); }
.btn-accent { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.btn-accent:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent-dark); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--accent-dark); border-color: var(--accent); }
.btn-light { background: #fff; border-color: #fff; color: #221d18; }
.btn-light:hover { background: #f3ecdf; border-color: #f3ecdf; color: #221d18; }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 0.88rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
@media (prefers-color-scheme: dark) { .btn-accent, .btn-accent:hover { color: #1a0f08; } }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ─── Tools ────────────────────────────────────── */
.tool {
    max-width: 760px; margin: 40px auto; padding: 30px 28px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
@media (max-width: 808px) { .tool { margin-left: 16px; margin-right: 16px; padding: 24px 18px; } }
.tool h2 { font-size: 1.7rem; margin-bottom: 8px; }
.tool h3 { font-size: 1.25rem; margin: 22px 0 8px; }
.tool > p { margin-bottom: 14px; }
.tool-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field .label { font-weight: 600; color: var(--text); font-size: 0.96rem; }
.field .hint { font-size: 0.86rem; color: var(--text-muted); }
.field input[type="text"], .field input[type="email"], .field input[type="date"], .field input[type="number"],
.field input[type="tel"], .field select, .field textarea {
    width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--bg); color: var(--text);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.options { display: grid; gap: 8px; }
.options.inline { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.option {
    display: block; width: 100%; text-align: left; padding: 13px 16px; cursor: pointer;
    border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg);
    color: var(--text); font-weight: 500; transition: border-color 0.12s ease, background 0.12s ease;
}
.option:hover { border-color: var(--accent); background: var(--bg-card); }
.option[aria-pressed="true"], .option.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }

.quiz-progress { height: 6px; border-radius: 999px; background: var(--bg-sand); overflow: hidden; margin-bottom: 20px; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width 0.25s ease; }
.quiz-q { font-family: var(--display); font-size: 1.55rem; font-weight: 600; color: var(--text); line-height: 1.25; margin-bottom: 16px; }
.quiz-count { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }

.result { padding: 22px; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--border); margin-top: 8px; }
.result h3 { margin-top: 0; }
.result + .result { margin-top: 12px; }
.result .match { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--terracotta-dark); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 18px 0; }
.stat { padding: 18px 14px; text-align: center; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--border); }
.stat-value { display: block; font-family: var(--display); font-size: 2.5rem; font-weight: 600; color: var(--text); line-height: 1; }
.stat-label { display: block; margin-top: 6px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.stat.big .stat-value { font-size: 4.2rem; color: var(--sage-dark); }

.milestones { list-style: none; display: grid; gap: 8px; margin: 14px 0 0; }
.milestones li { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 11px 14px !important; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg); }
.milestones li::before { display: none; }
.milestones .tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; font-size: 0.8rem; color: transparent; }
.milestones li.done { background: var(--sage-soft); border-color: transparent; }
.milestones li.done .tick { background: var(--sage); border-color: var(--sage); color: var(--bg-card); }
.milestones li.next { border-color: var(--terracotta); }
.milestones .m-what { font-size: 0.9rem; color: var(--text-muted); display: block; line-height: 1.4; }
.milestones .m-when { font-size: 0.82rem; color: var(--text-muted); white-space: nowrap; }

.timer { display: grid; place-items: center; margin: 12px 0 6px; }
.timer-ring { position: relative; width: 240px; height: 240px; }
.timer-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-ring circle { fill: none; stroke-width: 10; }
.timer-ring .track { stroke: var(--bg-sand); }
.timer-ring .bar { stroke: var(--sage); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.timer-face { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.timer-time { font-family: var(--display); font-size: 3.4rem; font-weight: 600; color: var(--text); line-height: 1; font-variant-numeric: tabular-nums; }
.timer-sub { font-size: 0.84rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-top: 6px; }
.breath { width: 86px; height: 86px; margin: 4px auto 0; border-radius: 50%; background: var(--sage-soft); border: 2px solid var(--sage); animation: breathe 10s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(0.72); } 40% { transform: scale(1.12); } 50% { transform: scale(1.12); } }
.prompt-card { text-align: center; padding: 18px; border-radius: var(--radius-sm); background: var(--bg-soft); min-height: 96px; display: grid; place-content: center; gap: 4px; }
.prompt-card strong { font-family: var(--display); font-size: 1.35rem; }

.day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; margin: 14px 0; }
.day {
    aspect-ratio: 1; border-radius: 9px; border: 1px solid var(--border); background: var(--bg);
    font-size: 0.85rem; font-weight: 600; color: var(--text-muted); cursor: pointer; display: grid; place-items: center;
}
.day:hover { border-color: var(--accent); }
.day.done { background: var(--accent); border-color: var(--accent); color: var(--bg-card); }
.day.today { outline: 2px solid var(--terracotta); outline-offset: 1px; }
.day[disabled] { opacity: 0.4; cursor: default; }

.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale .option { text-align: center; padding: 10px 4px; font-size: 0.9rem; }

.week-plan { list-style: none; display: grid; gap: 10px; margin: 16px 0; }
.week-plan li { padding: 0 !important; }
.week-plan li::before { display: none; }
.week-plan label {
    display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; cursor: pointer;
    padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-card);
}
.week-plan input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--terracotta); }
.week-plan .wk { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--accent-dark); display: block; }
.week-plan .wk-title { font-weight: 600; color: var(--text); display: block; }
.week-plan .wk-text { font-size: 0.94rem; color: var(--text-muted); display: block; line-height: 1.55; }
.week-plan li:has(input:checked) label { background: var(--accent-soft); border-color: transparent; }

.phase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.phase > div { padding: 22px 20px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); border-top: 5px solid var(--accent); }
.phase .wk { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--text-muted); }
.phase h3 { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.35rem; margin: 2px 0 8px; color: var(--accent-dark); }
.phase p { font-size: 0.96rem; margin: 0; }
@media (max-width: 760px) { .phase { grid-template-columns: 1fr; } }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.filter-bar .option { width: auto; padding: 8px 15px; border-radius: 999px; font-size: 0.9rem; text-decoration: none; }

.toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
    background: var(--ink); color: var(--on-ink); padding: 12px 20px; border-radius: 999px;
    font-size: 0.94rem; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease; z-index: 400; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ─── Home ─────────────────────────────────────── */
.home-hero { position: relative; background: #1b1713; overflow: hidden; }
.home-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.72; }
.home-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 16, 12, 0.15) 0%, rgba(20, 16, 12, 0.78) 100%); }
.home-hero-inner { position: relative; z-index: 1; max-width: var(--wide); margin: 0 auto; padding: clamp(110px, 20vw, 220px) 24px 64px; }
.home-hero .kicker { color: #ffd9c4; }
.home-hero h1 { color: #fff; font-size: clamp(2.7rem, 7.4vw, 5.2rem); line-height: 1.02; letter-spacing: -0.015em; max-width: 14ch; }
.home-hero h1 em { font-style: italic; font-weight: 500; }
.home-hero p.sub { color: rgba(255, 255, 255, 0.92); font-size: 1.25rem; max-width: 560px; margin-top: 18px; line-height: 1.55; }

.band { padding: 64px 24px; }
.band-soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band-ink { background: var(--ink); color: rgba(250, 246, 238, 0.84); }
.band-ink h2 { color: #fff; }
.band-ink .kicker { color: #f0a988; }
.band-inner { max-width: var(--wide); margin: 0 auto; }
.band-head { max-width: 640px; margin-bottom: 28px; }
.band-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 10px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 100%; max-height: 460px; object-fit: cover; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 26px; } }

.then-now { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.then-now figure { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.then-now img { width: 100%; height: clamp(220px, 30vw, 340px); object-fit: cover; }
.then-now figcaption { padding: 16px 20px 18px; font-size: 0.98rem; line-height: 1.55; }
.then-now .label { display: block; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--terracotta-dark); margin-bottom: 4px; }
@media (max-width: 640px) { .then-now { grid-template-columns: 1fr; } }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }

.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.photo-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }
@media (max-width: 640px) { .photo-strip { grid-template-columns: repeat(2, 1fr); } }

/* ─── Daily ────────────────────────────────────── */
.ai-loading { display: flex; flex-direction: column; align-items: center; padding: 36px; color: var(--text-muted); gap: 14px; }
.spinner { width: 30px; height: 30px; border: 2px solid var(--sage-soft); border-top-color: var(--sage-dark); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-error { color: var(--text-muted); font-style: italic; padding: 12px 0; }

.reflection-date-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.reflection-date-label { font-weight: 600; color: var(--text); text-align: center; }
.nav-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); cursor: pointer; font-size: 1rem; color: var(--sage-dark); flex: none; }
.nav-btn:hover:not(:disabled) { border-color: var(--sage); background: var(--sage-soft); }
.nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.reflection-theme { font-family: var(--display); font-size: 1.9rem; font-weight: 600; color: var(--text); margin-bottom: 16px; line-height: 1.2; }
.reflection-quote { background: var(--bg-soft); border-left: 3px solid var(--sage); padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 22px; }
.reflection-quote p { font-family: var(--display); font-size: 1.3rem; font-style: italic; color: var(--text); margin-bottom: 6px; line-height: 1.4; }
.reflection-quote cite { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); font-style: normal; }
.reflection-reading p { margin-bottom: 14px; }
.reflection-meditation { margin-top: 22px; padding: 18px 20px; background: var(--sage-soft); border-radius: var(--radius-sm); color: var(--text); }
.affirmations-wrap { display: grid; gap: 10px; }
.affirmation-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--bg-soft); }
.affirmation-number { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--sage); color: var(--sage-dark); display: grid; place-items: center; font-weight: 600; font-size: 0.9rem; }
.affirmation-card p { font-family: var(--display); font-size: 1.25rem; font-style: italic; color: var(--text); line-height: 1.4; margin: 0; }
.gratitude-card { text-align: center; padding: 8px 0; }
.prayer-text { font-family: var(--display); font-size: 1.4rem; font-style: italic; line-height: 1.6; color: var(--text); margin-bottom: 14px; }
.prayer-closing { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--terracotta-dark); }

/* ─── Help ─────────────────────────────────────── */
.help-list { display: grid; gap: 10px; margin: 14px 0 0; list-style: none; }
.help-list li { padding: 0 !important; }
.help-list li::before { display: none; }
.help-line {
    display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center;
    padding: 16px 18px; border-radius: var(--radius-sm); background: var(--bg-card); border: 1px solid var(--border);
}
.help-line strong { display: block; font-size: 1.05rem; }
.help-line span { font-size: 0.92rem; color: var(--text-muted); grid-column: 1; }
.help-line .btn-row { grid-column: 2; grid-row: 1 / span 2; margin: 0; justify-content: flex-end; }
.help-line.emergency { border-color: var(--terracotta); background: var(--terracotta-soft); }
@media (max-width: 560px) { .help-line { grid-template-columns: 1fr; } .help-line .btn-row { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: 8px; } }

.country-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* References */
.refs { list-style: none; counter-reset: ref; margin: 16px 0 0; }
.refs li { counter-increment: ref; position: relative; padding: 10px 0 10px 40px !important; border-bottom: 1px solid var(--border); font-size: 0.95rem; line-height: 1.55; }
.refs li::before { content: counter(ref) !important; position: absolute; left: 0 !important; top: 12px !important; width: 26px !important; height: 26px !important; border-radius: 50%; background: var(--sage-soft) !important; color: var(--sage-dark); font-size: 0.8rem; font-weight: 600; display: grid; place-items: center; }
.refs .plain-finding { display: block; color: var(--text); font-weight: 500; }

/* ─── Footer ───────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(250, 246, 238, 0.7); margin-top: 40px; }
.footer-help {
    max-width: var(--wide); margin: 0 auto; padding: 28px 24px;
    display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-help strong { color: #fff; }
.footer-cols { max-width: var(--wide); margin: 0 auto; padding: 40px 24px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer-cols h2 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(250, 246, 238, 0.55); margin-bottom: 12px; font-weight: 600; }
.footer-cols ul { list-style: none; display: grid; gap: 7px; }
.footer-cols a { color: rgba(250, 246, 238, 0.86); text-decoration: none; font-size: 0.96rem; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.footer-base { max-width: var(--wide); margin: 0 auto; padding: 20px 24px 36px; font-size: 0.86rem; }
.footer-disclaimer { margin-top: 8px; max-width: 760px; color: rgba(250, 246, 238, 0.5); font-size: 0.8rem; line-height: 1.55; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ─── Print (crew card, plans) ─────────────────── */
@media print {
    .site-header, .stage-rail, .site-footer, .pager, .no-print, .page-hero, .toast { display: none !important; }
    body { background: #fff; color: #000; font-size: 12pt; }
    .tool { box-shadow: none; border: 1px solid #999; margin: 0; max-width: none; }
    .print-only { display: block !important; }
}
.print-only { display: none; }
