/* ============================================
   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;
}

/* 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;
}

.store-btn {
    display: inline-block;
    height: 50px;
    width: 168px;
    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: 168px;
    object-fit: contain;
    object-position: left center;
}

/* Google Play badge has built-in padding so its visual size is smaller — */
/* widen it and negative-margin the image so it matches the App Store badge. */
.store-btn-google {
    width: 190px;
}

.store-btn-google .store-icon {
    height: 75px;
    width: 190px;
    margin-top: -12px;
    margin-bottom: -13px;
}

.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(auto-fit, minmax(240px, 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: center;
    justify-content: space-between;
    gap: 24px;
    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);
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

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

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

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 860px) {
    .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) {
    .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;
    }
}

/* ─── 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) {
    .waitlist-form__fields {
        flex-direction: column;
        background: transparent;
        padding: 0;
        gap: 10px;
        box-shadow: none;
    }

    .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;
    }
}