/* ════════════════════════════════════════════════════════════
   Land Restored page  (/land)
   Self-contained styling. Relies on design-tokens.css for brand
   variables. Hand-written CSS (no new Tailwind utilities, since
   assets/css/tailwind.css is a prebuilt/purged bundle).
   ════════════════════════════════════════════════════════════ */

:root {
    --turf: #156a46;
    --turf-line: rgba(255, 255, 255, 0.45);
    --land-card-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
}

/* ── Footnote references ─────────────────────────────────────── */
.land-fnref {
    font-size: 0.62em;
    vertical-align: super;
    line-height: 0;
    margin-left: 2px;
    font-weight: 600;
    color: var(--color-brand-green, #004734);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.land-fnref:hover { color: var(--color-brand-green-hover, #00352A); }
.land-fnref--light { color: rgba(255, 255, 255, 0.7); }
.land-fnref--light:hover { color: #fff; }

/* ── Shared section furniture ───────────────────────────────── */
.land-panel {
    background: #fff;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 1.5rem;
    padding: 2rem 1.75rem;
    box-shadow: var(--land-card-shadow);
}
@media (min-width: 640px) {
    .land-panel { padding: 2.75rem 2.5rem; }
}
/* Centered variant (used for the comparison section) */
.land-panel--center { text-align: center; }
.land-panel--center .land-lead { margin-left: auto; margin-right: auto; }

.land-kicker {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-brand-green-light, #006B50);
    margin: 0 0 0.7rem;
}
.land-kicker--light { color: rgba(255, 255, 255, 0.7); }

.land-h2 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    color: var(--color-deep-forest, #0F172A);
    font-size: clamp(1.45rem, 3.6vw, 2.1rem);
    line-height: 1.18;
    margin: 0 0 0.75rem;
    letter-spacing: -0.01em;
}
.land-accent { color: var(--color-brand-green, #004734); }

.land-lead {
    color: var(--color-text-secondary, #6b7280);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 58ch;
    margin: 0 0 1.75rem;
}
.land-fineprint {
    margin: 1.5rem 0 0;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--color-text-secondary, #6b7280);
}

/* ── Hero ───────────────────────────────────────────────────── */
.land-hero {
    border-radius: 0 0 1.5rem 1.5rem;
    padding-bottom: 3rem;
}
@media (min-width: 640px) {
    .land-hero { padding-bottom: 4rem; }
}

.land-hero__title {
    font-size: clamp(1.85rem, 5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin: 0 0 1rem;
}
.land-hero__lede {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.65;
    max-width: 48ch;
    margin: 0 auto 2.25rem;
    color: rgba(255, 255, 255, 0.78);
}

.land-figure {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-bottom: 0.55rem;
}
.land-figure__num {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(3.25rem, 14vw, 7rem);
    line-height: 0.95;
    font-weight: 400;
    color: #ffffff;
}
.land-figure__unit {
    font-size: clamp(1.05rem, 2.6vw, 1.6rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}
.land-figure__sub {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.4rem 0 0;
}
.land-figure__chip {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
}
.land-figure__chip--ghost { background: transparent; color: rgba(255, 255, 255, 0.62); }

.land-scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.2s ease;
}
.land-scroll-cue:hover { color: #fff; }
.land-scroll-cue svg { width: 0.95rem; height: 0.95rem; }

/* ── Football-field comparison (one example) ────────────────── */
.land-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 1.75rem;
}

.land-field {
    position: relative;
    width: clamp(72px, 18vw, 124px);
    aspect-ratio: 16 / 10;
    border-radius: 5px;
    background-color: var(--turf);
    /* yard lines */
    background-image: repeating-linear-gradient(
        to right,
        var(--turf-line) 0, var(--turf-line) 1px,
        transparent 1px, transparent 12.5%
    );
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 16px -10px rgba(15, 23, 42, 0.5);
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
}
/* end zones */
.land-field::before,
.land-field::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 11%;
    background: rgba(255, 255, 255, 0.12);
}
.land-field::before { left: 0; border-right: 1px solid var(--turf-line); }
.land-field::after { right: 0; border-left: 1px solid var(--turf-line); }

.land-field.is-in {
    animation: land-rise 0.5s ease-out forwards;
    animation-delay: calc(var(--i, 0) * 40ms);
}
@keyframes land-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── 2030 goal projection ───────────────────────────────────── */
.land-goal {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #003326 0%, #004734 55%, #00543d 100%);
    border-radius: 1.75rem;
    color: #fff;
}
.land-goal__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image:
        radial-gradient(circle at 18% 28%, rgba(255,255,255,0.5) 0%, transparent 42%),
        radial-gradient(circle at 82% 76%, rgba(255,255,255,0.32) 0%, transparent 46%);
    pointer-events: none;
}
.land-goal__inner {
    position: relative;
    padding: 2.5rem 1.75rem;
    text-align: center;
}
@media (min-width: 640px) {
    .land-goal__inner { padding: 3.25rem 2.75rem; }
}
.land-goal__title {
    font-weight: 400;
    font-size: clamp(1.55rem, 4vw, 2.3rem);
    line-height: 1.15;
    margin: 0 0 0.85rem;
}
.land-goal__lede {
    max-width: 56ch;
    margin: 0 auto 1.85rem;
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.8);
}
.land-goal__lede strong { color: #fff; font-weight: 700; }

.land-goal__bar {
    position: relative;
    max-width: 30rem;
    margin: 0 auto 1.75rem;
    height: 2.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9999px;
    overflow: hidden;
}
.land-goal__bar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #2f9e6f, #6ee7b7);
    border-radius: 9999px;
    transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.land-goal__bar-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.land-goal__row {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.land-goal__stat { display: flex; flex-direction: column; }
.land-goal__stat-num {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    line-height: 1;
}
.land-goal__stat-lbl {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 0.35rem;
}
.land-goal__divider {
    width: 1px;
    align-self: stretch;
    min-height: 2.25rem;
    background: rgba(255, 255, 255, 0.2);
}
@media (max-width: 480px) {
    .land-goal__row { flex-direction: column; gap: 1rem; }
    .land-goal__divider { width: 2.5rem; min-height: 0; height: 1px; }
}

/* ── Methodology ────────────────────────────────────────────── */
.land-calc {
    background: var(--color-surface-muted, #f8fafc);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 0.9rem;
    padding: 1.35rem 1.25rem;
    text-align: center;
    margin-bottom: 1.5rem;
}
.land-calc__cap {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-secondary, #6b7280);
    margin: 0 0 0.55rem;
}
.land-calc__eq {
    margin: 0;
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-weight: 600;
    color: var(--color-deep-forest, #0F172A);
    line-height: 1.4;
}
.land-calc__op { color: var(--color-brand-green-light, #006B50); margin: 0 0.15rem; }
.land-calc__sub { color: var(--color-text-secondary, #6b7280); font-weight: 500; white-space: nowrap; }

.land-notes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 768px) {
    .land-notes { grid-template-columns: repeat(3, 1fr); }
}
.land-note {
    background: #fff;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 0.9rem;
    padding: 1.25rem;
}
.land-note__label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-brand-green, #004734);
    margin: 0 0 0.5rem;
}
.land-note__body {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text-secondary, #6b7280);
    margin: 0;
}
.land-note__body a {
    color: var(--color-brand-green, #004734);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.land-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}
.land-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.land-btn svg { width: 1rem; height: 1rem; }
.land-btn--primary { background: var(--color-brand-green, #004734); color: #fff; }
.land-btn--primary:hover { background: var(--color-brand-green-light, #006B50); }
.land-btn--ghost {
    background: transparent;
    color: var(--color-brand-green, #004734);
    border: 1px solid rgba(0, 71, 52, 0.25);
}
.land-btn--ghost:hover { border-color: var(--color-brand-green, #004734); background: rgba(0, 71, 52, 0.04); }

/* ── Reduced motion: show everything, animate nothing ──────── */
@media (prefers-reduced-motion: reduce) {
    .land-field { opacity: 1; transform: none; animation: none; }
    .land-goal__bar-fill { transition: none; }
}
