/* listenup.to — landing page. Editorial / paper — aligned with artist-classic taste. */

:root {
    /* Match public band page “classic” */
    --paper: #f5f3ee;
    --paper-2: #ebe8e1;
    --paper-card: #faf9f6;
    --ink: #111111;
    --ink-soft: #4a4a4a;
    --ink-muted: #6e6b66;
    --rule: #111111;
    --rule-soft: #cdcac3;
    --rule-faint: #e5e2dc;
    --accent: #8b403a;
    --accent-dim: #6d332e;
    --maxw: 1100px;
    --radius: 8px;
    /* Lighter shadow — cards sit on page, don’t float */
    --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.65) inset, 0 4px 22px rgba(17, 17, 17, 0.045);

    /* Spacing scale (mobile-first; desktop overrides below) */
    --page-x: 20px;
    --section-y: 48px;
    --hero-y: 52px;
    --card-pad: 22px;
    --card-gap: 18px;
    --heading-to-body: 12px;
    --block-gap: 20px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

html,
body {
    margin: 0;
    padding: 0;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Parchment-like subtle gradient — aged paper, calm */
body {
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background-color: var(--paper);
    background-image:
        radial-gradient(ellipse 110% 55% at 50% -15%, rgba(255, 253, 248, 0.95), transparent 52%),
        radial-gradient(ellipse 65% 40% at 92% 88%, rgba(228, 220, 206, 0.45), transparent 48%),
        radial-gradient(ellipse 50% 35% at 8% 55%, rgba(240, 236, 228, 0.35), transparent 46%),
        linear-gradient(168deg, #faf8f3 0%, #f2ede6 42%, #e8e2d9 100%);
}

main,
header.nav,
footer {
    min-width: 0;
}

main {
    overflow-x: clip;
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    color: var(--accent);
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--page-x);
    min-width: 0;
}

/* --- Nav --- */
.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--rule-soft);
    background: rgba(252, 250, 246, 0.94);
    backdrop-filter: saturate(125%) blur(10px);
    overflow-x: clip;
}

.nav-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "logo login"
        "subnav subnav"
        "cta cta";
    gap: 0;
    align-items: center;
    padding: 16px 0 0;
    min-width: 0;
}

.logo {
    grid-area: logo;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 19px;
    color: var(--ink);
    justify-self: start;
    min-width: 0;
    overflow-wrap: anywhere;
    padding-bottom: 2px;
}

.logo-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-left: 3px;
    transform: translateY(-2px);
    opacity: 0.85;
}

.nav-mid {
    grid-area: subnav;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
    margin: 0;
    padding: 14px 0;
    border-top: 1px solid var(--rule-soft);
    font-size: 13px;
    letter-spacing: 0.01em;
    min-width: 0;
}

.nav-mid a {
    color: var(--ink-soft);
}

.nav-mid a:hover {
    color: var(--ink);
}

.nav-login {
    grid-area: login;
    justify-self: end;
    align-self: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
    white-space: nowrap;
    padding-left: 8px;
}

.nav-login:hover {
    color: var(--ink);
}

.nav-cta {
    grid-area: cta;
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    text-align: center;
    margin: 0;
    padding: 14px 0 18px;
    border-top: 1px solid var(--rule-faint);
    box-sizing: border-box;
}

.nav-cta.btn {
    white-space: normal;
    line-height: 1.25;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 600;
}

@media (min-width: 640px) {
    .nav-inner {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px 20px;
        padding: 14px 0;
    }

    .logo {
        padding-bottom: 0;
        font-size: 20px;
    }

    .nav-mid {
        padding: 0;
        border-top: none;
        margin-left: auto;
        font-size: 14px;
        gap: 10px 20px;
    }

    .nav-login {
        padding-left: 0;
    }

    .nav-cta {
        width: auto;
        flex: 0 1 auto;
        min-width: 0;
        padding: 0;
        border-top: none;
    }

    .nav-cta.btn {
        white-space: nowrap;
        padding: 11px 20px;
        font-size: 15px;
    }
}

@media (min-width: 900px) {
    .nav-inner {
        padding: 16px 0;
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
    max-width: 100%;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.btn-primary:hover {
    color: var(--paper);
    background: #2a2a2a;
    border-color: #2a2a2a;
}

.btn-ghost {
    border-color: var(--rule);
    color: var(--ink);
    background: transparent;
}

.btn-ghost:hover {
    border-color: var(--ink);
    color: var(--ink);
    background: rgba(17, 17, 17, 0.04);
}

/* --- Hero --- */
.hero {
    position: relative;
    overflow-x: clip;
    overflow-y: visible;
    padding: var(--hero-y) 0 52px;
    border-bottom: 1px solid var(--rule-soft);
}

.hero .container {
    min-width: 0;
}

.hero .eyebrow {
    margin: 0 0 10px;
}

.hero h1 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: clamp(30px, 5.2vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin: 0 0 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    color: var(--ink);
}

.hero h1 em {
    font-style: italic;
    font-family: Georgia, "Times New Roman", Times, serif;
    color: var(--ink-soft);
    font-weight: 500;
}

.hero p.lede {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--ink-soft);
    max-width: 620px;
    margin: 0 0 var(--block-gap);
    overflow-wrap: anywhere;
}

.hero p.lede strong {
    font-weight: 600;
    color: var(--ink);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: 0;
    width: 100%;
}

.hero-actions .btn {
    flex: 0 1 auto;
    min-width: 0;
    width: 100%;
    justify-content: center;
}

.hero-actions .btn-ghost {
    order: 2;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 18px;
    border-color: var(--rule-soft);
    color: var(--ink-soft);
}

.hero-actions .btn-primary {
    order: 1;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: auto;
    }

    .hero-actions .btn {
        width: auto;
        flex: 0 1 auto;
    }

    .hero-actions .btn-ghost {
        order: 0;
        font-size: 15px;
        font-weight: 600;
        padding: 11px 20px;
        border-color: var(--rule);
        color: var(--ink);
    }

    .hero-actions .btn-primary {
        order: 0;
    }
}

@media (max-width: 639px) {
    .hero-actions .btn {
        white-space: normal;
    }
}

.hero-meta {
    margin-top: 18px;
    color: var(--ink-muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

/* Homepage — inverted banner: black nav + hero, white type, light-filled CTAs */
.nav {
    background: rgba(10, 10, 10, 0.97);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.logo {
    color: #fafafa;
}

.logo-dot {
    background: #e8b84a;
}

.nav-mid {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.nav-mid a {
    color: rgba(255, 255, 255, 0.72);
}

.nav-mid a:hover {
    color: #fff;
}

.nav-login {
    color: rgba(255, 255, 255, 0.72);
}

.nav-login:hover {
    color: #fff;
}

.nav-cta {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.nav .btn-primary {
    background: #fff;
    color: #111;
    border-color: #fff;
}

.nav .btn-primary:hover {
    background: #e8e8e8;
    color: #111;
    border-color: #e8e8e8;
}

/* Global link hover uses accent rust — keep nav text white */
header.nav a:not(.btn):hover {
    color: #fff;
}

.hero {
    background: #0a0a0a;
    border-bottom-color: rgba(255, 255, 255, 0.12);
    color: #f0f0f0;
}

.hero h1 {
    color: #fff;
}

.hero h1 em {
    color: rgba(255, 255, 255, 0.72);
}

.hero p.lede {
    color: rgba(255, 255, 255, 0.78);
}

.hero p.lede strong {
    color: #fff;
}

.hero .eyebrow {
    color: rgba(255, 255, 255, 0.65);
    border-bottom-color: rgba(255, 255, 255, 0.35);
}

.hero .hero-meta {
    color: rgba(255, 255, 255, 0.45);
}

.hero .hero-actions .btn-primary {
    background: #fff;
    color: #111;
    border-color: #fff;
}

.hero .hero-actions .btn-primary:hover {
    background: #e8e8e8;
    color: #111;
    border-color: #e8e8e8;
}

.hero .hero-actions .btn-ghost {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    background: transparent;
}

.hero .hero-actions .btn-ghost:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
    .hero .hero-actions .btn-ghost {
        border-color: rgba(255, 255, 255, 0.45);
        color: #fff;
    }

    .hero .hero-actions .btn-ghost:hover {
        border-color: #fff;
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
    }
}

.eyebrow {
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    border-bottom: 2px solid var(--rule);
    padding-bottom: 5px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* --- Sections --- */
section {
    padding: var(--section-y) 0;
    border-top: 1px solid var(--rule-soft);
    min-width: 0;
    background: transparent;
}

section.hero {
    border-top: none;
}

/* Single rule between hero and next block (hero supplies border-bottom) */
section.hero + section {
    border-top: none;
}

/* --- On Listenup (published pages) --- */
#on-listenup .showcase-box {
    padding: clamp(14px, 2vw, 20px);
    border-radius: 16px;
    border: 1px solid var(--rule-faint);
    background: rgba(252, 250, 246, 0.45);
    box-shadow: var(--shadow-card);
    container: showcase / inline-size;
}

.showcase-box-title {
    margin-bottom: var(--heading-to-body);
}

.showcase-box-lede {
    margin-bottom: 14px;
}

/* Horizontal strip: side-by-side when space allows; overflow scroll when many cards */
.showcase-scroll {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: clamp(18px, 2.5vw, 28px);
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--page-x);
    padding-bottom: 12px;
    margin-inline: calc(-1 * var(--page-x));
    padding-inline: var(--page-x);
    -webkit-overflow-scrolling: touch;
    outline: none;
}

/* One or two artists: centre them when they fit without needing to scroll */
.showcase-scroll:has(> .showcase-card:only-child),
.showcase-scroll:has(> .showcase-card:nth-child(2):last-child) {
    justify-content: center;
    scroll-snap-type: none;
}

.showcase-scroll:focus-visible {
    box-shadow: 0 0 0 2px rgba(139, 64, 58, 0.35);
    border-radius: 8px;
}

.showcase-scroll::-webkit-scrollbar {
    height: 7px;
}

.showcase-scroll::-webkit-scrollbar-track {
    background: rgba(17, 17, 17, 0.04);
    border-radius: 4px;
}

.showcase-scroll::-webkit-scrollbar-thumb {
    background: var(--rule-soft);
    border-radius: 4px;
}

.showcase-scroll-hint {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--ink-muted);
    letter-spacing: 0.02em;
}

/* Poster-style tiles — mobile swipe width; desktop ≈ half row inside showcase box */
.showcase-card {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: min(520px, 88vw);
    max-width: calc(100vw - 2 * var(--page-x) - 16px);
    scroll-snap-align: start;
    padding: 18px 20px;
    border-radius: 22px;
    background: linear-gradient(165deg, rgba(255, 253, 248, 0.92) 0%, rgba(245, 241, 234, 0.88) 100%);
    border: 1px solid var(--rule-faint);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.75) inset,
        0 8px 28px rgba(17, 17, 17, 0.065),
        0 0 0 1px rgba(17, 17, 17, 0.035);
}

/* Two cards fill the strip on desktop (container is .showcase-box) */
@container showcase (min-width: 560px) {
    #on-listenup .showcase-scroll .showcase-card {
        width: min(520px, calc(50cqw - 15px));
        max-width: min(520px, calc(50cqw - 15px));
    }
}

/* Fallback when container queries aren’t available */
@supports not (container-type: inline-size) {
    @media (min-width: 680px) {
        #on-listenup .showcase-scroll .showcase-card {
            width: min(
                520px,
                calc((min(var(--maxw), 100vw - 2 * var(--page-x)) - 48px) / 2)
            );
            max-width: min(
                520px,
                calc((min(var(--maxw), 100vw - 2 * var(--page-x)) - 48px) / 2)
            );
        }
    }
}

.showcase-card-link {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #fffcf7;
    border: 1px solid #cdc6bb;
    border-radius: 16px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 4px 16px rgba(17, 17, 17, 0.07);
    overflow: hidden;
    min-height: 172px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.showcase-card-link:hover {
    border-color: #b8b0a5;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 10px 28px rgba(17, 17, 17, 0.09);
    transform: translateY(-2px);
}

.showcase-card-link:hover .showcase-card-cta {
    color: var(--accent);
}

.showcase-card-visual {
    width: 168px;
    min-width: 168px;
    flex-shrink: 0;
    align-self: stretch;
    aspect-ratio: 1;
    background: var(--paper-2);
    border-right: 1px solid var(--rule-faint);
    overflow: hidden;
}

.showcase-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-card-placeholder {
    width: 100%;
    height: 100%;
    min-height: 120px;
    display: grid;
    place-items: center;
    background: linear-gradient(158deg, #ece8e1 0%, #dbd6cd 100%);
    font-family: Georgia, "Times New Roman", Times, serif;
}

.showcase-card-initial {
    font-size: 42px;
    font-weight: 700;
    color: var(--ink-muted);
    letter-spacing: -0.03em;
    line-height: 1;
}

.showcase-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
    padding: 20px 22px 22px 24px;
}

.showcase-card-name {
    margin: 0 0 10px;
    font-size: clamp(17px, 2.4vw, 20px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--ink);
}

.showcase-card-pill {
    margin: 0 0 10px;
    min-width: 0;
}

.showcase-card-pill-inner {
    display: inline-block;
    max-width: 100%;
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid var(--rule-soft);
    background: rgba(252, 250, 246, 0.85);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.showcase-card-summary {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink-soft);
}

.showcase-card-url {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: var(--ink-muted);
    font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.showcase-card-cta {
    display: inline-block;
    margin-top: auto;
    font-size: 15px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--ink);
}

@media (max-width: 420px) {
    .showcase-card-link {
        flex-direction: column;
        min-height: 0;
    }

    .showcase-card-visual {
        width: 100%;
        min-width: 0;
        aspect-ratio: 4 / 3;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--rule-faint);
    }

    .showcase-card-placeholder {
        min-height: 120px;
    }

    .showcase-card-body {
        padding: 18px 20px 22px;
    }
}

section h2 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: clamp(24px, 3.4vw, 38px);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 var(--heading-to-body);
    font-weight: 700;
    overflow-wrap: anywhere;
    color: var(--ink);
}

section p.section-lede {
    color: var(--ink-soft);
    max-width: 640px;
    margin: 0 0 28px;
    font-size: 16px;
    overflow-wrap: anywhere;
}

/* --- What it is --- */
.what-grid {
    display: grid;
    gap: var(--card-gap);
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
}

.what-card {
    background: var(--paper-card);
    border: 1px solid var(--rule-faint);
    border-radius: var(--radius);
    padding: var(--card-pad);
    box-shadow: var(--shadow-card);
    min-width: 0;
    overflow-wrap: anywhere;
}

.what-card strong {
    display: block;
    margin-bottom: 4px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
}

.what-card span {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.5;
}

/* --- Features --- */
.features {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--card-gap);
    min-width: 0;
}

.feature {
    background: var(--paper-card);
    border: 1px solid var(--rule-faint);
    border-radius: var(--radius);
    padding: var(--card-pad);
    transition: border-color 0.15s ease;
    min-width: 0;
    box-shadow: var(--shadow-card);
}

.feature:hover {
    border-color: var(--rule-soft);
}

.feature .icon {
    width: 34px;
    height: 34px;
    border-radius: 5px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    background: var(--paper);
    border: 1px solid var(--rule-soft);
    color: var(--ink);
    flex-shrink: 0;
}

.feature .icon svg {
    width: 18px;
    height: 18px;
}

.feature h3 {
    margin: 0 0 6px;
    font-size: 16px;
    letter-spacing: -0.01em;
    font-weight: 700;
    line-height: 1.25;
}

.feature p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* --- How it works --- */
.steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--card-gap);
    counter-reset: step;
    min-width: 0;
}

.step {
    background: var(--paper-card);
    border: 1px solid var(--rule-faint);
    border-radius: var(--radius);
    padding: var(--card-pad);
    position: relative;
    min-width: 0;
    box-shadow: var(--shadow-card);
}

.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: 16px;
    right: var(--card-pad);
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    color: var(--rule-faint);
    font-family: Georgia, serif;
}

.step h3 {
    margin: 0 0 6px;
    font-size: 17px;
    max-width: 72%;
    overflow-wrap: anywhere;
    line-height: 1.25;
}

.step p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.5;
    max-width: 88%;
    overflow-wrap: anywhere;
}

/* --- Final CTA --- */
.cta-final {
    text-align: center;
    padding: var(--section-y) 0 calc(var(--section-y) + 8px);
    position: relative;
    overflow-x: clip;
    min-width: 0;
    border-top: 1px solid var(--rule-soft);
    background: transparent;
}

.cta-final h2 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: clamp(24px, 3.8vw, 42px);
    overflow-wrap: anywhere;
    color: var(--ink);
    margin: 0 0 10px;
}

.cta-final p {
    color: var(--ink-soft);
    max-width: 540px;
    margin: 0 auto 22px;
    padding: 0;
    overflow-wrap: anywhere;
    font-size: 16px;
}

.cta-final .hero-actions {
    justify-content: center;
    margin: 0 auto;
    max-width: 420px;
}

@media (min-width: 640px) {
    .cta-final .hero-actions {
        max-width: none;
        flex-direction: row;
        justify-content: center;
    }

    .cta-final .hero-actions .btn {
        width: auto;
    }
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--rule-soft);
    padding: 24px 0 40px;
    color: var(--ink-muted);
    font-size: 13px;
    min-width: 0;
    background: transparent;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    min-width: 0;
}

.footer-inner > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

.footer-inner a:hover {
    color: var(--accent);
}

/* --- Responsive: tablet + desktop spacing --- */
@media (min-width: 640px) {
    :root {
        --section-y: 56px;
        --hero-y: 64px;
        --heading-to-body: 14px;
    }

    .hero {
        padding: var(--hero-y) 0 72px;
    }

    section p.section-lede {
        margin-bottom: 34px;
        font-size: 17px;
    }

    .what-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

@media (min-width: 900px) {
    :root {
        --section-y: 64px;
        --hero-y: 88px;
        --card-pad: 22px;
        --card-gap: 18px;
    }

    .hero {
        padding: var(--hero-y) 0 96px;
    }

    .hero h1 {
        margin-bottom: 14px;
    }

    .hero p.lede {
        margin-bottom: 24px;
    }

    .features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    section p.section-lede {
        margin-bottom: 36px;
    }

    .cta-final {
        padding: 72px 0 88px;
    }
}

/* ── Terms of use ────────────────────────────────────────────────────── */

body.terms-page .terms-main {
    padding: 40px 0 72px;
}

.terms-doc {
    max-width: 40rem;
    margin: 0 auto;
}

.terms-meta {
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin: 0 0 8px;
}

.terms-doc h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
    line-height: 1.15;
}

.terms-lede {
    font-size: 1.125rem;
    color: var(--ink-soft);
    margin: 0 0 20px;
    line-height: 1.55;
}

.terms-download {
    margin: 0 0 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--rule-faint);
}

.terms-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 2px solid rgba(139, 64, 58, 0.35);
    padding-bottom: 2px;
}

.terms-pdf-link:hover {
    color: var(--accent-dim);
    border-bottom-color: var(--accent-dim);
}

.terms-section {
    margin-bottom: 28px;
}

.terms-section:last-child {
    margin-bottom: 0;
}

.terms-section h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.terms-section p {
    margin: 0 0 12px;
    color: var(--ink-soft);
}

.terms-section p:last-child {
    margin-bottom: 0;
}

.terms-section a {
    color: var(--accent);
    font-weight: 600;
}

/* Soft “no public page” + /search */
.soft-missing-main {
    padding: var(--hero-y) 0 calc(var(--section-y) * 1.25);
}

.soft-missing-eyebrow {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin: 0 0 12px;
}

.soft-missing-title {
    font-size: clamp(1.45rem, 3.5vw, 1.85rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 14px;
    max-width: 28ch;
}

.soft-missing-lede {
    margin: 0 0 28px;
    max-width: 52ch;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.soft-missing-actions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 420px;
}

.soft-missing-actions li {
    margin: 0;
}

.soft-missing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.soft-missing-hint {
    margin: 10px 0 0;
    font-size: 0.88rem;
    color: var(--ink-muted);
    line-height: 1.45;
}

.search-main {
    padding: var(--hero-y) 0 calc(var(--section-y) * 1.25);
}

.search-main h1 {
    font-size: clamp(1.45rem, 3.5vw, 1.85rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
}

.search-lede {
    margin: 0 0 26px;
    max-width: 46ch;
    color: var(--ink-soft);
}

.search-form {
    margin-bottom: 32px;
}

.search-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 8px;
}

.search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
}

.search-input {
    flex: 1 1 200px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--rule-soft);
    border-radius: var(--radius);
    background: var(--paper-card);
    color: var(--ink);
    font-size: 1rem;
    box-shadow: var(--shadow-card);
}

.search-input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.search-meta {
    font-size: 0.92rem;
    color: var(--ink-muted);
    margin: 0 0 14px;
}

.search-results {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.search-result {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--rule-faint);
    border-radius: var(--radius);
    background: var(--paper-card);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-result-link {
    font-weight: 650;
    font-size: 1.05rem;
}

.search-result-link:hover {
    color: var(--accent);
}

.search-result-slug {
    font-size: 0.85rem;
    color: var(--ink-muted);
}

.search-empty,
.search-hint {
    color: var(--ink-soft);
    max-width: 48ch;
}

.search-empty a {
    color: var(--accent);
    font-weight: 600;
}
