/* Homepage (index.html). Loads after /styles.css, so it uses the design tokens defined there. */

.hp {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
    color: var(--text);
}
.hp *, .hp *::before, .hp *::after { box-sizing: border-box; }
.hp a { color: var(--accent); text-decoration: none; }
.hp a:hover { text-decoration: underline; }
.hp :where(h1, h2, h3, p) { margin: 0; }   /* :where() keeps this reset from overriding the margins set below */
.hp :where(h1, h2, h3) { line-height: 1.2; }

/* ---------- Buttons ---------- */
.hp-cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hp-cta-center { justify-content: center; }
.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.4rem;
    min-height: 44px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.hp a.hp-btn:hover { text-decoration: none; transform: translateY(-2px); }
.hp a.hp-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--hot), var(--hot-2));
    box-shadow: 0 6px 18px rgba(var(--hot-rgb), 0.35);
}
.hp a.hp-btn-primary:hover { box-shadow: 0 8px 24px rgba(var(--hot-rgb), 0.5); }
.hp a.hp-btn-ghost {
    color: var(--text);
    background: rgba(var(--surface-rgb), 0.6);
    border-color: rgba(var(--accent-rgb), 0.5);
}
.hp a.hp-btn-ghost:hover { background: rgba(var(--accent-rgb), 0.15); }

/* ---------- Hero ---------- */
.hp-hero {
    display: grid;
    gap: 1.5rem;
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
    background:
        radial-gradient(ellipse at 85% 0%, rgba(var(--purple-rgb), 0.35), transparent 55%),
        linear-gradient(135deg, rgba(var(--bg-deep-rgb), 0.95), rgba(var(--bg-mid-rgb), 0.85));
    border: 1px solid rgba(var(--accent-rgb), 0.25);
}
.hp-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.hp-hero h1 { font-size: clamp(1.9rem, 5.5vw, 3rem); color: #fff; }
.hp-accent {
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hp-lead { margin: 1rem 0 1.5rem; font-size: 1.1rem; line-height: 1.6; color: rgba(var(--text-rgb), 0.92); max-width: 38rem; }
.hp-lead b { color: #fff; }
.hp-subcta { margin-top: 0.9rem; }
.hp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0; padding: 0; }
.hp-chips li {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    background: rgba(var(--accent-rgb), 0.12);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
}

/* At a glance */
.hp-glance {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-content: center;
}
.hp-glance-item {
    padding: 1rem;
    border-radius: 14px;
    background: rgba(var(--surface-rgb), 0.75);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    text-align: center;
}
.hp-num { display: block; font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.hp-label { display: block; margin-top: 0.25rem; font-size: 0.8rem; opacity: 0.8; }
.hp-glance-note { grid-column: 1 / -1; text-align: center; font-size: 0.9rem; }

/* ---------- Sections ---------- */
.hp-section { margin-top: 2.5rem; }
.hp-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hp-section-head h2 { font-size: 1.5rem; color: #fff; }
.hp-section-sub { margin-bottom: 1.25rem; opacity: 0.9; line-height: 1.55; }
.hp-section-foot { margin-top: 1rem; opacity: 0.9; }

/* New additions: horizontal poster strip (reuses the generated include's markup) */
.hp-strip { overflow-x: auto; padding-bottom: 0.75rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.hp-strip .home-new-grid { display: flex; gap: 0.9rem; width: max-content; }
.hp-strip .home-new-card { flex: 0 0 150px; scroll-snap-align: start; }
.hp-strip .home-new-card a { display: block; color: var(--text); }
.hp-strip .home-new-card a:hover { text-decoration: none; }
.hp-strip .poster-wrapper {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hp-strip .home-new-card:hover .poster-wrapper { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); }
.hp-strip .poster-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-strip .card-meta { padding: 0.5rem 0.1rem 0; }
.hp-strip .card-meta h3 { font-size: 0.85rem; font-weight: 600; line-height: 1.3; }
.hp-strip .card-category { font-size: 0.72rem; opacity: 0.7; margin-top: 0.15rem; }

/* Cards */
.hp-cards { display: grid; gap: 1rem; }
.hp-card {
    padding: 1.25rem;
    border-radius: 16px;
    background: rgba(var(--surface-rgb), 0.75);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
}
.hp-card-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.hp-card h3 { font-size: 1.15rem; color: var(--accent); margin-bottom: 0.4rem; }
.hp-card p { line-height: 1.55; opacity: 0.92; }

/* Try-first + pricing band */
.hp-band {
    margin-top: 2.5rem;
    display: grid;
    gap: 1.5rem;
    padding: 1.5rem 1.25rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), rgba(var(--purple-rgb), 0.18));
    border: 1px solid rgba(var(--accent-rgb), 0.3);
}
.hp-band h2 { font-size: 1.3rem; color: #fff; margin-bottom: 0.6rem; }
.hp-band p { line-height: 1.55; margin-bottom: 1rem; opacity: 0.92; }

/* FAQ */
.hp-faq details {
    border-radius: 12px;
    background: rgba(var(--surface-rgb), 0.75);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    margin-bottom: 0.6rem;
}
.hp-faq summary { cursor: pointer; padding: 0.9rem 1.1rem; font-weight: 600; list-style-position: inside; }
.hp-faq details[open] summary { color: var(--accent); }
.hp-faq details p { padding: 0 1.1rem 1rem; line-height: 1.6; opacity: 0.92; }

/* Final call to action */
.hp-final { margin-top: 2.5rem; padding: 2rem 1.25rem; text-align: center; }
.hp-final h2 { font-size: 1.7rem; color: #fff; margin-bottom: 0.6rem; }
.hp-final p { max-width: 36rem; margin: 0 auto 1.25rem; line-height: 1.55; opacity: 0.92; }

/* ---------- Wider screens ---------- */
@media (min-width: 760px) {
    .hp { padding-top: 2rem; }
    .hp-hero { grid-template-columns: 1.25fr 1fr; padding: 2.5rem 2rem; gap: 2rem; }
    .hp-cards { grid-template-columns: repeat(3, 1fr); }
    .hp-band { grid-template-columns: 1fr 1fr; padding: 2rem; gap: 2rem; }
    .hp-strip .home-new-card { flex-basis: 170px; }
}
@media (prefers-reduced-motion: reduce) {
    .hp * { transition: none !important; }
}

/* "Best for" line under each way-to-watch card */
.hp-card { display: flex; flex-direction: column; }
.hp-card > p:first-of-type { margin-bottom: 0.9rem; }
.hp-card .hp-card-for { margin-top: auto; padding-top: 0.7rem; border-top: 1px solid rgba(var(--accent-rgb), 0.2); font-size: 0.92rem; opacity: 1; }
.hp-card .hp-card-for b { color: var(--accent); }
