/* ===== Landing page =====
   The homepage follows one sale end to end: the click on the seller's own
   site (the hero exhibit), the route it travels (yourapp.com →
   usethatapp.com/buy → back), and the settled receipt. Inherits the ledger
   identity from pricing_page.css (ink, money-blue, IBM Plex Mono figures);
   this file adds the landing-only pieces: the hero exhibit, the route, the
   OURS/YOURS stamps on the settled receipt, the responsibility split line,
   the storefront strip, and the close. */

.hm-hero,
.hm-route,
.hm-store,
.hp-mor,
.hp-close {
    --lp-ink: hsl(216, 24%, 12%);
    --lp-money: hsl(211, 100%, 34%);
    --lp-debit: hsl(9, 59%, 44%);
    --lp-wire: hsl(214, 28%, 88%);
    --lp-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

.hp-center {
    text-align: center;
}

.hp-h2 {
    font-size: clamp(1.9rem, 4.5vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.12;
    color: var(--lp-ink);
    text-align: center;
    margin-bottom: 1.25rem;
}

.hp-lead {
    max-width: 580px;
    margin: 0 auto 2.75rem;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--color-muted-foreground);
    text-align: center;
}

/* ---- hero: the buy button on the seller's own page ---- */

.hm-hero {
    padding: 4.5rem 1rem 4rem;
    text-align: center;
    background: var(--color-background);
}

.hm-title {
    font-size: clamp(2.4rem, 6.5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.06;
    color: var(--lp-ink);
    margin-bottom: 1.4rem;
}

.hm-settle {
    color: var(--lp-money);
}

.hm-lead {
    max-width: 620px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-muted-foreground);
}

/* The exhibit: a fragment of the seller's pricing page. Deliberately in
   their vernacular (plain card, generic dark button), not ours — the only
   UseThatApp ink is the annotated href beneath it. */
.hm-exhibit {
    max-width: 560px;
    margin: 0 auto;
}

.hm-exhibit-card {
    background: var(--color-card);
    border: 1px solid var(--lp-wire);
    border-top: 2px solid var(--lp-ink);
    box-shadow: var(--shadow-lg);
    text-align: left;
}

.hm-exhibit-bar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.7rem 1.4rem;
    border-bottom: 1px solid var(--lp-wire);
    font-family: var(--lp-mono);
}

.hm-exhibit-url {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--lp-money);
}

.hm-exhibit-tag {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-muted-foreground);
}

.hm-exhibit-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.4rem;
}

.hm-exhibit-plan {
    font-weight: 600;
    color: var(--lp-ink);
}

.hm-exhibit-sub {
    font-size: 0.8rem;
    color: var(--color-muted-foreground);
    margin-top: 0.1rem;
}

.hm-exhibit-price {
    margin-left: auto;
    font-family: var(--lp-mono);
    font-variant-numeric: tabular-nums;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--lp-ink);
    white-space: nowrap;
}

.hm-exhibit-price small {
    font-size: 0.6em;
    font-weight: 500;
    color: var(--color-muted-foreground);
}

/* The seller's button, not ours: generic ink pill, no gradient. Inert on
   purpose — it illustrates, it doesn't navigate. */
.hm-exhibit-buy {
    background: var(--lp-ink);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.55rem 1.35rem;
    border-radius: 6px;
    pointer-events: none;
    user-select: none;
}

/* Annotation: a dashed lead line drops from the card to the one line of
   HTML that powers it. */
.hm-exhibit-note {
    position: relative;
    margin: 0;
    padding-top: 1.7rem;
    text-align: center;
}

.hm-exhibit-note::before {
    content: "";
    position: absolute;
    top: 0.15rem;
    left: 50%;
    height: 1.25rem;
    border-left: 1.5px dashed var(--lp-money);
}

.hm-exhibit-note-label {
    display: block;
    font-family: var(--lp-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-muted-foreground);
    margin-bottom: 0.35rem;
}

.hm-exhibit-note code {
    font-family: var(--lp-mono);
    font-size: 0.85rem;
    color: var(--lp-money);
    word-break: break-all;
}

.hm-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.75rem;
}

.hm-cta-foot {
    margin: 1.1rem 0 0;
    font-family: var(--lp-mono);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    color: var(--color-muted-foreground);
}

/* ---- the route: where the sale travels ---- */

.hm-route {
    padding: 4.5rem 1rem 4rem;
    background: var(--color-background);
    border-top: 1px solid var(--lp-wire);
}

.hm-route-list {
    list-style: none;
    max-width: 720px;
    margin: 2.75rem auto 0;
    padding: 0;
}

.hm-stop {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0.75rem 2.5rem;
    padding: 1.9rem 0;
}

/* Dashed separators: receipt tear lines between stops. */
.hm-stop + .hm-stop {
    border-top: 1px dashed var(--lp-wire);
}

.hm-stop-at {
    margin: 0;
    font-family: var(--lp-mono);
    text-align: right;
}

.hm-stop-domain {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--lp-ink);
    word-break: break-all;
}

.hm-stop-yours {
    color: var(--lp-money);
}

.hm-stop-where {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-muted-foreground);
}

.hm-stop h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--lp-ink);
    margin-bottom: 0.45rem;
}

.hm-stop > div > p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-muted-foreground);
    margin: 0;
}

.hm-route-foot {
    max-width: 560px;
    margin: 2rem auto 0;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-muted-foreground);
}

/* ---- the settlement: merchant of record ---- */

.hp-mor {
    padding: 4.5rem 1rem 3.5rem;
    background: hsl(210, 40%, 97%);
    border-top: 1px solid var(--lp-wire);
}

.hp-receipt {
    position: relative;
}

/* Stamps: inked rubber-stamp marks that settle onto each line the moment
   the receipt scrolls into view — the one animated beat on the page. */
.hp-stamp {
    display: inline-block;
    font-family: var(--lp-mono);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--lp-debit);
    border: 1.5px solid currentColor;
    border-radius: 3px;
    padding: 0.1rem 0.4rem;
    margin-left: 0.55rem;
    transform: rotate(-4deg);
    vertical-align: 0.1em;
    opacity: 0;
}

.hp-stamp-yours {
    color: var(--lp-money);
    transform: rotate(3deg);
}

.hp-settled .hp-stamp {
    opacity: 0.85;
}

@media (prefers-reduced-motion: no-preference) {
    .hp-settled .hp-stamp {
        animation: hp-stamp-in 0.35s cubic-bezier(0.2, 1.6, 0.4, 1) backwards;
    }

    /* Stamps land one after another, reading order — the receipt gets
       "processed" in front of the visitor. */
    .hp-settled .hp-stamp-line:nth-of-type(2) .hp-stamp { animation-delay: 0.15s; }
    .hp-settled .hp-stamp-line:nth-of-type(3) .hp-stamp { animation-delay: 0.5s; }
    .hp-settled .hp-stamp-line:nth-of-type(4) .hp-stamp { animation-delay: 0.85s; }
    .hp-settled .lp-line-total .hp-stamp { animation-delay: 1.3s; }
}

@keyframes hp-stamp-in {
    from {
        opacity: 0;
        transform: rotate(-4deg) scale(1.6);
    }
    to {
        opacity: 0.85;
        transform: rotate(-4deg) scale(1);
    }
}

.hp-settled .hp-stamp-yours {
    animation-name: hp-stamp-in-yours;
}

@keyframes hp-stamp-in-yours {
    from {
        opacity: 0;
        transform: rotate(3deg) scale(1.6);
    }
    to {
        opacity: 0.85;
        transform: rotate(3deg) scale(1);
    }
}

.hp-receipt .lp-ledger-foot a {
    color: var(--lp-money);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* The receipt's dt lines carry more words here than on the pricing page —
   let them wrap without crowding the figures. */
.hp-receipt .lp-line dt {
    max-width: 75%;
}

/* ---- responsibility split ---- */

.hp-split {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin: 2.5rem auto 0;
    font-family: var(--lp-mono);
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}

.hp-split-ours {
    color: var(--lp-debit);
}

.hp-split-yours {
    color: var(--lp-money);
}

/* ---- affiliate band extras ---- */

.hp-affiliate-cta {
    display: flex;
    justify-content: center;
    margin-bottom: 1.75rem;
}

/* ---- storefront strip ---- */

.hm-store {
    padding: 3.5rem 1rem;
    text-align: center;
    background: var(--color-background);
}

.hm-store-title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--lp-ink);
    margin-bottom: 0.9rem;
}

.hm-store p {
    max-width: 540px;
    margin: 0 auto;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--color-muted-foreground);
}

.hm-store a {
    color: var(--lp-money);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---- close ---- */

.hp-close {
    padding: 4rem 1rem 5rem;
    text-align: center;
    background: hsl(210, 40%, 97%);
    border-top: 1px solid var(--lp-wire);
}

.hp-close-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--lp-ink);
    margin-bottom: 1.75rem;
}

.hp-close-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

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

@media (max-width: 720px) {
    .hm-exhibit-row {
        flex-wrap: wrap;
        gap: 0.75rem 1.25rem;
    }

    .hm-stop {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        padding: 1.5rem 0;
    }

    .hm-stop-at {
        text-align: left;
    }

    .hm-stop-where {
        display: inline;
        margin-left: 0.6rem;
    }

    .hm-stop-domain {
        display: inline;
    }

    .hp-split {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }

    .hp-receipt .lp-line dt {
        max-width: 70%;
    }
}
