/* ═══════════════════════════════════════════════════════════════
   Landing page — Dial Your Shot
   Uses the global design tokens from app.css so dark/light
   themes work automatically.
   ═══════════════════════════════════════════════════════════════ */

.landing {
    font-family: var(--font-display);
    color: var(--text-primary);
    overflow-x: hidden;
}

.landing-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ── Hero ──────────────────────────────────────────────────── */

.landing-hero {
    position: relative;
    padding: 4.5rem 1.25rem 4rem;
    text-align: center;
    isolation: isolate;
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto -20%;
    height: 130%;
    background:
        radial-gradient(ellipse 55% 45% at 50% 20%, var(--accent-amber-glow, rgba(245, 158, 11, 0.12)), transparent 70%),
        radial-gradient(ellipse 35% 30% at 78% 55%, rgba(245, 158, 11, 0.06), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--accent-amber-dim);
    border-radius: 999px;
    color: var(--accent-amber);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    animation: landing-fade-up 0.6s ease both;
}

.hero-title {
    margin: 1.4rem auto 1rem;
    max-width: 16ch;
    font-size: clamp(2.2rem, 6.5vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    animation: landing-fade-up 0.6s 0.08s ease both;
}

.hero-title .hero-accent {
    background: linear-gradient(100deg, var(--accent-amber) 20%, #fbbf24 50%, var(--accent-amber-dim) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-sub {
    margin: 0 auto 2.2rem;
    max-width: 46ch;
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    line-height: 1.6;
    color: var(--text-secondary);
    animation: landing-fade-up 0.6s 0.16s ease both;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
    animation: landing-fade-up 0.6s 0.24s ease both;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-hero-primary {
    background: linear-gradient(120deg, var(--accent-amber), #d97706);
    color: #1a1206;
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.35);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 34px rgba(245, 158, 11, 0.45);
    color: #1a1206;
}

.btn-hero-ghost {
    border: 1px solid var(--text-muted);
    color: var(--text-primary);
    background: transparent;
}

.btn-hero-ghost:hover {
    transform: translateY(-2px);
    border-color: var(--accent-amber);
    color: var(--accent-amber);
}

.hero-note {
    margin-top: 1.1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    animation: landing-fade-up 0.6s 0.3s ease both;
}

/* Steaming cup */
.hero-cup {
    margin: 2.8rem auto 0;
    width: clamp(120px, 20vw, 170px);
    animation: landing-fade-up 0.7s 0.35s ease both;
}

.hero-cup svg {
    width: 100%;
    height: auto;
    display: block;
}

.steam {
    fill: none;
    stroke: var(--accent-amber);
    stroke-width: 3.5;
    stroke-linecap: round;
    opacity: 0;
    animation: steam-rise 3.2s ease-in-out infinite;
}

.steam-2 { animation-delay: 1.1s; }
.steam-3 { animation-delay: 2.2s; }

@keyframes steam-rise {
    0%   { opacity: 0; transform: translateY(8px); }
    35%  { opacity: 0.55; }
    100% { opacity: 0; transform: translateY(-14px); }
}

@keyframes landing-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Sections ──────────────────────────────────────────────── */

.landing-section {
    padding: 3.5rem 0;
}

.landing-section-alt {
    background: var(--bg-panel);
    border-top: 1px solid rgba(128, 128, 128, 0.12);
    border-bottom: 1px solid rgba(128, 128, 128, 0.12);
}

.landing-kicker {
    display: block;
    text-align: center;
    color: var(--accent-amber);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.landing-section-title {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 0.8rem;
}

.landing-section-sub {
    text-align: center;
    max-width: 56ch;
    margin: 0 auto 2.6rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Feature cards ─────────────────────────────────────────── */

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}

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

@media (min-width: 1000px) {
    .feature-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.6rem 1.4rem;
    background: var(--bg-panel);
    border: 1px solid rgba(128, 128, 128, 0.14);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.landing-section-alt .feature-card {
    background: var(--bg-primary);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-amber-dim);
    box-shadow: var(--shadow-panel);
    color: var(--text-primary);
}

.feature-icon {
    font-size: 1.9rem;
    line-height: 1;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
    flex-grow: 1;
}

.feature-link {
    color: var(--accent-amber);
    font-weight: 600;
    font-size: 0.9rem;
}

.access-badge {
    align-self: flex-start;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-open {
    background: rgba(34, 197, 94, 0.14);
    color: var(--color-sweet, #22c55e);
}

.badge-account {
    background: rgba(59, 130, 246, 0.14);
    color: var(--color-info, #3b82f6);
}

/* ── How it works ──────────────────────────────────────────── */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.1rem;
    counter-reset: landing-step;
}

.step-card {
    position: relative;
    padding: 1.6rem 1.4rem 1.4rem;
    background: var(--bg-panel);
    border: 1px solid rgba(128, 128, 128, 0.14);
    border-radius: var(--radius-lg);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    margin-bottom: 0.8rem;
    border-radius: 50%;
    background: linear-gradient(120deg, var(--accent-amber), #d97706);
    color: #1a1206;
    font-weight: 800;
    font-size: 1rem;
}

.step-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

/* ── Free vs account ───────────────────────────────────────── */

.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.1rem;
}

.access-panel {
    padding: 1.8rem 1.6rem;
    background: var(--bg-panel);
    border: 1px solid rgba(128, 128, 128, 0.14);
    border-radius: var(--radius-lg);
}

.landing-section-alt .access-panel {
    background: var(--bg-primary);
}

.access-panel-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 1.1rem;
}

.access-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.access-list li {
    display: flex;
    gap: 0.6rem;
    align-items: baseline;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.access-list li::before {
    content: "✓";
    flex-shrink: 0;
    color: var(--color-sweet, #22c55e);
    font-weight: 800;
}

.access-panel-note {
    margin: 1.1rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ── FAQ ───────────────────────────────────────────────────── */

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.faq-item {
    background: var(--bg-panel);
    border: 1px solid rgba(128, 128, 128, 0.14);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-item summary {
    padding: 1rem 1.2rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.98rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    color: var(--accent-amber);
    font-size: 1.3rem;
    font-weight: 400;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.2rem 1.1rem;
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.6;
    margin: 0;
}

.faq-answer a {
    color: var(--accent-amber);
}

/* ── Final CTA band ────────────────────────────────────────── */

.landing-cta-band {
    margin: 3.5rem auto 4rem;
    max-width: 1080px;
    padding: 3rem 1.5rem;
    text-align: center;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse 60% 90% at 50% 0%, rgba(245, 158, 11, 0.14), transparent 75%),
        var(--bg-panel);
    border: 1px solid var(--accent-amber-dim);
}

.landing-cta-band h2 {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 800;
    margin: 0 0 0.7rem;
}

.landing-cta-band p {
    color: var(--text-secondary);
    max-width: 48ch;
    margin: 0 auto 1.8rem;
    line-height: 1.6;
}

/* ── Mobile tweaks ─────────────────────────────────────────── */

@media (max-width: 640px) {
    .landing-hero {
        padding: 3rem 1.1rem 3rem;
    }

    .landing-section {
        padding: 2.6rem 0;
    }

    .btn-hero {
        width: 100%;
        justify-content: center;
    }

    .hero-cta-row {
        flex-direction: column;
        align-items: stretch;
        padding: 0 0.5rem;
    }

    .landing-cta-band {
        margin: 2.5rem 1rem 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing *,
    .landing *::before,
    .landing *::after {
        animation: none !important;
        transition: none !important;
    }
}
