/* ===== Homepage (K-8 Read & Learn) ===== */
/* Loaded after styles.css on index.html only. */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 2000;
    background: var(--dark);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
}
.skip-link:focus { left: 8px; }

section[id] { scroll-margin-top: 80px; }

.eyebrow {
    display: block;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-subtitle.left { text-align: left; margin-bottom: 32px; }
.container.narrow { max-width: 820px; }

.brand-text { color: var(--brand); }

/* ----- Reveal on scroll ----- */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.in {
    opacity: 1;
    transform: none;
}

/* ----- Hero ----- */
.hero h1 { font-size: 3.2rem; }
.hero-trust { flex-wrap: wrap; row-gap: 10px; }
.trust-text { white-space: nowrap; }

.badge-new {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--on-brand);
    background: var(--brand);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.hero-usecase {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 18px;
}
.hero-usecase .typewriter-wrapper { min-width: 0; }

.hero-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}
/* Subject chip (soft): the subject's icon and name in its -text color. */
.chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9375rem;
    background: var(--surface-card);
    border: 1px solid var(--border);
    color: var(--subj-text, var(--ink));
}
.chip .i { width: 16px; height: 16px; }

.product-hunt-badge { margin-top: 1.5rem; }

.carousel-indicators .indicator {
    border: none;
    padding: 0;
    cursor: pointer;
}



/* ----- Stats strip ----- */
.stats-strip {
    background: var(--surface-card);
    border-bottom: 1px solid var(--border);
    padding: 44px 24px;
    color: var(--ink);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--brand);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.stat-label {
    font-weight: 500;
    color: var(--ink-muted);
}

/* ----- Use cases ----- */
.usecases { padding: 100px 24px; }
.usecase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.usecase-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}
.usecase-card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.usecase-card p { font-size: 0.975rem; }

/* ----- Subjects ----- */
.subjects { padding: 100px 24px; background: var(--light); }
.subject-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.subject-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}
.subject-card:hover { box-shadow: var(--shadow-xl); }
.subject-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}
.subject-head > div { flex: 1; }
.subject-head .icon-tile { margin-bottom: 0; width: 56px; height: 56px; border-radius: var(--radius-lg); }
.subject-head .icon-tile .i { width: 28px; height: 28px; }
.subject-grades { font-size: 0.875rem; font-weight: 600; color: var(--ink-muted); }
.live-pill {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--correct);
    background: var(--correct-tint);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.live-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--correct);
}
.subject-card > p { margin-bottom: 16px; }
.topic-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.topic-list li {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: var(--light);
    color: var(--dark-light);
}

.coming-soon {
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px 24px;
    border: 1px solid var(--border);
    background: var(--surface-card);
    border-radius: var(--radius-xl);
}
.coming-label {
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray);
}
.coming-items { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.coming-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    background: var(--surface-parent);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--subj-text, var(--ink));
}
.coming-item .i { width: 16px; height: 16px; }

/* ----- Topic marquee ----- */
.topic-marquee {
    padding: 36px 0;
    overflow: hidden;
    background: var(--white);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-row { overflow: hidden; padding: 6px 0; }
.marquee-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: marquee 50s linear infinite;
}
.marquee-row.reverse .marquee-track { animation-direction: reverse; animation-duration: 58s; }
.topic-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
    white-space: nowrap;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    background: var(--surface-parent);
    font-weight: 500;
    color: var(--ink);
}
@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ----- Lesson flow + animated demo ----- */
.lesson-flow { padding: 100px 24px; }
.lesson-flow-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}
.lesson-steps h2, .lesson-steps .eyebrow { text-align: left; }
.flow-list { list-style: none; display: grid; gap: 12px; }
.flow-step {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
    cursor: pointer;
}
.flow-step h3 { font-size: 1.15rem; margin-bottom: 4px; }
.flow-step p { font-size: 0.95rem; }
.flow-num {
    flex: 0 0 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: var(--surface-parent);
    color: var(--ink-muted);
    transition: background 0.3s ease, color 0.3s ease;
}
.flow-step.active {
    background: var(--brand-tint);
    border-color: var(--brand);
}
.flow-step.active .flow-num { background: var(--brand); color: var(--on-brand); }

.lesson-demo { display: flex; justify-content: center; }
/* The demo is a kid-mode screen: warm ground, Lexend, gentle feedback. */
.demo-device {
    position: relative;
    width: 340px;
    height: 460px;
    border-radius: var(--radius-xl);
    background: var(--surface-kid);
    border: 1px solid var(--border);
    padding: 18px;
    box-shadow: var(--shadow-lift);
    overflow: hidden;
    color: var(--ink);
    font-family: var(--font-display);
}
.demo-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--ink-muted);
    margin-bottom: 14px;
}
.demo-dot { display: inline-flex; color: var(--science-text); }
.demo-dot .i { width: 16px; height: 16px; }
.demo-crumb { flex: 1; font-weight: 600; }
.demo-progress { width: 70px; height: 6px; border-radius: 4px; background: var(--border); overflow: hidden; }
.demo-progress-fill {
    display: block;
    height: 100%;
    width: 25%;
    background: var(--science);
    transition: width 0.6s ease;
}
.demo-stage {
    position: absolute;
    inset: 56px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}
.demo-stage.active { opacity: 1; transform: none; }
.demo-illus {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-xl);
    background: var(--science);
    color: var(--on-subject);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.demo-illus .i { width: 64px; height: 64px; stroke-width: 1.5; }
.demo-narration { font-size: 1.3rem; font-weight: 400; line-height: 1.6; color: var(--ink); }
.demo-narration span { transition: background 0.2s ease; border-radius: 4px; padding: 0 2px; }
.demo-narration span.lit { background: var(--highlight); color: var(--on-highlight); }
.demo-audio {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--ink-muted);
    font-family: var(--font-ui);
}
.eq { display: inline-flex; gap: 3px; align-items: flex-end; height: 16px; }
.eq i { width: 3px; background: var(--brand); border-radius: 2px; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: 0.15s; }
.eq i:nth-child(3) { animation-delay: 0.3s; }
.eq i:nth-child(4) { animation-delay: 0.45s; }
.eq i:nth-child(5) { animation-delay: 0.6s; }
@keyframes eq {
    0%, 100% { height: 4px; }
    50% { height: 16px; }
}

.demo-diagram {
    position: relative;
    width: 100%;
    height: 230px;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--ink);
    margin-bottom: 16px;
}
.diag-sun { position: absolute; top: 12px; left: 16px; color: var(--reward-text); }
.diag-sun .i { width: 44px; height: 44px; }
.diag-plant { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--science-text); }
.diag-plant .i { width: 72px; height: 72px; stroke-width: 1.5; }
.diag-arrow {
    position: absolute;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    color: var(--on-subject);
    opacity: 0;
}
.demo-stage.active .diag-arrow { animation: pop-in 0.4s ease forwards; }
.diag-arrow.a1 { top: 34px; left: 80px; background: var(--reward); animation-delay: 0.4s !important; }
.diag-arrow.a2 { bottom: 30px; left: 24px; background: var(--reading); animation-delay: 0.9s !important; }
.diag-arrow.a3 { top: 90px; right: 18px; background: var(--surface-parent); color: var(--ink); border: 1px solid var(--border); animation-delay: 1.4s !important; }
.diag-out {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    background: var(--science);
    color: var(--on-subject);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    opacity: 0;
}
.demo-stage.active .diag-out { animation: pop-in 0.4s ease 1.9s forwards; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop-in {
    from { opacity: 0; transform: scale(0.6); }
    to { opacity: 1; transform: scale(1); }
}
.demo-caption { font-size: 0.95rem; color: var(--ink-muted); }

.demo-question { font-size: 1.25rem; font-weight: 500; line-height: 1.35; margin-bottom: 18px; }
.demo-options { display: grid; gap: 10px; width: 100%; }
.opt {
    padding: 12px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    background: var(--surface-card);
    font-weight: 500;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.demo-stage.picked .opt-correct {
    background: var(--correct-tint);
    border-color: var(--correct);
}
.demo-feedback-pop {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--correct);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.demo-stage.picked .demo-feedback-pop { opacity: 1; transform: none; }

.demo-stars { display: flex; gap: 8px; margin-bottom: 10px; color: var(--reward); }
.demo-stars .i { width: 48px; height: 48px; fill: currentColor; stroke: var(--reward-text); stroke-width: 1; }
.demo-stars span { display: inline-flex; opacity: 0; transform: scale(0.2); }
.demo-stage.active .demo-stars span { animation: star-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) forwards; }
.demo-stage.active .demo-stars span:nth-child(2) { animation-delay: 0.25s; }
.demo-stage.active .demo-stars span:nth-child(3) { animation-delay: 0.5s; }
@keyframes star-pop { to { opacity: 1; transform: none; } }
.demo-done { font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.demo-xp {
    margin-top: 10px;
    font-weight: 600;
    color: var(--reward-text);
    background: var(--surface-card);
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: var(--radius-full);
}
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i {
    position: absolute;
    top: -10px;
    width: 8px;
    height: 14px;
    border-radius: 2px;
    opacity: 0;
}
.demo-stage.active .confetti i { animation: confetti-fall 1.8s ease-in forwards; }
.confetti i:nth-child(4n+1) { background: var(--reward); }
.confetti i:nth-child(4n+2) { background: var(--reading); }
.confetti i:nth-child(4n+3) { background: var(--science); }
.confetti i:nth-child(4n+4) { background: var(--math); }
.confetti i:nth-child(1) { left: 6%; animation-delay: 0.1s !important; }
.confetti i:nth-child(2) { left: 14%; animation-delay: 0.4s !important; }
.confetti i:nth-child(3) { left: 23%; animation-delay: 0.2s !important; }
.confetti i:nth-child(4) { left: 31%; animation-delay: 0.6s !important; }
.confetti i:nth-child(5) { left: 40%; animation-delay: 0.3s !important; }
.confetti i:nth-child(6) { left: 49%; animation-delay: 0.5s !important; }
.confetti i:nth-child(7) { left: 57%; animation-delay: 0.15s !important; }
.confetti i:nth-child(8) { left: 66%; animation-delay: 0.45s !important; }
.confetti i:nth-child(9) { left: 74%; animation-delay: 0.25s !important; }
.confetti i:nth-child(10) { left: 82%; animation-delay: 0.55s !important; }
.confetti i:nth-child(11) { left: 89%; animation-delay: 0.35s !important; }
.confetti i:nth-child(12) { left: 95%; animation-delay: 0.05s !important; }
@keyframes confetti-fall {
    0% { opacity: 1; transform: translateY(0) rotate(0); }
    100% { opacity: 0; transform: translateY(400px) rotate(540deg); }
}

/* ----- Screenshot showcase ----- */
.showcase { padding: 100px 0; background: var(--surface-parent); }
.showcase .container { padding: 0 24px; }
.showcase-scroller {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px max(24px, calc((100vw - 1200px) / 2 + 24px)) 30px;
    scrollbar-width: thin;
    cursor: grab;
}
.showcase-scroller.dragging { cursor: grabbing; scroll-snap-type: none; }
.shot {
    flex: 0 0 220px;
    scroll-snap-align: start;
    text-align: center;
}
.shot img {
    width: 100%;
    height: auto;
    border-radius: 26px;
    border: 7px solid var(--device);
    box-shadow: var(--shadow-card);
    transition: transform 0.35s ease;
    user-select: none;
    -webkit-user-drag: none;
}
.shot:hover img { transform: translateY(-4px); }
.shot figcaption { margin-top: 14px; font-weight: 500; color: var(--ink-muted); }

/* ----- Reading coach ----- */
#reading { background: var(--white); }
.speech-content .eyebrow { text-align: left; }
.reading-points { list-style: none; display: grid; gap: 18px; }
.reading-points li { display: flex; gap: 14px; align-items: flex-start; color: var(--gray); }
.reading-points strong { color: var(--ink); font-weight: 600; }
.rp-icon {
    flex: 0 0 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--brand-tint);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
}
.rp-icon .i { width: 22px; height: 22px; }
.pattern-chart .substitutions { margin-top: 22px; }

/* ----- Parents ----- */
.parents { padding: 100px 24px; background: var(--light); }
.parents h2 { margin-bottom: 48px; }

/* ----- FAQ ----- */
.home-faq { padding: 100px 24px; }
.faq-accordion { display: grid; gap: 12px; margin-top: 36px; }
.faq-accordion details {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0 22px;
    transition: border-color 0.3s ease;
}
.faq-accordion details[open] { border-color: var(--brand); }
.faq-accordion summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 30px 18px 0;
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
}
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}
.faq-accordion details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-accordion details p { padding-bottom: 18px; }
.faq-accordion a, .faq-more a { color: var(--brand); font-weight: 600; }
.faq-more { text-align: center; margin-top: 28px; }

.download { position: relative; overflow: hidden; }
.download .container { position: relative; }

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.6rem; }
    .hero-chips { justify-content: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .usecase-grid { grid-template-columns: repeat(2, 1fr); }
    .lesson-flow-grid { grid-template-columns: 1fr; }
    .lesson-steps h2, .lesson-steps .eyebrow, .section-subtitle.left { text-align: center; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.1rem; }
    .hero-usecase { font-size: 1.3rem; min-height: 2.8em; }
    .hero-usecase .typewriter-wrapper { display: inline-block; margin-top: 0; }
    .stat-num { font-size: 2.1rem; }
    .usecase-grid, .subject-grid { grid-template-columns: 1fr; }
    .demo-device { width: 300px; height: 430px; }
    .shot { flex-basis: 180px; }
    .speech-content .eyebrow { text-align: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.85rem; }
    .stats-grid { gap: 16px; }
    .subject-card, .usecase-card { padding: 24px; }
    .demo-device { width: 100%; max-width: 300px; }
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .js .reveal { opacity: 1; transform: none; }
    .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
    .marquee-track span[aria-hidden="true"] { display: none; }
}

/* Links into the generated grade pages */
.grade-links { margin-top: 14px; font-size: 0.85rem; font-weight: 600; color: var(--ink-muted); }
.grade-links a {
    display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center;
    border-radius: 8px; background: var(--light); color: var(--primary); margin: 2px 1px;
}
.grade-links a:hover { background: var(--brand); color: var(--on-brand); }
.inline-link { color: var(--brand); font-weight: 600; }

/* Hero phone fits the screen: its height follows the viewport, with the
   screenshots' own proportions (720×1616), instead of a fixed 600px. */
.hero {
    min-height: 0;
    padding: 112px 24px 64px;
    gap: clamp(32px, 5vw, 80px);
}
.screenshot-carousel {
    height: clamp(360px, calc(100vh - 300px), 560px);
    width: auto;
    aspect-ratio: 720 / 1616;
}
.screenshot-slide img { object-fit: cover; object-position: top; }
.hero-image { width: auto; min-width: 300px; }

@media (max-width: 1024px) {
    .hero { padding-top: 104px; }
    .screenshot-carousel { height: clamp(340px, 56vh, 500px); }
}
@media (max-width: 480px) {
    .screenshot-carousel { height: clamp(320px, 52vh, 440px); }
    .hero-image { min-width: 0; }
}

/* Keep the menu on one line on mid-size screens. */
.nav-links li { white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 769px) {
    .nav-links { gap: 20px; }
    .nav-links a { font-size: 0.9rem; }
}
@media (max-width: 1100px) and (min-width: 769px) {
    .nav-links li:has(a[href="#how-it-works"]),
    .nav-links li:has(a[href="#reading"]),
    .nav-links li:has(a[href="/#reading"]) { display: none; }
}

/* Showcase: phones sized to the screen, arrows on desktop, edges aligned with the page */
.showcase { padding: 72px 0; --edge: max(24px, calc((100vw - 1200px) / 2 + 24px)); }
.showcase .section-subtitle { margin-bottom: 28px; }
.showcase-wrap { position: relative; }
.showcase-scroller { padding: 10px var(--edge) 24px; scroll-padding-inline: var(--edge); gap: 24px; }
.shot { flex: 0 0 auto; }
.shot img {
    height: clamp(300px, calc(100vh - 360px), 440px);
    width: auto;
    aspect-ratio: 720 / 1616;
    border-width: 6px;
    border-radius: 24px;
}
.shot figcaption { margin-top: 10px; font-size: 0.9rem; max-width: 200px; margin-inline: auto; }
.sc-arrow {
    position: absolute;
    top: 42%;
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface-card);
    box-shadow: var(--shadow-card);
    font-size: 1.8rem;
    line-height: 1;
    color: var(--ink);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.sc-arrow:hover { transform: scale(1.08); }
.sc-arrow[disabled] { opacity: 0; pointer-events: none; }
.sc-prev { left: max(8px, calc(var(--edge) - 64px)); }
.sc-next { right: max(8px, calc(var(--edge) - 64px)); }
@media (max-width: 768px) {
    .sc-arrow { display: none; }
    .shot img { height: clamp(280px, 50vh, 380px); }
}

/* Subject cards: one clear way in */
.subject-card { display: flex; flex-direction: column; }
.subject-card .topic-list { margin-bottom: 18px; }
.subject-cta {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--radius-md);
    background: var(--brand);
    color: var(--on-brand);
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}
.subject-cta:hover { background: var(--brand-strong); }

/* Showcase v2: the row stays inside the page width, centered, with the
   arrows outside it, faded ends and no visible scrollbar. */
.showcase-wrap { max-width: 1248px; margin: 0 auto; padding: 0 64px; position: relative; }
.showcase-scroller {
    padding: 10px 4px 20px;
    scroll-padding-inline: 4px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}
.showcase-scroller::-webkit-scrollbar { display: none; }
.sc-arrow { top: calc(50% - 44px); }
.sc-prev { left: 4px; }
.sc-next { right: 4px; }
@media (max-width: 768px) {
    .showcase-wrap { padding: 0; }
    .showcase-scroller { padding: 10px 16px 20px; scroll-padding-inline: 16px; -webkit-mask-image: none; mask-image: none; }
}

/* Whole subject card is clickable: the button's link stretches over the card. */
.subject-card { position: relative; cursor: pointer; }
.subject-card .subject-cta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.subject-card:hover { box-shadow: var(--shadow-xl); }
.subject-card:hover .subject-cta { background: var(--brand-strong); }
.all-subjects { text-align: center; margin-top: 26px; }
.all-subjects a { color: var(--brand); font-weight: 600; }
