/* ═══════════════════════════════════════════════════════════════
   AmberLetters — Design System
   ─────────────────────────────────────────────────────────────
   TABLE OF CONTENTS
   1. Design Tokens (CSS Variables) ← EDIT HERE TO RETHEME
   2. Reset & Base
   3. Typography
   4. Layout Utilities
   5. Navigation
   6. Buttons
   7. Forms
   8. Cards
   9. Flash Messages
  10. Chapter Progress
  11. Dashboard
  12. Footer
  13. Responsive
═══════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   Change these values to retheme the entire site instantly.
───────────────────────────────────────────────────────────── */
:root {
    /* Brand Colors */
    --amber-deep:    #F99912;   /* Primary CTA, active states */
    --amber-mid:     #e08910;   /* Hover states */
    --amber-light:   #fbd06e;   /* Highlights, borders */
    --amber-pale:    #FFF4E0;   /* Backgrounds, panels */
    --amber-glow:    #FFFFFF;   /* Page background */

    /* Greens */
    --green-deep:    #424F17;   /* Dark olive */
    --green-mid:     #64762C;   /* Medium olive */
    --green-pale:    #EFF3E6;   /* Light green bg */

    /* Ink (text) */
    --ink:           #181612;   /* Headings, heavy text */
    --ink-mid:       #2d2a26;   /* Body text */
    --ink-light:     #5c5750;   /* Secondary text, captions */
    --ink-faint:     #9a9590;   /* Placeholders, disabled */

    /* Neutrals */
    --cream:         #F8F7F5;   /* Card backgrounds */
    --white:         #ffffff;
    --border:        #C9C9C3;   /* Default borders */
    --border-light:  #E2E1DC;   /* Subtle dividers */

    /* Semantic */
    --success:       #424F17;
    --success-bg:    #EFF3E6;
    --error:         #b83232;
    --error-bg:      #fdf0f0;
    --info:          #1e5f8a;
    --info-bg:       #eef5fb;
    --warning:       #8a6200;
    --warning-bg:    #fffbea;

    /* Typography */
    --font-serif:    'Playfair Display', Georgia, serif;
    --font-sans:     'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:     'Courier New', Courier, monospace;

    /* Font sizes (fluid scale) */
    --text-xs:       0.75rem;    /* 12px */
    --text-sm:       0.875rem;   /* 14px */
    --text-base:     1rem;       /* 16px */
    --text-md:       1.125rem;   /* 18px */
    --text-lg:       1.25rem;    /* 20px */
    --text-xl:       1.5rem;     /* 24px */
    --text-2xl:      1.875rem;   /* 30px */
    --text-3xl:      2.25rem;    /* 36px */
    --text-4xl:      3rem;       /* 48px */
    --text-5xl:      3.75rem;    /* 60px */

    /* Spacing scale */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Layout */
    --max-width:      1200px;
    --max-width-text: 680px;
    --nav-height:     72px;

    /* Borders & Radius */
    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  12px;
    --radius-xl:  20px;
    --radius-pill: 9999px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(24, 22, 18, 0.08);
    --shadow-md:  0 4px 16px rgba(24, 22, 18, 0.10);
    --shadow-lg:  0 12px 40px rgba(24, 22, 18, 0.14);
    --shadow-amber: 0 4px 20px rgba(249, 153, 18, 0.32);

    /* Transitions */
    --transition: 200ms ease;
    --transition-slow: 350ms ease;
}


/* ─────────────────────────────────────────────────────────────
   2. RESET & BASE
───────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--ink-mid);
    background-color: var(--amber-glow);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg, video {
    display: block;
    max-width: 100%;
}

a {
    color: var(--amber-deep);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--amber-mid); }
a:focus-visible {
    outline: 2px solid var(--amber-deep);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

ul, ol { list-style: none; }

input, button, textarea, select {
    font: inherit;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: var(--space-6) 0;
}


/* ─────────────────────────────────────────────────────────────
   3. TYPOGRAPHY
───────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--ink);
    line-height: 1.2;
    font-weight: 600;
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl),  3vw, var(--text-3xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

.text-serif   { font-family: var(--font-serif); }
.text-small   { font-size: var(--text-sm); color: var(--ink-light); }
.text-muted   { color: var(--ink-faint); }
.text-amber   { color: var(--amber-deep); }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

.lead {
    font-size: var(--text-lg);
    line-height: 1.7;
    color: var(--ink-light);
}

.eyebrow {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber-deep);
}


/* ─────────────────────────────────────────────────────────────
   4. LAYOUT UTILITIES
───────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--space-6);
}

.container--narrow {
    max-width: var(--max-width-text);
    margin-inline: auto;
    padding-inline: var(--space-6);
}

.section {
    padding-block: var(--space-20);
}

.section--sm {
    padding-block: var(--space-8);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-4        { gap: var(--space-4); }
.gap-6        { gap: var(--space-6); }
.gap-8        { gap: var(--space-8); }

.mt-4  { margin-top: var(--space-4); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-8  { margin-bottom: var(--space-8); }


/* ─────────────────────────────────────────────────────────────
   5. NAVIGATION
───────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    height: var(--nav-height);
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--space-6);
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--ink) !important;
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 600;
    white-space: nowrap;
}

.logo-mark {
    color: var(--amber-deep);
    font-size: 1.1em;
}

.logo-text {
    letter-spacing: 0.02em;
}

.nav-logo__img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-logo__img--footer {
    height: 36px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin-left: auto;
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--ink-light);
    padding: var(--space-1) 0;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--ink);
    border-bottom-color: var(--amber-deep);
}

.nav-link--admin {
    color: var(--amber-deep);
    font-weight: 600;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-left: var(--space-4);
}

.nav-account {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--amber-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-weight: 600;
    font-size: var(--text-sm);
}

.nav-account__initial { pointer-events: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: transform var(--transition);
    border-radius: 2px;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

/* The hidden attribute must beat CSS display: flex */
.mobile-menu[hidden] { display: none !important; }

.mobile-menu a {
    font-size: var(--text-md);
    color: var(--ink-mid);
    padding: var(--space-3) 0;
}

.mobile-menu hr {
    margin: var(--space-2) 0;
}


/* ─────────────────────────────────────────────────────────────
   6. BUTTONS
───────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: var(--text-base);
    line-height: 1;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition), box-shadow var(--transition),
                transform var(--transition);
}

.btn:active { transform: translateY(1px); }

/* Primary — Amber */
.btn--amber {
    background: var(--amber-deep);
    color: white !important;
    border-color: var(--amber-deep);
}
.btn--amber:hover {
    background: var(--amber-mid);
    border-color: var(--amber-mid);
    box-shadow: var(--shadow-amber);
    color: white !important;
}

/* Ghost */
.btn--ghost {
    background: transparent;
    color: var(--ink-mid) !important;
    border-color: var(--border);
}
.btn--ghost:hover {
    background: var(--amber-pale);
    border-color: var(--amber-light);
    color: var(--ink) !important;
}

/* Outline amber */
.btn--outline {
    background: transparent;
    color: var(--amber-deep) !important;
    border-color: var(--amber-deep);
}
.btn--outline:hover {
    background: var(--amber-pale);
}

/* Danger */
.btn--danger {
    background: var(--error);
    color: white !important;
    border-color: var(--error);
}

/* Sizes */
.btn--sm {
    font-size: var(--text-sm);
    padding: 0.5rem 1rem;
}

.btn--lg {
    font-size: var(--text-md);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
}

.btn--full { width: 100%; }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}


/* ─────────────────────────────────────────────────────────────
   7. FORMS
───────────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--space-2);
}

.form-label .required {
    color: var(--error);
    margin-left: 2px;
}

.form-hint {
    font-size: var(--text-xs);
    color: var(--ink-faint);
    margin-top: var(--space-1);
}

.form-error {
    font-size: var(--text-xs);
    color: var(--error);
    margin-top: var(--space-1);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: var(--text-base);
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
}

.form-control::placeholder { color: var(--ink-faint); }

.form-control:focus {
    outline: none;
    border-color: var(--amber-deep);
    box-shadow: 0 0 0 3px rgba(184, 116, 26, 0.15);
}

.form-control:invalid:not(:placeholder-shown) {
    border-color: var(--error);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b5744' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--amber-deep);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 3px;
}


/* ─────────────────────────────────────────────────────────────
   8. CARDS
───────────────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
}

.card--amber {
    background: var(--amber-pale);
    border-color: var(--amber-light);
}

.card--hover {
    transition: box-shadow var(--transition), transform var(--transition);
    cursor: pointer;
}
.card--hover:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.card__title {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    color: var(--ink);
}

.card__body { color: var(--ink-mid); }

.card__footer {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ─────────────────────────────────────────────────────────────
   9. FLASH MESSAGES
───────────────────────────────────────────────────────────── */
.flash-container {
    position: fixed;
    top: calc(var(--nav-height) + var(--space-4));
    right: var(--space-6);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: 420px;
}

.flash {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-size: var(--text-sm);
    font-weight: 500;
    animation: flash-in 200ms ease;
}

@keyframes flash-in {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.flash--success { background: var(--success-bg); color: var(--success); border: 1px solid #b7dfcc; }
.flash--error   { background: var(--error-bg);   color: var(--error);   border: 1px solid #f0c0c0; }
.flash--info    { background: var(--info-bg);     color: var(--info);    border: 1px solid #b0d4ed; }

.flash__icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: 700;
    flex-shrink: 0;
    background: currentColor;
    color: white;
}

.flash--success .flash__icon { background: var(--success); }
.flash--error   .flash__icon { background: var(--error); }
.flash--info    .flash__icon { background: var(--info); }

.flash__message { flex: 1; }

.flash__close {
    background: none;
    border: none;
    cursor: pointer;
    color: currentColor;
    opacity: 0.6;
    font-size: var(--text-lg);
    line-height: 1;
    padding: 0;
    transition: opacity var(--transition);
}
.flash__close:hover { opacity: 1; }


/* ─────────────────────────────────────────────────────────────
   10. CHAPTER PROGRESS
───────────────────────────────────────────────────────────── */
.progress-ring {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: conic-gradient(var(--amber-deep) calc(var(--pct, 0) * 1%), var(--border) 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-ring::before {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: var(--white);
}

.progress-ring__label {
    position: relative;
    z-index: 1;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--ink);
}

.progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--amber-deep), var(--amber-mid));
    border-radius: var(--radius-pill);
    transition: width 600ms ease;
}

/* Chapter card on dashboard */
.chapter-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-6);
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    text-decoration: none !important;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.chapter-card:hover {
    border-color: var(--amber-light);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.chapter-card.is-complete {
    border-left: 4px solid var(--success);
}

.chapter-card.is-active {
    border-left: 4px solid var(--amber-deep);
}

.chapter-card__num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--amber-pale);
    color: var(--amber-deep);
    font-weight: 700;
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chapter-card__body { flex: 1; }

.chapter-card__name {
    font-family: var(--font-serif);
    font-size: var(--text-md);
    color: var(--ink);
    display: block;
}

.chapter-card__meta {
    font-size: var(--text-xs);
    color: var(--ink-faint);
    margin-top: var(--space-1);
}

.chapter-card__arrow {
    color: var(--ink-faint);
    font-size: var(--text-lg);
    transition: transform var(--transition), color var(--transition);
}

.chapter-card:hover .chapter-card__arrow {
    transform: translateX(4px);
    color: var(--amber-deep);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: 1.6;
}

.badge--amber   { background: var(--amber-pale);   color: var(--amber-deep); }
.badge--success { background: var(--success-bg);   color: var(--success); }
.badge--error   { background: var(--error-bg);     color: var(--error); }
.badge--neutral { background: var(--border-light); color: var(--ink-light); }


/* ─────────────────────────────────────────────────────────────
   11. DASHBOARD  →  full styles in section 15
───────────────────────────────────────────────────────────── */


/* ─────────────────────────────────────────────────────────────
   12. FOOTER
───────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--ink);
    color: rgba(255, 248, 238, 0.6);
    margin-top: auto;
}

.footer-wrap {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-16);
    max-width: var(--max-width);
    margin-inline: auto;
    padding: var(--space-16) var(--space-6) var(--space-12);
}

.site-footer .nav-logo { color: white !important; }
.site-footer .logo-mark { color: var(--amber-mid); }

.footer-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    color: rgba(255, 248, 238, 0.4);
    margin-top: var(--space-3);
    font-size: var(--text-sm);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.footer-col h4 {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,248,238,0.4);
    margin-bottom: var(--space-4);
}

.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }

.footer-col a {
    font-size: var(--text-sm);
    color: rgba(255, 248, 238, 0.6);
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--amber-light); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: var(--space-6);
    text-align: center;
    font-size: var(--text-xs);
    line-height: 1.8;
}

.footer-disclaimer {
    color: rgba(255,255,255,0.25);
    font-size: var(--text-xs);
    max-width: 600px;
    margin-inline: auto;
    margin-top: var(--space-2);
}


/* ─────────────────────────────────────────────────────────────
   13. LANDING PAGE
───────────────────────────────────────────────────────────── */

/* Hero — Split layout (Ancestry style) */
.hero {
    position: relative;
    min-height: 86vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--white);
    padding: var(--space-20) 0;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-16);
    align-items: center;
    width: 100%;
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero .eyebrow { color: var(--green-mid); }

.hero h1 {
    color: var(--ink);
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.08;
    margin: var(--space-4) 0 var(--space-6);
}

.hero h1 em {
    font-style: italic;
    color: var(--amber-deep);
}

.hero__lead {
    font-size: var(--text-lg);
    color: var(--ink-light);
    max-width: 480px;
    margin-bottom: var(--space-8);
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
}

.hero .btn--ghost {
    color: var(--ink-mid) !important;
    border-color: var(--border);
}
.hero .btn--ghost:hover {
    background: var(--cream);
    border-color: var(--amber-deep);
    color: var(--ink) !important;
}

.hero__note {
    margin-top: var(--space-5);
    font-size: var(--text-sm);
    color: var(--ink-faint);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: center;
}

.hero__note-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--ink-light);
    background: var(--cream);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    padding: 4px 12px;
}

.hero__note-pill svg { color: var(--green-mid); }

/* Hero right — document mockup */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hero__visual-bg {
    position: absolute;
    inset: -40px;
    background: radial-gradient(ellipse at 60% 50%, var(--amber-pale) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero__doc-mockup {
    position: relative;
    z-index: 1;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-light);
    width: 100%;
    max-width: 360px;
}

.hero__doc-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-light);
}

.hero__doc-icon {
    width: 38px;
    height: 38px;
    background: var(--amber-deep);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-family: var(--font-serif);
    font-weight: 700;
    flex-shrink: 0;
}

.hero__doc-name {
    font-family: var(--font-serif);
    font-size: var(--text-md);
    color: var(--ink);
    font-weight: 600;
    line-height: 1.2;
}

.hero__doc-sub {
    font-size: var(--text-xs);
    color: var(--ink-faint);
}

.hero__doc-chapters {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero__doc-ch {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 10px var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--ink-mid);
    background: var(--cream);
}

.hero__doc-ch--done {
    background: var(--green-pale);
    color: var(--green-deep);
}

.hero__doc-ch--active {
    background: var(--amber-pale);
    color: var(--ink);
    border-left: 3px solid var(--amber-deep);
}

.hero__doc-ch__dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    flex-shrink: 0;
}

.hero__doc-ch--done   .hero__doc-ch__dot { background: var(--green-mid);  color: white; }
.hero__doc-ch--active .hero__doc-ch__dot { background: var(--amber-deep); color: white; }
.hero__doc-ch--pending .hero__doc-ch__dot { background: var(--border); }

.hero__doc-footer {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-light);
}

.hero__doc-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-xs);
    color: var(--ink-faint);
    margin-bottom: var(--space-2);
}

/* Stats bar */
.stats-bar {
    background: var(--ink);
    padding: var(--space-6) 0;
}

.stats-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.stats-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-4) var(--space-10);
    border-right: 1px solid rgba(255,255,255,0.1);
}

.stats-list li:last-child { border-right: none; }

.stats-num {
    font-family: var(--font-serif);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--amber-deep);
    line-height: 1;
}

.stats-label {
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-top: var(--space-1);
}

/* Section header */
.section-header {
    max-width: 640px;
    margin-inline: auto;
    margin-bottom: var(--space-16);
}
.section-header h2 { margin: var(--space-3) 0 var(--space-4); }
.section-header .lead { color: var(--ink-light); }

/* Section backgrounds */
.section--gray   { background: var(--cream); }
.section--amber  { background: var(--amber-pale); }
.section--green  { background: var(--green-pale); }
.section--ink    { background: var(--ink); }

/* Steps */
.steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: var(--space-4);
    max-width: 900px;
    margin-inline: auto;
}

.step {
    text-align: center;
    padding: var(--space-8) var(--space-6);
}

.step__num {
    font-family: var(--font-serif);
    font-size: var(--text-5xl);
    color: var(--border);
    line-height: 1;
    margin-bottom: var(--space-4);
    display: block;
}

.step__icon {
    width: 56px;
    height: 56px;
    background: var(--amber-pale);
    border: 2px solid var(--amber-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-5);
    font-size: 1.4rem;
}

.step h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.step p   { color: var(--ink-light); font-size: var(--text-sm); }

.step__connector {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--border), var(--amber-light), var(--border));
    margin-top: 56px;
    flex-shrink: 0;
}

/* Chapters list */
.chapters-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-16);
    align-items: start;
}

.chapters-intro h2 { margin: var(--space-3) 0 var(--space-5); }
.chapters-intro p  { color: var(--ink-light); }

.chapters-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    counter-reset: chapters;
}

.chapter-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.chapter-item:hover {
    border-color: var(--amber-deep);
    box-shadow: var(--shadow-sm);
    transform: translateX(3px);
}

.chapter-item__num {
    font-family: var(--font-serif);
    font-size: var(--text-sm);
    color: var(--amber-deep);
    font-weight: 700;
    min-width: 28px;
}

.chapter-item__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chapter-item__body strong {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--ink);
}

.chapter-item__body span {
    font-size: var(--text-xs);
    color: var(--ink-faint);
}

/* Pull quote */
.section--quote {
    background: var(--ink);
    padding-block: var(--space-20);
    position: relative;
    overflow: hidden;
}

.pull-quote p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
    color: rgba(255,244,224,0.9);
    line-height: 1.4;
    margin: 0;
}

.pull-quote::before {
    content: '\201C';
    display: block;
    font-family: var(--font-serif);
    font-size: 5rem;
    color: var(--amber-deep);
    line-height: 0.6;
    margin-bottom: var(--space-4);
    opacity: 0.7;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    align-items: start;
    padding: var(--space-4) var(--space-2); /* room for featured card scale + badge */
    max-width: 960px;
    margin-inline: auto;
}

.pricing-card {
    position: relative;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    transition: box-shadow var(--transition), transform var(--transition);
    /* NOTE: no overflow:hidden here — badge uses position:absolute top:-14px */
}

/* Product photo at top of card — sits flush, no padding inherited */
.pricing-card__visual {
    margin: calc(-1 * var(--space-8)) calc(-1 * var(--space-8)) 0;
    overflow: hidden; /* clip the image only, not the whole card */
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: var(--cream);
}
.pricing-card__visual img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.pricing-card--featured {
    border-color: var(--amber-deep);
    border-width: 2px;
    box-shadow: var(--shadow-amber);
    transform: scale(1.03);
}

.pricing-card--featured:hover { transform: scale(1.03) translateY(-4px); }

.pricing-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--amber-deep);
    color: white;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 16px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.pricing-card__tier {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    color: var(--ink);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.pricing-card__price {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.pricing-card__amount {
    font-family: var(--font-serif);
    font-size: var(--text-4xl);
    color: var(--ink);
    font-weight: 700;
    line-height: 1;
}

.pricing-card__cadence {
    font-size: var(--text-sm);
    color: var(--ink-faint);
}

.pricing-card__desc {
    font-size: var(--text-sm);
    color: var(--ink-light);
    line-height: 1.6;
}

.pricing-card__features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.pricing-card__features li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--ink-mid);
}

.pricing-card__features li::before {
    content: '✓';
    color: var(--amber-deep);
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-note { color: var(--ink-faint); }

/* Gift */
.gift-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: var(--space-16);
    align-items: center;
}

.gift-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gift-visual__img {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    object-fit: cover;
}

/* Fallback lantern (shown if image not yet uploaded) */
.gift-lantern {
    width: 180px;
    height: 240px;
    background: linear-gradient(170deg, var(--amber-light), var(--amber-deep) 60%, #c07008);
    border-radius: 50% 50% 40% 40% / 30% 30% 20% 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 60px rgba(249,153,18,0.35), 0 0 120px rgba(249,153,18,0.15);
    animation: lantern-float 4s ease-in-out infinite;
}

.gift-lantern__flame {
    font-size: 2.5rem;
    color: rgba(255,240,180,0.9);
    animation: flame-flicker 2s ease-in-out infinite;
}

/* Pull quote overlay (for when quote-bg.jpg is present) */
.section--quote__overlay {
    position: absolute;
    inset: 0;
    background: rgba(24, 22, 18, 0.72);
}

@keyframes lantern-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%       { transform: translateY(-12px) rotate(2deg); }
}

@keyframes flame-flicker {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50%       { opacity: 1; transform: scale(1.08); }
}

.gift-body h2 { margin: var(--space-3) 0 var(--space-5); }
.gift-body p  { color: var(--ink-light); }

/* Why cards */
.why-card {
    padding: var(--space-8);
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.why-card:hover {
    border-color: var(--amber-deep);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.why-card__icon {
    width: 48px;
    height: 48px;
    background: var(--amber-pale);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: var(--space-5);
}

.why-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
}

.why-card p { font-size: var(--text-sm); color: var(--ink-light); margin: 0; }

/* Final CTA */
.section--cta {
    background: var(--green-deep);
    padding-block: var(--space-24);
}

.section--cta .eyebrow { color: var(--amber-light); }

.cta-mark {
    display: block;
    font-size: 2rem;
    margin-bottom: var(--space-6);
    animation: flame-flicker 3s ease-in-out infinite;
}

.section--cta h2 {
    color: var(--white);
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    margin-bottom: var(--space-4);
}

.section--cta .lead { color: rgba(255,255,255,0.6); }

.section--cta .btn--ghost {
    color: rgba(255,255,255,0.8) !important;
    border-color: rgba(255,255,255,0.25);
}
.section--cta .btn--ghost:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white) !important;
    border-color: rgba(255,255,255,0.4);
}

/* ─────────────────────────────────────────────────────────────
   14. AUTH PAGES (signup, login)
───────────────────────────────────────────────────────────── */
.page-auth body,
.page-auth .site-footer { display: none; }

.auth-wrap {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-12) var(--space-4);
    background: var(--cream);
}

.auth-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-10) var(--space-10);
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-md);
}

.auth-brand {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-8);
}

.auth-title {
    font-family: var(--font-serif);
    font-size: var(--text-3xl);
    color: var(--ink);
    text-align: center;
    margin-bottom: var(--space-2);
}

.auth-sub {
    text-align: center;
    color: var(--ink-light);
    margin-bottom: var(--space-8);
    font-size: var(--text-sm);
}

.auth-errors {
    background: var(--error-bg);
    border: 1px solid #f0c0c0;
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-6);
}

.auth-errors p {
    color: var(--error);
    font-size: var(--text-sm);
    margin: 0;
}

.auth-errors p + p { margin-top: var(--space-2); }

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--space-2);
}

.form-label-row .form-label { margin-bottom: 0; }

.form-label-link {
    font-size: var(--text-xs);
    color: var(--amber-deep);
    font-weight: 500;
}

.auth-switch {
    text-align: center;
    margin-top: var(--space-6);
    font-size: var(--text-sm);
    color: var(--ink-light);
}

.auth-legal {
    text-align: center;
    margin-top: var(--space-4);
    font-size: var(--text-xs);
    color: var(--ink-faint);
    line-height: 1.6;
}

.auth-legal a { color: var(--ink-faint); text-decoration: underline; }

.auth-gift-notice {
    text-align: center;
    margin-top: var(--space-5);
    font-size: var(--text-sm);
    color: var(--green-deep);
    background: var(--green-pale);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
}

/* ─────────────────────────────────────────────────────────────
   14b. CHAPTER PAGES
───────────────────────────────────────────────────────────── */
.chapter-header {
    background: var(--ink);
    padding: var(--space-6) 0 var(--space-5);
    color: white;
}

.chapter-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.chapter-back {
    font-size: var(--text-sm);
    color: rgba(255,244,224,0.45);
    display: inline-block;
    margin-bottom: var(--space-3);
    transition: color var(--transition);
}
.chapter-back:hover { color: var(--amber-deep); }

.chapter-header__eyebrow {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber-deep);
    margin-bottom: var(--space-2);
}

.chapter-header__title {
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    color: var(--white);
    margin: 0 0 var(--space-3);
}

.chapter-header__intro {
    color: rgba(255,244,224,0.55);
    font-size: var(--text-md);
    max-width: 560px;
    margin: 0;
    line-height: 1.6;
}

/* Chapter nav pills */
.chapter-nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    flex-shrink: 0;
}

.chapter-pill {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,244,224,0.5) !important;
    font-size: var(--text-xs);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition);
    text-decoration: none !important;
    border: 1px solid rgba(255,255,255,0.1);
}

.chapter-pill:hover {
    background: rgba(249,153,18,0.2);
    color: var(--amber-deep) !important;
    border-color: var(--amber-deep);
}

.chapter-pill.is-current {
    background: var(--amber-deep);
    color: white !important;
    border-color: var(--amber-deep);
}

/* Chapter form layout */
.container--chapter {
    max-width: 760px;
    margin-inline: auto;
    padding-inline: var(--space-6);
}

.chapter-section {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--border-light);
}

.chapter-section:last-of-type {
    border-bottom: none;
}

.chapter-section--locked {
    opacity: 0.6;
}

.tier-gate {
    background: var(--amber-50, #fdf6ec);
    border: 1px dashed var(--amber-300, #e8c47a);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-5);
    margin-top: var(--space-3);
}

.tier-gate__msg {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--ink-light);
}

.tier-gate__msg a {
    color: var(--amber-600, #c17f24);
    font-weight: 600;
}

.chapter-section__heading {
    font-size: var(--text-xl);
    color: var(--ink);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--amber-pale);
}

.chapter-section__fields {
    display: grid;
    gap: 0;
}

.chapter-section__hint {
    font-size: var(--text-sm);
    color: var(--ink-light);
    margin: calc(var(--space-2) * -1) 0 var(--space-5);
    line-height: 1.6;
}

/* ── Repeatable groups ─────────────────────────────────────── */
.repeatable-group {
    margin-bottom: var(--space-6);
}

.repeatable-item {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5) var(--space-5) var(--space-4);
    margin-bottom: var(--space-4);
    background: #fdfcfa;
}

.repeatable-item__number {
    position: absolute;
    top: -12px;
    left: var(--space-4);
    background: var(--amber-deep);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-sans);
    letter-spacing: .06em;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.repeatable-item__fields {
    display: grid;
    gap: 0;
}

.repeatable-remove {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    margin-top: var(--space-3);
    padding: var(--space-1) var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: transparent;
    color: #b04040;
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background 150ms, color 150ms;
}
.repeatable-remove:hover {
    background: #fff0f0;
    border-color: #e08080;
}

.repeatable-add {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border: 2px dashed var(--amber-deep);
    border-radius: var(--radius);
    background: transparent;
    color: var(--amber-deep);
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    font-weight: 600;
    cursor: pointer;
    transition: background 150ms;
}
.repeatable-add:hover {
    background: var(--amber-pale);
}

/* Actions */
.chapter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
    padding: var(--space-8) 0 var(--space-6);
    border-top: 1px solid var(--border-light);
    margin-top: var(--space-6);
}

.chapter-actions__primary {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.chapter-footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6) 0 var(--space-10);
    border-top: 1px solid var(--border-light);
    margin-top: var(--space-4);
}

.chapter-footer-nav__home {
    font-size: var(--text-sm);
    color: var(--ink-faint);
    font-weight: 500;
}

.chapter-footer-nav__home:hover { color: var(--amber-deep); }

@media (max-width: 768px) {
    .chapter-header__inner { flex-direction: column; }
    .chapter-nav-pills { order: -1; }
    .chapter-pill { width: 28px; height: 28px; font-size: 10px; }
    .chapter-actions { flex-direction: column; align-items: stretch; }
    .chapter-actions__primary { flex-direction: column; }
    .chapter-footer-nav { flex-wrap: wrap; gap: var(--space-4); }
}

/* ─────────────────────────────────────────────────────────────
   15. DASHBOARD
───────────────────────────────────────────────────────────── */

/* Hero */
.dashboard-hero {
    background: linear-gradient(135deg, var(--ink) 0%, #2a2318 100%);
    color: white;
    padding: var(--space-12) 0;
}

.dashboard-hero h1 {
    color: var(--white);
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    margin: 0 0 var(--space-2);
}

.dashboard-hero__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.dashboard-hero__left { flex: 1; min-width: 0; }

.dashboard-hero__status {
    color: rgba(255,244,224,0.6);
    margin: 0 0 var(--space-4);
    font-size: var(--text-md);
}

.dashboard-hero__meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.dashboard-hero__session {
    font-size: var(--text-xs);
    color: rgba(255,244,224,0.35);
}

/* Progress ring (right side of hero) */
.dashboard-hero__right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-5) var(--space-6);
    flex-shrink: 0;
}

.dash-ring-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dash-ring-wrap svg { position: absolute; inset: 0; }

.dash-ring-pct {
    position: relative;
    z-index: 1;
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--amber-deep);
}

.dash-ring-label {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}
.dash-ring-label strong {
    font-size: var(--text-md);
    color: rgba(255,244,224,0.9);
    font-family: var(--font-serif);
}
.dash-ring-label span {
    font-size: var(--text-xs);
    color: rgba(255,244,224,0.4);
}

/* Tier badge */
.dash-tier-badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}
.dash-tier-badge--essential { background: rgba(255,255,255,0.12); color: rgba(255,244,224,0.8); }
.dash-tier-badge--complete  { background: rgba(249,153,18,0.25);  color: var(--amber-light); }
.dash-tier-badge--heirloom  { background: rgba(249,153,18,0.4);   color: var(--amber-deep); }

/* In sidebar (light bg), override colors */
.dash-card .dash-tier-badge--essential { background: var(--cream);       color: var(--ink-light); }
.dash-card .dash-tier-badge--complete  { background: var(--amber-pale);  color: #b87c0a; }
.dash-card .dash-tier-badge--heirloom  { background: var(--amber-light); color: var(--ink); }

/* Unlock banner */
.unlock-banner {
    background: var(--green-pale);
    border-bottom: 1px solid rgba(66,79,23,0.15);
    padding: var(--space-4) 0;
}
.unlock-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    flex-wrap: wrap;
    font-size: var(--text-sm);
    color: var(--green-deep);
}

/* Dashboard layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-8);
    align-items: start;
}

/* Chapter section header */
.dash-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}
.dashboard-section-title {
    font-size: var(--text-xl);
    color: var(--ink);
    margin: 0;
}
.dash-chapter-count {
    font-size: var(--text-sm);
    color: var(--ink-faint);
    font-family: var(--font-sans);
}

/* "Continue here" banner */
.dash-continue-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--amber-pale);
    border: 1px solid var(--amber-light);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-4);
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition);
}
.dash-continue-banner:hover {
    background: #fde9b8;
    border-color: var(--amber-deep);
}
.dash-continue-banner__label {
    font-size: var(--text-xs);
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-light);
    font-weight: 600;
}
.dash-continue-banner__name {
    font-family: var(--font-serif);
    font-size: var(--text-md);
    color: var(--ink);
    font-weight: 600;
}

/* Chapter cards */
.chapter-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.chapter-card__icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.chapter-card__progress {
    flex-shrink: 0;
    min-width: 36px;
    text-align: right;
}
.chapter-card__done {
    color: var(--success);
    font-size: var(--text-md);
    font-weight: 700;
}
.chapter-card__pct {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    color: var(--amber-deep);
    font-weight: 600;
}

.chapter-card.is-next {
    border-left: 4px solid var(--amber-deep);
    background: var(--amber-pale);
}

.chapter-lock {
    font-size: var(--text-xs);
    opacity: 0.6;
    margin-left: var(--space-2);
}

/* Sidebar */
.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

/* Dash cards (replace old .card) */
.dash-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
}

.dash-card--generate {
    border-color: var(--amber-deep);
    background: linear-gradient(135deg, var(--white) 0%, var(--amber-pale) 100%);
}
.dash-card--locked {
    background: var(--cream);
}

.dash-card__head {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}
.dash-card__icon { font-size: 18px; }
.dash-card__title {
    font-family: var(--font-serif);
    font-size: var(--text-md);
    color: var(--ink);
    margin: 0;
}
.dash-card__desc {
    font-size: var(--text-sm);
    color: var(--ink-light);
    margin: 0 0 var(--space-4);
    line-height: 1.6;
}

/* PDF style preview rows (paid) */
.dash-pdf-styles {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.dash-pdf-style {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-size: var(--text-sm);
}
.dash-pdf-style strong { color: var(--ink); }
.dash-pdf-style span   { color: var(--ink-faint); font-size: var(--text-xs); }

/* Plan card */
.dash-plan-tier { margin-bottom: var(--space-4); }

.dash-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--ink-mid);
}

.dash-upgrade-prompt {
    background: var(--cream);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: var(--space-4);
    font-size: var(--text-sm);
    color: var(--ink-light);
    line-height: 1.6;
}
.dash-upgrade-prompt p { margin: 0; }
.dash-upgrade-prompt strong { color: var(--ink); }

.dash-plan-complete {
    font-size: var(--text-sm);
    color: var(--green-mid);
    font-style: italic;
    margin: 0;
    text-align: center;
    padding: var(--space-3) 0 0;
}

/* Progress card */
.dash-progress-bar-wrap {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
.dash-progress-bar-wrap .progress-bar { flex: 1; }
.dash-progress-pct {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--ink-light);
    flex-shrink: 0;
}

.progress-summary {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.progress-summary__row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--ink-mid);
}
.progress-summary__row strong { margin-left: auto; color: var(--ink); }
.progress-summary__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.progress-summary__dot--done    { background: var(--green-mid); }
.progress-summary__dot--active  { background: var(--amber-deep); }
.progress-summary__dot--pending { background: var(--border); }

.dash-audit-note {
    font-size: 11px;
    color: var(--ink-faint);
    margin: var(--space-4) 0 0;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-light);
    line-height: 1.6;
}

/* Doc preview (unpaid teaser) */
.doc-preview-wrap { margin-bottom: var(--space-4); }

.doc-preview {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-4);
    overflow: hidden;
    filter: blur(1.5px);
    pointer-events: none;
    user-select: none;
}
.doc-preview__page { opacity: 0.7; }
.doc-preview__header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--amber-pale);
    margin-bottom: var(--space-4);
}
.doc-preview__logo {
    width: 28px; height: 28px;
    background: var(--amber-deep);
    border-radius: 50%;
    flex-shrink: 0;
}
.doc-preview__title {
    font-family: var(--font-serif);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--ink);
}
.doc-preview__sub { font-size: 10px; color: var(--ink-light); }
.doc-preview__lines { display: flex; flex-direction: column; gap: var(--space-2); }
.doc-preview__line {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    width: 85%;
}
.doc-preview__line--wide  { width: 95%; }
.doc-preview__line--med   { width: 65%; }
.doc-preview__line--short { width: 45%; }
.doc-preview__watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .2em;
    color: rgba(249,153,18,0.35);
    transform: rotate(-20deg);
    pointer-events: none;
}

/* Responsive */
@media (max-width: 960px) {
    .dashboard-layout          { grid-template-columns: 1fr; }
    .dashboard-sidebar         { order: -1; flex-direction: row; flex-wrap: wrap; }
    .dash-card                 { flex: 1; min-width: 260px; }
    .dashboard-hero__inner     { flex-direction: column; align-items: flex-start; }
    .dashboard-hero__right     { width: 100%; }
}
@media (max-width: 600px) {
    .dashboard-sidebar         { flex-direction: column; }
    .dash-card                 { min-width: unset; }
    .dashboard-hero__right     { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
}

/* ─────────────────────────────────────────────────────────────
   16. RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero__inner       { grid-template-columns: 1fr; }
    .hero__visual      { display: none; }
    .pricing-grid      { grid-template-columns: 1fr; max-width: 420px; }
    .pricing-card--featured { transform: none; }
    .pricing-card--featured:hover { transform: translateY(-4px); }
    .steps             { grid-template-columns: 1fr; }
    .step__connector   { display: none; }
    .chapters-layout   { grid-template-columns: 1fr; }
    .gift-layout       { grid-template-columns: 1fr; }
    .gift-visual       { display: none; }
    .stats-list li     { padding: var(--space-4) var(--space-6); }
}

@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-wrap { grid-template-columns: 1fr; gap: var(--space-10); }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .container, .container--narrow { padding-inline: var(--space-4); }
    .section { padding-block: var(--space-12); }
    .card { padding: var(--space-6); }
    .hero { min-height: auto; padding: var(--space-16) 0; }
    .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
    .hero__lead { font-size: var(--text-base); }
    .stats-list { gap: 0; }
    .stats-list li { padding: var(--space-4); border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); width: 50%; }
    .steps { gap: var(--space-6); }
    .step { padding: var(--space-6) var(--space-4); }
    .pricing-grid { margin-inline: 0; }
    .auth-card { padding: var(--space-8) var(--space-6); }
    .dashboard-hero { padding: var(--space-8) 0; }
    .unlock-banner__inner { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
    .chapter-card__meta { display: none; } /* hide hint text on mobile to keep cards compact */
}

@media (max-width: 480px) {
    .flash-container { right: var(--space-4); left: var(--space-4); max-width: 100%; }
    .footer-links { grid-template-columns: 1fr; }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { text-align: center; }
    .stats-list li { width: 100%; }
}

/* ─────────────────────────────────────────────────────────────
   16b. PAYMENT PAGE
───────────────────────────────────────────────────────────── */
.payment-wrap {
    padding-block: var(--space-16) var(--space-20);
}

.payment-header { margin-bottom: var(--space-12); }
.payment-header h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* Plan cards */
.payment-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.plan-card {
    position: relative;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    cursor: pointer;
    transition: border-color 200ms, box-shadow 200ms;
    display: block;
}
.plan-card__radio { position: absolute; opacity: 0; pointer-events: none; }
.plan-card:hover  { border-color: var(--amber-deep); }
.plan-card.is-selected {
    border-color: var(--amber-deep);
    box-shadow: 0 0 0 3px rgba(249,153,18,0.18);
    background: var(--amber-pale);
}
.plan-card--featured { order: -1; }
.plan-card__badge {
    display: inline-block;
    background: var(--amber-deep);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: var(--space-3);
    font-family: var(--font-sans);
}
.plan-card__tier  { font-family: var(--font-sans); font-weight: 600; font-size: var(--text-sm); color: var(--ink-light); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--space-1); }
.plan-card__price { font-family: var(--font-serif); font-size: var(--text-3xl); color: var(--ink); margin-bottom: var(--space-4); }
.plan-card__features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.plan-card__features li { font-size: var(--text-sm); color: var(--ink-light); padding-left: var(--space-5); position: relative; }
.plan-card__features li::before { content: '✓'; position: absolute; left: 0; color: var(--green-mid); font-weight: 700; }

/* Box add-on */
.box-addon {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    transition: border-color 200ms, background 200ms;
}
.box-addon:has(.box-addon__checkbox:checked) {
    border-color: var(--amber-deep);
    background: var(--amber-pale);
}
.box-addon__label  { display: block; cursor: pointer; padding: var(--space-4); }
.box-addon__content { display: flex; align-items: center; gap: var(--space-4); }
.box-addon__img-wrap { flex-shrink: 0; }
.box-addon__img    { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); }
.box-addon__checkbox { margin-right: var(--space-3); width: 18px; height: 18px; accent-color: var(--amber-deep); flex-shrink: 0; cursor: pointer; }
.box-addon__title  { font-weight: 700; display: block; margin-bottom: var(--space-1); }
.box-addon__desc   { font-size: var(--text-sm); color: var(--ink-light); margin: 0; }
.box-addon__price  { margin-left: auto; font-size: var(--text-xl); font-weight: 700; color: var(--amber-deep); white-space: nowrap; flex-shrink: 0; }

/* Total */
.payment-total {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-6);
}
.payment-total__row { display: flex; justify-content: space-between; font-size: var(--text-sm); padding: var(--space-1) 0; color: var(--ink-light); }
.payment-total__divider { border-top: 1px solid var(--border); margin: var(--space-3) 0; }
.payment-total__grand { font-size: var(--text-lg); color: var(--ink); }

.payment-submit { margin-bottom: var(--space-4); }
.payment-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--ink-light);
    font-family: var(--font-sans);
}

/* Gift redemption */
.gift-redeem-wrap { margin-top: var(--space-10); }
.gift-redeem summary.gift-redeem__toggle { cursor: pointer; font-size: var(--text-sm); color: var(--ink-light); text-align: center; list-style: none; padding: var(--space-3); }
.gift-redeem summary::-webkit-details-marker { display: none; }
.gift-redeem__body { padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-top: var(--space-2); }
.gift-redeem__form { display: flex; gap: var(--space-3); }
.gift-redeem__form .form-control { flex: 1; }
.form-error { color: #c0392b; font-size: var(--text-sm); margin-bottom: var(--space-3); }

@media (max-width: 768px) {
    .payment-plans { grid-template-columns: 1fr; }
    .plan-card--featured { order: 0; }
    .box-addon__img-wrap { display: none; }
    .gift-redeem__form { flex-direction: column; }
}

/* ─────────────────────────────────────────────────────────────
   18. GENERATE PAGE
───────────────────────────────────────────────────────────── */
.generate-header { margin-bottom: var(--space-8); }
.generate-header h1 { margin-bottom: var(--space-2); }

.generate-progress { margin-bottom: var(--space-8); }
.generate-progress__label {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    color: var(--ink-light);
    margin-bottom: var(--space-2);
}

/* Style selection cards */
.generate-styles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.style-card {
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--white);
}
.style-card:hover { border-color: var(--amber); }
.style-card.is-selected {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(249,153,18,0.15);
}

/* Mini document mockup previews */
.style-card__preview {
    height: 160px;
    padding: var(--space-4);
    display: flex;
    gap: var(--space-3);
    overflow: hidden;
}
.style-card__preview--keepsake { background: var(--ink); }
.style-card__preview--attorney { background: #f8f8f8; border-bottom: 1px solid var(--border); }

.style-card__mock-cover {
    width: 55px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    padding: 8px 6px;
    flex-shrink: 0;
}
.style-card__mock-cover--attorney {
    background: #fff;
    border: 1px solid #ddd;
}
.style-card__mock-title {
    height: 6px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
    margin-bottom: 5px;
    width: 80%;
}
.style-card__mock-title--dark { background: #333; }
.style-card__mock-line {
    height: 3px;
    background: var(--amber);
    border-radius: 1px;
    margin-bottom: 4px;
    width: 90%;
}
.style-card__mock-line--dark { background: #aaa; }
.style-card__mock-line--gold { background: var(--amber); }
.style-card__mock-body {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border-radius: 2px;
    padding: 8px 6px;
}
.style-card__mock-heading {
    height: 5px;
    background: var(--amber);
    border-radius: 1px;
    width: 60%;
    margin-bottom: 8px;
}
.style-card__mock-heading--dark {
    background: #555;
}
.style-card__mock-text {
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 1px;
    margin-bottom: 5px;
    width: 100%;
}
.style-card__preview--attorney .style-card__mock-text {
    background: #ccc;
}

.style-card__info { padding: var(--space-5); }
.style-card__name {
    font-size: var(--text-lg);
    color: var(--ink);
    margin: 0 0 var(--space-2);
}
.style-card__desc {
    font-size: var(--text-sm);
    color: var(--ink-light);
    margin-bottom: var(--space-3);
    line-height: 1.6;
}
.style-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: var(--text-sm);
    color: var(--ink-light);
}
.style-card__features li {
    padding: var(--space-1) 0;
    padding-left: var(--space-4);
    position: relative;
}
.style-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--amber);
    font-weight: 700;
}
.is-selected .style-card__name { color: var(--amber-deep); }

.generate-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    margin-bottom: var(--space-6);
}

.generate-note {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--ink-light);
}

@media (max-width: 640px) {
    .generate-styles { grid-template-columns: 1fr; }
    .generate-actions { flex-direction: column; align-items: stretch; }
    .generate-actions .btn { text-align: center; }
}

/* ─────────────────────────────────────────────────────────────
   19. FAQ PAGE
───────────────────────────────────────────────────────────── */
.faq-hero { padding-bottom: var(--space-4); }
.faq-hero h1 { margin-bottom: var(--space-3); }

.faq-group { margin-bottom: var(--space-10); }

.faq-group__title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--ink);
    border-bottom: 2px solid var(--amber-400);
    padding-bottom: var(--space-2);
    margin-bottom: var(--space-4);
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item__q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) 0;
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    gap: var(--space-4);
}

.faq-item__q::-webkit-details-marker { display: none; }

.faq-item__q::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--amber-600);
    flex-shrink: 0;
}

details[open] .faq-item__q::after { content: '\2212'; }

.faq-item__a {
    padding: 0 0 var(--space-4);
    color: var(--ink-light);
    line-height: 1.75;
    font-size: var(--text-sm);
}

.faq-item__a strong { color: var(--ink); }
.faq-item__a a { color: var(--amber-600); }

.faq-cta {
    text-align: center;
    padding: var(--space-10) 0 var(--space-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.faq-cta p {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}

.faq-cta .btn { min-width: 140px; }

/* ─────────────────────────────────────────────────────────────
   18. PHOTO UPLOAD UI
───────────────────────────────────────────────────────────── */
.photo-upload-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.photo-preview {
    position: relative;
    display: inline-block;
}

.photo-thumb {
    display: block;
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    border-radius: var(--radius);
    border: 2px solid var(--border-light);
    object-fit: cover;
}

.photo-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.15s;
}
.photo-remove:hover { opacity: 1; }

.photo-input-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}
.photo-input-wrap.is-hidden { display: none; }

.photo-file-input {
    font-size: var(--text-sm);
    color: var(--ink-mid);
}

.photo-hint {
    font-size: var(--text-xs);
    color: var(--ink-faint);
}

.photo-upload-status {
    font-size: var(--text-sm);
    min-height: 1.25em;
}
.photo-upload-status.is-loading { color: var(--ink-faint); }
.photo-upload-status.is-success { color: #3a7c3a; }
.photo-upload-status.is-error   { color: var(--error, #c0392b); }

/* ─────────────────────────────────────────────────────────────
   17. PRINT — Block printing on all app pages
   The generated PDF is the product. Chapter pages, dashboard,
   and auth pages are intentionally non-printable.
───────────────────────────────────────────────────────────── */
@media print {
    /* Allow printing ONLY on pages that explicitly opt in
       by adding class="page-printable" to <body> */
    body:not(.page-printable) * {
        display: none !important;
    }

    body:not(.page-printable)::after {
        display: block !important;
        content: "This page is not available for printing. Please generate your AmberLetters PDF document from your dashboard.";
        font-family: Georgia, serif;
        font-size: 16px;
        color: #333;
        text-align: center;
        padding: 80px 40px;
        max-width: 500px;
        margin: 0 auto;
    }
}
