﻿@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

:root {
    --ink: #0D1B2A;
    --ink-mid: #4A5568;
    --ink-soft: #8896A5;
    --cream: #F5F0E8;
    --cream-dark: #EDE5D8;
    --cream-deep: #E0D5C5;
    --amber: #E8A838;
    --amber-pale: #FBF0D8;
    --amber-dark: #C47F0A;
    --white: #FDFBF8;
    --r: 12px;
    --r-lg: 20px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

img, svg {
    display: block;
    max-width: 100%;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'DM Serif Display', Georgia, serif;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.display {
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 400;
}

.heading {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
}

.subheading {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 400;
}

.eyebrow {
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--amber-dark);
}

.body-lg {
    font-size: clamp(.95rem, 1.5vw, 1.1rem);
    color: var(--ink-mid);
    font-weight: 300;
    line-height: 1.8;
}

.body-sm {
    font-size: .875rem;
    color: var(--ink-soft);
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 clamp(1rem,5vw,3rem);
}

.container-sm {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 clamp(1rem,5vw,3rem);
}

.container-md {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 clamp(1rem,5vw,3rem);
}

/* NAV */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1rem,5vw,3rem);
    background: rgba(245,240,232,.93);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(13,27,42,.07);
}

.nav-logo {
    font-family: 'DM Serif Display',serif;
    font-size: 1.25rem;
    color: var(--ink);
    text-decoration: none;
}

    .nav-logo span {
        color: var(--amber-dark);
    }

.nav-links {
    display: flex;
    align-items: center;
    gap: .2rem;
}

.nav-link {
    font-size: .875rem;
    color: var(--ink-mid);
    padding: .45rem .85rem;
    border-radius: 100px;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: color .15s, background .15s;
    white-space: nowrap;
}

    .nav-link:hover {
        color: var(--ink);
        background: var(--cream-dark);
    }

.nav-support {
    font-size: .78rem;
    font-weight: 500;
    color: var(--amber-dark);
    padding: .4rem .95rem;
    border-radius: 100px;
    border: 1.5px solid var(--amber);
    background: var(--amber-pale);
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}

    .nav-support:hover {
        background: var(--amber);
        color: var(--ink);
    }

.nav-cta {
    font-size: .875rem;
    font-weight: 500;
    color: var(--white);
    padding: .45rem 1.1rem;
    border-radius: 100px;
    background: var(--ink);
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: opacity .15s;
}

    .nav-cta:hover {
        opacity: .82;
    }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: .5rem;
    background: none;
    border: none;
}

    .nav-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--ink);
        border-radius: 2px;
        transition: all .25s;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

.nav-mobile {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-deep);
    padding: 1rem clamp(1rem,5vw,3rem) 1.5rem;
    flex-direction: column;
    gap: .25rem;
}

    .nav-mobile.open {
        display: flex;
    }

    .nav-mobile .nav-link {
        padding: .75rem 1rem;
        font-size: .9375rem;
        border-radius: var(--r);
    }

    .nav-mobile .nav-support, .nav-mobile .nav-cta {
        margin-top: .5rem;
        text-align: center;
        padding: .75rem;
    }

.main {
    padding-top: 64px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    border-radius: 100px;
    font-size: .9375rem;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--ink);
    color: var(--white);
}

    .btn-primary:hover {
        opacity: .85;
        transform: translateY(-1px);
    }

.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--cream-deep);
}

    .btn-outline:hover {
        border-color: var(--ink-mid);
    }

.btn-amber {
    background: var(--amber);
    color: var(--ink);
}

    .btn-amber:hover {
        background: var(--amber-dark);
        color: var(--white);
    }

.btn-lg {
    padding: .9rem 2.2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: .45rem 1rem;
    font-size: .8125rem;
}

.btn-full {
    width: 100%;
}

/* CARDS */
.card {
    background: var(--white);
    border: 1px solid var(--cream-deep);
    border-radius: var(--r-lg);
    padding: 1.5rem;
}

/* TAGS */
.tag {
    display: inline-block;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: .22rem .65rem;
    border-radius: 100px;
}

.tag-amber {
    background: var(--amber-pale);
    color: var(--amber-dark);
}

.tag-ink {
    background: rgba(13,27,42,.07);
    color: var(--ink-mid);
}

/* FORM */
.field {
    margin-bottom: 1.1rem;
}

    .field label {
        display: block;
        font-size: .72rem;
        font-weight: 600;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--ink-mid);
        margin-bottom: .4rem;
    }

    .field input, .field select, .field textarea {
        width: 100%;
        padding: .72rem 1rem;
        border: 1.5px solid var(--cream-deep);
        border-radius: var(--r);
        font-size: .9375rem;
        font-family: inherit;
        background: var(--cream);
        color: var(--ink);
        outline: none;
        transition: border-color .15s;
    }

        .field input:focus, .field select:focus, .field textarea:focus {
            border-color: var(--amber);
            background: var(--white);
        }

        .field input::placeholder, .field textarea::placeholder {
            color: var(--ink-soft);
        }

/* PROGRESS */
.progress-bar {
    height: 4px;
    background: var(--cream-deep);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--amber);
    border-radius: 100px;
    transition: width .5s ease;
}

/* SUPPORT BANNER */
.support-banner {
    background: var(--amber-pale);
    border-bottom: 1px solid rgba(232,168,56,.35);
    padding: .55rem clamp(1rem,5vw,3rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    text-align: center;
}

    .support-banner p {
        font-size: .8rem;
        color: var(--amber-dark);
        font-weight: 500;
    }

    .support-banner a {
        font-size: .775rem;
        font-weight: 600;
        color: var(--amber-dark);
        padding: .28rem .85rem;
        border-radius: 100px;
        border: 1.5px solid var(--amber-dark);
        text-decoration: none;
        transition: all .15s;
    }

        .support-banner a:hover {
            background: var(--amber-dark);
            color: var(--white);
        }

/* DIVIDER */
.divider {
    height: 1px;
    background: var(--cream-deep);
    margin: 2rem 0;
}

/* TOAST */
.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(1rem);
    background: var(--ink);
    color: var(--white);
    padding: .7rem 1.5rem;
    border-radius: 100px;
    font-size: .875rem;
    opacity: 0;
    pointer-events: none;
    transition: all .3s;
    z-index: 999;
    white-space: nowrap;
}

    .toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

/* FOOTER */
footer {
    background: var(--ink);
    padding: 4rem 0 2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: auto;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 3rem);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-desc {
    font-size: .9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    max-width: 300px;
    margin-top: 1rem;
}

.footer-col h4 {
    color: #fff;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-bottom: 1rem;
    font-size: .9rem;
    transition: color .2s;
}

    .footer-col a:hover {
        color: #fff;
    }

.footer-bottom {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2rem clamp(1rem, 5vw, 3rem) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    font-size: .8rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-disclaimer {
    max-width: 500px;
    text-align: right;
    line-height: 1.6;
}

@media(max-width: 850px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

        .footer-inner > div:first-child {
            grid-column: 1 / -1;
            margin-bottom: 1rem;
        }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-disclaimer {
        text-align: center;
    }
}

@media(max-width: 480px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ANIMATIONS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(1.2rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp .5s ease both;
}

.fade-up-2 {
    animation: fadeUp .5s .1s ease both;
}

.fade-up-3 {
    animation: fadeUp .5s .2s ease both;
}

.fade-up-4 {
    animation: fadeUp .5s .3s ease both;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

/* ── FLASH MESSAGES ──────────────────────────────────────── */
.flash {
    padding: .85rem 1.25rem;
    border-radius: var(--r);
    font-size: .875rem;
    font-weight: 500;
    margin: 1rem clamp(1rem,5vw,3rem);
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.flash-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.flash-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* ── VALIDATION ──────────────────────────────────────────── */
.validation-summary {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
    border-radius: var(--r);
    padding: .75rem 1rem;
    font-size: .8125rem;
    margin-bottom: 1.1rem;
    display: block;
}

    .validation-summary ul {
        padding-left: 1.2rem;
        margin: 0;
    }

    .validation-summary:empty {
        display: none;
    }

.field-error {
    font-size: .75rem;
    color: #DC2626;
    display: block;
    margin-top: .3rem;
}

.field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: .4rem;
}

    .field-label-row label {
        margin-bottom: 0;
    }

.field-link {
    font-size: .72rem;
    color: var(--amber-dark);
    text-decoration: none;
}

    .field-link:hover {
        text-decoration: underline;
    }

.field-label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-mid);
    margin-bottom: .4rem;
}

.field-input {
    width: 100%;
    padding: .72rem 1rem;
    border: 1.5px solid var(--cream-deep);
    border-radius: var(--r);
    font-size: .9375rem;
    font-family: inherit;
    background: var(--cream);
    color: var(--ink);
    outline: none;
    transition: border-color .15s;
}

    .field-input:focus {
        border-color: var(--amber);
        background: var(--white);
    }

    .field-input::placeholder {
        color: var(--ink-soft);
    }

/* ── AUTH PAGES ──────────────────────────────────────────── */
.auth-wrap {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem clamp(1rem,5vw,3rem) 4rem;
}

.auth-card {
    background: var(--white);
    border: 1px solid var(--cream-deep);
    border-radius: var(--r-lg);
    padding: clamp(2rem,5vw,3rem);
    width: 100%;
    max-width: 440px;
}

.auth-card-wide {
    max-width: 580px;
}

.auth-brand {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.5rem,3vw,2rem);
    color: var(--ink);
    margin-bottom: .4rem;
    text-align: center;
}

.auth-sub {
    font-size: .875rem;
    color: var(--ink-mid);
    font-weight: 300;
    text-align: center;
    margin-bottom: 1.75rem;
    line-height: 1.65;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

    .auth-form .btn {
        margin-top: .5rem;
    }

.auth-switch {
    text-align: center;
    font-size: .8125rem;
    color: var(--ink-soft);
    margin-top: 1.25rem;
}

    .auth-switch a {
        color: var(--amber-dark);
        text-decoration: none;
        font-weight: 500;
    }

        .auth-switch a:hover {
            text-decoration: underline;
        }

.auth-disclaimer {
    font-size: .72rem;
    color: var(--ink-soft);
    text-align: center;
    margin-top: 1.25rem;
    line-height: 1.65;
    font-weight: 300;
}

/* ── ASSESSMENT ──────────────────────────────────────────── */
.assess-hd {
    margin-bottom: 1.75rem;
}

.assess-q {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 1.1rem;
}

.assess-step {
    display: none;
}

    .assess-step.active {
        display: block;
    }

.assess-options {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-bottom: 1.25rem;
}

.assess-options-col {
    flex-direction: column;
}

.assess-opt {
    cursor: pointer;
}

    .assess-opt input {
        display: none;
    }

.assess-opt-inner {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .875rem 1.1rem;
    border: 1.5px solid var(--cream-deep);
    border-radius: var(--r);
    background: var(--cream);
    transition: all .15s;
    font-size: .9375rem;
    color: var(--ink-mid);
}

.assess-opt input:checked + .assess-opt-inner {
    border-color: var(--amber);
    background: var(--amber-pale);
    color: var(--ink);
}

.assess-opt:hover .assess-opt-inner {
    border-color: var(--ink-soft);
    background: var(--white);
}

.assess-glyph {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.assess-opt-label {
    font-size: .9375rem;
}

.assess-nav {
    display: flex;
    gap: .75rem;
    margin-top: 1rem;
}

    .assess-nav .btn {
        flex: 1;
    }

.assess-progress {
    height: 3px;
    background: var(--cream-deep);
    border-radius: 100px;
    overflow: hidden;
    margin-top: 2rem;
}

.assess-prog-fill {
    height: 100%;
    background: var(--amber);
    border-radius: 100px;
    transition: width .35s ease;
}

.mood-opt {
    cursor: pointer;
}

    .mood-opt input {
        display: none;
    }

.assess-mood-row {
    display: flex;
    gap: .6rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.mood-opt-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: .875rem .75rem;
    border: 1.5px solid var(--cream-deep);
    border-radius: var(--r);
    background: var(--cream);
    transition: all .15s;
    min-width: 72px;
    text-align: center;
}

.mood-opt input:checked + .mood-opt-inner {
    border-color: var(--amber);
    background: var(--amber-pale);
}

.mood-emoji {
    font-size: 1.5rem;
}

.mood-label {
    font-size: .65rem;
    font-weight: 500;
    color: var(--ink-mid);
    white-space: nowrap;
}

/* ── DASHBOARD ───────────────────────────────────────────── */
.dash-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem clamp(1.25rem,5vw,2rem) 6rem;
}

.dash-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dt-left h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.5rem,3vw,2rem);
    margin-bottom: .3rem;
}

.dt-left p {
    font-size: .875rem;
    color: var(--ink-mid);
    font-weight: 300;
}

.streak-pill {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--amber-pale);
    border: 1px solid rgba(200,98,26,.2);
    border-radius: 100px;
    padding: .5rem 1.1rem;
}

    .streak-pill .sp-num {
        font-family: 'DM Serif Display', serif;
        font-size: 1.3rem;
        color: var(--amber-dark);
        line-height: 1;
    }

    .streak-pill .sp-label {
        font-size: .65rem;
        font-weight: 600;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--amber-dark);
    }

.prog-overview {
    background: var(--white);
    border: 1px solid var(--cream-deep);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.po-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .85rem;
}

.po-label {
    font-size: .875rem;
    font-weight: 500;
    color: var(--ink);
}

.po-pct {
    font-size: .75rem;
    color: var(--ink-soft);
}

.prog-bar {
    height: 5px;
    background: var(--cream-deep);
    border-radius: 100px;
    overflow: hidden;
}

.prog-fill {
    height: 100%;
    background: var(--amber);
    border-radius: 100px;
    transition: width .5s ease;
}

.day-track {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.dt-day {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    font-size: .62rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dt-done {
    background: var(--ink);
    color: var(--white);
}

.dt-today {
    background: var(--amber);
    color: var(--ink);
}

.dt-next {
    background: var(--cream-deep);
    color: var(--ink-soft);
}

.support-nudge {
    background: var(--amber-pale);
    border: 1px solid rgba(200,98,26,.2);
    border-radius: var(--r-lg);
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.sn-text {
    flex: 1;
    font-size: .85rem;
    color: var(--ink-mid);
    min-width: 180px;
}

    .sn-text strong {
        color: var(--amber-dark);
    }

.btn-support {
    background: var(--amber);
    color: var(--ink);
    border: none;
}

    .btn-support:hover {
        background: var(--amber-dark);
        color: var(--white);
    }

/* Phase cards */
.phase-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.phase-card {
    background: var(--white);
    border: 1px solid var(--cream-deep);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: border-color .15s;
    cursor: pointer;
}

    .phase-card:not(.locked):hover {
        border-color: var(--ink-soft);
    }

    .phase-card.locked {
        opacity: .5;
        cursor: default;
    }

.pc-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
}

.pc-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pci-done {
    background: var(--cream-dark);
}

.pci-active {
    background: var(--amber-pale);
}

.pci-locked {
    background: var(--cream-dark);
    filter: grayscale(1);
}

.pc-info {
    flex: 1;
}

.pc-title {
    font-size: .9375rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: .15rem;
}

.pc-sub {
    font-size: .78rem;
    color: var(--ink-soft);
    font-weight: 300;
}

.pc-status {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.pc-chevron {
    font-size: .75rem;
    color: var(--ink-soft);
    transition: transform .2s;
    flex-shrink: 0;
}

.phase-card.open .pc-chevron {
    transform: rotate(180deg);
}

.module-list {
    display: none;
    border-top: 1px solid var(--cream-deep);
}

.phase-card.open .module-list {
    display: block;
}

.mod-cta {
    padding: 1rem 1.25rem;
}

/* ── DAY / MODULE PAGE ───────────────────────────────────── */
.day-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem clamp(1.25rem,5vw,2rem) 6rem;
}

.day-hd {
    margin-bottom: 1.75rem;
}

.back-link {
    font-size: .8125rem;
    color: var(--ink-soft);
    text-decoration: none;
    display: inline-block;
    margin-bottom: .75rem;
}

    .back-link:hover {
        color: var(--ink);
    }

.day-phase-tag {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--amber-dark);
    margin-bottom: .4rem;
}

.day-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.8rem,4vw,2.4rem);
}

.module-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mod-card {
    background: var(--white);
    border: 1px solid var(--cream-deep);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    transition: border-color .15s;
}

    .mod-card:hover {
        border-color: var(--amber);
    }

    .mod-card.mod-done {
        opacity: .7;
    }

.mod-card-hd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .75rem;
}

.mod-type-pill {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--amber-dark);
    background: var(--amber-pale);
    padding: .22rem .7rem;
    border-radius: 100px;
}

.mod-done-badge {
    font-size: .72rem;
    font-weight: 600;
    color: #059669;
    background: #D1FAE5;
    padding: .2rem .65rem;
    border-radius: 100px;
}

.mod-card-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    font-family: inherit;
    margin-bottom: .4rem;
}

.mod-card-meta {
    font-size: .78rem;
    color: var(--ink-soft);
    margin-bottom: 1.1rem;
}

.mod-card-cta {
    margin-top: auto;
}

/* ── MODULE CONTENT PAGE ─────────────────────────────────── */
.module-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem clamp(1.25rem,5vw,2rem) 6rem;
}

.module-hd {
    margin-bottom: 2rem;
}

.module-type-tag {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--amber-dark);
    margin-bottom: .5rem;
}

.module-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.6rem,3.5vw,2.2rem);
    line-height: 1.2;
}

.module-content {
    font-size: .9375rem;
    color: var(--ink-mid);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 2rem;
}

    .module-content p {
        margin-bottom: 1.1rem;
    }

    .module-content h3 {
        font-family: 'DM Serif Display', serif;
        font-size: 1.15rem;
        color: var(--ink);
        margin: 1.75rem 0 .75rem;
    }

    .module-content strong {
        font-weight: 500;
        color: var(--ink);
    }

    .module-content em {
        font-style: italic;
    }

.module-exercise {
    background: var(--cream);
    border: 1px solid var(--cream-deep);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    font-size: .9375rem;
    color: var(--ink-mid);
    line-height: 1.8;
    font-weight: 300;
}

    .module-exercise p {
        margin-bottom: 1rem;
    }

    .module-exercise h3 {
        font-family: 'DM Serif Display', serif;
        font-size: 1.1rem;
        color: var(--ink);
        margin: 1.25rem 0 .6rem;
    }

    .module-exercise strong {
        font-weight: 500;
        color: var(--ink);
    }

.module-complete-bar {
    margin-top: 2rem;
}

.module-done-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.done-badge {
    font-size: .8125rem;
    font-weight: 600;
    color: #059669;
    background: #D1FAE5;
    padding: .4rem 1rem;
    border-radius: 100px;
}

/* ── CHECK-IN ────────────────────────────────────────────── */
.checkin-form {
    background: var(--white);
    border: 1px solid var(--cream-deep);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    margin-top: 2rem;
}

.checkin-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: 1.25rem;
}

.checkin-field {
    margin-bottom: 1.25rem;
}

.rating-row {
    display: flex;
    gap: .5rem;
    margin-top: .5rem;
}

.rating-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--r);
    border: 1.5px solid var(--cream-deep);
    background: var(--cream);
    font-size: .875rem;
    font-weight: 600;
    color: var(--ink-mid);
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}

    .rating-btn:hover {
        border-color: var(--amber);
        background: var(--amber-pale);
    }

    .rating-btn.active {
        border-color: var(--amber-dark);
        background: var(--amber);
        color: var(--ink);
    }

/* ── PROGRESS PAGE ───────────────────────────────────────── */
.prog-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(2rem,5vw,3.5rem) clamp(1rem,5vw,3rem) 6rem;
}

.page-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.8rem,4vw,2.5rem);
    margin-bottom: .35rem;
}

.page-sub {
    font-size: .9rem;
    color: var(--ink-mid);
    font-weight: 300;
    margin-bottom: 2rem;
}

.big-stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: .875rem;
    margin-bottom: 1.25rem;
}

.bs-card {
    background: var(--white);
    border: 1px solid var(--cream-deep);
    border-radius: var(--r-lg);
    padding: 1.25rem;
    text-align: center;
}

.bs-num {
    font-family: 'DM Serif Display', serif;
    font-size: 2.8rem;
    color: var(--ink);
    line-height: 1;
}

    .bs-num.amber {
        color: var(--amber-dark);
    }

.bs-lbl {
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-soft);
    margin-top: .35rem;
}

.milestone-card {
    background: var(--ink);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.mc-eyebrow {
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    margin-bottom: .5rem;
}

.mc-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: .35rem;
}

.mc-desc {
    font-size: .8125rem;
    color: rgba(255,255,255,.45);
    font-weight: 300;
    margin-bottom: 1.25rem;
}

.mc-bar {
    display: flex;
    align-items: center;
    gap: .875rem;
}

.mc-track {
    flex: 1;
    height: 5px;
    background: rgba(255,255,255,.12);
    border-radius: 100px;
    overflow: hidden;
}

.mc-fill {
    height: 100%;
    background: var(--amber);
    border-radius: 100px;
}

.mc-pct {
    font-size: .875rem;
    font-weight: 500;
    color: var(--white);
}

.section-card {
    background: var(--white);
    border: 1px solid var(--cream-deep);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.section-card-danger {
    border-color: #FCA5A5;
}

.sc-title {
    font-size: .9375rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: .2rem;
}

.sc-sub {
    font-size: .78rem;
    color: var(--ink-soft);
    margin-bottom: 1.25rem;
}

.phase-bars {
    display: flex;
    flex-direction: column;
    gap: .875rem;
}

.phase-bar-item {
    display: flex;
    align-items: center;
    gap: .875rem;
}

.pb-label {
    font-size: .8125rem;
    font-weight: 500;
    color: var(--ink);
    min-width: 70px;
}

.pb-track {
    flex: 1;
    height: 7px;
    background: var(--cream-dark);
    border-radius: 100px;
    overflow: hidden;
}

.pb-fill {
    height: 100%;
    border-radius: 100px;
}

.pbf-done {
    background: var(--amber-dark);
}

.pbf-partial {
    background: var(--amber);
}

.pbf-lock {
    background: var(--cream-deep);
}

.pb-pct {
    font-size: .75rem;
    color: var(--ink-soft);
    min-width: 36px;
    text-align: right;
}

.insights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .875rem;
    margin-bottom: 1.25rem;
}

.insight {
    background: var(--white);
    border: 1px solid var(--cream-deep);
    border-radius: var(--r-lg);
    padding: 1.25rem;
}

.insight-icon {
    font-size: 1.4rem;
    margin-bottom: .6rem;
}

.insight h3 {
    font-size: .875rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: .35rem;
}

.insight p {
    font-size: .78rem;
    color: var(--ink-mid);
    line-height: 1.55;
    font-weight: 300;
}

/* ── PROFILE PAGE ────────────────────────────────────────── */
.profile-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem clamp(1.25rem,5vw,2rem) 6rem;
}

.pref-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pref-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .875rem 0;
    border-bottom: 1px solid var(--cream-deep);
    cursor: pointer;
}

    .pref-row:last-of-type {
        border-bottom: none;
    }

.pref-info {
    flex: 1;
}

.pref-label {
    font-size: .875rem;
    font-weight: 500;
    color: var(--ink);
}

.pref-sub {
    font-size: .78rem;
    color: var(--ink-soft);
    font-weight: 300;
    margin-top: .15rem;
}

.toggle {
    width: 44px;
    height: 24px;
    appearance: none;
    background: var(--cream-deep);
    border-radius: 100px;
    cursor: pointer;
    position: relative;
    transition: background .2s;
    flex-shrink: 0;
}

    .toggle::after {
        content: '';
        position: absolute;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: var(--white);
        top: 3px;
        left: 3px;
        transition: transform .2s;
        box-shadow: 0 1px 4px rgba(0,0,0,.15);
    }

    .toggle:checked {
        background: var(--amber-dark);
    }

        .toggle:checked::after {
            transform: translateX(20px);
        }

.btn-danger {
    background: #DC2626;
    color: var(--white);
    border: none;
}

    .btn-danger:hover {
        background: #B91C1C;
    }

.nav-logo-wrap {
    display: flex;
    align-items: center;
    gap: .55rem;
    text-decoration: none;
}

.nav-logo-img {
    height: 28px;
    width: auto;
}

.nav-logo-text {
    font-family: 'DM Serif Display',serif;
    font-size: 1.15rem;
    color: var(--ink);
}

    .nav-logo-text span {
        color: var(--amber-dark);
    }

.nav-mobile-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: .9375rem;
    color: var(--ink-mid);
    cursor: pointer;
    padding: .75rem 1rem;
    border-radius: var(--r);
    text-align: left;
    width: 100%;
}

    .nav-mobile-btn:hover {
        background: var(--cream-dark);
        color: var(--ink);
    }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 600px) {
    .big-stats {
        grid-template-columns: 1fr 1fr;
    }

        .big-stats .bs-card:last-child {
            grid-column: span 2;
        }

    .insights {
        grid-template-columns: 1fr;
    }

    .assess-mood-row {
        gap: .4rem;
    }

    .mood-opt-inner {
        min-width: 56px;
        padding: .75rem .5rem;
    }

    .mood-label {
        font-size: .58rem;
    }
}