/* R3 screenshot correction: one shared contract per media purpose.
   Brand CSS is linked explicitly in HTML; no late or duplicate @import. */
:root {
  --ink: #133f35;
  --deep: #103f35;
  --paper: #fffcf6;
  --gold: #edc57b;
  --line: #bacbbd;
  --muted: #52665b;
  --cream: #f4eedf;
  --peach: #f5dfd1;
  --lavender: #e7e8f6;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body.mk { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 Arial, Helvetica, sans-serif; overflow-wrap: break-word; }
/* Static store links remain usable without JavaScript or consent. Badge pixels
   retain the official artwork; the surrounding padding supplies clear space. */
.mk .download-section { background: var(--cream); padding: 24px 0; }
.mk .download-section p { margin: 0 0 8px; }
.mk .store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mk .store-badge { display: inline-flex; flex: 0 0 auto; padding: 10px; }
.mk .store-badge img { display: block; height: 40px; width: auto; max-width: none; }
button, input, select { font: inherit; color: inherit; }
button, a, input, select, summary { touch-action: manipulation; }
button, summary, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
a { color: inherit; text-underline-offset: .23em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #a24419; outline-offset: 4px; border-radius: 4px; }
button, input, select { min-height: 46px; }
button { border: 1px solid var(--line); border-radius: 100px; padding: .55em 1em; background: transparent; }
input, select { border: 1px solid #789183; border-radius: 10px; background: #fffdf8; padding: .6em .8em; max-width: 100%; }
label { display: block; font-weight: 600; }
input { display: block; width: 100%; margin-top: .4em; }
input[type=radio] { width: 20px; height: 20px; min-height: 0; flex: 0 0 20px; accent-color: var(--deep); margin: 0; }
img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.04em; line-height: 1.13; }
h1 { font-size: clamp(2.5rem,4.5vw,4.7rem); max-width: 20ch; margin-bottom: .5em; }
h2 { font-size: clamp(2rem,3.2vw,3.3rem); max-width: 24ch; margin-bottom: .6em; }
h3 { font-size: 1.25rem; line-height: 1.35; margin-bottom: .8em; letter-spacing: -.02em; }
p { margin-bottom: 1.15em; }
mark { background: var(--gold); color: #173c31; border-radius: 3px; padding: 0 .13em; }
.wrap { width: min(1200px,calc(100% - 80px)); margin-inline: auto; }
.section { padding-block: 76px; }
.section-head { max-width: 780px; margin-bottom: 32px; }
.lead { font-size: clamp(1.08rem,1.5vw,1.28rem); line-height: 1.6; max-width: 65ch; }
.eyebrow { font-size: .78rem; text-transform: uppercase; font-weight: 700; letter-spacing: .12em; line-height: 1.6; margin-bottom: 1.2em; }
.small, figcaption { font-size: .9rem; line-height: 1.6; }
.supporting-copy, .actions + p { margin-top: 24px; max-width: 70ch; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
html:not(.js) [data-js-only], .lesson:not(.enhanced) [data-js-only], .lesson.enhanced [data-static-only] { display: none; }
.preview-note { background: var(--ink); color: white; text-align: center; font-size: .75rem; letter-spacing: .08em; padding: 4px 12px; }
.skip { position: fixed; left: 16px; top: -100px; z-index: 100; background: var(--gold); padding: 12px; }
.skip:focus { top: 10px; }
/* Header and responsive navigation. Menus scroll only when the viewport is short. */
header { background: var(--paper); border-bottom: 1px solid #d9dfd2; position: relative; z-index: 20; }
.head { display: flex; align-items: center; gap: 20px; min-height: 94px; padding-block: 14px; }
.brand { text-decoration: none; flex: none; }
.head .lingeva-brand { padding: 8px 10px; border-radius: 14px; }
.head .lingeva-brand .lingeva-brand__logo { width: 42px; height: 42px; }
.head .lingeva-brand .lingeva-brand__name { font-size: 11px; }
.head .lingeva-brand .lingeva-brand__slogan { font-size: 14px; white-space: nowrap; }
#main-nav { display: flex; flex: 1; min-width: 0; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 18px; font-size: .9rem; }
.nav-link { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav-link > span { display: none; }
.nav-features { position: relative; }
.nav-features summary { padding: 8px; min-height: 44px; list-style: none; }
.nav-features summary::after { content: '⌄'; margin-left: 8px; }
.nav-features > div { position: absolute; width: min(22rem,calc(100vw - 48px)); right: 0; top: 100%; display: grid; padding: 18px; gap: 4px; max-height: 70dvh; overflow-y: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 15px 40px #103f3520; }
.locale-nav { flex: none; display: flex; align-items: center; font-size: .8rem; }
.locale-nav a { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px; text-decoration: none; }
.locale-nav a[aria-current] { font-weight: 700; background: #e4ecd9; border-radius: 9px; }
.menu-toggle { display: none; width: 46px; height: 46px; min-width: 46px; padding: 11px; border: 0; border-radius: 10px; align-items: center; justify-content: center; }
.menu-toggle svg { width: 24px; height: 24px; flex: none; }
.menu-toggle .menu-icon-close, .menu-toggle[aria-expanded=true] .menu-icon-open { display: none; }
.menu-toggle[aria-expanded=true] .menu-icon-close { display: block; }
.menu-toggle:hover, .menu-toggle[aria-expanded=true] { background: #e4ecd9; }
html:not(.js) #main-nav { display: grid; max-height: none; }
/* Original scene artwork is decorative context; product images use a separate contract. */
.hero { background: var(--deep); color: var(--paper); padding: 72px 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-copy h1 { max-width: 15ch; }
.hero-copy .small { margin: 28px 0 0; }
.hero-visual { min-width: 0; }
.hero-scene { position: relative; padding-bottom: 48px; }
.hero-art { width: 100%; border-radius: 100px 100px 26px 26px; aspect-ratio: 3/2; object-fit: cover; }
.art-caption { font-size: .85rem; text-align: right; margin: 24px 0 0; color: #d5e6d2; }
.phrase-ticket { position: absolute; left: -24px; bottom: 0; max-width: 92%; background: var(--paper); border-radius: 18px; transform: rotate(-3deg); box-shadow: 0 16px 45px #001a1738; color: var(--ink); padding: 22px 26px; }
.phrase-ticket .eyebrow { font-size: .72rem; display: block; margin-bottom: 8px; }
.phrase-ticket p { font: 2rem/1.3 Georgia,serif; margin: 0 0 8px; }
.phrase-ticket > span:last-child { font-size: .85rem; }
.hero-product-proof { display: grid; grid-template-columns: minmax(0,320px) minmax(0,1fr); align-items: start; gap: 32px; margin: 64px auto 0; padding: 28px; border-radius: 24px; background: #e9efdd; color: var(--ink); max-width: 960px; }
.hero-product-proof h2 { font-size: 2.2rem; }
.hero-product-proof .connection-strip { margin-top: 24px; }
.hero-product-proof .connection-strip > div { padding: 12px; }
.hero-product-proof .connection-strip h3 { font-size: .85rem; }
.hero-product-proof .connection-strip p { font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; gap: .4em; padding: 12px 22px; border: 1px solid var(--deep); border-radius: 100px; background: var(--deep); color: white; text-decoration: none; font-size: .95rem; font-weight: 700; line-height: 1.5; max-width: 100%; }
.button:hover { background: #28654f; }
.button.gold { background: var(--gold); border-color: var(--gold); color: #173c31; }
.button.gold:hover { background: #ffdda0; }
.button.outline, .button.quiet { background: transparent; color: var(--ink); border-color: #789183; }
.hero .button.outline, .green .button.outline { border-color: #d5e4cf; background: transparent; color: white; }
.text-link { display: inline-block; max-width: 100%; font-size: .98rem; font-weight: 700; padding-block: 10px; }
.cream { background: var(--cream); }
.peach { background: var(--peach); }
.lavender { background: var(--lavender); }
.green { background: var(--deep); color: var(--paper); }
.green .eyebrow { color: var(--gold); }
.green .small { color: #d9e9d9; }
.green .button:not(.outline) { background: var(--gold); color: var(--deep); border-color: var(--gold); }
/* Content and its own proof follow one DOM reading sequence, without CSS order. */
.feature-split { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 48px; align-items: start; }
.feature-copy { max-width: 65ch; }
.feature-copy .routine { margin-top: 28px; }
.skill-pair { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; align-items: start; }
.skill-pair + h3, .skill-pair + p { margin-top: 32px; }
.feature-proof { min-width: 0; }
.feature-proof > h2 { font-size: 2.1rem; }
.feature-proof > p { max-width: 60ch; }
.feature-proof > .product-capture { margin-block: 28px; }
/* A label and caption are OUTSIDE the ornament. Images never receive cover crops.
   A coherent source excerpt and its on-demand full view are defined in provenance. */
.product-capture { width: 100%; max-width: 440px; color: var(--ink); margin-inline: auto; }
.capture-label { font-size: 1rem; font-weight: 700; line-height: 1.4; margin-bottom: 14px; }
.capture-surface { display: flex; justify-content: center; padding: 32px 20px 20px; background: #e3d4b4; border-radius: 70px 70px 22px 22px; }
.capture-image { width: auto; height: auto; max-width: 100%; max-height: 38rem; object-fit: contain; border: 1px solid #d5ddce; border-radius: 12px; background: white; }
.product-capture--summary { max-width: 410px; }
.product-capture--summary .capture-image { max-height: 29rem; }
.product-capture--hero { max-width: 320px; }
.product-capture--hero .capture-image { max-height: 21rem; }
.product-capture--hero .capture-surface { padding: 18px 14px 14px; border-radius: 40px 40px 18px 18px; }
.product-capture figcaption { padding-top: 16px; }
.capture-language { font-weight: 700; display: block; margin-bottom: 8px; }
.product-capture figcaption p { margin: 0 0 8px; }
.image-link { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 0; gap: 6px; font-weight: 700; }
.green .product-capture { color: var(--paper); }
:is(.hero,.green) :is(a,button):focus-visible { outline-color: var(--gold); }
.hero-product-proof :is(a,button):focus-visible { outline-color: #a24419; }
.hero-product-proof .product-capture { color: var(--ink); }
.connection-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid #aebbad; border-radius: 22px; overflow: hidden; }
.connection-strip > div { padding: 24px; }
.connection-strip > div + div { border-left: 1px solid #b6c4ae; }
.connection-strip h3 { font-size: 1rem; margin-bottom: 12px; }
.connection-strip p { font: 1.4rem/1.4 Georgia,serif; margin: 0; }
.connection-strip + .feature-split, .connection-strip + .button { margin-top: 32px; }
.step-number { display: block; font-size: .8rem; margin-bottom: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; margin: 20px 0 28px; }
.filters label { font-size: .95rem; flex: 1 1 180px; max-width: 360px; }
.filters select { display: block; width: 100%; margin-top: 7px; }
.scenario-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-bottom: 24px; }
.scenario-card { border: 1px solid var(--line); border-radius: 18px; background: var(--paper); overflow: hidden; }
.scenario-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.scenario-card > div { padding: 22px; }
.scenario-card .eyebrow { font-size: .78rem; margin-bottom: 8px; }
.scenario-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.level-explorer { background: #e7efdc; border: 1px solid #bbcdb0; border-radius: 24px; padding: 32px; color: var(--ink); }
.level-nav { display: flex; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid #becdb8; padding-bottom: 20px; margin-bottom: 26px; }
.level-nav button { min-width: 52px; border: 1px solid #658673; }
.level-nav [aria-pressed=true] { background: var(--deep); color: white; }
.level-explorer article { max-width: 850px; }
.level-example, .rule { font-family: Georgia,serif; font-size: 1.35rem; line-height: 1.5; }
.rule { font-size: 1.9rem; }
.routine { background: var(--cream); color: var(--ink); padding: 26px; border-radius: 20px; margin: 0 0 20px; }
.routine select { margin: 8px 0 18px; min-width: 110px; }
.exam-explorer { background: #fffdf7; border: 1px solid #afb8cb; color: var(--ink); padding: 26px; border-radius: 20px; margin: 0 0 24px; }
.exam-explorer select { display: block; margin-top: 8px; margin-bottom: 26px; }
.exam-task { padding: 24px; border-radius: 18px; background: #f5efdf; }
.exam-task blockquote { margin: 24px 0; font: 1.3rem/1.6 Georgia,serif; border-left: 3px solid #9d7434; padding-left: 18px; }
.exam-task legend { font: 1rem/1.6 Arial,sans-serif; }
.exam-task details { margin-top: 20px; }
.page-hero { padding: 56px 0; background: var(--cream); }
.page-hero h1 { max-width: 24ch; }
.page-hero .eyebrow { text-transform: none; letter-spacing: .02em; }
.editorial-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 48px; margin-bottom: 40px; }
.editorial-grid h2 { font-size: 2.1rem; }
.related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.related-card { padding: 22px 0; border-top: 2px solid #9faf9c; font-size: 1.12rem; }
.plan-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; margin-bottom: 24px; }
.plan-grid article { padding: 32px; border: 1px solid #bac6b7; border-radius: 24px; }
.plan-grid article:last-child { background: #e5ecd8; }
.plan-grid h3 { font: 2.3rem/1.15 Georgia,serif; }
/* Pricing-only presentation. Billing, eligibility and store destinations are unchanged. */
.mk .pricing-section { padding-top: 28px; }
.mk .premium-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.mk .premium-option { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fffdf8; }
.mk .premium-option--best { background: var(--deep); color: #fff8eb; border-color: var(--deep); }
.mk .price-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.mk .price-heading h2 { font-family: inherit; font-size: 1.2rem; font-weight: 600; line-height: 1.35; letter-spacing: normal; margin: 0; }
.mk .best-value { border-radius: 100px; padding: 4px 10px; background: var(--gold); color: var(--ink); font-size: .78rem; font-weight: 700; }
.mk .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 10px; }
.mk .price strong { font-size: 2.2rem; font-weight: 650; line-height: 1.2; }
.mk .price span { font-size: .95rem; }
.mk .price-equivalent { font-size: .9rem; margin-bottom: 0; }
.mk .pricing-disclaimer { margin: 20px 0 8px; max-width: 90ch; }
.mk .pricing-trial { margin-bottom: 24px; max-width: 90ch; }
.mk .pricing-subscribe { margin-bottom: 36px; }
.mk .pricing-subscribe > p { font-weight: 600; margin-bottom: 8px; }
.mk .pricing-comparison h2 { font: 2rem/1.2 Georgia,serif; }
.mk .free-price { font-size: 1.6rem; font-weight: 650; margin-bottom: 12px; }
@media (max-width: 760px) {
  .mk .premium-options { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .mk .premium-option { padding: 18px 20px; }
  .mk .price-heading { margin-bottom: 10px; }
}
.about-art { width: min(100%,800px); border-radius: 36px; margin-bottom: 32px; }
.faq { max-width: 900px; margin-inline: auto; }
.faq details { border-bottom: 1px solid #b3c2b5; padding: 22px 0; }
summary { padding-block: 10px; min-height: 44px; }
.faq summary { font-size: 1.15rem; font-weight: 600; }
.faq p { margin: 20px 0 0; }
/* Portrait recording: native aspect ratio, no second frame or cover crop. */
.walkthrough { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,390px); gap: 32px 48px; align-items: start; margin-block: 64px 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.walkthrough-intro h3 { font: 2rem/1.15 Georgia,serif; }
.media-note { font-weight: 700; }
.walkthrough-player { width: 100%; max-width: 390px; justify-self: center; }
.walkthrough video { width: 100%; height: auto; aspect-ratio: 390/980; object-fit: contain; background: #fffdf7; border: 1px solid var(--line); border-radius: 10px; }
.walkthrough-transcript { grid-column: 1/-1; }
.walkthrough-transcript summary { font-weight: 700; }
[data-video-status] { margin: 16px 0; }
/* Dialog is a full viewport inspection surface, not an embedded scrolling pane. */
.image-viewer { width: min(960px,calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.image-viewer::backdrop { background: #06281fd9; }
.viewer-bar { display: flex; justify-content: space-between; gap: 20px; align-items: start; position: sticky; top: -24px; background: var(--paper); padding-block: 12px; z-index: 1; }
.viewer-bar h2 { font: 1.3rem/1.4 Arial,sans-serif; letter-spacing: 0; margin: 0; }
.viewer-bar button { flex: none; max-width: 45%; border-color: #789183; }
.image-viewer > p { margin-block: 18px; }
[data-viewer-canvas] > img { width: auto; height: auto; max-width: 100%; margin-inline: auto; }
[data-viewer-original] { display: inline-block; margin-top: 24px; padding: 10px 0; }
.drills { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.drills > .lead { grid-column: 1/-1; }
.drill { padding: 26px; border: 1px solid var(--line); background: #f6f2e5; border-radius: 20px; }
.drill details { font-size: .95rem; margin-top: 20px; }
.word-tokens { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.word-tokens button { font-size: .95rem; background: white; padding: 6px 10px; }
.vocab-demo { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); border: 1px solid #a9bea8; border-radius: 24px; margin: 32px 0; }
.word-card { background: #e4edda; padding: 32px; border-radius: 24px 0 0 24px; }
.word-card h3 { font: 3.1rem/1.2 Georgia,serif; }
.word-card h3 small { display: block; font-size: 1.4rem; }
.vocab-practice { padding: 32px; }
.vocab-practice .level-nav { margin-bottom: 18px; gap: 8px; }
/* Retained connected-lesson layout, with state-specific action emphasis. */
.lesson { background: var(--paper); border: 1px solid #a6bca8; border-radius: 24px; color: var(--ink); }
.lesson-top { padding: 20px 28px; display: flex; gap: 16px; justify-content: space-between; align-items: center; background: #e9efdf; border-radius: 24px 24px 0 0; }
.lesson-top p { margin: 0; }
.lesson-top button { font-size: .9rem; flex: 0 1 auto; min-width: 0; max-width: 100%; }
.stage-nav { display: flex; border-bottom: 1px solid var(--line); background: #f3f5ed; }
.stage-nav a { flex: 1; min-width: 0; padding: 20px 12px; text-align: center; font-weight: 600; text-decoration: none; font-size: .95rem; }
.stage-nav [aria-current=step] { background: var(--deep); color: white; }
.stage { padding: 32px; }
.lesson-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr); gap: 32px; }
.lesson .aside { background: #ecefdf; border-radius: 18px; padding: 24px; }
.lesson .aside p { font-size: .98rem; }
.dialogue { display: grid; gap: 14px; margin-top: 22px; }
.line { background: #e6efdf; padding: 20px; border-radius: 2px 18px 18px; }
.line.you { margin-left: 24px; background: #f3dfbb; }
.line > span { font-size: .85rem; font-weight: 600; }
.line p { margin: 8px 0; font: 1.25rem/1.5 Georgia,serif; }
.contrast { width: 100%; border-collapse: collapse; font-size: .95rem; }
.contrast td, .contrast th { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font: 1.65rem/1.4 Georgia,serif; max-width: 100%; }
.choices { display: grid; gap: 10px; margin: 20px 0; }
.choice { display: flex; align-items: center; gap: 12px; padding: 13px 17px; border: 1px solid #96ae96; border-radius: 10px; margin: 8px 0; font-weight: 400; background: #fffdf7; }
.choice:has(input:checked) { border-color: #204e37; background: #e7edda; }
.answer-actions { align-items: stretch; min-height: 108px; align-content: start; }
.answer-actions .button { font-size: .93rem; }
.feedback:not(:empty) { border-left: 4px solid #397951; padding: 16px; background: #e6f1df; margin-top: 22px; }
.feedback.wrong { border-color: #af6632; background: #faedda; }
.feedback p { margin: 10px 0 0; }
.next-row { display: flex; align-items: start; justify-content: space-between; gap: 28px; padding: 24px 28px; border-top: 1px solid var(--line); font-size: .95rem; }
.next-row p { margin: 0; max-width: 65ch; }
.next-row a { max-width: 38%; flex-shrink: 0; font-weight: 600; }
.source-question { margin-top: 40px; padding: 28px; border-left: 4px solid #789183; background: var(--cream); border-radius: 0 18px 18px 0; }
/* Concise destination labels in real grouped navigation. Legal wording unchanged. */
footer { padding: 56px 0 28px; background: #ecefdc; color: var(--ink); }
.footer-top { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,2fr); gap: 48px; padding-bottom: 32px; }
.footer-top > div > p { max-width: 38ch; margin-top: 24px; }
.footer-navigation { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.footer-navigation h2 { font: 1.05rem/1.4 Arial,sans-serif; font-weight: 700; letter-spacing: 0; margin-bottom: 12px; }
.footer-navigation ul { list-style: none; padding: 0; margin: 0; }
.footer-link { display: flex; align-items: center; min-height: 44px; text-decoration: none; padding-block: 8px; }
.footer-link span { display: none; }
.legal-links { display: flex; gap: 10px 22px; flex-wrap: wrap; border-top: 1px solid #b5c4ad; padding: 20px 0; font-size: .95rem; }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; }
footer .small { color: #46614e; }
.final-cta h2 { max-width: 25ch; }
.final-cta > .small { margin: 28px 0 0; }
/* Breakpoints follow minimum useful content widths, not device names. */
@media (min-width:1101px) {
  .hero-copy h1 { font-size: 4.5rem; }
}
@media (max-width:1100px) {
  .wrap { width: calc(100% - 56px); }
  .head { gap: 14px; }
  #main-nav { column-gap: 12px; }
  .hero-grid { gap: 32px; }
  .feature-split { gap: 32px; }
  .drills { grid-template-columns: minmax(0,1fr); }
  .footer-top { grid-template-columns: minmax(0,1fr); gap: 24px; }
}
@media (max-width:900px) {
  .head { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; }
  .js .menu-toggle { display: inline-flex; }
  #main-nav { display: none; grid-column: 1/-1; width: 100%; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); max-height: max(88px,calc(100dvh - var(--menu-viewport-top,140px) - 16px)); overflow-y: auto; }
  .head:has([data-menu][aria-expanded=true]) #main-nav { display: grid; justify-content: stretch; gap: 10px; }
  .locale-nav { grid-column: 3; grid-row: 1; }
  .nav-features > div { position: static; width: 100%; max-height: none; box-shadow: none; margin-top: 10px; }
  .hero-grid { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .hero-copy h1 { max-width: 20ch; font-size: clamp(2.8rem,7vw,4.5rem); }
  .hero-visual { max-width: 610px; width: 100%; justify-self: center; }
  .hero-art { border-radius: 65px 65px 20px 20px; }
  .phrase-ticket { left: 16px; bottom: 0; }
  .feature-split, .skill-pair, .editorial-grid { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .feature-split .product-capture { margin-inline: 0; }
  .feature-proof { max-width: 700px; }
  .feature-proof .product-capture { margin-inline: 0; }
  .speaking-proof-groups { gap: 52px; }
  .scenario-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .scenario-card:last-child:nth-child(odd) { grid-column: 1/-1; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .scenario-card:last-child:nth-child(odd) img { height: 100%; }
  .lesson-grid, .vocab-demo { grid-template-columns: minmax(0,1fr); }
  .word-card { border-radius: 24px 24px 0 0; }
  .related-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .walkthrough { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .walkthrough-player { justify-self: start; }
  .hero-product-proof { grid-template-columns: minmax(0,1fr); max-width: 610px; }
  .hero-product-proof .product-capture { margin-inline: 0; }
}
/* Keep the compact header's 94px minimum (minus 28px padding) in its
   first row when the menu adds a second row, so the trigger does not move. */
@media (min-width:601px) and (max-width:900px) {
  .head { grid-template-rows: minmax(66px,auto); }
}
@media (max-width:600px) {
  body.mk { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .section { padding-block: 52px; }
  .head { grid-template-columns: minmax(0,1fr) auto; padding-block: 12px; }
  .head .lingeva-brand { padding: 6px 7px; gap: 6px; }
  .head .lingeva-brand .lingeva-brand__logo { width: 34px; height: 34px; }
  .head .lingeva-brand .lingeva-brand__name { font-size: 9px; }
  .head .lingeva-brand .lingeva-brand__slogan { font-size: 12px; }
  .locale-nav { grid-column: 1/-1; grid-row: 2; justify-self: end; }
  #main-nav { grid-row: 3; }
  .hero { padding-block: 40px 52px; }
  .hero-copy h1 { font-size: 2.55rem; max-width: 17ch; }
  .hero-art { border-radius: 45px 45px 18px 18px; }
  .phrase-ticket { padding: 16px; left: 8px; }
  .phrase-ticket p { font-size: 1.55rem; }
  .hero-product-proof { padding: 20px; margin-top: 36px; gap: 24px; }
  .hero-product-proof h2 { font-size: 1.9rem; }
  .connection-strip { grid-template-columns: 1fr; }
  .connection-strip > div + div { border-left: 0; border-top: 1px solid #b6c4ae; }
  .connection-strip > div { padding: 18px; }
  .scenario-grid { grid-template-columns: 1fr; }
  .scenario-card, .scenario-card:last-child:nth-child(odd) { grid-column: auto; display: block; }
  .scenario-card img, .scenario-card:last-child:nth-child(odd) img { height: auto; aspect-ratio: 3/2; }
  .capture-surface { padding: 28px 16px 16px; border-radius: 56px 56px 18px 18px; }
  .capture-label { margin-bottom: 12px; }
  .product-capture figcaption { padding-top: 14px; }
  .feature-proof > h2 { font-size: 1.9rem; }
  .plan-grid { grid-template-columns: minmax(0,1fr); }
  .plan-grid article, .level-explorer, .routine, .exam-explorer, .drill, .word-card, .vocab-practice { padding: 22px; }
  .exam-task { padding: 18px; }
  .page-hero { padding-block: 36px; }
  .page-hero h1 { font-size: 2.45rem; }
  .lesson-top { padding: 16px; flex-wrap: wrap; }
  .lesson-top strong { font-size: 1rem; }
  .stage-nav a { padding: 16px 8px; font-size: .85rem; }
  .stage { padding: 20px; }
  .lesson .aside { padding: 20px; }
  .next-row { display: block; padding: 22px; }
  .next-row a { display: inline-block; max-width: 100%; margin-top: 18px; }
  .answer-actions { min-height: 160px; }
  .answer-actions .button { padding: 10px 16px; }
  .footer-navigation { grid-template-columns: repeat(auto-fit,minmax(min(100%,10rem),1fr)); gap: 28px 20px; }
  .viewer-bar { gap: 12px; }
  .image-viewer { padding: 16px; }
  .viewer-bar { top: -16px; }
}
html[lang=vi] h1, html[lang=vi] h2 { font-family: Arial,Helvetica,sans-serif; letter-spacing: -.035em; font-weight: 500; }
html[lang=vi] h3:not([lang=de]), html[lang=vi] .level-example { font-family: Arial,Helvetica,sans-serif; }
@keyframes follow-phrase { 0%,100% { background: transparent; } 20%,80% { background: #edc57b80; } }
@media (prefers-reduced-motion:no-preference) {
  .connection-strip.flow-seen > div { animation: follow-phrase 1.4s ease-in-out 1; }
  .connection-strip.flow-seen > div:nth-child(2) { animation-delay: 1.4s; }
  .connection-strip.flow-seen > div:nth-child(3) { animation-delay: 2.8s; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  .phrase-ticket { transform: none; }
}
@media print {
  header, footer, .preview-note, .actions, .menu-toggle, .image-viewer { display: none; }
  .section { padding-block: 24px; }
  .wrap { width: 100%; }
  .stage[hidden] { display: block !important; }
  .hero { color: var(--ink); background: white; }
}
