/* Palette and type lifted from the app's own theme so the two read as one product.
   Source: jukebox/client/src/styles/theme.css */
:root {
    --canvas: #0f0a06;
    --subtle: #3a2410;
    --divider: #6b4a30;
    --ink: #f5e6c8;
    --ink-dim: #c4906a;
    --gold: #f4a100;

    --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
    --display: "Bebas Neue", "Impact", ui-sans-serif, sans-serif;
}

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

body {
    margin: 0;
    background-color: var(--canvas);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

main {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 44rem;
    margin-inline: auto;
    padding: 3rem 1.25rem 4rem;
}

section {
    text-align: center;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: min(100dvh, 46rem);
}

/* ─── Decorative note field, matching the app's welcome screen ─── */
.notes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.notes span {
    position: absolute;
    color: var(--gold);
    font-family: var(--display);
    line-height: 1;
    opacity: var(--o);
    transform: rotate(var(--r));
    animation: twinkle var(--t) ease-in-out var(--d) infinite;
    will-change: opacity, transform;
}

/* Rotation is re-stated in every frame because animating transform would
   otherwise discard the note's resting angle. */
@keyframes twinkle {
    0%,
    100% {
        opacity: calc(var(--o) * 0.5);
        transform: rotate(var(--r)) scale(0.96);
    }
    50% {
        opacity: calc(var(--o) * 1.7);
        transform: rotate(var(--r)) scale(1.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .notes span {
        animation: none;
        will-change: auto;
    }
}

/* ─── Hero ─── */
.pill {
    display: inline-block;
    margin: 0 0 1.5rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--divider);
    border-radius: 999px;
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 0.25rem;
    color: var(--gold);
    font-family: var(--display);
    font-size: clamp(3.75rem, 18vw, 6rem);
    font-weight: 400;
    letter-spacing: 0.025em;
    line-height: 1;
}

.tagline {
    margin: 0 0 2rem;
    color: var(--ink-dim);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.lead {
    max-width: 34rem;
    margin: 0;
    font-size: 1.075rem;
}

/* ─── Footer ─── */
footer {
    margin-top: 3.5rem;
}

.footer-link {
    margin: 0;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.footer-link a {
    color: var(--ink-dim);
    text-decoration: none;
    border-bottom: 1px solid var(--subtle);
    padding-bottom: 2px;
}

.footer-link a:hover,
.footer-link a:focus-visible {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* ─── Call to action ─── */
.cta {
    display: inline-block;
    margin-top: 2.25rem;
    padding: 0.85rem 2rem;
    border-radius: 0.5rem;
    background: var(--gold);
    color: var(--canvas);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.cta:hover,
.cta:focus-visible {
    background: #db8f00;
}

.cta-note {
    margin: 0.75rem 0 0;
    color: var(--ink-dim);
    font-size: 0.8125rem;
}

/* ─── Sections ─── */
h2 {
    margin: 0 0 1.75rem;
    color: var(--gold);
    font-family: var(--display);
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

section + section {
    margin-top: 4.5rem;
    padding-top: 4.5rem;
    border-top: 1px solid var(--subtle);
}

/* ─── Collapsible section ─── */
summary {
    cursor: pointer;
    /* Both are needed: the standard property plus the WebKit pseudo-element,
       or Safari keeps its own disclosure triangle alongside the custom one. */
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary h2 {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
}

summary h2::after {
    content: "";
    width: 0.5em;
    height: 0.5em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-0.15em) rotate(45deg);
    transition: transform 150ms ease;
}

details[open] summary h2::after {
    transform: translateY(0.1em) rotate(-135deg);
}

summary:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
    border-radius: 0.25rem;
}

details[open] .steps {
    margin-top: 1.75rem;
}

@media (prefers-reduced-motion: reduce) {
    summary h2::after {
        transition: none;
    }
}

/* ─── Numbered steps ─── */
.steps {
    display: grid;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.steps li {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0.25rem 1rem;
    align-items: baseline;
}

.steps b {
    grid-column: 2;
    color: var(--ink);
}

.steps .num {
    grid-row: span 2;
    color: var(--gold);
    font-family: var(--display);
    font-size: 1.75rem;
    line-height: 1;
}

.steps p {
    grid-column: 2;
    margin: 0;
    color: var(--ink-dim);
    font-size: 0.9375rem;
}

/* ─── Footer ─── */
.legal {
    margin: 1.5rem 0 0;
    color: var(--ink-dim);
    font-size: 0.75rem;
    line-height: 1.7;
}

.legal a {
    color: var(--ink-dim);
}

.legal a:hover,
.legal a:focus-visible {
    color: var(--gold);
}
