/* ---------------------------------------------------------------------------
   Claim Tracker - landing page
   ---------------------------------------------------------------------------
   Everything here is namespaced `lp-` and scoped under `.page-home`, so it does
   not collide with the shared component classes in style.css that the other
   pages still rely on (.hero, .features, .cta-section and friends).

   Direction: the page is built as a claim file. The subject's own artifact is a
   ledger of dated entries - AR numbers, stamps, and long silences between them -
   so the hero shows that ledger rather than describing it.
   --------------------------------------------------------------------------- */

.page-home {
    --lp-ink: #0b1f17;          /* near-black green: text, and the hero field */
    --lp-ink-soft: #16352a;     /* raised surfaces on the dark field */
    --lp-paper: #e9eae4;        /* cool grey-green paper, not cream */
    --lp-paper-lift: #f5f6f2;
    --lp-green: #00713a;        /* carried over from the existing logo */
    --lp-green-bright: #3ddc8d; /* only ever on the dark field */
    --lp-gold: #f0b429;         /* the "verified" mark */
    --lp-clay: #b08078;         /* the months of silence */
    --lp-rule: rgba(11, 31, 23, 0.16);
    --lp-rule-dark: rgba(233, 234, 228, 0.16);

    --lp-display: 'Archivo', 'Segoe UI', system-ui, sans-serif;
    --lp-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

    background: var(--lp-paper);
    color: var(--lp-ink);
}

/* The sticky header sits on the dark hero, so it goes dark on this page only. */
.page-home .header {
    background-color: var(--lp-ink);
    box-shadow: none;
    border-bottom: 1px solid var(--lp-rule-dark);
}

.page-home .logo h1 {
    color: var(--lp-paper);
    font-family: var(--lp-display);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.page-home .nav-links a {
    color: rgba(233, 234, 228, 0.78);
    font-family: var(--lp-display);
}

.page-home .nav-links a:hover,
.page-home .nav-links a.active {
    color: var(--lp-paper);
    background-color: rgba(233, 234, 228, 0.08);
}

.page-home .nav-links a.btn-primary {
    background-color: var(--lp-green-bright);
    color: var(--lp-ink);
    font-weight: 600;
}

.page-home .nav-links a.btn-primary:hover {
    background-color: var(--lp-paper);
    color: var(--lp-ink);
}

.page-home .nav-links a.btn-secondary,
.page-home .nav-links button.btn-secondary {
    border: 1px solid var(--lp-rule-dark);
    background-color: transparent;
    color: var(--lp-paper);
}

@media (max-width: 768px) {
    .page-home .nav-links {
        background-color: var(--lp-ink);
        border-bottom: 1px solid var(--lp-rule-dark);
    }
}

.lp-wrap {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- shared type -------------------------------------------------------- */

.lp-eyebrow {
    font-family: var(--lp-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--lp-green);
}

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

/* --- hero --------------------------------------------------------------- */

.lp-hero {
    background-color: var(--lp-ink);
    color: var(--lp-paper);
    padding: clamp(56px, 9vw, 104px) 0 clamp(64px, 10vw, 120px);
}

.lp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    gap: clamp(40px, 6vw, 72px);
    align-items: center;
}

.lp-hero h1 {
    font-family: var(--lp-display);
    font-size: clamp(2.4rem, 6.2vw, 4.05rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    font-weight: 600;
    margin: 20px 0 0;
    text-wrap: balance;
}

.lp-hero h1 em {
    font-style: normal;
    color: var(--lp-green-bright);
}

.lp-hero-sub {
    font-size: clamp(1.02rem, 1.7vw, 1.16rem);
    line-height: 1.6;
    color: rgba(233, 234, 228, 0.76);
    max-width: 46ch;
    margin: 22px 0 0;
}

.lp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.lp-btn {
    display: inline-block;
    font-family: var(--lp-display);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    padding: 17px 28px;
    border-radius: 2px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.lp-btn-solid {
    background-color: var(--lp-green-bright);
    color: var(--lp-ink);
}

.lp-btn-solid:hover {
    background-color: var(--lp-paper);
    transform: translateY(-2px);
}

.lp-btn-ghost {
    border-color: rgba(233, 234, 228, 0.32);
    color: var(--lp-paper);
}

.lp-btn-ghost:hover {
    border-color: var(--lp-paper);
    transform: translateY(-2px);
}

.lp-hero-note {
    font-family: var(--lp-mono);
    font-size: 0.78rem;
    color: rgba(233, 234, 228, 0.5);
    margin: 22px 0 0;
}

/* --- the signature: an example claim ledger ------------------------------ */

.lp-ledger {
    background-color: var(--lp-ink-soft);
    border: 1px solid var(--lp-rule-dark);
    border-radius: 3px;
    font-family: var(--lp-mono);
    overflow: hidden;
}

.lp-ledger-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--lp-rule-dark);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(233, 234, 228, 0.55);
}

.lp-ledger-head strong {
    color: var(--lp-paper);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.lp-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
    padding: 11px 20px;
    font-size: 0.83rem;
    border-bottom: 1px solid rgba(233, 234, 228, 0.07);
}

.lp-row time {
    color: rgba(233, 234, 228, 0.42);
    font-variant-numeric: tabular-nums;
}

.lp-row-quiet span {
    color: var(--lp-clay);
}

.lp-row-live time {
    color: rgba(233, 234, 228, 0.66);
}

.lp-row-live span {
    color: var(--lp-paper);
}

.lp-row-live span b {
    display: block;
    font-family: var(--lp-display);
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--lp-gold);
    letter-spacing: -0.01em;
    margin-bottom: 2px;
}

/* The hinge of the whole page: the moment the file starts moving. */
.lp-ledger-hinge {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background-color: rgba(61, 220, 141, 0.07);
    border-top: 1px solid rgba(61, 220, 141, 0.28);
    border-bottom: 1px solid rgba(61, 220, 141, 0.28);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lp-green-bright);
}

.lp-ledger-hinge::after {
    content: "";
    flex: 1;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        rgba(61, 220, 141, 0.5) 0 4px,
        transparent 4px 8px
    );
}

.lp-ledger-foot {
    padding: 14px 20px;
    font-size: 0.72rem;
    color: rgba(233, 234, 228, 0.4);
    letter-spacing: 0.04em;
}

/* Rows arrive in sequence on load: the file filling in. */
.lp-ledger .lp-row,
.lp-ledger .lp-ledger-hinge {
    opacity: 0;
    animation: lp-enter 0.5s ease forwards;
}

.lp-ledger > *:nth-child(2)  { animation-delay: 0.10s; }
.lp-ledger > *:nth-child(3)  { animation-delay: 0.18s; }
.lp-ledger > *:nth-child(4)  { animation-delay: 0.26s; }
.lp-ledger > *:nth-child(5)  { animation-delay: 0.34s; }
.lp-ledger > *:nth-child(6)  { animation-delay: 0.46s; }
.lp-ledger > *:nth-child(7)  { animation-delay: 0.60s; }
.lp-ledger > *:nth-child(8)  { animation-delay: 0.70s; }

@keyframes lp-enter {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

/* --- what you get ------------------------------------------------------- */

.lp-section {
    padding: clamp(64px, 9vw, 108px) 0;
}

.lp-section-head {
    max-width: 60ch;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.lp-section-head h2 {
    font-family: var(--lp-display);
    font-size: clamp(1.85rem, 3.7vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 600;
    margin: 14px 0 0;
    text-wrap: balance;
}

.lp-section-head p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(11, 31, 23, 0.68);
    margin: 16px 0 0;
    max-width: 54ch;
}

/* Hairline rows rather than a grid of shadowed cards. The mono label names the
   category, which is information; it is not a sequence, so it is not numbered. */
.lp-list {
    border-top: 1px solid var(--lp-rule);
}

.lp-item {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: clamp(16px, 4vw, 48px);
    padding: 26px 0;
    border-bottom: 1px solid var(--lp-rule);
}

.lp-item-label {
    font-family: var(--lp-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lp-green);
    padding-top: 5px;
}

.lp-item h3 {
    font-family: var(--lp-display);
    font-size: 1.22rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 7px;
}

.lp-item p {
    font-size: 1rem;
    line-height: 1.62;
    color: rgba(11, 31, 23, 0.7);
    margin: 0;
    max-width: 62ch;
}

/* --- who this is for: the only photography on the page ------------------ */

.lp-people {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 3vw, 28px);
}

.lp-person {
    margin: 0;
}

.lp-person img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 1px solid var(--lp-rule);
    border-radius: 2px;
    filter: grayscale(0.25);
}

.lp-person figcaption {
    padding-top: 14px;
}

.lp-person .lp-item-label {
    padding-top: 0;
}

.lp-person figcaption p:last-child {
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(11, 31, 23, 0.7);
    margin: 6px 0 0;
}

/* --- how it works: a real sequence, so it is numbered -------------------- */

.lp-steps-section {
    background-color: var(--lp-paper-lift);
    border-top: 1px solid var(--lp-rule);
    border-bottom: 1px solid var(--lp-rule);
}

.lp-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background-color: var(--lp-rule);
    border: 1px solid var(--lp-rule);
}

.lp-step {
    background-color: var(--lp-paper-lift);
    padding: 28px 24px 32px;
}

.lp-step-index {
    font-family: var(--lp-mono);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    color: var(--lp-green);
    display: block;
    margin-bottom: 20px;
}

.lp-step h3 {
    font-family: var(--lp-display);
    font-size: 1.14rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.lp-step p {
    font-size: 0.96rem;
    line-height: 1.6;
    color: rgba(11, 31, 23, 0.7);
    margin: 0;
}

/* --- closing ------------------------------------------------------------ */

.lp-close {
    background-color: var(--lp-ink);
    color: var(--lp-paper);
    padding: clamp(60px, 8vw, 96px) 0;
}

.lp-close-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
}

.lp-close h2 {
    font-family: var(--lp-display);
    font-size: clamp(1.9rem, 4.4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-weight: 600;
    margin: 14px 0 0;
    max-width: 18ch;
    text-wrap: balance;
}

.lp-close p {
    color: rgba(233, 234, 228, 0.7);
    margin: 16px 0 0;
    max-width: 44ch;
    line-height: 1.6;
}

.lp-close-note {
    font-family: var(--lp-mono);
    font-size: 0.8rem;
    color: rgba(233, 234, 228, 0.5);
    margin-top: 16px;
}

.lp-close-note a {
    color: var(--lp-green-bright);
}

/* --- accessibility floor ------------------------------------------------ */

.page-home a:focus-visible,
.page-home button:focus-visible {
    outline: 2px solid var(--lp-gold);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .lp-ledger .lp-row,
    .lp-ledger .lp-ledger-hinge {
        opacity: 1;
        animation: none;
    }

    .lp-btn:hover {
        transform: none;
    }
}

/* --- responsive --------------------------------------------------------- */

@media (max-width: 900px) {
    .lp-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
    }

    .lp-hero-sub {
        max-width: none;
    }

    .lp-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lp-people {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .lp-wrap {
        padding: 0 18px;
    }

    .lp-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .lp-item-label {
        padding-top: 0;
    }

    .lp-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .lp-people {
        grid-template-columns: minmax(0, 1fr);
    }

    .lp-row {
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 12px;
        padding: 10px 16px;
        font-size: 0.79rem;
    }

    .lp-ledger-head,
    .lp-ledger-hinge,
    .lp-ledger-foot {
        padding-left: 16px;
        padding-right: 16px;
    }

    .lp-btn {
        width: 100%;
        text-align: center;
    }
}
