/* Learn Materia — Counters & Paper
   Palette from the app icon: three counters (mint, magenta, royal blue)
   on deep navy. LIGHT-FIRST: this brand is worksheet paper and pencil.
   Motion language: soft, bouncy, playful — counters bob, strokes draw,
   the sheet prints. Nothing slams here; this is a kitchen table. */

:root {
    /* Light mode (default) — worksheet paper with navy ink */
    --rep-accent: #18A56F;
    --rep-accent-hover: #128557;
    --rep-accent-soft: rgba(24, 165, 111, 0.12);
    --rep-text: #1B1740;
    --rep-background: #FAFAFD;
    --rep-surface: #FFFFFF;
    --rep-surface-2: #F0F0F8;
    --rep-muted: #5F5B85;
    --rep-border: #E2E1F0;
    --rep-glow: rgba(24, 165, 111, 0.16);
    --rep-check-bg: rgba(24, 165, 111, 0.14);
    --lm-pink: #E84B8A;
    --lm-blue: #2D49D6;
    --lm-paper-line: #D8E4F4;

    --font-primary: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', ui-monospace, 'Cascadia Code', 'Fira Code', Consolas, monospace;

    /* Motion vocabulary: playground — springy, gentle */
    --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
    --ease-soft: cubic-bezier(.25, .7, .3, 1);

    --bs-primary: var(--rep-accent);
    --bs-body-bg: var(--rep-background);
    --bs-body-color: var(--rep-text);
    --bs-link-color: var(--rep-accent);
}

[data-theme="dark"] {
    /* Dark mode (opt-in) — homework after bedtime */
    --rep-accent: #5BD0A0;
    --rep-accent-hover: #7DDFB8;
    --rep-accent-soft: rgba(91, 208, 160, 0.14);
    --rep-text: #F0EFFA;
    --rep-background: #14112B;
    --rep-surface: #1C1838;
    --rep-surface-2: #242047;
    --rep-muted: #A5A0C8;
    --rep-border: #2E2960;
    --rep-glow: rgba(91, 208, 160, 0.22);
    --rep-check-bg: rgba(91, 208, 160, 0.16);
    --lm-pink: #F0619B;
    --lm-blue: #5C76F2;
    --lm-paper-line: #2E2960;

    --bs-body-bg: var(--rep-background);
    --bs-body-color: var(--rep-text);
}

/* ---------- Base ---------- */

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-primary);
    background-color: var(--rep-background);
    color: var(--rep-text);
    transition: background-color 0.2s ease, color 0.2s ease;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--rep-accent); text-decoration: none; }
a:hover { color: var(--rep-accent-hover); }
::selection { background: var(--lm-pink); color: #fff; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.skip-link {
    position: absolute; top: 8px; left: 8px; z-index: 2000;
    background: var(--rep-accent); color: #fff;
    padding: .5rem .75rem; border-radius: 8px; font-weight: 600;
}

/* ---------- Scroll reveal: bouncy variant ---------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(22px) scale(.985);
    transition: opacity .65s var(--ease-soft), transform .65s var(--ease-pop);
    transition-delay: var(--d, 0s);
    will-change: opacity, transform;
}
[data-reveal].in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Navbar ---------- */

.navbar {
    background: color-mix(in srgb, var(--rep-background) 88%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--rep-border);
}
.navbar-brand {
    display: flex; align-items: center; gap: .55rem;
    font-weight: 800; letter-spacing: -0.01em; color: var(--rep-text) !important;
}
.brand-icon { display: inline-flex; width: 30px; height: 30px; }
.brand-img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.navbar .nav-link { color: var(--rep-muted); font-weight: 500; }
.navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--rep-text); }
.navbar-toggler { border-color: var(--rep-border); }

.theme-toggle {
    background: transparent; border: 1px solid var(--rep-border);
    border-radius: 10px; color: var(--rep-muted);
    width: 38px; height: 38px; display: inline-flex;
    align-items: center; justify-content: center;
}
.theme-toggle:hover { color: var(--rep-text); border-color: var(--rep-muted); }
[data-theme="dark"] .theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: inline; }
.theme-icon-light { display: none; }

/* ---------- Buttons: soft and friendly ---------- */

.btn-rep {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--rep-accent); border: none; color: #fff;
    font-weight: 700; padding: .85rem 1.7rem; border-radius: 999px;
    transition: transform .18s var(--ease-pop), box-shadow .25s ease, background .15s ease;
    box-shadow: 0 8px 24px var(--rep-glow);
}
.btn-rep:hover {
    background: var(--rep-accent-hover); color: #fff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 34px var(--rep-glow);
}
.btn-rep:active { transform: scale(.98); }

.btn-ghost {
    background: transparent; border: 2px dashed var(--rep-border);
    color: var(--rep-text); font-weight: 600;
    padding: .78rem 1.6rem; border-radius: 999px;
    transition: border-color .15s ease, background .15s ease, transform .18s var(--ease-pop);
}
.btn-ghost:hover { border-color: var(--lm-pink); background: color-mix(in srgb, var(--lm-pink) 8%, transparent); color: var(--rep-text); }

/* ---------- Hero ---------- */

.hero {
    padding: 4.5rem 0 4rem;
    position: relative;
    overflow: hidden;
    min-height: 78vh;
    display: flex; align-items: center;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
    font-size: clamp(2.6rem, 5.4vw, 4.3rem);
    font-weight: 800; letter-spacing: -0.035em; line-height: 1.03;
    text-wrap: balance;
}
.hero h1 .accent { color: var(--rep-accent); }

.hero h1 .line {
    display: block;
    opacity: 0; transform: translateY(28px);
    animation: rise .75s var(--ease-pop) forwards;
    animation-delay: var(--d, 0s);
}
@keyframes rise { to { opacity: 1; transform: none; } }

.hero .lead-copy {
    color: var(--rep-muted); font-size: 1.18rem; max-width: 33rem;
    opacity: 0; animation: rise .75s var(--ease-soft) .35s forwards;
}
.hero-actions { opacity: 0; animation: rise .75s var(--ease-soft) .5s forwards; }
.hero-meta { opacity: 0; animation: rise .75s var(--ease-soft) .62s forwards; }
/* Mac -> paper -> pencil: one legible flow, not three broken glyphs */
.flow {
    display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .55rem;
    opacity: 0; animation: rise .75s var(--ease-soft) .76s forwards;
}
.flow__step {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: .82rem; font-weight: 700; color: var(--rep-text); white-space: nowrap;
    padding: .42rem .8rem; border-radius: 999px;
    background: var(--rep-surface-2);
    transition: transform .25s var(--ease-pop), color .15s ease;
}
.flow__step svg { flex-shrink: 0; }
.flow__step:nth-child(1) svg { color: var(--rep-accent); }
.flow__step:nth-child(3) svg { color: var(--lm-blue); }
.flow__step:nth-child(5) svg { color: var(--lm-pink); }
.flow__step:hover { transform: translateY(-2px) rotate(-1.5deg); }
.flow__arrow { color: var(--rep-muted); display: inline-flex; }
@media (max-width: 360px) { .flow__arrow { display: none; } }

@media (prefers-reduced-motion: reduce) {
    .hero h1 .line, .hero .lead-copy, .hero-actions, .hero-meta, .flow {
        opacity: 1; animation: none; transform: none;
    }
}

/* ---------- The worksheet set piece: fresh sheet, top of a stack ---------- */

.paper-stack { position: relative; max-width: 480px; width: 100%; z-index: 1; }

.sheet {
    position: relative; z-index: 1;
    background: #fff;
    border: 1px solid var(--rep-border);
    border-radius: 10px;
    padding: 1.6rem 1.7rem 1.45rem;
    font-family: var(--font-primary);
    color: #1B1740;
    transform: rotate(1.5deg);
    /* stacked paper behind, plus a real drop shadow */
    box-shadow:
        9px 9px 0 -1px #fff, 9px 9px 0 0 var(--rep-border),
        18px 18px 0 -1px #fff, 18px 18px 0 0 var(--rep-border),
        0 28px 60px rgba(27, 23, 64, .18);
    animation: sheet-print 1.1s var(--ease-soft) .2s both;
}
[data-theme="dark"] .sheet { background: #FBFAF4; }
:root:not([data-theme="dark"]) .sheet { box-shadow:
    9px 9px 0 -1px #fff, 9px 9px 0 0 var(--rep-border),
    18px 18px 0 -1px #fff, 18px 18px 0 0 var(--rep-border),
    0 26px 54px rgba(27, 23, 64, .14); }

@keyframes sheet-print {
    0% { clip-path: inset(0 0 100% 0); transform: translateY(-26px) rotate(0deg); }
    100% { clip-path: inset(0 0 0 0); transform: translateY(0) rotate(1.5deg); }
}

/* Ruled worksheet lines */
.sheet::before {
    content: ""; position: absolute; inset: 3.4rem 0 0 0; pointer-events: none;
    background: repeating-linear-gradient(
        to bottom, transparent 0, transparent 35px,
        var(--lm-paper-line) 35px, var(--lm-paper-line) 36px);
    opacity: .55;
    border-radius: inherit;
}

.sheet__header {
    display: flex; justify-content: space-between; align-items: baseline;
    border-bottom: 2px solid #1B1740; padding-bottom: .55rem; margin-bottom: 1rem;
    position: relative; z-index: 1;
}
.sheet__title { font-weight: 800; letter-spacing: -0.01em; }
.sheet__name { font-size: .8rem; color: #5F5B85; }
.sheet__name .blank {
    display: inline-block; width: 70px;
    border-bottom: 1.5px solid #5F5B85; margin-left: .3rem;
}

.sheet__row { position: relative; z-index: 1; margin-bottom: 1rem; }
.sheet__label {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: #5F5B85; margin-bottom: .4rem;
}

/* Pattern row: bigger, confident counters */
.pattern { display: flex; align-items: center; gap: .5rem; }
.count-dot {
    display: inline-block; width: 30px; height: 30px; border-radius: 50%;
    opacity: 0; transform: scale(0);
    animation: dot-pop .45s var(--ease-pop) forwards;
    animation-delay: var(--d, 0s);
}
.count-dot--mint { background: #18A56F; }
.count-dot--pink { background: #E84B8A; }
.count-dot--blue { background: #2D49D6; }
.count-dot--empty {
    background: transparent; border: 2.5px dashed #B9B5D8;
    animation-name: dot-pop-soft;
}

/* Hand-illustrated counting objects — proud, kid-sized (Midjourney object pack) */
.count-objs { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .55rem; }
.count-obj {
    display: inline-flex; width: 56px; height: 56px;
    opacity: 0; transform: scale(0);
    animation: dot-pop .45s var(--ease-pop) forwards;
    animation-delay: var(--d, 0s);
}
.count-obj img { width: 100%; height: 100%; object-fit: contain; }
.count-answer {
    display: inline-flex; align-items: center; gap: .4rem;
    margin-left: .35rem; font-weight: 800; font-size: 1.5rem; color: #1B1740;
    opacity: 0; animation: rise .5s var(--ease-pop) forwards; animation-delay: var(--d, 0s);
}
.count-blank { display: inline-block; width: 46px; border-bottom: 2.5px solid #1B1740; height: 1.6rem; }
@media (prefers-reduced-motion: reduce) {
    .count-obj, .count-answer { opacity: 1; transform: none; animation: none; }
}
@keyframes dot-pop {
    0% { opacity: 0; transform: scale(0); }
    70% { opacity: 1; transform: scale(1.18); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes dot-pop-soft { to { opacity: 1; transform: scale(1); } }

/* Letter tracing: only the INK stroke draws itself; the dotted guides
   keep their dashes (the M gets traced, the m is the child's turn). */
.trace-letter { display: block; max-width: 240px; }
.trace-letter .ink {
    stroke-dasharray: 230;
    stroke-dashoffset: 230;
    animation: trace 1.2s ease-out 1.7s forwards;
}
.trace-start {
    opacity: 0;
    animation: dot-pop-soft .3s var(--ease-pop) 1.6s forwards;
}
@keyframes trace { to { stroke-dashoffset: 0; } }

/* Pencil check draws at the end */
.sheet__done {
    display: flex; align-items: center; gap: .5rem;
    font-size: .85rem; color: #18A56F; font-weight: 700;
    position: relative; z-index: 1;
    opacity: 0; animation: rise .5s var(--ease-pop) 3s forwards;
}
.sheet__done svg path {
    stroke-dasharray: 60; stroke-dashoffset: 60;
    animation: trace .6s ease-out 3.1s forwards;
}

@media (prefers-reduced-motion: reduce) {
    .sheet { animation: none; }
    .count-dot { opacity: 1; transform: none; animation: none; }
    .trace-letter .ink, .sheet__done svg path { stroke-dashoffset: 0; animation: none; }
    .trace-start { opacity: 1; animation: none; }
    .sheet__done { opacity: 1; animation: none; }
}

/* ---------- Scroll progress: three counters' crayon line ---------- */

.scroll-progress {
    position: fixed; top: 0; left: 0; height: 4px; width: 0;
    background: linear-gradient(90deg, var(--rep-accent), var(--lm-pink), var(--lm-blue));
    border-radius: 0 4px 4px 0;
    z-index: 3000; pointer-events: none;
}

/* ---------- Sections ---------- */

.section { padding: 5.5rem 0; }
.section--alt { background: var(--rep-surface); border-block: 1px solid var(--rep-border); }
section[id] { scroll-margin-top: 84px; }

.section-kicker {
    font-family: var(--font-mono); font-size: .78rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .16em; color: var(--lm-pink);
}
.section h2 { font-weight: 800; letter-spacing: -0.025em; font-size: clamp(2rem, 4.4vw, 3rem); }
.section .section-sub { color: var(--rep-muted); max-width: 38rem; font-size: 1.05rem; }

/* ---------- Feature grid: bouncy ---------- */

.feature-card {
    background: var(--rep-surface);
    border: 1px solid var(--rep-border);
    border-radius: 20px;
    padding: 1.7rem;
    height: 100%;
    transition: transform .25s var(--ease-pop), border-color .18s ease, box-shadow .25s ease;
}
.section--alt .feature-card { background: var(--rep-background); }
.feature-card:hover {
    transform: translateY(-5px) rotate(-.4deg);
    border-color: color-mix(in srgb, var(--lm-blue) 35%, var(--rep-border));
    box-shadow: 0 16px 40px rgba(27, 23, 64, .1);
}
[data-theme="dark"] .feature-card:hover { box-shadow: 0 16px 44px rgba(0, 0, 0, .35); }

.feature-icon {
    width: 46px; height: 46px; border-radius: 14px;
    background: var(--rep-accent-soft); color: var(--rep-accent);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
    transition: transform .3s var(--ease-pop);
}
.feature-card:hover .feature-icon { transform: scale(1.15) rotate(6deg); }
.feature-icon--pink { background: color-mix(in srgb, var(--lm-pink) 14%, transparent); color: var(--lm-pink); }
.feature-icon--blue { background: color-mix(in srgb, var(--lm-blue) 16%, transparent); color: var(--lm-blue); }
.feature-card h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; }
.feature-card p { color: var(--rep-muted); font-size: .95rem; margin-bottom: 0; }

/* ---------- Scrollytelling: a sheet composes itself ---------- */

.scrolly { position: relative; }
.scrolly-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }

.scrolly-stage {
    position: sticky; top: 14vh;
    height: 64vh; min-height: 470px;
    display: flex; align-items: center; justify-content: center;
}

.stage-layer {
    position: absolute;
    opacity: 0; transform: translateY(24px) scale(.96);
    transition: opacity .55s var(--ease-soft), transform .55s var(--ease-pop);
    pointer-events: none;
    width: min(400px, 92%);
}
[data-step="1"] .stage-l1, [data-step="2"] .stage-l2, [data-step="3"] .stage-l3 {
    opacity: 1; transform: none;
}

/* Stage 1: level chips */
.level-panel {
    background: var(--rep-surface); border: 1px solid var(--rep-border);
    border-radius: 18px; padding: 1.5rem;
    box-shadow: 0 18px 44px rgba(27, 23, 64, .1);
}
.level-panel h4 { font-size: .95rem; font-weight: 800; margin-bottom: 1rem; }
.chip-row { margin-bottom: 1rem; }
.chip-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--rep-muted); margin-bottom: .45rem; }
.chip {
    display: inline-block; padding: .42rem .9rem; border-radius: 999px;
    border: 1.5px solid var(--rep-border); color: var(--rep-muted);
    font-size: .85rem; font-weight: 600; margin: 0 .35rem .35rem 0;
    transition: all .3s var(--ease-pop);
}
[data-step="1"] .chip--on {
    background: var(--rep-accent); border-color: var(--rep-accent); color: #fff;
    transition-delay: .5s;
}
[data-step="1"] .chip--on2 {
    background: var(--lm-blue); border-color: var(--lm-blue); color: #fff;
    transition-delay: .85s;
}

/* Stage 2: the composing mini-sheet */
.mini-sheet {
    background: #fff; border: 1px solid var(--rep-border);
    border-radius: 6px 6px 14px 14px; padding: 1.3rem 1.4rem;
    box-shadow: 0 18px 44px rgba(27, 23, 64, .12);
    color: #1B1740;
}
[data-theme="dark"] .mini-sheet { background: #FBFAF4; }
.mini-sheet .ms-title { font-weight: 800; border-bottom: 2px solid #1B1740; padding-bottom: .4rem; margin-bottom: .9rem; }
.ms-row { opacity: 0; transform: translateX(-14px); margin-bottom: .85rem; }
[data-step="2"] .ms-row { animation: ms-in .5s var(--ease-pop) forwards; }
[data-step="2"] .ms-row:nth-child(2) { animation-delay: .35s; }
[data-step="2"] .ms-row:nth-child(3) { animation-delay: .7s; }
[data-step="2"] .ms-row:nth-child(4) { animation-delay: 1.05s; }
@keyframes ms-in { to { opacity: 1; transform: none; } }
.ms-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #5F5B85; margin-bottom: .3rem; }
.ms-dots span { display: inline-block; width: 16px; height: 16px; border-radius: 50%; margin-right: .3rem; }

/* Stage 3: printed + on the fridge */
.fridge-sheet {
    position: relative;
    background: #fff; border: 1px solid var(--rep-border);
    border-radius: 4px; padding: 1.3rem 1.4rem 1.1rem;
    box-shadow: 0 16px 38px rgba(27, 23, 64, .18);
    transform: rotate(-1.6deg);
    color: #1B1740;
}
[data-step="3"] .fridge-sheet { animation: pin-on .6s var(--ease-pop) .25s both; }
@keyframes pin-on {
    0% { opacity: 0; transform: rotate(-6deg) translateY(-30px) scale(1.05); }
    100% { opacity: 1; transform: rotate(-1.6deg) translateY(0) scale(1); }
}
.magnet {
    position: absolute; top: -13px; left: 50%; margin-left: -13px;
    width: 26px; height: 26px; border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, #FF8FB8, var(--lm-pink) 65%);
    box-shadow: 0 4px 10px rgba(27, 23, 64, .25);
}
.fridge-sheet .big-check {
    position: absolute; right: 14px; bottom: 10px;
    color: #18A56F; font-size: 2rem; font-weight: 800;
    transform: rotate(8deg);
}
.fridge-sheet .done-title { font-weight: 800; }
.fridge-sheet .done-sub { font-size: .85rem; color: #5F5B85; }

.scrolly-step {
    min-height: 64vh;
    display: flex; flex-direction: column; justify-content: center;
}
.scrolly-step h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.scrolly-step p { color: var(--rep-muted); font-size: 1.05rem; max-width: 26rem; }

@media (max-width: 991px) {
    .scrolly-grid { grid-template-columns: 1fr; gap: 0; }
    .scrolly-stage { display: none; }
    .scrolly-step { min-height: 0; padding: 2rem 0; }
}
@media (prefers-reduced-motion: reduce) {
    .stage-layer { transition: none; }
    [data-step] .chip--on, [data-step] .chip--on2 { transition: none; }
    [data-step="2"] .ms-row, [data-step="3"] .fridge-sheet { animation: none; opacity: 1; transform: none; }
    .fridge-sheet { transform: rotate(-1.6deg); }
}

/* ---------- Print: the homepage IS a worksheet ---------- */

#print-sheet { display: none; }

@media print {
    nav, .hero, .section, footer, .footer, .family-strip, .skip-link { display: none !important; }
    body { background: #fff !important; color: #111 !important; }
    #print-sheet {
        display: block !important;
        font-family: var(--font-primary);
        color: #111; padding: 1rem 0;
    }
    #print-sheet header {
        display: flex; justify-content: space-between; align-items: baseline;
        border-bottom: 3px solid #111; padding-bottom: .5rem; margin-bottom: 1.4rem;
    }
    #print-sheet h1 { font-size: 1.5rem; font-weight: 800; margin: 0; }
    #print-sheet .ps-name { font-size: .95rem; }
    #print-sheet .ps-name span { display: inline-block; width: 180px; border-bottom: 1.5px solid #111; }
    #print-sheet section { margin-bottom: 1.8rem; page-break-inside: avoid; }
    #print-sheet .ps-label { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .6rem; }
    .ps-circle {
        display: inline-block; width: 34px; height: 34px; border-radius: 50%;
        border: 2.5px solid #111; margin: 0 .5rem .5rem 0;
    }
    .ps-circle--fill { background: #bbb; }
    .ps-trace {
        font-size: 64px; font-weight: 700; letter-spacing: .35em;
        color: transparent; -webkit-text-stroke: 1.5px #999;
    }
    .ps-line { border-bottom: 2px solid #111; height: 52px; }
    .ps-line + .ps-line { margin-top: 10px; }
    #print-sheet footer.ps-foot {
        display: block !important; border: 0; margin-top: 2rem;
        font-size: .75rem; color: #777;
    }
}

/* ---------- How it works: dotted path ---------- */

.steps-wrap { position: relative; }
.steps-line {
    position: absolute; top: 34px; left: 10%; right: 10%; height: 0;
    border-top: 3px dotted color-mix(in srgb, var(--lm-blue) 45%, var(--rep-border));
    -webkit-mask-image: linear-gradient(to right, black 0%, black 100%);
    mask-image: linear-gradient(to right, black 0%, black 100%);
    transform-origin: left center; transform: scaleX(0);
    transition: transform 1.6s var(--ease-soft) .2s;
}
.steps-wrap.in-view .steps-line { transform: scaleX(1); }
@media (max-width: 767px) { .steps-line { display: none; } }
@media (prefers-reduced-motion: reduce) { .steps-line { transform: scaleX(1); transition: none; } }

.step-num {
    font-family: var(--font-mono); font-weight: 800; font-size: .85rem;
    color: #fff; background: var(--lm-blue);
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    position: relative; z-index: 1;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--lm-blue) 35%, transparent);
}
.steps-wrap .col-md-4:nth-child(3) .step-num { background: var(--lm-pink); box-shadow: 0 6px 16px color-mix(in srgb, var(--lm-pink) 35%, transparent); }
.steps-wrap .col-md-4:nth-child(4) .step-num { background: var(--rep-accent); box-shadow: 0 6px 16px var(--rep-glow); }

/* ---------- Honesty strip ---------- */

.locked-strip {
    border-left: 4px solid var(--lm-pink);
    background: color-mix(in srgb, var(--lm-pink) 7%, transparent);
    border-radius: 0 14px 14px 0;
    padding: 1.15rem 1.4rem;
    font-size: 1.02rem;
}
.locked-strip strong { font-weight: 700; }

/* ---------- Dots helper ---------- */

.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.dot--mint { background: var(--rep-accent); }
.dot--pink { background: var(--lm-pink); }
.dot--blue { background: var(--lm-blue); }

/* ---------- Footer ---------- */

.footer {
    background: var(--rep-surface);
    border-top: 1px solid var(--rep-border);
    padding: 3.5rem 0 2rem;
    color: var(--rep-muted);
    font-size: .95rem;
}
.footer h6 {
    color: var(--rep-text); font-weight: 700; font-size: .85rem;
    text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem;
}
.footer a { color: var(--rep-muted); }
.footer a:hover { color: var(--rep-accent); }
.footer hr { border-color: var(--rep-border); opacity: 1; }
/* Copyright: stronger than --rep-muted so it clears WCAG AAA (7:1) in both
   themes. Derived from the text/surface pair (each theme's max-contrast
   pair), so 80% of the way is guaranteed >=7:1 on the footer surface. */
.footer__copy { color: color-mix(in srgb, var(--rep-text) 80%, var(--rep-surface)); }

/* ---------- Legal / prose pages ---------- */

.prose { max-width: 46rem; }
.prose h1 { font-weight: 800; letter-spacing: -0.02em; }
.prose h2 { font-weight: 700; font-size: 1.35rem; margin-top: 2.2rem; }
.prose p, .prose li { color: var(--rep-muted); line-height: 1.7; }
.prose strong { color: var(--rep-text); }

/* ---------- Misc ---------- */

.text-muted-rep { color: var(--rep-muted) !important; }
img { max-width: 100%; height: auto; }

@media (max-width: 991px) {
    .hero { padding: 4.5rem 0 3rem; min-height: 0; }
    .printer { margin-top: 2.5rem; }
}
