/*
 * landing.css — public landing and feature pages, V2 house style
 * ----------------------------------------------------------------
 * The page sits on the body gradient + hatch (base.html). Cream cards,
 * dark accent cards and mono uppercase kickers mirror mobile-v2.css; every
 * color comes from tokens.css. Classes are prefixed lp- so the desktop
 * override layer (gig-design-system.css, scoped to Tailwind utilities)
 * never touches them.
 */

.lp {
    color: var(--ink);
    overflow-x: hidden;
}

.lp-wrap {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .lp-wrap { padding: 0 1.5rem; }
}

/* ---------- kicker (mono uppercase label, like V2 .card-title) ---------- */
.lp-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* "live" dot, only on the setlist's next-gig label */
.lp-kicker.-live::before {
    content: "";
    width: .45rem;
    height: .45rem;
    border-radius: 999px;
    background: var(--gig-primary);
    box-shadow: 0 0 0 3px rgba(255, 97, 32, .25);
}

/* ---------- buttons ---------- */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 3rem;
    padding: 0 1.5rem;
    border-radius: var(--gig-radius-md);
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
    -webkit-tap-highlight-color: transparent;
}

.lp-btn:active { transform: scale(.97); }

.lp-btn:focus-visible {
    outline: 3px solid var(--gig-dark);
    outline-offset: 3px;
}

.lp-btn.-primary {
    background: var(--gig-grad-strong);
    color: #fff;
    box-shadow: 0 6px 18px rgba(194, 65, 12, .35), inset 0 1px 0 rgba(255, 255, 255, .15);
}

.lp-btn.-primary:hover {
    background: var(--gig-primary-strong-hover);
    color: #fff;
}

.lp-btn.-ghost {
    background: rgba(255, 249, 240, .55);
    color: var(--ink);
    border: 1px solid var(--rule-strong);
}

.lp-btn.-ghost:hover {
    background: var(--gig-surface);
    color: var(--ink);
}

.lp-btn.-yellow {
    background: var(--gig-accent);
    color: var(--gig-dark);
}

.lp-btn.-yellow:hover {
    background: #FFE48F;
    color: var(--gig-dark);
}

.lp-btn.-on-dark {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .25);
}

.lp-btn.-on-dark:hover {
    border-color: #fff;
    color: #fff;
}

/* ---------- cards ---------- */
.lp-card {
    background: var(--gig-surface);
    border: 1px solid var(--rule);
    border-radius: var(--gig-radius-lg);
    box-shadow: 0 1px 0 rgba(35, 31, 32, .05), 0 8px 24px rgba(35, 31, 32, .08);
}

.lp-card.-dark {
    background: var(--gig-dark);
    color: #fff;
    border-color: rgba(255, 255, 255, .06);
}

/* ---------- hero ---------- */
.lp-hero {
    padding: 2.5rem 0 1rem;
}

@media (min-width: 1024px) {
    .lp-hero { padding: 4.5rem 0 2rem; }
}

.lp-hero-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .lp-hero-grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
}

.lp-title {
    margin: 1rem 0 1.25rem;
    font-size: clamp(2.25rem, 6vw, 4.25rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -.035em;
    color: var(--ink);
}

.lp-title .hl {
    position: relative;
    white-space: nowrap;
    z-index: 0;
}

/* marker stroke under the highlighted words */
.lp-title .hl::after {
    content: "";
    position: absolute;
    left: -.08em;
    right: -.08em;
    bottom: .06em;
    height: .32em;
    background: var(--gig-surface);
    border-radius: .1em;
    transform: rotate(-1.2deg);
    z-index: -1;
}

.lp-lead {
    max-width: 34rem;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

.lp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2rem;
}

@media (max-width: 479px) {
    .lp-actions .lp-btn { flex: 1 1 100%; }
}

/* ---------- hero illustration: a setlist card, drawn in HTML ---------- */
.lp-stage {
    position: relative;
    max-width: 26rem;
    margin: 0 auto 5.5rem;
    width: 100%;
}

.lp-setlist {
    padding: 1.25rem 1.25rem .75rem;
    transform: rotate(1.5deg);
    box-shadow: 0 24px 48px rgba(35, 31, 32, .28);
}

.lp-setlist-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: .25rem;
}

.lp-setlist-head .lp-kicker { color: rgba(255, 255, 255, .5); }

.lp-setlist-when {
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--gig-accent);
}

.lp-setlist-name {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: .75rem;
}

.lp-song {
    display: grid;
    grid-template-columns: 1.5rem 1fr auto;
    align-items: center;
    gap: .75rem;
    padding: .6rem 0;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.lp-song .n {
    font-family: var(--font-mono);
    font-size: .75rem;
    color: rgba(255, 255, 255, .35);
}

.lp-song .t { font-weight: 700; font-size: .95rem; line-height: 1.2; }
.lp-song .a { font-size: .78rem; color: rgba(255, 255, 255, .55); }

.lp-pill {
    font-family: var(--font-mono);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .2rem .55rem;
    border-radius: 999px;
    white-space: nowrap;
}

.lp-pill.-ready { background: rgba(1, 152, 90, .22); color: #5EE3A6; }
.lp-pill.-work { background: rgba(255, 220, 110, .16); color: var(--gig-accent); }
.lp-pill.-new { background: rgba(255, 97, 32, .2); color: #FF9A6B; }

/* sticky note overlapping the setlist: the vote */
.lp-note {
    position: absolute;
    left: -.5rem;
    bottom: -5.75rem;
    width: 11.5rem;
    padding: .85rem 1rem;
    background: var(--gig-accent);
    color: var(--gig-dark);
    border-radius: var(--gig-radius-md);
    box-shadow: 0 12px 24px rgba(35, 31, 32, .2);
    transform: rotate(-4deg);
}

.lp-note .lp-kicker { font-size: .62rem; color: rgba(35, 31, 32, .7); }
.lp-note strong { display: block; margin-top: .3rem; font-size: .95rem; line-height: 1.2; }

.lp-votes { display: flex; gap: .35rem; margin-top: .5rem; }

.lp-votes span {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 800;
    background: var(--gig-dark);
    color: var(--gig-accent);
    border: 2px solid var(--gig-accent);
}

.lp-votes span.-up { background: var(--gig-success); color: #fff; }

@media (min-width: 1024px) {
    .lp-note { left: -3.5rem; }
}

/* ---------- sections ---------- */
.lp-section { padding: 3.5rem 0; }

@media (min-width: 1024px) {
    .lp-section { padding: 4.5rem 0; }
}

.lp-h2 {
    margin: .75rem 0 .75rem;
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.025em;
}

.lp-section-lead {
    max-width: 38rem;
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ---------- carousel ---------- */
.lp-carousel {
    margin-top: 2rem;
    padding: 1rem;
}

@media (min-width: 640px) {
    .lp-carousel { padding: 1.5rem; }
}

.lp-slide-inner {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .lp-slide-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

.lp-slide-media {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--gig-radius-md);
    overflow: hidden;
    background: var(--gig-dark);
}

.lp-slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* no screenshot yet: a dark tile with the feature icon and its number */
.lp-slide-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 75% 20%, rgba(255, 97, 32, .35), transparent 55%),
        var(--gig-dark);
}

.lp-slide-placeholder i {
    font-size: 3.5rem;
    color: var(--gig-accent);
}

.lp-slide-num {
    position: absolute;
    left: 1rem;
    bottom: .75rem;
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .55);
}

.lp-slide-title {
    margin: 0 0 .75rem;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
}

.lp-slide-text {
    color: var(--ink-soft);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.lp-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 800;
    color: var(--gig-link);
    text-decoration: none;
}

.lp-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.lp-link i { transition: transform 150ms ease; }
.lp-link:hover i { transform: translateX(3px); }

.lp-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
}

.lp-arrow {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    border: 1px solid var(--rule-strong);
    background: #fff;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 120ms ease, color 120ms ease;
}

.lp-arrow:hover { background: var(--gig-dark); color: #fff; }

.lp-dots { display: flex; gap: .4rem; }

.lp-dot {
    width: .6rem;
    height: .6rem;
    border-radius: 999px;
    background: var(--rule-strong);
    transition: width 200ms ease, background-color 200ms ease;
}

.lp-dot.is-active {
    width: 1.75rem;
    background: var(--gig-primary-strong);
}

.lp-arrow:focus-visible,
.lp-dot:focus-visible {
    outline: 3px solid var(--gig-dark);
    outline-offset: 2px;
}

/* ---------- features ---------- */
.lp-features {
    display: grid;
    gap: 1rem;
    margin-top: 2.5rem;
}

@media (min-width: 768px) {
    .lp-features { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

.lp-feature {
    padding: 1.5rem;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.lp-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 1px 0 rgba(35, 31, 32, .05), 0 14px 32px rgba(35, 31, 32, .12);
}

.lp-feature-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--gig-radius-md);
    background: var(--gig-grad-accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(255, 97, 32, .3);
    margin-bottom: 1rem;
}

.lp-feature h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: .4rem;
}

.lp-feature p {
    color: var(--ink-soft);
    line-height: 1.6;
}

.lp-feature .lp-kicker { margin-bottom: .75rem; }

/* ---------- call to action ---------- */
.lp-cta {
    position: relative;
    overflow: hidden;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .lp-cta { padding: 3.5rem 3rem; }
}

.lp-cta::before {
    content: "";
    position: absolute;
    width: 22rem;
    height: 22rem;
    right: -8rem;
    top: -10rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 97, 32, .45), transparent 70%);
    pointer-events: none;
}

.lp-cta > * { position: relative; }
.lp-cta .lp-kicker { color: rgba(255, 255, 255, .55); }
.lp-cta .lp-h2 { color: #fff; }
.lp-cta p { color: rgba(255, 255, 255, .72); max-width: 36rem; margin: 0 auto; line-height: 1.6; }
.lp-cta .lp-actions { justify-content: center; }

/* ---------- feature detail page ---------- */
.lp-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.lp-crumbs a { color: var(--ink-soft); text-decoration: none; }
.lp-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.lp-crumbs [aria-current] { color: var(--ink); font-weight: 700; }

.lp-detail-hero { padding: 2.5rem 0 2rem; text-align: center; }

@media (min-width: 1024px) {
    .lp-detail-hero { padding: 4rem 0 3rem; }
}

.lp-detail-hero .lp-crumbs { justify-content: center; }
.lp-detail-hero .lp-title { font-size: clamp(2rem, 5vw, 3.5rem); }
.lp-detail-hero .lp-lead { margin: 0 auto; }

.lp-detail-hero img {
    margin: 2.5rem auto 0;
    max-width: 42rem;
    width: 100%;
    border-radius: var(--gig-radius-lg);
    box-shadow: 0 24px 48px rgba(35, 31, 32, .25);
}

.lp-related {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .lp-related { grid-template-columns: repeat(2, 1fr); }
}

.lp-related a {
    display: block;
    padding: 1.25rem;
    color: var(--ink);
    text-decoration: none;
}

.lp-related a:hover { box-shadow: 0 1px 0 rgba(35, 31, 32, .05), 0 14px 32px rgba(35, 31, 32, .12); }
.lp-related h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: .3rem; }
.lp-related p { font-size: .9rem; color: var(--ink-soft); line-height: 1.55; margin-bottom: .75rem; }

.lp-related .lp-feature-icon {
    width: 2.25rem;
    height: 2.25rem;
    font-size: .9rem;
    margin-bottom: .75rem;
}

/* ---------- entrance: staggered reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
    .lp-rise {
        animation: lp-rise 600ms cubic-bezier(.2, .7, .2, 1) both;
        animation-delay: calc(var(--i, 0) * 90ms);
    }

    .lp-setlist { animation: lp-drop 700ms cubic-bezier(.2, .7, .2, 1) 250ms both; }
    .lp-note { animation: lp-slap 500ms cubic-bezier(.3, 1.4, .5, 1) 750ms both; }

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

    @keyframes lp-drop {
        from { opacity: 0; transform: translateY(24px) rotate(5deg); }
        to { opacity: 1; transform: rotate(1.5deg); }
    }

    @keyframes lp-slap {
        from { opacity: 0; transform: scale(.6) rotate(-14deg); }
        to { opacity: 1; transform: rotate(-4deg); }
    }
}
