/* ============================================
   Bonjour Verbs — Marketing Site Styles
   Brand color: #0050C7 (Quebec blue, lifted from #003DA5
   for AA contrast — single source of truth lives in
   lib/core/theme/app_colors.dart in the Flutter app)
   ============================================ */

:root {
    /* Brand */
    --color-primary: #0050C7;
    --color-primary-bright: #3A7BE0;
    --color-primary-dark: #003DA5;

    /* Accents (mirror app palette) */
    --color-accent-sunny: #F4C545;
    --color-accent-sunny-deep: #B88407;
    --color-accent-coral: #FF6B6B;
    --color-accent-mint: #4CD9A0;

    /* Premium tier */
    --color-premium-gold: #FFB300;
    --color-premium-gold-dark: #CC8F00;

    /* Surfaces — warm parchment to echo the app's light theme */
    --color-bg: #ffffff;
    --color-bg-alt: #FAF9F6;
    --color-bg-deep: #F2F0EA;

    /* Text */
    --color-text: #1a1a2e;
    --color-text-light: #4a4a68;
    --color-text-muted: #6b7280;

    --color-border: #D0CCC0;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
    --max-width-narrow: 760px;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 999px;

    --shadow-sm: 0 2px 8px rgba(0, 80, 199, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 80, 199, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 80, 199, 0.16);
}

/* ─── Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.92em;
    background: var(--color-bg-deep);
    padding: 0.1em 0.4em;
    border-radius: 4px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: var(--max-width-narrow);
}

/* ─── Typography ───────────────────────────────────────────── */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
}

/* ─── Header / Nav ─────────────────────────────────────────── */
/* Slightly darker than the hero gradient's starting blue so the header
   reads as its own band instead of blending into the hero. A soft
   bottom shadow adds a subtle hairline of separation that still feels
   continuous with the brand colour. */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #00337A;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-img {
    height: 44px;
    width: 44px;
    border-radius: 10px;
    /* App icon already has its own light background — don't filter it. */
}

.logo-text {
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #fff;
}

/* "Open web app" CTA — a secondary path next to Download.
   Ghost pill (transparent bg + subtle border) rather than a filled
   warm-orange pill, so it reads as actionable but doesn't compete
   visually with the Download dropdown, which is the primary install
   path. On mobile (.nav-open dropdown) it stretches full width like
   the other nav entries. */
.nav-links a.nav-cta {
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.nav-links a.nav-cta:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

/* Language switcher. A native <details> disclosure living in the footer
   bottom bar: a quiet pill toggle showing the current language (endonym),
   which opens a small menu of the available locales. Opens upward since
   the footer sits at the page bottom. Primary discovery is still the
   per-page hreflang alternates + the visitor's own locale; this is a
   manual opt-out. */
.footer-lang {
    position: relative;
    display: inline-block;
}

.footer-lang__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

/* Hide the default <summary> disclosure triangle (cross-browser). */
.footer-lang__toggle::-webkit-details-marker {
    display: none;
}

.footer-lang__toggle::marker {
    content: "";
}

.footer-lang__toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

.footer-lang__globe {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.footer-lang__caret {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.footer-lang[open] .footer-lang__caret {
    transform: rotate(180deg);
}

.footer-lang__menu {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    min-width: 160px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    padding: 6px 0;
    z-index: 1000;
}

.footer-lang__item {
    display: block;
    padding: 9px 16px;
    font-size: 0.9rem;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.footer-lang__item:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

.footer-lang__item.is-active {
    font-weight: 700;
    color: var(--color-primary);
}

/* Hamburger toggle (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Nav dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-btn {
    background: none;
    border: none;
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: color 0.2s;
}

.nav-dropdown-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md);
    padding: 8px 0;
    padding-top: 16px;
    z-index: 1000;
}

/* Invisible bridge so the hover gap between button and dropdown doesn't close it. */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 16px;
    display: none;
}

.nav-dropdown:hover::after {
    display: block;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-dropdown-content a,
.nav-dropdown-content .nav-dropdown-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--color-text) !important;
    text-decoration: none;
    transition: background 0.2s;
}

.nav-dropdown-content .nav-dropdown-action {
    /* Reset button defaults so it matches the sibling <a> visually. */
    width: 100%;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.nav-dropdown-content a:hover,
.nav-dropdown-content .nav-dropdown-action:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary) !important;
}

.nav-dropdown-action__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.nav-dropdown-action__sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-light);
    margin-top: 2px;
}

.nav-dropdown-content .nav-dropdown-action:hover .nav-dropdown-action__sub {
    color: var(--color-primary);
}

.dropdown-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: var(--color-accent-sunny);
    color: #2a1f00;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(244, 197, 69, 0.35);
}

.hero-text h1 {
    color: #ffffff;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    max-width: 500px;
}

.hero-features {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 32px;
    letter-spacing: 0.02em;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
}

.hero-visual-placeholder {
    width: 100%;
    max-width: 380px;
    min-height: 380px;
    border: 2px dashed rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.hero-mascot {
    width: 100%;
    max-width: 420px;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.25));
    animation: floatMascot 5s ease-in-out infinite;
}

@keyframes floatMascot {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-cta-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    transition: background 0.2s, transform 0.2s;
}

.hero-cta-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* ============================================
   Hero phone mockups (pure CSS — no images)
   All inner sizes use container query units (cqw)
   so the mockup scales perfectly at any phone width.
   Matches the Bonjour Verbs app: Quebec blue primary,
   warm parchment surfaces, roadmap + typed quiz.
   ============================================ */
.hero-images {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 640px;
}

.phone-mockup {
    --phone-w: 280px;
    width: var(--phone-w);
    background: #0d0d18;
    border-radius: calc(var(--phone-w) * 0.157);
    padding: calc(var(--phone-w) * 0.036);
    box-shadow:
        0 0 0 1.5px rgba(255, 255, 255, 0.12),
        0 30px 80px rgba(0, 0, 0, 0.45),
        0 8px 20px rgba(0, 0, 0, 0.3);
}

.phone-mockup-primary {
    position: relative;
    z-index: 2;
    animation: floatPhone 5s ease-in-out infinite;
}

.phone-mockup-secondary {
    position: absolute;
    left: 50%;
    top: 30px;
    --phone-w: 240px;
    transform: translateX(calc(-50% + 130px)) rotate(6deg);
    opacity: 0.96;
    z-index: 1;
    animation: floatPhoneAlt 6s ease-in-out infinite;
}

@keyframes floatPhone {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatPhoneAlt {

    0%,
    100% {
        transform: translateX(calc(-50% + 130px)) translateY(0) rotate(6deg);
    }

    50% {
        transform: translateX(calc(-50% + 130px)) translateY(-14px) rotate(6deg);
    }
}

.phone-screen {
    position: relative;
    background: #FAF9F6;
    /* matches app's lightSurface (parchment) */
    /* Interior radius = outer (0.157) - padding (0.036) so the screen
       sits flush inside the bezel curve. */
    border-radius: calc(var(--phone-w) * 0.121);
    overflow: hidden;
    min-height: calc(var(--phone-w) * 1.95);
    display: flex;
    flex-direction: column;
    container-type: inline-size;
    container-name: phone;
    line-height: 1.3;
}

.phone-notch {
    position: absolute;
    top: 2.7cqw;
    left: 50%;
    transform: translateX(-50%);
    width: 33cqw;
    height: 8cqw;
    background: #0d0d18;
    border-radius: 999px;
    z-index: 3;
}

.phone-statusbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4.2cqw 7.7cqw 2.3cqw;
    font-size: 3.9cqw;
    font-weight: 600;
    color: #1a1a2e;
}

.phone-statusbar-icons {
    display: inline-flex;
    gap: 1.5cqw;
    align-items: center;
}

.status-signal,
.status-wifi,
.status-battery {
    display: inline-block;
    background: #1a1a2e;
    border-radius: 0.8cqw;
}

.status-signal {
    width: 5.4cqw;
    height: 3.1cqw;
    clip-path: polygon(0 100%, 25% 100%, 25% 70%, 50% 70%, 50% 40%, 75% 40%, 75% 10%, 100% 10%, 100% 100%);
}

.status-wifi {
    width: 4.6cqw;
    height: 3.1cqw;
    clip-path: polygon(50% 0, 100% 50%, 75% 75%, 50% 50%, 25% 75%, 0 50%);
    opacity: 0.85;
}

.status-battery {
    width: 6.9cqw;
    height: 3.1cqw;
    border-radius: 0.8cqw;
    position: relative;
}

.status-battery::after {
    content: '';
    position: absolute;
    right: -0.8cqw;
    top: 0.8cqw;
    width: 0.8cqw;
    height: 1.5cqw;
    background: #1a1a2e;
    border-radius: 0 0.4cqw 0.4cqw 0;
}

.phone-content {
    flex: 1;
    padding: 3.5cqw 4.6cqw 4.6cqw;
    overflow: hidden;
    font-size: 4cqw;
    color: #1a1a2e;
}

/* ─── Roadmap mockup (primary phone) ────────────────────── */
.mock-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2.3cqw;
    margin-bottom: 4.2cqw;
}

.mock-greeting {
    font-size: 4.6cqw;
    font-weight: 700;
}

.mock-date {
    font-size: 3.1cqw;
    color: #6b7280;
    margin-top: 0.4cqw;
}

.mock-streak-pill {
    display: inline-flex;
    align-items: center;
    gap: 1.1cqw;
    background: linear-gradient(135deg, #FFF1E0 0%, #FFE0D6 100%);
    border-radius: 999px;
    padding: 1.5cqw 3.1cqw;
    flex-shrink: 0;
}

.mock-streak-flame {
    font-size: 4cqw;
    line-height: 1;
}

.mock-streak-count {
    font-size: 4cqw;
    font-weight: 800;
    color: #B88407;
}

.mock-current-level {
    background: linear-gradient(135deg, #0050C7 0%, #003DA5 100%);
    border-radius: 5cqw;
    padding: 4.2cqw 4.6cqw;
    color: #fff;
    margin-bottom: 4.6cqw;
    box-shadow: 0 4px 20px rgba(0, 80, 199, 0.25);
}

.mock-current-level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.3cqw;
}

.mock-milestone-tag {
    font-size: 2.9cqw;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.85);
}

.mock-level-pct {
    font-size: 3.5cqw;
    font-weight: 700;
}

.mock-current-level-title {
    font-size: 4.6cqw;
    font-weight: 700;
    margin-bottom: 2.7cqw;
}

.mock-current-level-track {
    height: 2.3cqw;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    margin-bottom: 2.7cqw;
}

.mock-current-level-fill {
    width: 62%;
    height: 100%;
    background: linear-gradient(90deg, #F4C545, #FFE0A0);
    border-radius: 999px;
}

.mock-current-level-cta {
    font-size: 3.5cqw;
    font-weight: 700;
    color: #FFE0A0;
}

.mock-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 3.5cqw;
    font-weight: 700;
    margin: 0 0.8cqw 2.7cqw;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mock-section-action {
    color: #0050C7;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.mock-level-row {
    display: flex;
    align-items: center;
    gap: 3.1cqw;
    background: #fff;
    border-radius: 3.5cqw;
    padding: 2.7cqw 3.5cqw;
    margin-bottom: 2.1cqw;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.mock-level-icon {
    width: 9cqw;
    height: 9cqw;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4cqw;
    font-weight: 800;
    flex-shrink: 0;
}

.mock-level-icon-done {
    background: #4CD9A0;
    color: #fff;
}

.mock-level-icon-current {
    background: #0050C7;
    color: #fff;
    box-shadow: 0 0 0 1cqw rgba(0, 80, 199, 0.15);
}

.mock-level-icon-locked {
    background: #E9E6DC;
    color: #6b7280;
    font-weight: 400;
    font-size: 3.5cqw;
}

.mock-level-body {
    flex: 1;
    min-width: 0;
}

.mock-level-title {
    font-size: 3.5cqw;
    font-weight: 700;
    color: #1a1a2e;
}

.mock-level-sub {
    font-size: 2.9cqw;
    color: #6b7280;
    margin-top: 0.4cqw;
}

.mock-level-row-done .mock-level-title {
    color: #6b7280;
}

.mock-tense-strip {
    margin-top: 3.5cqw;
    background: #fff;
    border-radius: 3.5cqw;
    padding: 3.1cqw 3.5cqw;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.mock-tense-strip-title {
    font-size: 2.9cqw;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2.3cqw;
}

/* Per-tense row — name + %, bar, state subtitle. Mirrors lib/features/stats/screens/stats_screen.dart _TenseRow. */
.mock-tense-row {
    padding: 1.6cqw 0;
}

.mock-tense-row+.mock-tense-row {
    border-top: 1px solid #f1f1f5;
}

.mock-tense-row-head {
    display: flex;
    align-items: center;
    gap: 1.2cqw;
}

.mock-tense-label {
    flex: 1;
    font-size: 3cqw;
    font-weight: 600;
    color: #1a1a2e;
}

.mock-tense-star {
    font-size: 3cqw;
    line-height: 1;
    color: #F4C545;
}

.mock-tense-trend {
    font-size: 2.4cqw;
    font-weight: 700;
}

.mock-tense-trend-up {
    color: #1e9d5d;
}

.mock-tense-trend-down {
    color: #d23a3a;
}

.mock-tense-pct {
    font-size: 3.2cqw;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.mock-tense-pct-strong {
    color: #1e9d5d;
}

.mock-tense-pct-mid {
    color: #2b7fd9;
}

.mock-tense-pct-mute {
    color: #9ca3af;
}

.mock-tense-bar {
    margin-top: 1.5cqw;
    height: 1.6cqw;
    border-radius: 0.8cqw;
    background: #f0f0f3;
    overflow: hidden;
}

.mock-tense-bar-fill {
    height: 100%;
    border-radius: 0.8cqw;
}

.mock-tense-bar-strong {
    background: #2bbf78;
}

.mock-tense-bar-mid {
    background: #2b7fd9;
}

.mock-tense-bar-mute {
    background: #c8c8d0;
}

.mock-tense-sub {
    margin-top: 1.1cqw;
    font-size: 2.4cqw;
    color: #6b7280;
}

/* ─── Quiz mockup (secondary phone) ─────────────────────── */
.phone-content-quiz {
    display: flex;
    flex-direction: column;
    gap: 3.5cqw;
}

.mock-quiz-header {
    display: flex;
    align-items: center;
    gap: 3.1cqw;
    margin-bottom: 1.5cqw;
}

.mock-quiz-back {
    font-size: 5.4cqw;
    color: #6b7280;
    flex-shrink: 0;
}

.mock-quiz-progress {
    flex: 1;
    height: 1.9cqw;
    background: #E9E6DC;
    border-radius: 999px;
    overflow: hidden;
}

.mock-quiz-progress-fill {
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, #0050C7, #3A7BE0);
    border-radius: 999px;
}

.mock-quiz-counter {
    font-size: 3.1cqw;
    font-weight: 700;
    color: #6b7280;
    flex-shrink: 0;
}

.mock-quiz-prompt {
    background: #fff;
    border-radius: 5cqw;
    padding: 5.4cqw 4.6cqw;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.mock-quiz-label {
    font-size: 2.9cqw;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2.3cqw;
}

.mock-quiz-verb {
    font-size: 9.2cqw;
    font-weight: 800;
    color: #0050C7;
    line-height: 1;
}

.mock-quiz-gloss {
    font-size: 3.5cqw;
    color: #6b7280;
    font-style: italic;
    margin-top: 1.1cqw;
}

.mock-quiz-tags {
    display: flex;
    gap: 1.9cqw;
    justify-content: center;
    margin-top: 3.5cqw;
}

.mock-quiz-tag {
    background: #F2F0EA;
    color: #1a1a2e;
    padding: 1.5cqw 3.5cqw;
    border-radius: 999px;
    font-size: 3.1cqw;
    font-weight: 700;
}

.mock-quiz-tag-primary {
    background: rgba(0, 80, 199, 0.12);
    color: #003DA5;
}

.mock-quiz-input {
    background: #fff;
    border: 1.5cqw solid #4CD9A0;
    border-radius: 4cqw;
    padding: 3.5cqw 4.2cqw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 0 0 0.8cqw rgba(76, 217, 160, 0.15);
}

.mock-quiz-typed {
    font-size: 5.4cqw;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 0.02em;
}

.mock-quiz-check {
    width: 7.7cqw;
    height: 7.7cqw;
    border-radius: 50%;
    background: #4CD9A0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.6cqw;
    font-weight: 800;
}

.mock-quiz-derivation {
    background: rgba(76, 217, 160, 0.12);
    border-radius: 3.5cqw;
    padding: 3.1cqw 3.5cqw;
}

.mock-quiz-derivation-title {
    font-size: 2.9cqw;
    font-weight: 700;
    color: #1e9d5d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.9cqw;
}

.mock-quiz-derivation-steps {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.9cqw;
    font-size: 3.5cqw;
    font-weight: 600;
}

.mock-quiz-step {
    color: #6b7280;
    font-family: ui-monospace, SFMono-Regular, monospace;
}

.mock-quiz-step-final {
    color: #1e9d5d;
    font-weight: 800;
}

.mock-quiz-arrow {
    color: #9ca3af;
}

.mock-accent-bar {
    margin-top: auto;
    background: #E9E6DC;
    border-radius: 3cqw;
    padding: 2.3cqw 2.7cqw;
    display: flex;
    gap: 1.5cqw;
    justify-content: space-between;
    overflow-x: auto;
}

.mock-accent-bar span {
    background: #fff;
    color: #1a1a2e;
    width: 6.5cqw;
    height: 6.5cqw;
    border-radius: 1.5cqw;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5cqw;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* ─── Store buttons ────────────────────────────────────────── */
.store-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.store-buttons-centered {
    justify-content: center;
}

/* The two official badges have different art aspect ratios (Apple ≈3.0:1, */
/* Google ≈3.36:1), so they can't match BOTH width and height. Rule: when */
/* side by side, match HEIGHT (the conventional look); when stacked on */
/* mobile, match WIDTH. Here (side-by-side default) each badge box hugs */
/* its art at 50px tall — Apple lands ~150px wide, Google ~168px wide, */
/* equal height. width:auto lets the box hug the art so centering centers */
/* the artwork, not an oversized padded box. The stacked/equal-width */
/* override lives in the max-width: 540px media query. */
.store-btn {
    display: inline-block;
    height: 50px;
    width: auto;
    transition: transform 0.2s, box-shadow 0.2s;
}

.store-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.store-btn .store-icon {
    height: 50px;
    width: auto;
    object-fit: contain;
    object-position: left center;
}

/* ─── Download page ────────────────────────────────────────── */
.download-hero {
    padding: 24px 0 28px;
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg-deep) 100%);
    text-align: center;
}

.download-hero h1 {
    margin: 0;
    font-size: 2.25rem;
}

.download-hero p {
    margin: 6px 0 0;
    color: var(--color-text-light);
    font-size: 1.05rem;
}

.download-chooser {
    padding: 36px 0 56px;
    text-align: center;
}

.download-chooser h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.download-platforms {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-alt);
}

.download-platform {
    display: flex;
    min-width: 0;
    min-height: 148px;
    padding: 28px 16px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.download-platform + .download-platform {
    border-left: 1px solid var(--color-border);
}

.download-platform h3 {
    font-size: 1rem;
}

.download-web-cta {
    display: inline-flex;
    height: 50px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.download-web-cta:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* Google Play badge has 41px transparent padding baked into the PNG on */
/* every side, and the global `img { max-width: 100% }` would otherwise */
/* clamp the image to its container and shrink the artwork. We size the */
/* image (max-width:none so it can overflow the box) and crop the padding */
/* with negative margins so the VISIBLE artwork is exactly 168×50 — the */
/* same as the App Store badge — and set the container to 168px so the two */
/* badges are identical in size and align flush whether the row is left- */
/* aligned or centered (stacked on mobile). */
.store-btn-google {
    width: 168px;
}

.store-btn-google .store-icon {
    max-width: none;
    width: 192px;
    height: 74px;
    margin: -12px 0 -12px -12px;
}

.store-placeholder {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.store-placeholder code {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ─── Sections ─────────────────────────────────────────────── */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-header {
    text-align: center;
    max-width: var(--max-width-narrow);
    margin: 0 auto 56px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--color-text-light);
}

.feature-card p em {
    font-style: italic;
    color: var(--color-primary);
}

.feature-card p strong {
    color: var(--color-text);
}

/* Highlighted card — the marquee feature. Uses brand colour gradient so
   the eye lands here first. Declared AFTER the base `.feature-card` rules
   so its colour overrides win on source-order ties (specifically the
   em-inside-p case, which would otherwise render as Quebec blue on
   Quebec blue → invisible). */
.feature-card-highlight {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-md);
}

.feature-card-highlight h3,
.feature-card-highlight p,
.feature-card-highlight p em,
.feature-card-highlight p strong {
    color: #fff;
}

.feature-card-highlight p em {
    font-style: italic;
    /* Slightly warmer white so emphasis still reads as "different" against
       the body copy, without losing contrast. */
    color: #FFE9B0;
}

.feature-card-highlight:hover {
    box-shadow: var(--shadow-lg);
}

/* Steps list */
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    counter-reset: step;
}

.step {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: left;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 16px;
}

.step h3 {
    margin-bottom: 8px;
}

.step p {
    color: var(--color-text-light);
}

/* FAQ grid */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 8px;
}

.faq-item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.faq-item h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.faq-item p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.faq-item em {
    font-style: italic;
    color: var(--color-text);
}

/* Final CTA */
.cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
}

.cta-inner {
    position: relative;
}

.cta-mascot {
    width: 140px;
    height: auto;
    margin: 0 auto 16px;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.25));
    animation: floatMascot 6s ease-in-out infinite;
}

.cta h2 {
    color: #fff;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    max-width: 580px;
    margin: 0 auto 32px;
}

/* ─── Footer ───────────────────────────────────────────────── */
.footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.85);
    padding: 48px 0;
}

.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    height: 36px;
    width: 36px;
    border-radius: 8px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 220px;
}

/* Footer link columns — grouped sections (Learn / Company / Legal) instead
   of one long flat row, so the footer scans as organized navigation. */
.footer-nav {
    display: flex;
    gap: 56px;
    flex-wrap: wrap;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col__title {
    margin: 0 0 2px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.45);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

/* Bottom bar — holds the language switcher, separated from the link
   columns by a hairline divider. */
.footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: flex-end;
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 860px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        min-height: 280px;
    }

    .hero-visual-placeholder {
        min-height: 280px;
        max-width: 100%;
    }

    .hero-mascot {
        max-width: 280px;
    }

    /* Phone mockups: shrink primary, hide secondary on mobile so the
       hero stays focused. */
    .hero-images {
        min-height: 540px;
    }

    .phone-mockup-primary {
        --phone-w: 260px;
    }

    .phone-mockup-secondary {
        display: none;
    }
}

@media (max-width: 720px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-primary);
        flex-direction: column;
        align-items: stretch;
        padding: 16px 24px 24px;
        gap: 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }

    .nav-links.nav-open {
        display: flex;
    }

    .nav-dropdown-content {
        position: static;
        box-shadow: none;
        padding: 8px 0;
        background: rgba(255, 255, 255, 0.08);
    }

    .nav-dropdown-content a,
    .nav-dropdown-content .nav-dropdown-action {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .nav-dropdown-content a:hover,
    .nav-dropdown-content .nav-dropdown-action:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #fff !important;
    }

    .nav-dropdown-content .nav-dropdown-action .nav-dropdown-action__sub {
        color: rgba(255, 255, 255, 0.6);
    }

    .nav-dropdown-content .nav-dropdown-action:hover .nav-dropdown-action__sub {
        color: rgba(255, 255, 255, 0.85);
    }

    /* Constrain the "Open web app" pill on mobile so it doesn't stretch
       edge-to-edge inside the .nav-open dropdown (parent uses
       align-items: stretch). Center it and cap the width so it reads
       as a button, not a banner. */
    .nav-links a.nav-cta {
        align-self: center;
        width: 100%;
        max-width: 220px;
        text-align: center;
    }

    .hero {
        padding: 110px 0 60px;
    }

    .section {
        padding: 60px 0;
    }

    .cta {
        padding: 60px 0;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom {
        justify-content: flex-start;
    }
}

/* ─── New page support: pricing, legal, support, mascot, narrow container ── */

.container-narrow {
    max-width: 760px;
}

/* Hero mascot — image swap for placeholder div */
.hero-mascot {
    max-width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    filter: drop-shadow(0 16px 32px rgba(0, 61, 165, 0.18));
}

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
    align-items: stretch;
}

.pricing-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card-featured {
    border: 2px solid #003DA5;
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 61, 165, 0.12);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #F4C545;
    color: #1A0F00;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pricing-card h3 {
    font-size: 1.25rem;
    margin: 0 0 8px;
}

.pricing-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: #003DA5;
    margin: 8px 0 4px;
    line-height: 1;
}

.pricing-period {
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
}

.pricing-note {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 20px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.95rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-fineprint {
    text-align: center;
    margin-top: 28px;
    font-size: 0.875rem;
    color: #6b7280;
}

/* ── Legal pages (privacy, terms) ───────────────────────── */
.legal,
.support {
    padding: 110px 0 80px;
}

.legal h1,
.support h1 {
    font-size: 2.5rem;
    margin: 0 0 12px;
}

.legal-meta {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0 0 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.legal h2,
.support h2 {
    font-size: 1.5rem;
    margin: 40px 0 12px;
    color: #003DA5;
}

.legal h3,
.support h3 {
    font-size: 1.125rem;
    margin: 28px 0 8px;
    color: #1f2937;
}

.legal p,
.legal ul,
.support p,
.support ul {
    font-size: 1rem;
    line-height: 1.65;
    color: #374151;
}

.legal ul,
.support ul {
    padding-left: 24px;
    margin: 12px 0 20px;
}

.legal li,
.support li {
    margin: 8px 0;
}

.legal a,
.support a {
    color: #003DA5;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
}

.legal a:hover,
.support a:hover {
    color: #3A7BE0;
}

/* ── Support page intro & contact box ───────────────────── */
.support-intro {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 24px;
}

.support-contact {
    background: #f0f5ff;
    border-left: 4px solid #003DA5;
    padding: 20px 24px;
    border-radius: 8px;
    margin: 24px 0 40px;
}

.support-contact p {
    margin: 8px 0;
}

.support-meta {
    font-size: 0.875rem;
    color: #6b7280;
}

@media (max-width: 768px) {
    .pricing-card-featured {
        transform: none;
    }

    .legal h1,
    .support h1 {
        font-size: 1.875rem;
    }
}

/* ─── Waitlist form ──────────────────────────────────────────── */
/* Two variants:                                                 */
/*   .waitlist-form--hero       → on dark hero gradient          */
/*   .waitlist-form--final-cta  → on dark final-CTA gradient     */
/* Shared structure; variant tweaks colours where contrast       */
/* differs. (Both spots happen to be on dark today, so this is   */
/* mostly future-proofing for a light-bg placement later.)       */

.waitlist-form {
    width: 100%;
    max-width: 480px;
    margin: 0 0 12px;
}

.waitlist-form--final-cta {
    margin: 24px auto 0;
}

.waitlist-form__fields {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-full);
    padding: 6px 6px 6px 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.waitlist-form__email-label {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-width: 0;
}

.waitlist-form__email {
    flex: 1 1 auto;
    width: 100%;
    border: 0;
    background: transparent;
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text);
    padding: 12px 4px;
    min-width: 0;
}

.waitlist-form__email:focus {
    outline: none;
}

.waitlist-form__email::placeholder {
    color: var(--color-text-muted);
}

.waitlist-form__submit {
    flex: 0 0 auto;
    position: relative;
    border: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    min-width: 130px;
}

.waitlist-form__submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 80, 199, 0.35);
}

.waitlist-form__submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

.waitlist-form.is-submitting .waitlist-form__submit-label {
    visibility: hidden;
}

.waitlist-form__submit-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: waitlistSpin 0.7s linear infinite;
}

.waitlist-form.is-submitting .waitlist-form__submit-spinner {
    display: block;
}

@keyframes waitlistSpin {
    to {
        transform: rotate(360deg);
    }
}

.waitlist-form__platform {
    margin: 14px 4px 0;
    padding: 0;
    border: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
}

.waitlist-form__platform-legend {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    padding: 0;
    margin: 0 6px 0 0;
    font-weight: 500;
}

.waitlist-form--final-cta .waitlist-form__platform-legend {
    color: rgba(255, 255, 255, 0.85);
}

.waitlist-form__radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    user-select: none;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.15s;
}

.waitlist-form__radio:hover {
    background: rgba(255, 255, 255, 0.18);
}

.waitlist-form__radio input[type="radio"] {
    accent-color: var(--color-accent-sunny);
    margin: 0;
}

.waitlist-form__radio:has(input:checked) {
    background: rgba(244, 197, 69, 0.22);
    color: #fff;
}

.waitlist-form__fineprint {
    margin: 10px 4px 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
}

.waitlist-form__error {
    margin: 10px 4px 0;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 107, 107, 0.18);
    color: #fff;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 107, 107, 0.4);
}

/* ─── Waitlist success state ─────────────────────────────────── */
.waitlist-success {
    max-width: 480px;
    margin: 0 0 12px;
    padding: 24px 24px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    text-align: left;
}

.waitlist-success--final-cta {
    margin: 24px auto 0;
    text-align: center;
}

.waitlist-success__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-accent-mint);
    color: #0a3a26;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.waitlist-success--final-cta .waitlist-success__icon {
    display: inline-flex;
}

.waitlist-success__title {
    color: #fff;
    margin: 0 0 8px;
    font-size: 1.5rem;
}

.waitlist-success__copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.waitlist-success--enter {
    animation: waitlistPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes waitlistPop {
    from {
        transform: scale(0.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Visually hidden but available to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 540px) {
    .download-hero {
        padding: 20px 0 22px;
    }

    .download-hero h1 {
        font-size: 1.75rem;
    }

    .download-chooser {
        padding: 28px 0 40px;
    }

    .download-platforms {
        grid-template-columns: 1fr;
    }

    .download-platform {
        min-height: 108px;
        padding: 16px;
        gap: 10px;
    }

    .download-platform + .download-platform {
        border-top: 1px solid var(--color-border);
        border-left: 0;
    }

    .waitlist-form__fields {
        flex-direction: column;
        background: transparent;
        padding: 0;
        gap: 10px;
        box-shadow: none;
    }

    /* On narrow screens the hero/inline download badges stack vertically.
       Force a centered column and switch to EQUAL-WIDTH sizing (Apple's
       box grows to 168px → its art becomes ~56px tall, matching Google's
       168px width). Side-by-side equal-height sizing is the default above
       this breakpoint. See the .store-btn block for the why. */
    .app-cta {
        align-items: center;
    }

    .store-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-btn:not(.store-btn-google) {
        width: 168px;
        height: auto;
    }

    .store-btn:not(.store-btn-google) .store-icon {
        width: 168px;
        height: auto;
    }

    .waitlist-form__email-label {
        background: rgba(255, 255, 255, 0.95);
        border-radius: var(--radius-md);
        padding: 0 14px;
    }

    .waitlist-form__email {
        padding: 14px 0;
    }

    .waitlist-form__submit {
        width: 100%;
        padding: 14px 24px;
    }
}

/* ─── app-cta partial ────────────────────────────────────────────
   Shared "download / waitlist" CTA, used everywhere a store badge
   used to live inline. See _includes/app-cta.njk for state matrix
   (both-live / iOS-only / Android-only / neither). */

.app-cta {
    /* The badges row + the optional notify subform live inside this
       wrapper. We only need vertical rhythm here — the badges row and
       inner waitlist form bring their own spacing. */
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
}

.app-cta--final-cta {
    align-items: center;
}

.app-cta--inline-light,
.app-cta--inline-dark {
    align-items: stretch;
}

/* The notify sub-block: small "Android coming soon" waitlist below the
   live badge. On dark hero / final-CTA backgrounds it becomes a clearly
   delimited card so it doesn't blur into the primary-blue gradient. */
.app-cta__notify {
    width: 100%;
    max-width: 520px;
}

.app-cta--final-cta .app-cta__notify {
    margin: 0 auto;
}

/* Card treatment for dark-background variants. The hero + final-CTA both
   sit on the primary blue gradient; the badge alone is light, but the
   notify subform underneath needs its own surface or it competes with the
   hero copy and the submit button vanishes into the background blue. */
.app-cta__notify--hero,
.app-cta__notify--final-cta {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    backdrop-filter: blur(6px);
}

/* ─── "Try it in your browser" secondary CTA ───────────────────
   Sits below the store buttons. Underlined text link rather than a
   button, so it reads as a secondary path (the store badges remain
   the primary CTA on mobile). Inherits text colour from the
   surrounding hero / final-cta block, both of which are on dark
   backgrounds, so the link colour is set to brand-warm via the
   variant scopes below. */
.app-cta__web {
    margin-top: 14px;
}

.app-cta__web--centered {
    text-align: center;
}

.app-cta__web-link {
    display: inline-block;
    color: var(--brand-warm, #ff9b6a);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 155, 106, 0.45);
    padding-bottom: 1px;
    transition: color 0.15s, border-color 0.15s;
}

.app-cta__web-link:hover {
    color: #ffb88f;
    border-bottom-color: rgba(255, 184, 143, 0.85);
}

/* Light-bg variants override the colour so the link stays readable
   against a cream/white background (verb-detail, blog post-CTA). */
.app-cta--inline-light .app-cta__web-link {
    color: var(--brand-primary, #c1551f);
    border-bottom-color: rgba(193, 85, 31, 0.35);
}

.app-cta--inline-light .app-cta__web-link:hover {
    color: #8c3d16;
}

/* ─── Inline-light waitlist variant ──────────────────────────────
   Used inside .verb-cta / .post-cta cards (light surface). The
   default waitlist styles assume a dark gradient bg, so we override
   the colours that need to flip. Structure is the same. */

.waitlist-form--inline-light,
.waitlist-form--inline-dark {
    max-width: 520px;
    margin: 0;
}

.waitlist-form__heading {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 10px;
}

.waitlist-form--inline-dark .waitlist-form__heading {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 12px;
}

.waitlist-form--inline-dark .waitlist-form__fineprint {
    color: rgba(255, 255, 255, 0.75);
}

/* On dark backgrounds the default primary-blue submit button vanishes
   into the hero / final-CTA gradient. Swap to the sunny accent so it
   reads as a clear call-to-action against the blue. */
.waitlist-form--inline-dark .waitlist-form__submit {
    background: var(--color-accent-sunny);
    color: #2a1f00;
    box-shadow: 0 4px 14px rgba(244, 197, 69, 0.35);
}

.waitlist-form--inline-dark .waitlist-form__submit:hover:not(:disabled) {
    background: #ffd255;
    box-shadow: 0 6px 18px rgba(244, 197, 69, 0.45);
}

.waitlist-form--inline-dark .waitlist-form__submit-spinner {
    border-color: rgba(42, 31, 0, 0.3);
    border-top-color: #2a1f00;
}

.waitlist-form--inline-light .waitlist-form__fields {
    background: var(--color-bg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.waitlist-form--inline-light .waitlist-form__email::placeholder {
    color: var(--color-text-muted);
}

.waitlist-form--inline-light .waitlist-form__fineprint {
    color: var(--color-text-muted);
}

/* Inline-light variant uses a more compact submit button so it doesn't
   tower over the small inline card. */
.waitlist-form--inline-light .waitlist-form__submit {
    padding: 10px 18px;
    font-size: 0.9rem;
    min-width: 110px;
}

/* Match success-state colours to the inline-light card. */
.waitlist-success--inline-light {
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    backdrop-filter: none;
    padding: 18px 20px;
}

.waitlist-success--inline-light .waitlist-success__title {
    color: var(--color-text);
    font-size: 1.15rem;
}

.waitlist-success--inline-light .waitlist-success__copy {
    color: var(--color-text-light);
}

.waitlist-success--inline-light .waitlist-success__icon {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

/* On narrow screens the badge + notify subform should stack cleanly
   without forcing horizontal scroll from the App Store badge image. */
@media (max-width: 480px) {
    .app-cta__notify {
        max-width: 100%;
    }

    .waitlist-form--inline-light .waitlist-form__fields {
        flex-wrap: wrap;
        border-radius: var(--radius-md);
        padding: 6px;
    }

    .waitlist-form--inline-light .waitlist-form__email-label {
        flex: 1 1 100%;
        padding: 4px 10px;
    }

    .waitlist-form--inline-light .waitlist-form__submit {
        flex: 1 1 100%;
        margin-top: 4px;
    }
}

/* ─── Android beta badge ─────────────────────────────────────────
   "Join the Android beta" CTA. Sized + shaped to match a 168×50
   store badge so it sits as a sibling inside .store-buttons next
   to the App Store image. Tap opens the shared instructions
   <dialog id="android-beta-modal"> rendered once in base.njk. */

.android-beta-badge {
    /* Match the App Store badge's outer box exactly so they line up
       visually no matter the surface (hero / final-CTA / inline). */
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 0 16px;
    box-sizing: border-box;
    border-radius: 9px;
    /* mirrors the App Store badge's corners */
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.android-beta-badge:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    background: rgba(0, 0, 0, 0.92);
}

.android-beta-badge__icon {
    flex: 0 0 auto;
}

.android-beta-badge__text {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
    text-align: left;
}

.android-beta-badge__eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.02em;
    opacity: 0.85;
    text-transform: none;
}

.android-beta-badge__title {
    font-size: 1.05rem;
    font-weight: 600;
}

/* Light-bg variant for verb pages / hubs / blog post CTAs. */
.android-beta-badge--light {
    background: #1f1610;
    border-color: rgba(31, 22, 16, 0.15);
}

.android-beta-badge--light:hover {
    background: #0e0907;
}

/* ─── Modal ─────────────────────────────────────────────────────
   Native <dialog>: the user-agent gives us position/centring,
   focus trap, Escape close, and stacking context. We only style
   the content + backdrop. */

.android-beta-modal {
    /* Reset the user-agent defaults that fight a designed modal:
       UA gives <dialog> a thick black border + white background
       at a specific computed top/left. We want neither. */
    border: none;
    padding: 0;
    border-radius: var(--radius-lg, 16px);
    background: var(--color-bg, #fff);
    color: var(--color-text, #1f1610);
    max-width: 480px;
    width: calc(100% - 32px);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.28),
        0 4px 12px rgba(0, 0, 0, 0.12);
    /* Explicit centering. Native <dialog> centers via the UA
       stylesheet using `inset: 0; margin: auto` when showModal()
       is called, but our keyframe animation animates `transform`,
       which can override the centering during the first frames and
       leave the dialog at top-left in some browsers. Setting these
       directly here makes the centered position the default and the
       transform purely additive. */
    inset: 0;
    margin: auto;
    /* Subtle entrance. Only opacity is animated to avoid fighting
       the centering transform. */
    animation: android-beta-modal-in 160ms ease-out;
}

.android-beta-modal::backdrop {
    background: rgba(20, 12, 6, 0.55);
    backdrop-filter: blur(2px);
}

@keyframes android-beta-modal-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Fallback when <dialog>.showModal() isn't supported: position
   fixed centred + visible only when the open attribute is set.
   beta-modal.js adds html.android-beta-modal-open to lock scroll. */
.android-beta-modal:not([open]) {
    display: none;
}

html.android-beta-modal-open {
    overflow: hidden;
}

html.android-beta-modal-open .android-beta-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.android-beta-modal__content {
    padding: 28px 28px 24px;
}

.android-beta-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.android-beta-modal__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
}

.android-beta-modal__close {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    margin: -4px -6px 0 0;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--color-text-muted, #8a7766);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s, color 0.15s;
}

.android-beta-modal__close:hover {
    background: var(--color-bg-alt, #f6f1ea);
    color: var(--color-text, #2a1f17);
}

.android-beta-modal__lead {
    margin: 0 0 20px;
    color: var(--color-text-muted, #6e5e50);
    line-height: 1.5;
}

.android-beta-modal__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.android-beta-modal__steps li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.android-beta-modal__step-num {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary, #c1551f);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.android-beta-modal__step-body {
    flex: 1 1 auto;
    min-width: 0;
}

.android-beta-modal__step-title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 600;
}

.android-beta-modal__step-desc {
    margin: 0 0 10px;
    color: var(--color-text-muted, #6e5e50);
    font-size: 0.9rem;
    line-height: 1.5;
}

.android-beta-modal__step-link {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--color-primary, #c1551f);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
}

.android-beta-modal__step-link:hover {
    background: var(--color-primary-dark, #9d4318);
}

.android-beta-modal__step-link:active {
    transform: translateY(1px);
}

.android-beta-modal__support {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--color-border, #ece2d3);
    color: var(--color-text-muted, #6e5e50);
    font-size: 0.88rem;
    line-height: 1.5;
}

.android-beta-modal__support-link {
    color: var(--color-primary, #c1551f);
    text-decoration: none;
    border-bottom: 1px solid rgba(193, 85, 31, 0.35);
}

.android-beta-modal__support-link:hover {
    border-bottom-color: var(--color-primary, #c1551f);
}

@media (max-width: 480px) {
    .android-beta-modal__content {
        padding: 22px 20px 20px;
    }

    .android-beta-modal__title {
        font-size: 1.2rem;
    }
}
/* ============================================
   Bonjour Verbs — Blog styles
   Loaded alongside styles.css. Brand tokens come from :root in styles.css.
   ============================================ */

/* ─── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
    background: var(--color-bg);
    padding: 0.75rem 0;
    padding-top: 88px;
    /* clear the fixed header */
    border-bottom: 1px solid var(--color-border);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    max-width: 100%;
    overflow: hidden;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.breadcrumb-list li:last-child {
    display: block;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-text-light);
}

.breadcrumb-list li:not(:last-child)::after {
    content: "›";
    margin: 0 0.5rem;
    color: var(--color-text-muted);
}

.breadcrumb-list a {
    color: var(--color-primary);
    text-decoration: none;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

/* ─── Blog hero ────────────────────────────────────────────── */
.blog-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: 140px 0 60px;
    text-align: center;
}

.blog-hero h1 {
    color: #fff;
    margin-bottom: 12px;
}

.blog-hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 640px;
    margin: 0 auto;
}

/* ─── Blog list ────────────────────────────────────────────── */
.blog-list {
    padding: 56px 0 80px;
    background: var(--color-bg-alt);
    min-height: 50vh;
}

.blog-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--color-border);
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card-content {
    padding: 24px;
}

.blog-card-meta {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.blog-card h2 {
    font-size: 1.375rem;
    margin-bottom: 8px;
    color: var(--color-text);
    font-weight: 700;
}

.blog-card p {
    color: var(--color-text-light);
    margin-bottom: 12px;
    line-height: 1.6;
}

.read-more {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.meta-divider {
    color: var(--color-border);
}

.post-category {
    background: rgba(0, 80, 199, 0.1);
    color: var(--color-primary-dark);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    white-space: nowrap;
}

.post-updated {
    color: var(--color-primary-dark);
    font-weight: 600;
}

/* ─── Blog post ────────────────────────────────────────────── */
.blog-post {
    padding: 32px 0 56px;
    background: var(--color-bg);
}

.post-header {
    margin-bottom: 32px;
    text-align: center;
}

.post-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.25;
    margin-bottom: 12px;
    color: var(--color-text);
    font-weight: 800;
}

.post-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 16px;
    font-weight: 500;
}

/* ─── Post content (Markdown-rendered) ─────────────────────── */
.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text);
}

.post-content>p:first-of-type {
    font-size: 1.2rem;
    color: var(--color-text-light);
}

.post-content h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
    font-weight: 700;
    scroll-margin-top: 90px;
}

.post-content h3 {
    font-size: 1.375rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
    font-weight: 600;
}

.post-content p {
    margin-bottom: 1.25rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--color-primary);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: var(--color-bg-alt);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--color-text-light);
    font-style: italic;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content code {
    background: var(--color-bg-deep);
    color: var(--color-text);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 1rem;
}

.post-content th,
.post-content td {
    border: 1px solid var(--color-border);
    padding: 0.7rem 1rem;
    text-align: left;
}

.post-content th {
    background: var(--color-bg-alt);
    font-weight: 600;
}

.post-content tr:nth-child(even) td {
    background: var(--color-bg-alt);
}

.post-content a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 500;
}

.post-content a:hover {
    text-decoration: none;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    cursor: zoom-in;
}

/* Fullscreen lightbox overlay */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
}

.lightbox--open {
    display: flex;
}

.lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

/* Postcard-style photo figures (travel snapshots, app screenshots) */
.post-content figure.postcard {
    margin: 2rem 0;
    text-align: center;
}

.post-content figure.postcard img {
    margin: 0 auto;
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.post-content figure.postcard figcaption {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.post-content figure.postcard--screens {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.post-content figure.postcard--screens img {
    max-width: 240px;
    width: 45%;
    border-radius: var(--radius-md);
}

.post-content figure.postcard--screens figcaption {
    flex-basis: 100%;
}

/* "Tip" / callout card for honest caveats, side notes */
.post-content .tip-card {
    margin: 2rem 0;
    padding: 1.1rem 1.3rem;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-md);
}

.post-content .tip-card__label {
    margin: 0 0 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.post-content .tip-card p:last-child {
    margin-bottom: 0;
}

/* Resources table, French column emphasised (it's what most readers want) */
.post-content table.resources-table .col-french {
    background: rgba(124, 92, 246, 0.12);
    border-left: 3px solid var(--color-primary);
    border-right: 3px solid var(--color-primary);
    font-weight: 600;
}

.post-content table.resources-table thead th.col-french {
    color: var(--color-primary);
    border-top: 3px solid var(--color-primary);
}

.post-content table.resources-table tbody tr:last-child .col-french {
    border-bottom: 3px solid var(--color-primary);
}

.post-content table.resources-table tr:nth-child(even) td.col-french {
    background: rgba(124, 92, 246, 0.18);
}

.post-content table.resources-table .th-sub {
    display: block;
    margin-top: 3px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.7;
}

.post-content .resources-table__note {
    margin-top: -0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Expandable FAQ */
.post-content details {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin: 0.75rem 0;
    background: var(--color-bg-alt);
}

.post-content details summary {
    padding: 1rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 2.5rem;
}

.post-content details summary::-webkit-details-marker {
    display: none;
}

.post-content details summary::after {
    content: '+';
    position: absolute;
    right: 1.2rem;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--color-primary);
    transition: transform 0.2s ease;
}

.post-content details[open] summary::after {
    content: '−';
}

.post-content details p {
    padding: 0 1.2rem 1.1rem;
    margin: 0;
}

/* Inline emphasis for French verb examples (`*je dormais*`) */
.post-content em {
    color: var(--color-primary-dark);
    font-style: italic;
}

.past-tense-quiz {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin: 40px 0;
    padding: 24px;
}

.past-tense-quiz__header {
    align-items: start;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.post-content .past-tense-quiz__header h2 {
    margin: 0;
}

.past-tense-quiz__eyebrow,
.post-content .past-tense-quiz__eyebrow {
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 5px;
    text-transform: uppercase;
}

.past-tense-quiz__progress,
.post-content .past-tense-quiz__progress {
    color: var(--color-text-muted);
    flex: 0 0 auto;
    font-size: 0.88rem;
    font-weight: 700;
    margin: 5px 0 0;
}

.past-tense-quiz__track {
    background: var(--color-border);
    height: 4px;
    margin: 18px 0 24px;
    overflow: hidden;
}

.past-tense-quiz__track span {
    background: var(--color-primary);
    display: block;
    height: 100%;
    transition: width 180ms ease;
}

.past-tense-quiz__context,
.post-content .past-tense-quiz__context {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    margin: 0 0 8px;
}

.past-tense-quiz__sentence,
.post-content .past-tense-quiz__sentence {
    font-family: Georgia, serif;
    font-size: 1.3rem;
    line-height: 1.45;
    margin: 0 0 22px;
    min-height: 3.8rem;
}

.past-tense-quiz__choices {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.past-tense-quiz__choice {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    min-height: 48px;
    padding: 11px 14px;
}

.past-tense-quiz__choice:hover:not(:disabled),
.past-tense-quiz__choice:focus-visible {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgb(210 82 61 / 18%);
    outline: none;
}

.past-tense-quiz__choice--correct {
    background: #e8f7ee;
    border-color: #27834f;
    color: #12552f;
}

.past-tense-quiz__choice--wrong {
    background: #fff0ee;
    border-color: #b8483f;
    color: #7b211b;
}

.past-tense-quiz__feedback {
    border-left: 3px solid transparent;
    margin-top: 18px;
    padding: 0 0 0 12px;
}

.past-tense-quiz__feedback:empty {
    display: none;
}

.past-tense-quiz__feedback--correct {
    border-left-color: #27834f;
}

.past-tense-quiz__feedback--wrong {
    border-left-color: #b8483f;
}

.past-tense-quiz__feedback span {
    display: block;
    margin-top: 4px;
}

.past-tense-quiz__next {
    margin-top: 18px;
}

.past-tense-quiz__result {
    min-height: 230px;
    padding: 20px 0 4px;
    text-align: center;
}

.past-tense-quiz__score,
.post-content .past-tense-quiz__score {
    color: var(--color-primary);
    font-family: Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.post-content .past-tense-quiz__result h3 {
    margin: 0 0 8px;
}

/* ─── Time-to-learn calculator (how-long-to-learn-french post) ─ */
.time-calc {
    background: linear-gradient(135deg, #fff6e3 0%, #fbecc7 100%);
    border-left: 4px solid var(--color-primary);
    border-radius: 12px;
    padding: 24px 22px;
    margin: 36px 0;
}

.time-calc__form {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
}

.time-calc__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 12px;
    align-items: center;
}

.time-calc__row[hidden] {
    display: none;
}

.time-calc__row--check {
    grid-template-columns: 1fr;
}

.time-calc__row label {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.95rem;
}

.time-calc__row select,
.time-calc__row input[type="number"],
.time-calc__row input[type="date"] {
    padding: 9px 12px;
    border: 1px solid var(--color-border);
    background: #fff;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--color-text);
    width: 100%;
    box-sizing: border-box;
}

.time-calc__row select:focus,
.time-calc__row input[type="number"]:focus,
.time-calc__row input[type="date"]:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
    border-color: var(--color-primary);
}

.time-calc__row--check label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
    cursor: pointer;
    line-height: 1.4;
}

.time-calc__row--check input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.time-calc__mode {
    border: 0;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.time-calc__mode legend {
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.time-calc__mode label {
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    padding: 12px;
}

.time-calc__mode label:has(input:checked) {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary);
}

.time-calc__mode input {
    margin-top: 3px;
}

.time-calc__mode span {
    display: grid;
    gap: 2px;
}

.time-calc__mode small {
    color: var(--color-text-muted);
    font-weight: 400;
}

.time-calc__result {
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.time-calc__verdict {
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.time-calc__estimate {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--color-text);
}

.time-calc__estimate strong {
    color: var(--color-primary-dark);
    font-weight: 700;
}

.time-calc__detail {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
}

.time-calc__plan {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.time-calc__plan h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.time-calc__plan p,
.time-calc__plan ul {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.time-calc__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.time-calc__button {
    border: 0;
    border-radius: 8px;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    min-height: 44px;
    padding: 10px 16px;
}

@media (max-width: 540px) {
    .time-calc__row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .time-calc__row--check {
        grid-template-columns: 1fr;
    }
}

/* ─── Post CTA box ─────────────────────────────────────────── */
.post-cta {
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg-deep) 100%);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
    margin: 48px 0;
    border: 1px solid var(--color-border);
}

.post-cta h3 {
    margin-bottom: 8px;
    color: var(--color-text);
}

.post-cta p {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.post-cta .store-buttons {
    justify-content: center;
}

.post-cta .hero-cta-link {
    background: var(--color-primary);
    color: #fff;
}

.post-cta .hero-cta-link:hover {
    background: var(--color-primary-dark);
}

/* ─── Post navigation ──────────────────────────────────────── */
.post-nav {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.back-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

/* ─── Recent posts ─────────────────────────────────────────── */
.recent-posts {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.recent-posts h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 24px;
}

.recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.recent-post-card {
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: 20px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    border: 1px solid var(--color-border);
    color: inherit;
}

.recent-post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    background: var(--color-bg);
}

.recent-post-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.recent-post-card p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
    .blog-hero {
        padding: 110px 0 40px;
    }

    .blog-hero h1 {
        font-size: 1.75rem;
    }

    .post-header h1 {
        font-size: 1.5rem;
    }

    .post-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .post-content h2 {
        font-size: 1.5rem;
    }

    .post-content h3 {
        font-size: 1.2rem;
    }

    .post-content table {
        font-size: 0.9rem;
    }

    .post-content th,
    .post-content td {
        padding: 0.7rem 0.6rem;
        line-height: 1.4;
    }

    .past-tense-quiz {
        padding: 20px 16px;
    }

    .past-tense-quiz__choices {
        grid-template-columns: 1fr;
    }
}
/* ============================================
   Bonjour Verbs — French verbs pages + legal/support
   Loaded after styles.css and blog.css.
   ============================================ */

/* ─── French verbs index ───────────────────────────────────── */
.verbs-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    padding: 140px 0 56px;
    text-align: center;
}

.verbs-hero h1 {
    color: #fff;
    margin-bottom: 12px;
}

.verbs-hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 700px;
    margin: 0 auto 12px;
}

.verbs-hero-count {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

.verbs-list-section {
    padding: 56px 0 80px;
    background: var(--color-bg-alt);
    min-height: 50vh;
}

.verbs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.verbs-table thead {
    background: var(--color-bg-deep);
}

.verbs-table th {
    text-align: left;
    padding: 14px 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.verbs-table td {
    padding: 14px 20px;
    border-top: 1px solid var(--color-border);
    font-size: 1rem;
    vertical-align: middle;
}

.verbs-table tbody tr:hover {
    background: var(--color-bg-alt);
}

.verbs-table-rank {
    width: 56px;
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.verbs-table-verb {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
}

.verbs-table-verb:hover {
    text-decoration: underline;
}

.verbs-table-gloss {
    color: var(--color-text-light);
    font-style: italic;
}

.verbs-table-group,
.verbs-table-aux {
    color: var(--color-text-light);
    font-size: 0.9rem;
    white-space: nowrap;
}

.verbs-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.verbs-tag-irregular {
    background: rgba(255, 107, 107, 0.12);
    color: #c53030;
}

.verbs-list-cta {
    margin-top: 40px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    text-align: center;
}

.verbs-list-cta p {
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.verbs-list-cta .hero-cta-link {
    background: var(--color-primary);
}

.verbs-list-cta .hero-cta-link:hover {
    background: var(--color-primary-dark);
}

/* ─── Single verb page ─────────────────────────────────────── */
.verb-page {
    background: var(--color-bg);
}

.verb-hero {
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg-deep) 100%);
    padding: 40px 0 48px;
    border-bottom: 1px solid var(--color-border);
}

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

.verb-hero-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0 0 4px;
    font-weight: 800;
    color: var(--color-text);
}

.verb-hero-title span {
    color: var(--color-primary);
    font-style: italic;
}

.verb-hero-gloss {
    text-align: center;
    font-size: 1.25rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 32px;
}

.verb-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    margin-bottom: 32px;
}

.verb-meta-item {
    text-align: center;
}

.verb-meta-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.verb-meta-value {
    font-size: 0.95rem;
    color: var(--color-text);
    font-weight: 600;
}

.verb-meta-value-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1rem;
    color: var(--color-primary-dark);
}

.verb-hero-summary {
    color: var(--color-text);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

.verb-hero-summary em {
    font-style: italic;
    color: var(--color-primary-dark);
}

/* Mood section (e.g. "Indicatif", "Subjonctif") groups multiple tense tables */
.verb-mood-section {
    margin: 48px 0;
}

.verb-mood-heading {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-text);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 8px;
    margin-bottom: 24px;
    display: inline-block;
}

.verb-tense {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 16px;
}

.verb-tense-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 0 0 12px;
    font-style: italic;
}

.verb-table {
    width: 100%;
    border-collapse: collapse;
}

.verb-table tr {
    border-bottom: 1px solid var(--color-bg-deep);
}

.verb-table tr:last-child {
    border-bottom: none;
}

.verb-table-pronoun {
    text-align: left;
    padding: 8px 16px 8px 0;
    width: 90px;
    color: var(--color-text-muted);
    font-weight: 600;
    font-style: italic;
    vertical-align: top;
}

.verb-table-form {
    padding: 8px 0;
    color: var(--color-text);
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.98rem;
}

/* ─── Per-tense example sentences ─────────────────────────────
   Hand-authored bilingual sentences pulled from the same JSON
   batches that feed the mobile app. Rendered as a list below each
   conjugation table — turns near-duplicate verb pages into unique
   long-form content for SEO. */
.verb-tense-examples {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed var(--color-border);
}

.verb-tense-examples-heading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin: 0 0 10px;
}

.verb-tense-examples-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.verb-tense-examples-list li {
    background: var(--color-bg-alt);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 10px 14px;
}

.verb-tense-examples-list .ex-fr {
    margin: 0;
    color: var(--color-text);
    font-size: 0.96rem;
    line-height: 1.5;
}

.verb-tense-examples-list .ex-fr strong {
    color: var(--color-primary-dark);
    font-weight: 700;
}

.verb-tense-examples-list .ex-en {
    margin: 3px 0 0;
    color: var(--color-text-muted);
    font-size: 0.86rem;
    font-style: italic;
    line-height: 1.45;
}

.verb-cta {
    margin: 56px 0 32px;
}

.verb-cta h3 em {
    font-style: italic;
    color: var(--color-primary);
}

.verb-cta p em {
    font-style: italic;
    color: var(--color-primary-dark);
}

/* Midway CTA for /french-exams/ pages. Compact callout that sits mid-
   article (typically after the format/scoring table), so we capture
   readers who would otherwise bounce before hitting the bottom-of-page
   verb-cta. Visually lighter than .verb-cta: thin left rule, no big
   heading, single-line action. */
.exam-midway-cta {
    margin: 36px 0;
    padding: 18px 22px;
    background: linear-gradient(135deg, #fff6e3 0%, #fbecc7 100%);
    border-left: 4px solid var(--color-primary);
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    align-items: center;
    justify-content: space-between;
}

.exam-midway-cta__text {
    margin: 0;
    flex: 1 1 320px;
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--color-text);
}

.exam-midway-cta__text strong {
    color: var(--color-text);
    font-weight: 700;
    margin-right: 4px;
}

.exam-midway-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
    flex: 0 0 auto;
}

.exam-midway-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    white-space: nowrap;
}

.exam-midway-cta__btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* iOS button keeps the primary brand colour. Android sits next to it in
   a contrasting near-black so the two are visually distinguishable
   without making one "second class" (the eye reads the contrast as
   "different platform" rather than "secondary action"). */
.exam-midway-cta__btn--android {
    background: #1f1d1a;
    color: #fff;
}

.exam-midway-cta__btn--android:hover {
    background: #000;
}

.exam-midway-cta__btn-icon {
    flex-shrink: 0;
    display: block;
}

.exam-midway-cta__link {
    color: var(--color-primary-dark);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.exam-midway-cta__link:hover {
    text-decoration-thickness: 2px;
}

@media (max-width: 540px) {
    .exam-midway-cta {
        padding: 16px 18px;
    }

    .exam-midway-cta__actions {
        width: 100%;
    }

    .exam-midway-cta__btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .exam-midway-cta__link {
        flex: 1 1 100%;
        text-align: center;
    }
}

/* Related verbs grid */
.related-verbs {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.related-verbs h2 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.related-verbs-sub {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.related-verbs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.related-verb-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.related-verb-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    background: var(--color-bg);
}

.related-verb-infinitive {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.05rem;
}

.related-verb-gloss {
    color: var(--color-text-light);
    font-size: 0.85rem;
    font-style: italic;
}

.related-verbs-all {
    text-align: center;
    margin-top: 24px;
}

/* ─── Reverse-lookup chips (verb page → /find/<form>/ pages) ──────────
   Compact, scannable grid of every form for this verb. Each chip is
   a deep link into /find/<slug>/ — internal-link distribution to push
   PageRank onto the long-tail reverse-lookup pages. */
.verb-form-lookup {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.verb-form-lookup h2 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.verb-form-lookup h2 em {
    font-style: italic;
    color: var(--color-primary);
}

.verb-form-lookup-sub {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.verb-form-group {
    margin-bottom: 20px;
}

.verb-form-group-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 8px;
}

.verb-form-chips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.verb-form-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px 12px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.verb-form-chip:hover {
    background: var(--color-bg);
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

.verb-form-chip-pronoun {
    color: var(--color-text-muted);
    font-size: 0.85em;
}

.verb-form-chip-form {
    color: var(--color-primary);
    font-weight: 600;
}

/* ─── Conjugation chart grid (/french-verbs/chart/) ──────────────────
   Three-column comparison: parler / finir / vendre side by side, one
   tense per row. Collapses to a single column on mobile. */
.chart-print-heading {
    display: none;
}

.chart-print-action {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 28px;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

@media (max-width: 720px) {
    .chart-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.chart-column {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.chart-column-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-size: 1.05rem;
    margin: 0 0 8px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 6px;
}

.chart-column-heading a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.chart-column-heading a:hover {
    text-decoration: underline;
}

.chart-column-sub {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    font-style: italic;
    white-space: nowrap;
}

/* ─── Verb page: "Conjugate X in French" SEO heading ────────────────
   Lightweight, smaller than the mood-section H2s so it reads as a
   section opener rather than competing with them. */
.verb-conjugate-heading {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 32px 0 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.verb-conjugate-heading em {
    color: var(--color-primary);
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
}

/* ─── Verb page: quick-answer card (featured-snippet target) ─────────
   Sits high on the page and answers "past participle of X", present "je"
   and passé composé in a shape Google can lift into a featured snippet. */
.verb-quick-answer {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin: 28px 0 8px;
    box-shadow: var(--shadow-sm);
}

.verb-quick-answer-lead {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text);
}

.verb-quick-answer-lead em {
    font-style: italic;
    color: var(--color-primary-dark);
}

.verb-quick-answer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px 16px;
    margin: 16px 0 0;
}

.verb-quick-answer-item dt {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

.verb-quick-answer-item dd {
    margin: 0;
}

/* ─── Legal pages (.legal) ─────────────────────────────────── */
.legal,
.support {
    padding: 110px 0 80px;
    background: var(--color-bg);
}

.legal h1,
.support h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 8px;
    color: var(--color-text);
}

.legal-meta {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 32px;
}

.legal h2,
.support h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--color-text);
    font-weight: 700;
}

.legal h3,
.support h3 {
    font-size: 1.15rem;
    margin-top: 28px;
    margin-bottom: 10px;
    color: var(--color-primary-dark);
    font-weight: 700;
}

.legal p,
.support p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: var(--color-text);
}

.legal ul,
.support ul {
    margin-bottom: 16px;
    padding-left: 1.5rem;
    line-height: 1.7;
}

.legal li,
.support li {
    margin-bottom: 8px;
    color: var(--color-text);
}

.legal a,
.support a {
    color: var(--color-primary);
    text-decoration: underline;
}

.legal a:hover,
.support a:hover {
    text-decoration: none;
}

.legal strong,
.support strong {
    color: var(--color-text);
    font-weight: 700;
}

.legal em,
.support em {
    font-style: italic;
    color: var(--color-primary-dark);
}

/* Support page-specific */
.support-intro {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 28px;
}

.support-contact {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 32px;
}

.support-contact p {
    margin-bottom: 8px;
}

.support-contact p:last-child {
    margin-bottom: 0;
}

.support-meta {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
    .verbs-hero {
        padding: 110px 0 40px;
    }

    .verbs-table {
        font-size: 0.9rem;
    }

    .verbs-table th,
    .verbs-table td {
        padding: 12px 12px;
    }

    .verbs-table-group,
    .verbs-table-aux {
        display: none;
        /* keep mobile view focused on verb + meaning */
    }

    .verb-hero {
        padding: 110px 0 32px;
    }

    .verb-meta {
        grid-template-columns: 1fr 1fr;
        padding: 16px;
    }

    .verb-mood-heading {
        font-size: 1.4rem;
    }

    .legal,
    .support {
        padding: 110px 0 56px;
    }
}

/* ============================================
   Founder strip (landing) + About page + Byline
   ============================================ */

/* ─── Founder strip on landing ─────────────────────────────── */
.founder-strip {
    padding: 72px 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    border-bottom: 1px solid var(--color-border);
}

.founder-strip-inner {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 48px;
    align-items: center;
    max-width: 880px;
    margin: 0 auto;
}

.founder-photo {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--color-bg-deep);
    border: 4px solid var(--color-bg);
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Tuned for the emile-and-poppy.jpg portrait: shift the crop slightly
       up-and-right so Émile's face stays centered in the circle (Poppy
       is left of frame and we don't really fit both at avatar size). */
    object-position: 70% 35%;
    display: block;
}

/* When the <img>'s onerror fires, the parent gets .founder-photo-fallback
   and the initial letter shows underneath. */
.founder-photo-fallback-text {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg-deep) 100%);
}

.founder-photo-fallback .founder-photo-fallback-text {
    display: flex;
}

.founder-photo-large {
    width: 180px;
    height: 180px;
}

.founder-photo-large .founder-photo-fallback-text {
    font-size: 5rem;
}

.founder-copy {
    color: var(--color-text);
}

.founder-copy p {
    margin: 0 0 14px;
    line-height: 1.7;
    color: var(--color-text);
    font-size: 1.02rem;
}

.founder-copy p:last-child {
    margin-bottom: 0;
}

.founder-eyebrow {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-primary);
}

.founder-copy strong {
    color: var(--color-text);
    font-weight: 700;
}

.founder-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.founder-link:hover {
    text-decoration: underline;
}

/* ─── Social proof (landing) ───────────────────────────────── */
/* Sits between the founder strip and the features grid.
   Eyebrow line → stats row → 3 testimonial cards. Star ratings
   and quotes are real, lightly edited from emailed feedback.
   Per docs/store-metadata.md: no fabricated testimonials. */
.social-proof {
    padding: 64px 0 72px;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}

.social-proof-eyebrow {
    margin: 0 auto 36px;
    max-width: 760px;
    text-align: center;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-text-muted, var(--color-text));
}

.social-proof-eyebrow strong {
    color: var(--color-text);
    font-weight: 700;
}

.social-proof-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
}

.social-proof-link:hover {
    border-bottom-color: var(--color-primary);
}

/* ─── Stat row ─────────────────────────────────────────────── */
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 720px;
    margin: 0 auto 48px;
    padding: 24px 20px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.04));
}

.stat {
    text-align: center;
    padding: 4px 0;
}

.stat+.stat {
    border-left: 1px solid var(--color-border);
}

.stat-num {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.stat-label {
    margin-top: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted, var(--color-text));
}

/* ─── Testimonial cards ────────────────────────────────────── */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1120px;
    margin: 0 auto;
}

.testimonial-card {
    margin: 0;
    padding: 24px 22px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.04));
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 6px 20px rgba(0, 0, 0, 0.08));
}

.testimonial-card-featured {
    border-color: color-mix(in srgb, var(--color-primary) 35%, var(--color-border));
    box-shadow: 0 6px 24px color-mix(in srgb, var(--color-primary) 12%, transparent);
}

.testimonial-stars {
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    color: #f5b400;
    line-height: 1;
}

.testimonial-card blockquote {
    margin: 0;
    padding: 0;
    border: 0;
}

.testimonial-card blockquote p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
}

.testimonial-card blockquote strong {
    color: var(--color-text);
    font-weight: 700;
}

.testimonial-attribution {
    margin-top: auto;
    padding-top: 4px;
}

.testimonial-source {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted, var(--color-text));
    opacity: 0.75;
}

@media (max-width: 960px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
    }
}

@media (max-width: 640px) {
    .social-proof {
        padding: 48px 0 56px;
    }

    .stat-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 20px 8px;
    }

    .stat+.stat {
        border-left: 1px solid var(--color-border);
    }

    .stat-num {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.72rem;
    }

    .social-proof-eyebrow {
        font-size: 0.95rem;
    }
}

/* ─── About page ───────────────────────────────────────────── */
.about-page {
    background: var(--color-bg);
}

.about-hero {
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg-deep) 100%);
    padding: 130px 0 56px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

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

.about-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 16px;
    color: var(--color-text);
}

.about-lede {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.5;
}

.about-body {
    padding: 56px 0 80px;
}

.about-section {
    margin-bottom: 48px;
}

.about-section h2 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    color: var(--color-text);
    font-weight: 700;
}

.about-section p {
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--color-text);
}

.about-section p em {
    font-style: italic;
    color: var(--color-primary-dark);
}

.about-section strong {
    color: var(--color-text);
    font-weight: 700;
}

/* Portrait floats next to the first section's heading */
.about-portrait {
    float: right;
    margin: 0 0 16px 32px;
    text-align: center;
}

/* About page portrait — keep the natural 3:4 ratio so both Émile and Poppy
   stay in frame (the founder avatar is a tight crop; this is the "full"
   version, framed like a polaroid). */
.founder-portrait {
    position: relative;
    width: 240px;
    margin: 0;
    padding: 12px 12px 0;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transform: rotate(-1.5deg);
}

.founder-portrait img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius-md) - 4px);
}

.founder-portrait-fallback-text {
    display: none;
    aspect-ratio: 3 / 4;
    width: 100%;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-weight: 800;
    color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg-deep) 100%);
    border-radius: calc(var(--radius-md) - 4px);
}

.founder-portrait-fallback .founder-portrait-fallback-text {
    display: flex;
}

.founder-portrait figcaption {
    padding: 12px 4px 14px;
    font-size: 0.88rem;
    color: var(--color-text);
    line-height: 1.45;
    text-align: center;
}

.founder-portrait figcaption small {
    display: inline-block;
    color: var(--color-text-muted);
    font-size: 0.78rem;
}

.about-portrait-caption {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 12px;
    line-height: 1.4;
}

.about-portrait-caption small {
    font-size: 0.78rem;
}

/* Values list */
.about-values {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

.about-values li {
    background: var(--color-bg-alt);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 16px 20px;
    line-height: 1.6;
    color: var(--color-text);
}

.about-values li strong {
    color: var(--color-primary-dark);
}

.about-values li em {
    color: var(--color-primary-dark);
    font-style: italic;
}

.about-section-cta {
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: 56px;
}

.about-section-cta h2 {
    margin-top: 0;
}

.about-contact {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.about-contact li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.about-signoff {
    font-size: 1.15rem;
    color: var(--color-primary-dark);
    font-style: italic;
    margin-top: 24px !important;
    text-align: right;
}

/* ─── Blog post byline ─────────────────────────────────────── */
.post-byline {
    margin: 16px 0 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-align: center;
}

.post-byline a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.post-byline a:hover {
    text-decoration: underline;
}

.post-byline-sub {
    color: var(--color-text-muted);
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 720px) {
    .founder-strip-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .founder-photo {
        margin: 0 auto;
    }

    .about-portrait {
        float: none;
        margin: 0 auto 24px;
    }
}

/* ─── Hub-page additions ────────────────────────────────────
   Used by /french-verbs/{er,ir,re,regular,irregular}-verbs/
   hubs and the per-tense pages under /french-verbs/tenses/. */

/* Endings card — shows a stem + person→ending pattern, e.g.
   "parl-" + (-e, -es, -e, -ons, -ez, -ent). */
.endings-card {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin: 24px 0 32px;
}

.endings-card h3 {
    font-size: 1.1rem;
    margin: 0 0 6px;
    color: var(--color-text);
}

.endings-card-stem {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin: 0 0 16px;
}

.endings-card-stem code {
    background: var(--color-bg);
    color: var(--color-primary-dark);
    font-weight: 700;
}

.endings-table {
    width: 100%;
    border-collapse: collapse;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.endings-table th,
.endings-table td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid var(--color-bg-deep);
}

.endings-table th {
    color: var(--color-text-muted);
    font-style: italic;
    font-weight: 600;
    width: 110px;
}

.endings-table td {
    color: var(--color-primary-dark);
    font-weight: 700;
}

.endings-table tr:last-child th,
.endings-table tr:last-child td {
    border-bottom: none;
}

/* Hub intro prose — paragraphs / lists rendered between the hero and
   the verb list. Reuses post-content typography. */
.hub-prose {
    color: var(--color-text);
    line-height: 1.7;
    margin: 32px 0;
}

.hub-prose h2 {
    font-size: 1.5rem;
    margin: 32px 0 12px;
    color: var(--color-text);
}

.hub-prose h3 {
    font-size: 1.15rem;
    margin: 24px 0 10px;
    color: var(--color-text);
}

.hub-prose p {
    margin: 0 0 16px;
}

.hub-prose ul,
.hub-prose ol {
    margin: 0 0 16px 20px;
}

.hub-prose li {
    margin-bottom: 6px;
}

.hub-prose strong {
    color: var(--color-primary-dark);
}

.hub-prose code {
    background: var(--color-bg-deep);
    color: var(--color-primary-dark);
    font-weight: 700;
}

.hub-prose blockquote {
    border-left: 3px solid var(--color-primary);
    background: var(--color-bg-alt);
    padding: 14px 18px;
    margin: 0 0 16px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--color-text);
    font-style: italic;
}

/* Tense / hub navigation chip grid — small linked pills used to
   surface sibling tenses on each tense page. */
.tense-chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin: 16px 0 32px;
}

.tense-chip {
    display: block;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 10px 16px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.92rem;
    text-align: center;
    transition: background 0.15s, color 0.15s;
}

.tense-chip:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.tense-chip.tense-chip-current {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    pointer-events: none;
}

/* Practice tool ────────────────────────────────────────── */
.practice-shell {
    max-width: 560px;
    margin: 0 auto;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.practice-session-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    color: var(--color-text-muted);
    font-size: 0.88rem;
}

.practice-session-score {
    display: flex;
    gap: 14px;
}

.practice-score-correct {
    color: #1b6f4a;
}

.practice-score-wrong {
    color: #a02020;
}

.practice-progress {
    background: rgba(91, 75, 219, 0.12);
    border-radius: var(--radius-full);
    height: 6px;
    margin-top: 10px;
    overflow: hidden;
}

.practice-progress span {
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    border-radius: inherit;
    display: block;
    height: 100%;
    transition: width 0.3s ease;
    width: 0;
}

.practice-question {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 250px;
    padding: 28px 8px 20px;
}

.practice-tense-chip {
    background: var(--color-bg-deep);
    border-radius: var(--radius-full);
    color: var(--color-primary-dark);
    font-size: 0.8rem;
    font-weight: 800;
    margin: 0 0 34px;
    padding: 7px 13px;
    text-transform: uppercase;
}

.practice-prompt {
    text-align: center;
    font-size: clamp(2rem, 6vw, 2.8rem);
    font-weight: 800;
    color: var(--color-text);
    margin: 0;
}

.practice-prompt .practice-pronoun {
    color: var(--color-text);
    margin-right: 12px;
}

.practice-infinitive {
    color: var(--color-primary);
}

.practice-gloss {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1rem;
    margin: 10px 0 0;
}

.practice-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.practice-input {
    flex: 1;
    padding: 14px 16px;
    font-size: 1.05rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    background: var(--color-bg);
    color: var(--color-text);
}

.practice-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.practice-input.practice-input-correct {
    border-color: var(--color-accent-mint);
    background: rgba(76, 217, 160, 0.08);
}

.practice-input.practice-input-wrong {
    border-color: var(--color-accent-coral);
    background: rgba(255, 107, 107, 0.06);
}

.practice-btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    min-width: 104px;
    padding: 0 22px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.practice-btn:hover {
    background: var(--color-primary-dark);
}

.practice-btn-secondary {
    background: var(--color-bg-alt);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.practice-btn-secondary:hover {
    background: var(--color-bg-deep);
}

.practice-accent-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
    margin: -4px 0 4px;
}

.practice-accent-bar button {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    color: var(--color-text);
    min-width: 36px;
}

.practice-accent-bar button:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.practice-feedback {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    text-align: left;
    font-size: 0.96rem;
    line-height: 1.5;
    display: none;
}

.practice-feedback.practice-feedback-correct {
    background: rgba(76, 217, 160, 0.12);
    color: #1b6f4a;
    display: block;
}

.practice-feedback.practice-feedback-wrong {
    background: rgba(255, 107, 107, 0.10);
    color: #a02020;
    display: block;
}

.practice-feedback strong {
    color: inherit;
}

.practice-feedback .practice-feedback-detail {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    opacity: 0.85;
}

.practice-toolbar {
    margin-top: 20px;
    text-align: center;
}

@media (max-width: 540px) {
    .practice-shell {
        padding: 18px;
    }

    .practice-question {
        min-height: 220px;
    }

    .practice-input-row {
        display: grid;
    }

    .practice-btn {
        min-height: 48px;
        width: 100%;
    }
}

.practice-toolbar label {
    display: inline-block;
    margin: 0 12px 8px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.practice-toolbar select {
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.92rem;
    margin-left: 4px;
}

/* Worksheet generator ─────────────────────────────────── */
.worksheet-builder {
    margin: 32px 0 56px;
}

.worksheet-options {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 28px;
}

.worksheet-options h2 {
    margin: 0 0 20px;
}

.worksheet-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.worksheet-options-grid label:not(.worksheet-check) {
    display: grid;
    gap: 7px;
}

.worksheet-options-grid label>span {
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 700;
}

.worksheet-options select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text);
    font: inherit;
}

.worksheet-options select:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.worksheet-check {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: end;
    min-height: 44px;
}

.worksheet-check input {
    width: 20px;
    height: 20px;
}

.worksheet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.worksheet-actions .practice-btn {
    min-height: 46px;
}

.worksheet-live-note {
    color: var(--color-text-muted);
    font-size: 0.86rem;
    margin: 10px 0 0;
}

.worksheet-error {
    color: var(--color-accent-coral);
    font-weight: 700;
    margin: 16px 0 0;
}

.worksheet-preview-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto 12px;
    max-width: 816px;
}

.worksheet-preview-heading h2 {
    margin: 0;
}

.worksheet-preview-eyebrow {
    color: var(--color-primary-dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0 0 3px;
    text-transform: uppercase;
}

.worksheet-preview-status {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    font-size: 0.8rem;
    padding: 6px 11px;
}

.worksheet-paper {
    background: #fff;
    color: #182033;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 816px;
    min-height: 1056px;
    padding: 46px 52px;
    scroll-margin-top: 20px;
}

.worksheet-paper--updated {
    animation: worksheet-preview-update 0.45s ease;
}

@keyframes worksheet-preview-update {
    from {
        box-shadow: 0 0 0 4px rgba(91, 75, 219, 0.22);
    }

    to {
        box-shadow: var(--shadow-sm);
    }
}

.worksheet-paper-header {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #182033;
}

.worksheet-brand {
    margin: 0 0 4px;
    color: var(--color-primary-dark);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.worksheet-paper-header h2 {
    color: #182033;
    margin: 0 0 6px;
    font-size: 1.35rem;
}

.worksheet-paper-header p:last-child {
    margin: 0;
}

.worksheet-student-fields {
    display: grid;
    align-content: start;
    gap: 14px;
    min-width: 220px;
    font-size: 0.9rem;
}

.worksheet-questions {
    columns: 2;
    column-gap: 52px;
    margin: 28px 0;
    padding-left: 28px;
}

.worksheet-questions li {
    break-inside: avoid;
    margin: 0 0 18px;
    padding-left: 4px;
}

.worksheet-prompt {
    display: block;
    margin-bottom: 8px;
}

.worksheet-question-tense {
    color: #596174;
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.worksheet-grid-instructions {
    color: #596174;
    font-size: 0.9rem;
    margin: 24px 0 14px;
}

.worksheet-grid-wrap {
    overflow-x: auto;
}

.worksheet-grid {
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
}

.worksheet-grid th,
.worksheet-grid td {
    border: 1px solid #8d94a3;
    height: 54px;
    padding: 7px;
    text-align: center;
}

.worksheet-grid thead th {
    background: #eef0f7;
    font-size: 0.84rem;
}

.worksheet-grid thead th:first-child,
.worksheet-grid tbody th {
    width: 76px;
}

.worksheet-grid thead small {
    color: #596174;
    display: block;
    font-size: 0.64rem;
    font-weight: 600;
    margin-top: 3px;
}

.worksheet-grid tbody th {
    background: #f7f7fa;
    font-size: 0.86rem;
}

.worksheet-grid td.is-clue {
    background: #f1f2f6;
    font-weight: 700;
}

.worksheet-grid-blank {
    border-bottom: 1px solid #596174;
    display: block;
    margin: 12px 4px 0;
}

.worksheet-grid--answers td {
    font-size: 0.85rem;
}

.worksheet-line {
    display: block;
    border-bottom: 1px solid #596174;
}

.worksheet-answer-key {
    border-top: 2px dashed #8d94a3;
    padding-top: 24px;
    page-break-before: always;
}

.worksheet-answer-key h2 {
    color: #182033;
}

.worksheet-answer-key ol {
    columns: 2;
    column-gap: 52px;
    padding-left: 28px;
}

.worksheet-answer-key li {
    margin-bottom: 8px;
}

.worksheet-answer-key small {
    color: #596174;
}

.worksheet-level-guide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0 32px;
}

.worksheet-level-guide div {
    align-items: start;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    padding: 14px;
}

.worksheet-level-guide strong {
    color: var(--color-primary-dark);
}

.worksheet-level-guide span {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

/* Cross-links between the preset worksheet landing pages. Two columns so a
   12-item list stays scannable instead of becoming a long stack. */
.worksheet-sibling-list {
    columns: 2;
    column-gap: 24px;
    list-style: none;
    margin: 16px 0 28px;
    padding: 0;
}

.worksheet-sibling-list li {
    break-inside: avoid;
    margin: 0 0 8px;
}

@media (max-width: 640px) {
    .worksheet-options-grid {
        grid-template-columns: 1fr;
    }

    .worksheet-level-guide {
        grid-template-columns: 1fr;
    }

    .worksheet-sibling-list {
        columns: 1;
    }

    .worksheet-paper {
        min-height: 0;
        padding: 24px 20px;
    }

    .worksheet-preview-heading {
        align-items: start;
        display: grid;
    }

    .worksheet-paper-header {
        display: grid;
    }

    .worksheet-questions,
    .worksheet-answer-key ol {
        columns: 1;
    }
}

@media print {
    @page {
        size: letter portrait;
        margin: 0.5in;
    }

    .header,
    .footer,
    .breadcrumb,
    .verb-hero,
    .worksheet-options,
    .worksheet-preview-heading,
    .worksheet-page .hub-prose,
    .chart-print-action,
    .verb-chart-page .post-cta,
    .verb-chart-page .post-nav,
    .android-beta-modal {
        display: none !important;
    }

    .chart-print-heading {
        display: block !important;
        margin-bottom: 18pt;
    }

    .chart-print-heading h1 {
        font-size: 22pt;
        margin: 0 0 4pt;
    }

    .chart-print-heading p {
        color: #333;
        margin: 0;
    }

    .verb-chart-page,
    .verb-chart-page .container {
        margin: 0 !important;
        max-width: none !important;
        padding: 0 !important;
    }

    .verb-chart-page .chart-grid {
        gap: 12pt;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .verb-chart-page .verb-mood-section,
    .verb-chart-page .chart-grid,
    .verb-chart-page .verb-table {
        break-inside: avoid;
    }

    .worksheet-builder,
    .worksheet-page,
    .worksheet-page .container {
        margin: 0 !important;
        padding: 0 !important;
        max-width: none !important;
    }

    .worksheet-paper {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        box-sizing: border-box;
        height: auto;
        max-width: none;
        min-height: 10in;
        padding: 0;
        width: 100%;
    }

    .worksheet-questions {
        column-gap: 0.55in;
        font-size: 11pt;
        margin: 0.3in 0 0;
    }

    .worksheet-questions li {
        margin-bottom: 0.17in;
    }

    .worksheet-answer-key {
        min-height: 10in;
        padding-top: 0;
    }

    .worksheet-answer-key ol {
        column-gap: 0.55in;
    }

    .worksheet-grid-wrap {
        overflow: visible;
    }

    .worksheet-grid th,
    .worksheet-grid td {
        height: 0.62in;
    }
}

/* Conjugator landing ──────────────────────────────────── */
.conjugator-paths {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 24px 0 40px;
}

.conjugator-path {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.conjugator-path h3 {
    margin: 0 0 8px;
    color: var(--color-text);
    font-size: 1.1rem;
}

.conjugator-path p {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    margin: 0 0 12px;
}

.conjugator-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    background: var(--color-bg);
    color: var(--color-text);
}

.conjugator-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.conjugator-suggest {
    margin-top: 8px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: 0;
    list-style: none;
    max-height: 220px;
    overflow-y: auto;
    display: none;
}

.conjugator-suggest.is-open {
    display: block;
    padding: 4px 0;
}

.conjugator-suggest li {
    padding: 8px 14px;
    cursor: pointer;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-bg-deep);
}

.conjugator-suggest li:last-child {
    border-bottom: none;
}

.conjugator-suggest li:hover,
.conjugator-suggest li.is-active {
    background: var(--color-primary);
    color: #fff;
}

/* ─── Teacher / classroom landing page ─────────────────────────── */
.teacher-page {
    background: var(--color-bg);
}

.teacher-hero {
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg-deep) 100%);
    padding: 130px 0 56px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.teacher-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 16px;
    color: var(--color-text);
}

.teacher-lede {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 640px;
    margin: 0 auto 28px;
    line-height: 1.5;
}

.teacher-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.teacher-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.teacher-btn--primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.teacher-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--color-primary-dark);
}

.teacher-btn--ghost {
    background: transparent;
    color: var(--color-primary-dark);
    border: 2px solid var(--color-border);
}

.teacher-btn--ghost:hover {
    border-color: var(--color-primary);
    background: var(--color-bg);
}

.teacher-body {
    padding-top: 56px;
    padding-bottom: 80px;
}

.teacher-section {
    margin-bottom: 48px;
}

.teacher-section h2 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    color: var(--color-text);
    font-weight: 700;
}

.teacher-section p {
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--color-text);
}

.teacher-section p em {
    font-style: italic;
    color: var(--color-primary-dark);
}

.teacher-section strong {
    color: var(--color-text);
    font-weight: 700;
}

/* Numbered "how it works" steps */
.teacher-steps {
    list-style: none;
    counter-reset: teacher-step;
    padding: 0;
    margin: 0 0 16px;
    display: grid;
    gap: 16px;
}

.teacher-steps li {
    counter-increment: teacher-step;
    position: relative;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: 18px 20px 18px 64px;
    line-height: 1.6;
    color: var(--color-text);
}

.teacher-steps li::before {
    content: counter(teacher-step);
    position: absolute;
    left: 18px;
    top: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    font-weight: 800;
    border-radius: var(--radius-full);
}

.teacher-steps li strong {
    color: var(--color-primary-dark);
}

.teacher-note {
    font-size: 1rem;
    color: var(--color-text-light);
    font-style: italic;
}

/* Screenshot carousel */
.teacher-carousel {
    position: relative;
    margin-top: 8px;
}

.teacher-carousel__track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 16px;
    scrollbar-width: none;
    cursor: grab;
    touch-action: pan-y;
}

.teacher-carousel__track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.teacher-carousel__track.is-dragging .teacher-slide {
    pointer-events: none;
}

.teacher-carousel__track::-webkit-scrollbar {
    display: none;
}

.teacher-slide {
    flex: 0 0 auto;
    width: 240px;
    margin: 0;
}

.teacher-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    user-select: none;
    -webkit-user-drag: none;
}

/* Prev / next arrows */
.teacher-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-primary-dark);
    font-size: 1.6rem;
    line-height: 1;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.teacher-carousel__nav:hover:not(:disabled) {
    background: var(--color-bg-alt);
    transform: translateY(-50%) scale(1.05);
}

.teacher-carousel__nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.teacher-carousel__nav--prev {
    left: -8px;
}

.teacher-carousel__nav--next {
    right: -8px;
}

/* Dot indicators */
.teacher-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.teacher-carousel__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: var(--radius-full);
    background: var(--color-border);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.teacher-carousel__dot.is-active {
    background: var(--color-primary);
    transform: scale(1.25);
}


/* Founder block */
.teacher-founder .founder-portrait {
    float: right;
    margin: 0 0 16px 32px;
}

/* Contact section */
.teacher-contact {
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: 32px;
    scroll-margin-top: 90px;
}

.teacher-contact h2 {
    margin-top: 0;
}

.teacher-form {
    display: grid;
    gap: 16px;
    margin-top: 8px;
}

.teacher-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.teacher-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.teacher-form__field--narrow {
    max-width: 100%;
}

.teacher-form__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}

.teacher-form__optional {
    font-weight: 400;
    color: var(--color-text-muted);
}

.teacher-form__input {
    font-family: inherit;
    font-size: 1rem;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.teacher-form__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 80, 199, 0.12);
}

.teacher-form__textarea {
    resize: vertical;
    min-height: 96px;
}

.teacher-form__submit {
    position: relative;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.teacher-form__submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--color-primary-dark);
}

.teacher-form__submit:disabled {
    opacity: 0.7;
    cursor: progress;
}

.teacher-form.is-submitting .teacher-form__submit-label {
    opacity: 0.6;
}

.teacher-form__submit-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: teacher-spin 0.7s linear infinite;
}

.teacher-form.is-submitting .teacher-form__submit-spinner {
    display: inline-block;
}

@keyframes teacher-spin {
    to {
        transform: rotate(360deg);
    }
}

.teacher-form__fineprint {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

.teacher-form__error {
    background: rgba(255, 107, 107, 0.12);
    border: 1px solid var(--color-accent-coral);
    color: #a02020;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 0.92rem;
}

/* Success state */
.teacher-success {
    text-align: center;
    padding: 32px 16px;
}

.teacher-success__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    background: var(--color-accent-mint);
    border-radius: var(--radius-full);
}

.teacher-success__title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--color-text);
}

.teacher-success__copy {
    color: var(--color-text-light);
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}

.teacher-success--enter {
    animation: teacher-success-pop 0.4s ease;
}

@keyframes teacher-success-pop {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.teacher-privacy {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.teacher-program-shell {
    max-width: 1120px;
}

.teacher-program-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 64px;
    align-items: center;
    text-align: left;
}

.teacher-program-hero h1 {
    max-width: 680px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    letter-spacing: -0.035em;
}

.teacher-program-hero .teacher-lede {
    margin: 0 0 24px;
}

.teacher-program-hero .teacher-hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
}

.teacher-materials-jump {
    font-weight: 600;
    text-underline-offset: 4px;
}

.teacher-program-reassurance {
    margin-top: 20px;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.teacher-program-preview {
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.teacher-program-preview img {
    width: 180px;
    border-radius: var(--radius-lg);
}

.teacher-program-preview figcaption {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.teacher-program-shell .teacher-section {
    margin-bottom: 64px;
    scroll-margin-top: 96px;
}

.teacher-program-intro {
    max-width: 760px;
}

.teacher-program-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.teacher-program-grid h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.teacher-program-grid p {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 0;
}

.teacher-program-benefit {
    padding-top: 20px;
    border-top: 3px solid var(--color-primary);
}

.teacher-program-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teacher-program-options .teacher-program-option-note {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-light);
}

.teacher-program-try {
    margin-top: 20px;
}

.teacher-program-contact {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 40px;
}

.teacher-program-contact .about-eyebrow {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--color-primary-dark);
}

.teacher-program-contact .teacher-program-contact-note {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.teacher-program-contact a {
    overflow-wrap: anywhere;
}

.teacher-program-form,
.teacher-program-form .teacher-form__field {
    min-width: 0;
}

.teacher-program-form input,
.teacher-program-form textarea {
    width: 100%;
    min-width: 0;
}

.teacher-program-form .teacher-form__submit {
    max-width: 100%;
    text-align: left;
}

.teacher-program-materials {
    padding-top: 48px;
    border-top: 1px solid var(--color-border);
}

.teacher-material-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.teacher-material-card a {
    margin-top: auto;
    padding-top: 20px;
    font-weight: 600;
    text-underline-offset: 3px;
}

.teacher-program-resource-link {
    margin-top: 24px;
    font-weight: 600;
}

.teacher-program-faq details,
.teacher-guide-content details {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.teacher-program-faq summary,
.teacher-guide-content summary {
    font-weight: 600;
    cursor: pointer;
}

.teacher-program-faq details p,
.teacher-guide-content details p {
    margin: 16px 0 0;
}

.teacher-guide-content details ol {
    margin-top: 16px;
}

.teacher-page :is(a, button, summary):focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 4px;
}

@media (max-width: 850px) {
    .teacher-program-hero,
    .teacher-program-contact {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .teacher-program-preview {
        display: none;
    }

    .teacher-program-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .teacher-program-hero .teacher-btn {
        text-align: center;
    }
}

@media (max-width: 400px) {
    .teacher-contact.teacher-program-contact {
        padding-inline: 0;
        background: transparent;
        border: 0;
    }
}

@media (max-width: 374px) {
    .teacher-program-shell {
        padding-inline: 8px;
    }
}

@media (max-width: 600px) {
    .teacher-form__row {
        grid-template-columns: 1fr;
    }

    .teacher-contact {
        padding: 24px 18px;
    }

    .teacher-founder .founder-portrait {
        float: none;
        margin: 0 auto 24px;
    }

    .teacher-carousel__nav {
        display: none;
    }

    .teacher-slide {
        width: 220px;
    }
}