/* Quant Lab ledger page, loaded after base.css. Gold/ink design DNA from the
   wealth-infinity page + the interactive challenge timeline. */

body {
    background:
        radial-gradient(circle at 10% 0%, rgba(184, 145, 47, 0.18), transparent 32rem),
        radial-gradient(circle at 90% 12%, rgba(21, 19, 15, 0.1), transparent 28rem),
        var(--cream);
    overflow-x: hidden;
}

section {
    padding: 64px 0;
    scroll-margin-top: 20px;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--ink);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

h1 {
    max-width: 720px;
    margin: 0 auto 18px;
    font-weight: 800;
    font-size: clamp(30px, 4.2vw, 54px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-feature-settings: "salt", "kern";
    -webkit-font-smoothing: antialiased;
}

h1 span {
    color: var(--gold);
}

h2 {
    max-width: 860px;
    font-weight: 800;
    font-size: clamp(26px, 3.2vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
}

h2 span {
    color: var(--gold);
}

.section-sub {
    max-width: 720px;
    margin: 0 0 30px;
    color: var(--muted);
    font-weight: 500;
    font-size: 16.5px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--gold-bright);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.kicker::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold-bright);
    box-shadow: 0 0 0 3px rgba(228, 194, 106, 0.28);
}

/* ── HEADER ── */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.brand-mark {
    font-weight: 800;
    font-size: 26px;
    color: var(--gold);
    line-height: 1;
}

.brand-text {
    font-weight: 800;
    font-size: 17px;
    color: var(--ink);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
}
nav a {
    text-decoration: none;
}
nav a:hover {
    color: var(--gold);
}

/* ── HERO: dark, grid pattern, gradient headline ── */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 26px;
    padding: 84px 24px 72px;
    text-align: center;
    color: var(--cream);
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        #0b0a08;
    background-size:
        44px 44px,
        44px 44px,
        auto;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    max-width: 120vw;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(184, 145, 47, 0.14), transparent 65%);
    pointer-events: none;
}

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

.hero-mark {
    font-size: 44px;
    font-weight: 800;
    color: var(--gold-bright);
    line-height: 1;
}

.hero-pill {
    padding: 11px 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #f5f2ea;
    font-size: 15px;
    font-weight: 700;
}

.hero-copy {
    max-width: 800px;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #ffffff 15%, #b9b3a6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 span {
    background: linear-gradient(180deg, var(--gold-bright) 20%, #d9a94e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    margin: 0 auto;
    max-width: 560px;
    color: #a9a49a;
    font-size: clamp(15px, 1.7vw, 17.5px);
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
}

.hero-copy {
    width: 100%;
}

.lead {
    max-width: 620px;
    margin: 18px 0 26px;
    color: var(--ink-2);
    font-size: clamp(15.5px, 1.6vw, 18px);
    font-weight: 500;
}

.lead strong {
    color: var(--ink);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 24px;
    border-radius: 14px;
    font-weight: 800;
    text-decoration: none;
    font-size: 15.5px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: currentColor;
}

.primary {
    color: var(--gold-bright);
    background: var(--ink);
    box-shadow: 0 16px 34px rgba(21, 19, 15, 0.28);
}

.secondary {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
}

.tagline {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 13px;
    font-weight: 800;
    color: var(--bronze);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── CARDS ── */
.card {
    position: relative;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 20px 60px rgba(21, 19, 15, 0.08);
    padding: 30px;
    border-radius: 26px;
}

.card-label {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(184, 145, 47, 0.12);
    color: var(--bronze);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 22px;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.card p {
    color: var(--muted);
    font-weight: 500;
    font-size: 15px;
    margin: 0 0 12px;
}

.card ul {
    margin: 0;
    padding-left: 18px;
}

.card li {
    color: var(--muted);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
}

.divider {
    height: 1px;
    background: var(--line);
    margin: 18px 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge.burned {
    background: rgba(214, 69, 51, 0.12);
    color: var(--red);
}

.badge.alive {
    background: rgba(46, 148, 100, 0.13);
    color: var(--green);
}

.badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* ── TIMELINE ── */
.tl-card {
    padding: 22px 22px 10px;
}

.tl-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 18px;
    margin-bottom: 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
}

.tl-legend b {
    font-weight: 800;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.tl-totals {
    margin-left: auto;
    display: inline-flex;
    gap: 10px;
    font-weight: 800;
    font-size: 13.5px;
}

.tt-spent {
    color: var(--red);
}

.tt-made {
    color: var(--green);
}

.tl-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.lg-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 auto;
}

.lg-dot.burned {
    background: var(--red);
}

.lg-dot.alive {
    background: var(--green);
}

.lg-dot.milestone {
    background: var(--green);
}

.tl-scroller {
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.tl-track {
    position: relative;
    height: 300px;
    min-width: 820px;
}

.tl-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.tl-spend-line {
    fill: none;
    stroke: var(--red);
    stroke-width: 2.5;
    vector-effect: non-scaling-stroke;
    stroke-linejoin: round;
}

.tl-spend-area {
    fill: rgba(214, 69, 51, 0.09);
}

.tl-hint {
    margin: 0;
    padding: 8px 0 6px;
    text-align: center;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--muted);
}

.tl-axis {
    position: absolute;
    left: 0;
    right: 0;
    top: 200px;
    height: 1px;
    background: rgba(21, 19, 15, 0.28);
}

.tl-axis-label {
    position: absolute;
    right: 0;
    top: 208px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(84, 77, 67, 0.6);
}

.tick {
    position: absolute;
    top: 200px;
    height: 66px;
    width: 1px;
    background: rgba(21, 19, 15, 0.06);
}

.tick span {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.tl-today {
    position: absolute;
    top: 26px;
    bottom: 40px;
    width: 0;
    border-left: 2px dashed rgba(184, 145, 47, 0.55);
}

.tl-today span {
    position: absolute;
    top: -4px;
    left: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--gold-bright);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.tl-dot {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--white);
    cursor: pointer;
    padding: 0;
    box-shadow: 0 2px 8px rgba(21, 19, 15, 0.25);
    transition: transform 0.15s ease;
}

.tl-dot:hover {
    transform: translate(-50%, -50%) scale(1.25);
    z-index: 4;
}

.tl-dot.burned {
    background: var(--red);
}

.tl-dot.burned::before {
    content: "✕";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--white);
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
}

.tl-dot.alive {
    background: var(--green);
    animation: pulse 2.4s ease-out infinite;
}

/* milestone = stage cleared, not passed: same green as alive,
   the green flag carries the milestone info */
.tl-dot.milestone {
    background: var(--green);
}

.tl-dot.burned::after {
    content: "";
    position: absolute;
    left: calc(50% - 0.5px);
    top: calc(100% - 1px);
    width: 1px;
    height: 33px;
    background: rgba(214, 69, 51, 0.4);
}

.tl-dot.alive::after,
.tl-dot.milestone::after {
    content: "";
    position: absolute;
    left: calc(50% - 0.5px);
    bottom: calc(100% - 1px);
    width: 1px;
    height: 33px;
    background: rgba(46, 148, 100, 0.5);
}

.tl-dot.selected {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
    z-index: 5;
}

.tl-dot:focus-visible {
    outline: 3px solid var(--bronze);
    outline-offset: 2px;
}

/* days-on-node labels: (4d) = closed/burned, [9d] = still open */
.tl-days {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-align: center;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
    background: var(--cream);
    padding: 1px 5px;
    border-radius: 6px;
}

.tl-dot.burned .tl-days {
    bottom: calc(100% + 3px);
    color: var(--red);
}

.tl-dot.burned .tl-days.flip {
    bottom: auto;
    top: calc(100% + 3px);
}

.tl-dot.alive .tl-days {
    top: calc(100% + 3px);
    color: var(--green-ink);
}

.tl-dot.alive .tl-days.flip {
    top: auto;
    bottom: calc(100% + 3px);
}

.tl-dot.milestone .tl-days {
    top: calc(100% + 3px);
    color: var(--green-ink);
}

.tl-dot.milestone .tl-days.flip {
    top: auto;
    bottom: calc(100% + 3px);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 148, 100, 0.4);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(46, 148, 100, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 148, 100, 0);
    }
}

/* milestone flag: names the challenge at the date it hit the milestone */
.tl-flag {
    position: absolute;
    top: 148px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--cream);
    border: 1.5px solid var(--green);
    color: var(--green-ink);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 2px 9px;
    border-radius: 999px;
    white-space: nowrap;
    pointer-events: none;
    font-variant-numeric: tabular-nums;
    z-index: 3;
}

.tl-flag-icon {
    width: 15px;
    height: 15px;
    object-fit: contain;
    background: var(--white);
    border-radius: 4px;
    padding: 1px;
}


/* connector curve: milestone dot below the axis to its flag above it */
.tl-link {
    fill: none;
    stroke: var(--green);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
    opacity: 0.55;
}

.tl-dot .tip {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--cream);
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 8px;
    white-space: normal;
    width: max-content;
    max-width: 260px;
    text-align: left;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 6;
    box-shadow: 0 8px 20px rgba(21, 19, 15, 0.28);
}

.tl-dot.burned .tip {
    top: calc(100% + 14px);
    bottom: auto;
}

/* when the day label sits on the default tip side, move the tip to the free side */
.tl-dot .tl-days.flip + .tip {
    top: calc(100% + 14px);
    bottom: auto;
}

.tl-dot.burned .tl-days.flip + .tip {
    top: auto;
    bottom: calc(100% + 14px);
}

.tl-dot:hover .tip,
.tl-dot:focus-visible .tip {
    opacity: 1;
}

/* dots near the track edges: anchor the tooltip inward so it never clips */
.tl-dot.near-start .tip {
    left: -8px;
    transform: none;
}

.tl-dot.near-end .tip {
    left: auto;
    right: -8px;
    transform: none;
}

/* tiny brand logo inside the tooltip */
.tip-icon {
    width: 15px;
    height: 15px;
    object-fit: contain;
    background: var(--white);
    border-radius: 4px;
    padding: 1px;
    vertical-align: -3px;
    margin-right: 4px;
}

/* clicked dot: all info lives in the detail panel, no tooltip clutter */
.tl-dot.selected .tip {
    display: none;
}

/* spend line draw-in */
.tl-svg .draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.tl-svg.drawn .draw {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.4s ease;
}

.tl-today,
.tick {
    opacity: 0;
    transform: translateY(6px);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}

/* dots keep the standalone translate property: transform is already
   used for their -50%/-50% centering (older browsers skip the slide) */
.tl-dot {
    opacity: 0;
    translate: 0 6px;
    transition:
        opacity 0.5s ease,
        translate 0.5s ease,
        transform 0.15s ease;
}

.tl-card.drawn .tl-today,
.tl-card.drawn .tick {
    opacity: 1;
    transform: none;
}

.tl-card.drawn .tl-dot {
    opacity: 1;
    translate: 0 0;
}

/* ── WHO THIS IS FOR ── */
.qualify-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.qualify-card h3 {
    font-size: 19px;
    margin-bottom: 14px;
}

.check-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding: 6px 0 6px 30px;
    color: var(--ink-2);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.45;
}

.check-list li::before {
    position: absolute;
    left: 0;
    top: 6px;
    font-weight: 800;
}

.check-list li::before {
    content: "\2714";
    color: var(--green);
}

.check-list.no li::before {
    content: "\2716";
    color: var(--red);
}

/* ── DETAIL PANEL ── */
.tl-detail {
    margin-top: 18px;
}

.tl-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* optional brand logo: fixed 84px slot so the title always starts
   at the same x-position, with or without a logo */
.tl-brand {
    flex: 0 0 84px;
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tl-brand img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tl-detail-title {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.tl-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

/* the base .card-label carries a stacked-layout margin; kill it in the row */
.tl-title-row .card-label {
    margin-bottom: 0;
}

.tl-detail-head h3 {
    font-size: clamp(22px, 2.4vw, 30px);
    margin: 2px 0 10px;
}

.tl-detail-meta {
    display: grid;
    /* columns follow the number of visible tiles: hiding Made on burned
       challenges automatically reflows to 4 equal tiles */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.meta-item {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(184, 145, 47, 0.07);
    border: 1px solid rgba(184, 145, 47, 0.16);
}

.meta-item .key {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 4px;
}

.meta-item .val {
    font-weight: 800;
    font-size: 15.5px;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}

.meta-item .val.loss {
    color: var(--red);
}

.meta-item .val small {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--muted);
    margin-top: 2px;
}

.tl-story {
    max-width: 860px;
    color: var(--muted);
    font-weight: 500;
    font-size: 15.5px;
    margin: 0 0 16px;
}

.tl-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tl-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tl-count {
    font-size: 13px;
    font-weight: 800;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    min-width: 42px;
    text-align: center;
}

.tl-nav button {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.85);
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        background 0.15s ease;
}

.tl-nav button:hover {
    transform: translateY(-1px);
    background: var(--white);
}

.tl-nav button:focus-visible {
    outline: 3px solid var(--bronze);
    outline-offset: 2px;
}

/* ── JOURNAL ── */
.card-link {
    color: var(--bronze);
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1.5px solid rgba(184, 145, 47, 0.4);
}

.card-link:hover {
    border-bottom-color: var(--gold);
}

/* ── TOOLS: full-width rows, one subheading per tool ── */
.tools-list {
    display: grid;
    gap: 14px;
}

.tool-row {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 24px;
    align-items: center;
}

/* dummy icon: swap for <img class="tool-icon-slot"> when real art arrives */
.tool-icon-slot {
    width: 100%;
    height: 96px;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(184, 145, 47, 0.16), rgba(21, 19, 15, 0.05));
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 38px;
    color: var(--gold);
    object-fit: contain;
}

/* real logos (transparent, any aspect ratio) sit on plain white */
img.tool-icon-slot {
    padding: 12px;
    background: var(--white);
}

.tool-head {
    display: flex;
    align-items: baseline;
    gap: 8px 14px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.tool-cat {
    color: var(--muted);
    font-weight: 500;
}

.tool-head h3 {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 0;
    font-size: clamp(24px, 2.6vw, 32px);
}

.tool-body p {
    max-width: 760px;
    margin-bottom: 10px;
}

.tool-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 22px;
    border-radius: 12px;
    background: var(--ink);
    color: var(--gold-bright);
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(21, 19, 15, 0.22);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.tool-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(21, 19, 15, 0.3);
}

.tool-cta:focus-visible {
    outline: 3px solid var(--bronze);
    outline-offset: 2px;
}

@media (max-width: 760px) {
    .tool-row {
        grid-template-columns: 96px 1fr;
    }
    .tool-icon-slot {
        height: 64px;
        border-radius: 18px;
        font-size: 26px;
    }
    .tool-cta {
        width: 100%;
        justify-content: center;
    }
}

/* ── FOOTER ── */
footer {
    padding: 36px 0 44px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    border-top: 1px solid var(--line);
}

footer .inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-legal {
    flex-basis: 100%;
}

.footer-disclaimer {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 0 10px;
}

.footer-disclaimer strong {
    display: block;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11.5px;
    margin-bottom: 4px;
}

footer a {
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.social-links {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--gold);
}

/* ── REEL CARD (hero aside) ── */
.reel-card {
    position: relative;
    max-width: 300px;
    filter: drop-shadow(0 18px 30px rgba(21, 19, 15, 0.22));
}

.reel-frame {
    width: 100%;
    height: auto; /* without this, the width/height attrs distort the image */
    display: block;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.reel-media {
    display: block;
}

.reel-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--gold-bright);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.reel-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    background: linear-gradient(
        45deg,
        #f09433 0%,
        #e6683c 25%,
        #dc2743 50%,
        #cc2366 75%,
        #bc1888 100%
    );
    color: #ffffff;
    font-weight: 800;
    font-size: 14.5px;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(220, 39, 102, 0.35);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.reel-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(220, 39, 102, 0.5);
}

.reel-cta:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

.reel-cta-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    flex: 0 0 auto;
}

.noscript-note {
    padding: 14px;
    border-radius: 12px;
    background: rgba(214, 69, 51, 0.1);
    color: var(--red);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    header {
        align-items: flex-start;
        flex-direction: column;
    }
    nav {
        flex-wrap: wrap;
        width: 100%;
    }
    .hero {
        padding-top: 24px;
    }
    .reel-card {
        transform: none;
    }
    .hero .actions,
    .hero .lead,
    .hero .tagline {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
    h1 {
        margin-left: auto;
        margin-right: auto;
    }
    .tl-detail {
        padding: 30px 26px;
    }
    .qualify-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tl-dot.alive {
        animation: none;
    }
    .tl-svg .draw {
        stroke-dasharray: none;
        stroke-dashoffset: 0;
    }
    .tl-dot {
        opacity: 1;
        translate: 0 0;
        transition: none;
    }
    .tl-today,
    .tick {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .button,
    .tl-dot,
    .tool-cta {
        transition: none;
    }
}
