/* Shared, mobile-first styles. All website colors are defined here.
   App sources: ColorPalette in lib/main.dart.
   Coral is an accent/surface; navy or a darker coral is used for readable text. */
:root {
  --primary: #2f3a56;             /* App background2: navigation and controls */
  --primary-dark: #202a40;        /* Darker navy for hover */
  --secondary: #e86a63;           /* App icon: coral accent */
  --accent: #2f3a56;
  --le-blue: #2c61b4;             /* Softer logo-inspired headline colors */
  --la-red: #c73549;
  --background: #e2e2e4;          /* App background */
  --surface: #ffffff;
  --surface-soft: #f2f2f4;        /* App word/category card background */
  --text: #2c2c2c;                /* App text */
  --muted: #4b5260;
  --line: #c1c1c5;                /* App lockedLevels */
  --navy-soft: #c6ced6;           /* App unlockedLevels */
  --coral-soft: #f8dedb;
  --coral-ink: #973c36;
  --gold: #ffc426;                /* Decorative website accent */
  --gold-dark: #d3a22e;
  --gold-soft: #fff3d4;
  --gold-border: #dab86b;
  --gold-ink: #715013;
  --success: #27714d;
  --success-soft: #eaf5ed;
  --warning: #884421;
  --warning-soft: #fff0e9;
  --shadow-small: 0 5px 12px #2f3a560e;
  --shadow-card: 0 9px 20px #2f3a5612;
  --shadow-phone: 8px 18px 32px #2f3a5620;
  --shadow-floating: 0 5px 25px #2f3a5615;
  --radius: 28px;
  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Foundations and shared elements */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--background); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:not(:disabled), a { touch-action: manipulation; }
button:not(:disabled) { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { overflow-wrap: anywhere; line-height: 1.12; letter-spacing: -.045em; }
h1 { font-size: clamp(3.15rem, 9.8vw, 4.85rem); font-weight: 800; line-height: 1.035; }
h2 { font-size: clamp(2.05rem, 5.5vw, 3.3rem); font-weight: 750; }
h3 { font-size: 1.4rem; letter-spacing: -.025em; }
p { text-wrap: pretty; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.section { padding-block: 72px; }
.section-divider { margin: 0; border: 0; border-top: 1px solid var(--line); }
.eyebrow { font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-dark); }
.section-heading { text-align: center; max-width: 660px; margin: 0 auto 42px; }
.section-heading h2 { margin: 14px 0 20px; }
.section-heading > p:last-child, .section-copy > p:not(.eyebrow):not(.demo-invite) { color: var(--muted); }
.section-copy h2 { margin: 14px 0 24px; }
.section-copy > p + p { margin-top: 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 12px 23px; border-radius: 12px; background: var(--secondary); color: var(--primary-dark); font-weight: 650; text-decoration: none; transition: background .2s, transform .2s; }
.button:hover { background: var(--coral-soft); transform: translateY(-2px); }
.button-small { font-size: .875rem; padding: 10px 17px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 650; text-decoration: none; min-height: 44px; }
.text-link:hover { text-decoration: underline; }
.skip-link { position: fixed; top: 10px; left: 10px; padding: 12px 20px; background: var(--surface); z-index: 20; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.le-text { color: var(--le-blue); }
.la-text { color: var(--la-red); }
.muted { color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--primary); border-bottom: 1px solid var(--primary); color: var(--surface); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 12px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: inline-flex; gap: 9px; align-items: center; white-space: nowrap; font-size: 1.5rem; font-weight: 800; letter-spacing: -.055em; text-decoration: none; }
.brand > span { color: var(--coral-ink); margin-left: -7px; }
.brand img { width: 48px; height: auto; border-radius: 22%; }
.brand > .brand-name { color: inherit; margin-left: 0; }
.brand-name > span { color: var(--coral-ink); }
.site-header .brand > .brand-name { color: var(--surface); }
.site-header .brand-name > span { color: var(--secondary); }
.language-switch { display: inline-flex; border: 1px solid var(--navy-soft); border-radius: 9px; padding: 2px; }
.language-switch a { display: grid; place-items: center; min-width: 38px; min-height: 40px; padding-inline: 5px; border-radius: 6px; font-size: .8rem; font-weight: 650; text-decoration: none; }
.language-switch a[aria-current="true"] { color: var(--primary); background: var(--surface); }
.language-switch a:hover { color: var(--primary); background: var(--coral-soft); }
.header-inner nav { display: flex; align-items: center; gap: 30px; }
/* Reserve the same space for both translations so the controls never shift. */
.header-inner .language-switch { flex: 0 0 auto; }
.header-inner .nav-link { flex: 0 0 10rem; width: 10rem; justify-content: center; text-align: center; }
.header-inner nav > .button { flex: 0 0 12rem; width: 12rem; min-height: 48px; line-height: 1.3; }
.nav-link { display: none; font-size: .875rem; text-decoration: none; font-weight: 600; }
.nav-link:hover { color: var(--coral-soft); }
.site-header .brand > span { color: var(--secondary); }
.site-header :focus-visible { outline-color: var(--gold); }

/* Hero and original Android screenshots */
.hero > *, .practice-grid > *, .progress-grid > * { min-width: 0; }
.hero { display: grid; gap: 30px; padding-block: 42px 30px; }
.hero h1 { font-weight: 700; letter-spacing: -.025em; line-height: 1.08; }
html[lang="fr"] .hero h1 { font-size: clamp(2.8rem, 8vw, 4.85rem); }
.headline-word { white-space: nowrap; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 23px; font-size: .72rem; }
.french-flag { width: 20px; height: 14px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) 33.3%, var(--surface) 33.3%, var(--surface) 66.6%, var(--secondary) 66.6%); border: 1px solid var(--line); }
.hero-tagline { margin-top: 25px; color: var(--primary); font-size: clamp(1.15rem, 2.5vw, 1.4rem); line-height: 1.45; letter-spacing: -.02em; }
.hero-tagline strong { color: var(--coral-ink); font-weight: 750; }
.hero-description { max-width: 430px; margin-top: 14px; color: var(--muted); font-size: 1.075rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.hero-demo-link { flex-basis: 100%; }
.store-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.store-button { min-width: 184px; }
.store-button { display: inline-flex; gap: 13px; align-items: center; justify-content: center; background: var(--text); color: var(--surface); padding: 11px 23px; min-height: 62px; border-radius: 13px; text-decoration: none; box-shadow: var(--shadow-small); transition: transform .2s, background .2s; }
.store-button span { font-size: 1.24rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.store-button small { display: block; font-size: .66rem; font-weight: 500; letter-spacing: .04em; line-height: 1.5; }
.store-button:hover { background: var(--primary-dark); transform: translateY(-2px); }
.hero-note { margin-top: 18px; font-size: .8rem; color: var(--muted); }
.hero-art { position: relative; isolation: isolate; display: grid; justify-items: center; align-content: center; min-width: 0; padding: 34px 0 45px; }
.hero-orbit { position: absolute; z-index: -1; inset: 14% 5% 10%; background: var(--navy-soft); border-radius: 50%; }
.hero-orbit::after { content: ""; position: absolute; inset: 20px -4px -15px 16px; border: 1px solid var(--line); border-radius: 50%; }
.phone { border: 6px solid var(--primary-dark); padding: 14px 0 12px; background: var(--primary-dark); border-radius: 32px; overflow: hidden; box-shadow: 0 0 0 1px #ffffff80, var(--shadow-phone); width: 246px; }
.phone img { width: 100%; height: auto; display: block; border-radius: 2px; }
.hero-phone { transform: rotate(3deg); }
.floating-label { position: absolute; z-index: 1; font-size: 2.2rem; line-height: 1; font-weight: 750; padding: 16px 22px; border-radius: 19px; box-shadow: var(--shadow-card); }
.floating-label span { opacity: .6; font-size: 1.2rem; }
.label-le { top: 17%; left: 0; background: var(--primary); color: var(--surface); transform: rotate(-13deg); }
.label-la { bottom: 23%; right: 0; background: var(--secondary); color: var(--primary-dark); transform: rotate(12deg); }
.little-win { max-width: calc(100% - 20px); position: absolute; bottom: 36px; left: 0; display: flex; gap: 12px; align-items: center; padding: 13px 17px; background: var(--surface); box-shadow: var(--shadow-floating); border: 1px solid var(--line); border-radius: 16px; font-size: .78rem; line-height: 1.6; transform: rotate(-5deg); }
.win-check { display: grid; place-items: center; height: 34px; width: 34px; background: var(--success-soft); color: var(--success); border-radius: 50%; font-size: 1.1rem; }
.preview-caption { color: var(--muted); font-size: .75rem; text-align: center; }
.hero-art > .preview-caption { position: absolute; bottom: 0; }

/* Interactive practice: swipe cards with equivalent tap and keyboard controls. */
.practice-section { background: var(--surface); }
.practice-grid { display: grid; gap: 40px; }
.doubt-words { display: grid; gap: 8px; margin-block: 25px; font-size: clamp(1rem, 3.6vw, 1.3rem); line-height: 1.7; }
.doubt-words strong { color: var(--primary); font-weight: 650; }
.doubt-words p:first-child strong { margin-left: 14px; }
.doubt-words p:last-child strong { margin-right: 14px; }
.demo-invite { font-weight: 650; color: var(--primary-dark); }
/* A small, playable version of the app's Desserts screen. */
.demo-shell { width: 100%; max-width: 320px; margin-inline: auto; }
.demo-app { overflow: hidden; border: 5px solid var(--primary-dark); border-radius: 28px; background: var(--background); box-shadow: var(--shadow-phone); }
/* A bright coral halo pulses until the visitor answers their first card. */
.demo-app.is-inviting { box-shadow: var(--shadow-phone), 0 0 0 3px #e86a63b3, 0 0 28px 7px #e86a6380; animation: demo-phone-glow 1.8s ease-in-out infinite; }
.demo-app.is-inviting:hover, .demo-app.is-inviting:focus-within { animation-play-state: paused; }
@keyframes demo-phone-glow {
  0%, 100% { box-shadow: var(--shadow-phone), 0 0 0 2px #e86a6380, 0 0 20px 4px #e86a6359; }
  50% { box-shadow: var(--shadow-phone), 0 0 0 4px #e86a63, 0 0 40px 12px #e86a63b3, 0 0 65px 18px #e86a6338; }
}
.demo-app [hidden] { display: none !important; }
.demo-appbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 14px; min-height: 52px; background: var(--primary); color: var(--background); }
.demo-appbar h3 { font-size: 1.3rem; letter-spacing: 0; font-weight: 700; }
.demo-icon-button { display: inline-grid; place-items: center; flex-shrink: 0; width: 44px; min-height: 44px; padding: 7px; border: 0; border-radius: 9px; background: transparent; color: var(--secondary); }
.demo-icon-button svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demo-icon-button[aria-pressed="true"] svg { fill: currentColor; }
.demo-icon-button:not(:disabled):hover { background: #e86a6318; }
.demo-appbar :focus-visible { outline-color: var(--surface); }
.demo-body { padding: 10px 12px 12px; }
.demo-progress { display: flex; align-items: center; gap: 12px; background: var(--surface-soft); border-radius: 22px; padding: 5px 10px; }
.demo-segments { display: flex; flex: 1; min-width: 0; gap: 3px; }
.demo-segments span { flex: 1; height: 5px; border-radius: 4px; background: #d5d6dc; }
.demo-segments .is-complete { background: var(--primary); }
#demo-count { font-size: .9rem; color: var(--primary); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.demo-history-window { min-height: 106px; display: grid; align-content: end; padding-block: 5px; }
#demo-history-empty { align-self: center; text-align: center; font-size: .82rem; color: var(--muted); padding: 25px 8px; }
.demo-history { list-style: none; padding: 0; margin: 0; }
.demo-history li { display: flex; justify-content: center; align-items: center; gap: 5px; min-height: 32px; font-size: .95rem; font-weight: 650; line-height: 1.35; }
.demo-history li > span[lang] { overflow-wrap: anywhere; }
.demo-history .demo-icon-button { width: 32px; min-height: 32px; padding: 5px; }
.demo-history .demo-icon-button svg { width: 22px; height: 22px; }
.answer-correct { color: #2e703c; }
.answer-incorrect { color: #b93430; }
.answer-mark { flex-shrink: 0; font-size: .8rem; width: 16px; }
.demo-deck { position: relative; margin: 4px 3px 18px; }
.demo-swipe-card { position: relative; display: grid; place-items: center; min-height: 180px; aspect-ratio: 1.45; padding: 48px 20px 34px; border-radius: 16px; background: white; box-shadow: 0 10px 22px #2c2c2c15; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; cursor: grab; transition: transform .18s ease-out; }
.demo-swipe-card.is-dragging { cursor: grabbing; transition: none; }
.demo-swipe-card.is-leaving { transition: transform .22s ease-in; pointer-events: none; }
.demo-swipe-card:focus-visible { outline-offset: -5px; }
.demo-save { position: absolute; top: 14px; left: 14px; }
.demo-word { font-size: clamp(1.5rem, 4vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; text-align: center; overflow-wrap: anywhere; line-height: 1.2; }
.demo-invitation { position: absolute; bottom: 14px; display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px; border-radius: 999px; background: var(--coral-soft); color: var(--coral-ink); font-size: .8rem; font-weight: 750; line-height: 1.5; pointer-events: none; }
.demo-invitation[hidden] { display: none; }
.demo-invitation span { font-size: 1.15rem; line-height: 1; }
/* Three gentle pulses, then a steady invitation. Reduced motion is handled below. */
.demo-invitation.is-inviting { animation: demo-invitation-pulse 1.6s ease-in-out 3; }
@keyframes demo-invitation-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .65; transform: scale(1.06); }
}
.demo-swipe-cue { position: absolute; top: 23px; right: 24px; font-size: 1.3rem; font-weight: 800; opacity: 0; pointer-events: none; }
.cue-le { color: var(--le-blue); }
.cue-la { color: var(--la-red); }
.demo-choices { position: relative; width: min(190px, 100%); margin: 0 auto 8px; }
.demo-choices img { width: 100%; pointer-events: none; user-select: none; }
.demo-answer { position: absolute; top: 0; bottom: 0; width: 34%; min-height: 44px; border: 0; border-radius: 12px; background: transparent; }
.demo-answer-le { left: 0; }
.demo-answer-la { right: 0; }
.demo-answer:not([aria-disabled="true"]):not(:disabled):hover { background: #ffffff40; }
.demo-answer[aria-disabled="true"] { cursor: default; }
.demo-help { text-align: center; color: var(--muted); font-size: .75rem; line-height: 1.5; margin: 8px auto 0; max-width: 310px; }
/* Announce answers to screen readers without adding a visible status row. */
.demo-feedback { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.feedback-correct { color: #2e703c; }
.feedback-retry { color: #b93430; }
.demo-results { min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 32px 0; text-align: center; }
.demo-results h3 { font-size: 2.15rem; }
.demo-score { font-size: 1.6rem; color: var(--primary); font-variant-numeric: tabular-nums; }
.demo-stars { display: flex; justify-content: center; gap: 8px; color: #777982; font-size: 2.4rem; line-height: 1; }
.demo-stars .earned { color: var(--coral-ink); }
.demo-result-actions { display: grid; gap: 12px; margin-top: 8px; }
.demo-availability { font-size: .75rem; color: var(--muted); }
.demo-secondary-button { min-height: 44px; padding: 10px 18px; border: 1px solid var(--primary); border-radius: 12px; background: transparent; color: var(--primary); font-weight: 600; }
.demo-secondary-button:hover { background: var(--navy-soft); }
.demo-footnote { color: var(--muted); font-size: .75rem; line-height: 1.5; text-align: center; margin: 16px 8px 0; }

/* Three steps */
.how-section { background: var(--surface-soft); border-block: 1px solid var(--line); }
.steps { display: grid; gap: 35px; }
.step { text-align: center; }
.step-illustration { height: 120px; display: flex; justify-content: center; align-items: center; margin-bottom: 14px; }
.swipe-illustration span { padding: 17px; border-radius: 13px; font-size: 1.5rem; font-weight: 750; color: var(--accent); background: var(--navy-soft); transform: rotate(-14deg); border: 4px solid var(--surface); box-shadow: var(--shadow-small); }
.swipe-illustration span + span { color: var(--coral-ink); background: var(--coral-soft); transform: rotate(12deg); margin-left: 8px; }
.practice-illustration span { display: grid; place-items: center; width: 57px; height: 60px; font-size: 2rem; background: var(--gold-soft); border-radius: 12px; transform: rotate(-10deg); }
.practice-illustration span:nth-child(2) { background: var(--coral-soft); color: var(--coral-ink); transform: translateY(-13px); margin-inline: 8px; }
.practice-illustration span:nth-child(3) { background: var(--navy-soft); color: var(--accent); transform: rotate(10deg); }
.stars-illustration { gap: 10px; }
.stars-illustration span { border: 5px solid var(--coral-soft); background: var(--secondary); color: var(--primary-dark); width: 49px; height: 49px; line-height: 39px; border-radius: 50%; font-weight: 700; }
.stars-illustration span:last-child { transform: translateY(-12px); }
.step-number { font-size: .75rem; color: var(--primary-dark); font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .08em; }
.step h3 { font-size: 1.35rem; margin-bottom: 12px; }
.step > p:last-child { color: var(--muted); font-size: .95rem; max-width: 280px; margin-inline: auto; }

/* Feature screenshot panels and compact secondary features */
.feature-grid { display: grid; gap: 24px; }
.feature-card { padding: 32px 25px 24px; border-radius: var(--radius); overflow: hidden; }
.topic-feature { background: var(--navy-soft); }
.daily-feature { background: var(--surface-soft); }
.feature-copy { max-width: 365px; margin-inline: auto; }
.feature-tag { display: inline-block; margin-bottom: 16px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary-dark); }
.daily-feature .feature-tag { color: var(--coral-ink); }
.feature-copy h3 { font-size: 1.9rem; margin-bottom: 15px; }
.feature-copy p { color: var(--muted); font-size: .95rem; }
.feature-phone { margin: 32px auto 16px; width: min(240px, 100%); border-width: 6px; border-radius: 32px; }
.small-features { display: grid; gap: 30px; margin-top: 40px; }
.small-features article { display: flex; gap: 18px; }
.feature-icon { flex: 0 0 43px; height: 43px; background: var(--navy-soft); border-radius: 12px; display: grid; place-items: center; font-size: 1.7rem; color: var(--primary); line-height: 1; }
.small-features h3 { font-size: 1.1rem; margin: 3px 0 10px; }
.small-features p { color: var(--muted); font-size: .9rem; }

/* Progress examples mirror the supplied app screenshots. */
.progress-section { background: var(--surface-soft); }
.progress-grid { display: grid; gap: 40px; }
.progress-visual { order: 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 22px; }
.progress-visual > .eyebrow { margin-bottom: 24px; }
.level-progress, .level-stars { padding: 24px 20px; background: var(--navy-soft); border-radius: 18px; }
.level-progress > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 20px; }
.level-progress span, .level-stars > span:last-child { color: var(--muted); font-size: .85rem; }
.level-stars { display: grid; gap: 10px; margin-top: 16px; }
.stars { color: var(--coral-ink); font-size: 2rem; line-height: 1.3; }
progress { appearance: none; width: 100%; display: block; height: 10px; border: none; background: var(--background); border-radius: 10px; overflow: hidden; accent-color: var(--coral-ink); }
progress::-webkit-progress-bar { background: var(--background); border-radius: 10px; }
progress::-webkit-progress-value { background: var(--coral-ink); border-radius: 10px; }
progress::-moz-progress-bar { background: var(--coral-ink); }
.example-note { font-size: .75rem; text-align: center; color: var(--muted); margin-top: 18px; }
.benefit-title { font-size: 1.1rem; margin: 24px 0 10px; letter-spacing: -.02em; }

/* Download and footer */
.final-cta { margin-top: 48px; isolation: isolate; position: relative; background: var(--primary); color: var(--surface); border-radius: 30px; padding: 50px 22px; text-align: center; overflow: hidden; }
.final-cta .eyebrow { font-size: .68rem; color: var(--coral-soft); }
.final-cta .store-button { background: var(--secondary); color: var(--primary-dark); }
.final-cta .store-button:hover { background: var(--coral-soft); }
.final-cta :focus-visible { outline-color: var(--gold); }
.final-cta h2 { margin: 16px 0 20px; }
.final-cta > p:not(.eyebrow) { color: var(--surface); margin-bottom: 26px; }
.android-note { display: block; color: var(--navy-soft); font-size: .75rem; margin-top: 14px; }
.cta-decoration { display: none; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding-block: 37px; }
.site-footer .brand { font-size: 1.3rem; }
.site-footer p { font-size: .8rem; color: var(--muted); margin-left: auto; }
.site-footer nav { display: flex; gap: 25px; }
.site-footer nav a { color: var(--muted); font-size: .8rem; display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.footer-note { color: var(--muted); font-size: .75rem; margin-left: auto; }

/* Contact and privacy pages */
.document-main { max-width: 760px; min-height: 65vh; padding-block: 65px 90px; }
.document-main h1 { font-size: clamp(2.5rem, 8vw, 4rem); margin: 16px 0 25px; }
.document-main h2 { font-size: 1.4rem; margin: 30px 0 15px; }
.document-main p { margin-bottom: 18px; color: var(--muted); }
.contact-card { padding: 25px; border: 1px solid var(--line); background: var(--navy-soft); border-radius: 18px; margin-block: 30px; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card a { font-size: .9rem; overflow-wrap: anywhere; color: var(--primary-dark); }

/* Wider screens: keep comfortable measure and stack before content gets cramped. */
@media (min-width: 600px) {
  .container { width: min(1120px, calc(100% - 64px)); }
  .nav-link { display: inline-flex; align-items: center; min-height: 44px; }
  .brand { font-size: 1.65rem; }
  .hero-art { max-width: 480px; width: 100%; margin-inline: auto; }
  .hero-phone { width: 270px; }
  .label-le { left: 20px; }
  .label-la { right: 20px; }
  .little-win { left: 15px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
  .step h3 { font-size: 1.2rem; }
  .step > p:last-child { font-size: .9rem; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card { padding-inline: 28px; }
  .feature-copy { min-height: 210px; }
  .feature-copy h3 { font-size: 1.7rem; }
  .site-footer { gap: 30px; }
}
@media (min-width: 900px) {
  .section { padding-block: 100px; }
  .hero { grid-template-columns: 1.05fr 1fr; gap: 34px; align-items: center; padding-block: 48px 65px; }
  .hero .eyebrow { font-size: .75rem; }
  .hero-art { min-height: 600px; }
  .hero-phone { width: 300px; }
  .label-le { top: 19%; left: 0; font-size: 2.75rem; }
  .label-la { right: 0; bottom: 25%; font-size: 2.75rem; }
  .little-win { bottom: 55px; left: -7px; }
  .practice-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 90px; }
  .steps { gap: 55px; }
  .step h3 { font-size: 1.4rem; }
  .step > p:last-child { font-size: .95rem; }
  .feature-card { padding: 40px 45px 25px; }
  .feature-copy { min-height: 166px; }
  .feature-copy h3 { font-size: 2rem; }
  .feature-phone { width: 250px; }
  .small-features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 45px; }
  .progress-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 85px; }
  .progress-visual { order: 0; padding: 34px; }
  .final-cta { padding-block: 65px; }
  .cta-decoration { display: block; position: absolute; inset: 0; z-index: -1; }
  .cta-decoration span { position: absolute; font-size: 5rem; font-weight: 750; letter-spacing: -.07em; padding: 0 33px 12px; background: var(--navy-soft); color: var(--primary); border: 3px solid var(--surface); border-radius: 25px; transform: rotate(-17deg); left: -28px; top: 45px; }
  .cta-decoration span + span { left: auto; top: auto; right: -12px; bottom: 20px; transform: rotate(17deg); background: var(--secondary); color: var(--primary-dark); }
  .site-footer p { margin-left: 0; }
  .site-footer nav { margin-left: auto; }
  .footer-note { margin-left: 0; }
}
@media (max-width: 359px) {
  .container { width: calc(100% - 32px); }
  .brand { gap: 6px; font-size: 1.3rem; }
  .brand img { width: 29px; height: auto; }
  .button-small { padding-inline: 12px; gap: 8px; }
  .hero-phone { width: 220px; }
  .floating-label { padding: 12px 16px; font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* The language control remains visible on small phones and with enlarged text. */
@media (max-width: 899px) {
  .header-inner nav { gap: 10px; flex-wrap: wrap; }
  .header-inner .nav-link { display: none; }
  html[lang="fr"] .feature-copy { min-height: 240px; }
}
@media (max-width: 419px) {
  .site-header .brand-name { display: none; }
  .site-header .brand img { width: 42px; }
  .header-inner nav > .button { flex-basis: 8.75rem; width: 8.75rem; min-height: 3.75rem; padding-inline: 12px; gap: 8px; }
}
@media (max-width: 599px) {
  html[lang="fr"] .feature-copy { min-height: 0; }
  .site-header .brand { font-size: 1.3rem; }
  .header-inner nav { margin-left: auto; }
  .hero-actions { gap: 12px; }
  .hero-actions .store-button { min-width: 0; flex: 1 1 145px; padding-inline: 12px; }
  .hero-actions .store-button span { font-size: 1.05rem; }
}

/* Honest pre-launch calls to action. */
.release-status { display: inline-flex; align-items: center; gap: 9px; font-size: .875rem; font-weight: 650; color: var(--primary); }
.status-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral-ink); }
.final-cta > p.launch-price { margin: 20px 0 0; font-size: .875rem; color: var(--coral-soft); }
.final-cta .android-note { max-width: 450px; margin-inline: auto; }
.hero-actions .button { min-height: 54px; }
.hero-art .floating-label { pointer-events: none; }
