/* 941 Reps — The Iron Log
   Palette from the app icon: mint check-circles on near-black green.
   Motion language: weighted, mechanical, fast. Checks slam, entries land,
   numbers feel like plates. Dark-first; light mode is gym-at-dawn paper. */

:root {
    --rep-accent: #1B9D5F;
    --rep-accent-hover: #14854E;
    --rep-accent-soft: rgba(27, 157, 95, 0.12);
    --rep-text: #122019;
    --rep-background: #F6FAF7;
    --rep-surface: #FFFFFF;
    --rep-surface-2: #ECF4EE;
    --rep-muted: #5C7265;
    --rep-border: #DCE8DF;
    --rep-glow: rgba(27, 157, 95, 0.16);
    --rep-check-bg: rgba(27, 157, 95, 0.14);

    --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: iron — fast in, heavy settle */
    --ease-slam: cubic-bezier(.22, 1.6, .36, 1);
    --ease-out: cubic-bezier(.2, .8, .2, 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"] {
    --rep-accent: #5BD99A;
    --rep-accent-hover: #7FE7B2;
    --rep-accent-soft: rgba(91, 217, 154, 0.14);
    --rep-text: #ECF4EE;
    --rep-background: #0A0F0C;
    --rep-surface: #121A15;
    --rep-surface-2: #18231C;
    --rep-muted: #9AB0A2;
    --rep-border: #203026;
    --rep-glow: rgba(91, 217, 154, 0.22);
    --rep-check-bg: rgba(91, 217, 154, 0.16);

    --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(--rep-accent); color: var(--rep-background); }

.mono, .rep-num { 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: var(--rep-background);
    padding: .5rem .75rem; border-radius: 8px; font-weight: 600;
}

/* ---------- Scroll reveal system ---------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
    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) 86%, 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: 26px; height: 26px; color: var(--rep-accent); }
.brand-img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.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: weighted ---------- */

.btn-rep {
    background: var(--rep-accent); border: none; color: #07130C;
    font-weight: 700; padding: .85rem 1.7rem; border-radius: 12px;
    transition: transform .1s var(--ease-out), box-shadow .25s ease, background .15s ease;
    box-shadow: 0 6px 22px var(--rep-glow);
    animation: cta-pulse 3.2s ease-in-out infinite;
}
.btn-rep:hover {
    background: var(--rep-accent-hover); color: #07130C;
    transform: translateY(-2px); box-shadow: 0 12px 34px var(--rep-glow);
    animation: none;
}
.btn-rep:active { transform: translateY(1px); box-shadow: 0 3px 10px var(--rep-glow); }

@keyframes cta-pulse {
    0%, 100% { box-shadow: 0 6px 22px var(--rep-glow); }
    50% { box-shadow: 0 6px 34px var(--rep-glow); }
}

.btn-ghost {
    background: transparent; border: 1px solid var(--rep-border);
    color: var(--rep-text); font-weight: 600;
    padding: .85rem 1.7rem; border-radius: 12px;
    transition: border-color .15s ease, background .15s ease, transform .1s var(--ease-out);
}
.btn-ghost:hover { border-color: var(--rep-accent); background: var(--rep-accent-soft); color: var(--rep-text); }
.btn-ghost:active { transform: translateY(1px); }

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

.hero {
    padding: 7rem 0 5rem;
    position: relative;
    overflow: hidden;
    min-height: 86vh;
    display: flex; align-items: center;
}

/* Ruled log-book lines, masked toward the headline */
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(
        to bottom, transparent 0, transparent 46px,
        var(--rep-border) 46px, var(--rep-border) 47px);
    opacity: .22;
    -webkit-mask-image: radial-gradient(75% 70% at 28% 24%, black, transparent 72%);
    mask-image: radial-gradient(75% 70% at 28% 24%, black, transparent 72%);
}

/* Ghost plate numbers drifting behind the card — barely-there iron */
.hero-ghost {
    position: absolute; right: -2%; top: 50%;
    transform: translateY(-52%);
    font-family: var(--font-mono); font-weight: 700;
    font-size: clamp(160px, 26vw, 340px); line-height: .92;
    color: transparent;
    -webkit-text-stroke: 1px color-mix(in srgb, var(--rep-accent) 26%, transparent);
    opacity: .5;
    pointer-events: none; user-select: none;
    animation: ghost-drift 26s ease-in-out infinite alternate;
    z-index: 0;
}
@keyframes ghost-drift {
    from { transform: translateY(-55%); }
    to { transform: translateY(-48%); }
}

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

.hero h1 {
    font-size: clamp(2.9rem, 6.4vw, 5rem);
    font-weight: 800; letter-spacing: -0.035em; line-height: 1.02;
}
.hero h1 .accent { color: var(--rep-accent); }

/* Headline lines rise in, staggered */
.hero h1 .line {
    display: block;
    opacity: 0; transform: translateY(34px);
    animation: line-rise .8s var(--ease-out) forwards;
    animation-delay: var(--d, 0s);
}
@keyframes line-rise { to { opacity: 1; transform: none; } }

.hero .lead-copy {
    color: var(--rep-muted); font-size: 1.18rem; max-width: 33rem;
    opacity: 0; animation: line-rise .8s var(--ease-out) .35s forwards;
}
.hero-actions { opacity: 0; animation: line-rise .8s var(--ease-out) .5s forwards; }
.hero-meta { opacity: 0; animation: line-rise .8s var(--ease-out) .62s forwards; }

.platform-row {
    display: flex; flex-wrap: wrap; gap: 1.4rem;
    color: var(--rep-muted); font-size: .85rem; font-weight: 600;
    align-items: flex-end;
    opacity: 0; animation: line-rise .8s var(--ease-out) .78s forwards;
}
.platform-row svg { display: block; margin: 0 auto .35rem; color: var(--rep-muted); }
.platform-row .platform { text-align: center; transition: color .15s ease, transform .2s var(--ease-slam); }
.platform-row .platform:hover { color: var(--rep-text); transform: translateY(-3px); }
.platform-row .platform:hover svg { color: var(--rep-accent); }

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

/* ---------- Session log card: the set piece ---------- */

.log-card {
    background: var(--rep-surface);
    border: 1px solid var(--rep-border);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .42), 0 0 0 1px rgba(91, 217, 154, .05);
    padding: 1.4rem 1.5rem 1.15rem;
    max-width: 440px; width: 100%;
    font-family: var(--font-mono);
    font-size: .92rem;
    transform: perspective(1100px) rotateY(-5deg) rotateX(1.5deg);
    transition: transform .5s var(--ease-out), box-shadow .5s ease;
    position: relative; z-index: 1;
}
.log-card:hover {
    transform: perspective(1100px) rotateY(0deg) rotateX(0deg) translateY(-4px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
:root:not([data-theme="dark"]) .log-card { box-shadow: 0 22px 54px rgba(18, 32, 25, .14); }

.log-card__header {
    display: flex; justify-content: space-between; align-items: baseline;
    padding-bottom: .8rem; margin-bottom: .4rem;
    border-bottom: 1px solid var(--rep-border);
}
.log-card__title { font-weight: 700; font-family: var(--font-primary); letter-spacing: -0.01em; }
.log-card__date { color: var(--rep-muted); font-size: .8rem; }

/* Entries land like plates: rise + settle, staggered via --d */
.log-row {
    display: grid; grid-template-columns: 1fr auto auto;
    gap: .9rem; align-items: center;
    padding: .64rem 0;
    border-bottom: 1px dashed color-mix(in srgb, var(--rep-border) 70%, transparent);
    opacity: 0; transform: translateY(14px);
    animation: entry-land .5s var(--ease-slam) forwards;
    animation-delay: var(--d, 0s);
}
.log-row:last-of-type { border-bottom: none; }
@keyframes entry-land { to { opacity: 1; transform: none; } }

.log-row__name { font-family: var(--font-primary); font-weight: 600; }
.log-row__set { color: var(--rep-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.checks { display: inline-flex; gap: .3rem; }
.check {
    width: 18px; height: 18px; border-radius: 50%;
    border: 1.5px solid var(--rep-accent);
    background: var(--rep-check-bg);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--rep-accent);
    opacity: 0;
    animation: check-slam .42s var(--ease-slam) forwards;
    animation-delay: var(--d, 0s);
}
.check svg { width: 10px; height: 10px; }
.check--pending { border-color: var(--rep-border); background: transparent; animation: none; opacity: 1; }

/* The slam: oversized in, heavy settle, tiny recoil */
@keyframes check-slam {
    0% { opacity: 0; transform: scale(2.6) rotate(-12deg); }
    62% { opacity: 1; transform: scale(.92) rotate(2deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}

.log-card__rest {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: .6rem; padding: .58rem .8rem;
    background: var(--rep-surface-2);
    border-radius: 10px;
    color: var(--rep-muted); font-size: .85rem;
    opacity: 0; animation: entry-land .5s var(--ease-slam) 1.9s forwards;
}
.rest-timer { color: var(--rep-accent); font-weight: 700; animation: rest-pulse 2s ease-in-out infinite; }
@keyframes rest-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* PR badge stamps on last */
.pr-badge {
    position: absolute; top: -14px; right: -12px;
    background: var(--rep-accent); color: #07130C;
    font-family: var(--font-mono); font-weight: 800; font-size: .78rem;
    letter-spacing: .08em;
    padding: .42rem .7rem; border-radius: 10px;
    box-shadow: 0 10px 26px var(--rep-glow);
    transform: rotate(6deg);
    opacity: 0;
    animation: pr-stamp .45s var(--ease-slam) 2.35s forwards;
}
@keyframes pr-stamp {
    0% { opacity: 0; transform: rotate(6deg) scale(2.4); }
    70% { opacity: 1; transform: rotate(6deg) scale(.94); }
    100% { opacity: 1; transform: rotate(6deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .log-row, .check, .log-card__rest, .pr-badge { opacity: 1; animation: none; transform: none; }
    .pr-badge { transform: rotate(6deg); }
    .rest-timer { animation: none; }
    .log-card { transform: none; }
}

/* ---------- Scroll progress: the plate bar ---------- */

.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: var(--rep-accent);
    box-shadow: 0 0 12px var(--rep-glow);
    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(--rep-accent);
}
.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 ---------- */

.feature-card {
    background: var(--rep-surface);
    border: 1px solid var(--rep-border);
    border-radius: 16px;
    padding: 1.7rem;
    height: 100%;
    transition: transform .18s var(--ease-out), border-color .18s ease, box-shadow .25s ease;
}
.section--alt .feature-card { background: var(--rep-background); }
.feature-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--rep-accent) 45%, var(--rep-border));
    box-shadow: 0 14px 40px rgba(0, 0, 0, .28);
}
:root:not([data-theme="dark"]) .feature-card:hover { box-shadow: 0 14px 32px rgba(18, 32, 25, .1); }

.feature-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--rep-accent-soft); color: var(--rep-accent);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
    transition: transform .25s var(--ease-slam);
}
.feature-card:hover .feature-icon { transform: scale(1.12) rotate(-4deg); }
.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: one set, everywhere ---------- */

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

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

.stage-device {
    position: absolute;
    opacity: 0; transform: translateY(30px) scale(.94);
    transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
    pointer-events: none;
}

/* Watch */
.device-watch {
    width: 220px; height: 264px;
    background: #0D1410; border: 1px solid var(--rep-border);
    border-radius: 56px;
    box-shadow: 0 24px 60px rgba(0,0,0,.45), inset 0 0 0 8px #060A07;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .5rem; font-family: var(--font-mono);
}
.device-watch::after {
    content: ""; position: absolute; right: -7px; top: 86px;
    width: 7px; height: 44px; border-radius: 0 4px 4px 0; background: #1A241D;
}
.watch-exercise { color: var(--rep-muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.watch-weight { color: #ECF4EE; font-size: 2rem; font-weight: 800; }
.watch-weight em { color: var(--rep-accent); font-style: normal; }
.watch-log-btn {
    margin-top: .4rem; padding: .45rem 1.3rem; border-radius: 999px;
    background: var(--rep-accent); color: #07130C; font-weight: 800; font-size: .82rem;
}
[data-step="1"] .watch-log-btn { animation: watch-tap 1.4s var(--ease-slam) .4s; }
@keyframes watch-tap {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 var(--rep-glow); }
    18% { transform: scale(.9); }
    36% { transform: scale(1.04); box-shadow: 0 0 0 16px transparent; }
}

/* Phone */
.device-phone {
    width: 250px; height: 480px;
    background: #0D1410; border: 1px solid var(--rep-border);
    border-radius: 38px;
    box-shadow: 0 24px 60px rgba(0,0,0,.45), inset 0 0 0 7px #060A07;
    padding: 2.4rem 1.1rem 1.1rem;
    font-family: var(--font-mono); font-size: .8rem;
}
.phone-title { font-family: var(--font-primary); font-weight: 700; color: #ECF4EE; margin-bottom: .8rem; }
.phone-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: .55rem .6rem; border-radius: 9px; color: #93A89C;
}
.phone-row strong { color: #ECF4EE; font-weight: 600; font-family: var(--font-primary); }
.phone-row--new {
    background: var(--rep-check-bg); color: var(--rep-accent);
    opacity: 0; transform: translateY(-8px);
}
[data-step="2"] .phone-row--new {
    animation: entry-land .5s var(--ease-slam) .55s forwards;
}
.sync-dot {
    position: absolute; width: 10px; height: 10px; border-radius: 50%;
    background: var(--rep-accent); box-shadow: 0 0 14px var(--rep-accent);
    top: 20%; left: 14%; opacity: 0;
}
[data-step="2"] .sync-dot { animation: sync-travel 1s var(--ease-out) .1s; }
@keyframes sync-travel {
    0% { opacity: 0; transform: translate(0, 0) scale(.6); }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { opacity: 0; transform: translate(150px, 110px) scale(1.1); }
}

/* Mac terminal */
.device-mac {
    width: min(440px, 90%);
    background: #0B120E; border: 1px solid var(--rep-border);
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(0,0,0,.45);
    font-family: var(--font-mono); font-size: .82rem;
    overflow: hidden;
}
.device-mac .mac-bar { display: flex; gap: .4rem; padding: .6rem .85rem; background: #101913; border-bottom: 1px solid #203026; }
.device-mac .mac-bar i { width: 9px; height: 9px; border-radius: 50%; background: #233A2D; }
.device-mac .mac-body { padding: 1rem 1.1rem 1.2rem; color: #C9DCD0; line-height: 1.75; }
.mac-q { color: #ECF4EE; }
.mac-a { color: #93A89C; opacity: 0; }
[data-step="3"] .mac-a { animation: line-rise .5s var(--ease-out) .5s forwards; }
.mac-a .hot { color: var(--rep-accent); font-weight: 700; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 38px; margin-top: .5rem; }
.spark i {
    width: 14px; background: color-mix(in srgb, var(--rep-accent) 45%, transparent);
    border-radius: 3px 3px 0 0; height: calc(var(--h) * 1%);
    transform: scaleY(0); transform-origin: bottom;
}
[data-step="3"] .spark i { animation: spark-up .5s var(--ease-slam) forwards; animation-delay: calc(.6s + var(--i) * .07s); }
.spark i:last-child { background: var(--rep-accent); }
@keyframes spark-up { to { transform: scaleY(1); } }

/* Stage state switching */
[data-step="1"] .stage-1, [data-step="2"] .stage-2, [data-step="3"] .stage-3 {
    opacity: 1; transform: none; pointer-events: auto;
}

/* Steps column */
.scrolly-step {
    min-height: 64vh;
    display: flex; flex-direction: column; justify-content: center;
}
.scrolly-step .loop-num { margin-bottom: .5rem; }
.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-device { transition: none; }
    [data-step="1"] .watch-log-btn, [data-step="2"] .phone-row--new,
    [data-step="2"] .sync-dot, [data-step="3"] .mac-a, [data-step="3"] .spark i { animation: none; }
    .phone-row--new, .mac-a { opacity: 1; transform: none; }
    .spark i { transform: scaleY(1); }
}

/* ---------- The Loop: 3 steps with a drawing connector ---------- */

.loop-steps { position: relative; }
.loop-line {
    position: absolute; top: 30px; left: 8%; right: 8%; height: 2px;
    background: var(--rep-border);
    transform-origin: left center; transform: scaleX(0);
    transition: transform 1.4s var(--ease-out) .2s;
}
.loop-line::after {
    content: ""; position: absolute; inset: 0;
    background: var(--rep-accent); opacity: .6;
}
.loop-steps.in-view .loop-line { transform: scaleX(1); }

.loop-step { text-align: left; position: relative; z-index: 1; }
.loop-num {
    font-family: var(--font-mono); font-weight: 800;
    font-size: 2.6rem; letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--rep-accent);
}
.loop-step h3 { font-size: 1.15rem; font-weight: 700; margin-top: .4rem; }
.loop-step p { color: var(--rep-muted); font-size: .95rem; }

@media (max-width: 767px) { .loop-line { display: none; } }
@media (prefers-reduced-motion: reduce) { .loop-line { transform: scaleX(1); transition: none; } }

/* ---------- Terminal ---------- */

.terminal {
    background: #0B120E;
    border: 1px solid var(--rep-border);
    border-radius: 14px;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: .9rem;
    box-shadow: 0 20px 64px rgba(0, 0, 0, .38);
}
:root:not([data-theme="dark"]) .terminal { box-shadow: 0 20px 48px rgba(18, 32, 25, .2); }

.terminal__bar {
    display: flex; gap: .4rem; padding: .65rem .9rem;
    background: #101913; border-bottom: 1px solid #203026;
}
.terminal__dot { width: 10px; height: 10px; border-radius: 50%; background: #233A2D; }

.terminal__body { padding: 1.15rem 1.25rem 1.35rem; color: #C9DCD0; line-height: 1.8; min-height: 232px; }
.terminal__body .prompt { color: #5BD99A; font-weight: 700; }
.terminal__body .cmd { color: #ECF4EE; }
.terminal__body .out { color: #93A89C; }
.terminal__body .ok { color: #5BD99A; }

/* Typing caret */
.type-line { white-space: pre-wrap; }
.type-line.typing::after {
    content: ""; display: inline-block;
    width: 8px; height: 1.05em; margin-left: 2px;
    background: #5BD99A; vertical-align: text-bottom;
    animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

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

.locked-strip {
    border-left: 3px solid var(--rep-accent);
    background: var(--rep-accent-soft);
    border-radius: 0 12px 12px 0;
    padding: 1.15rem 1.4rem;
    font-size: 1.02rem;
}
.locked-strip strong { font-weight: 700; }

/* ---------- 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; }
    .log-card { margin-top: 2.5rem; transform: none; }
    .hero-ghost { display: none; }
}
