/* First Light (owner's choice, 22 Nov 2026). Loaded after styles.css: it changes the tokens and adds the look's own parts
   (the welcome photo, the glass price card, the button glare, the translating sample, the screens row, the true/false marks,
   the day/night switch). Same rules as styles.css: logical properties, orange only for the brand and the next step, never
   orange text; every text pair 4.5 to 1 or better; motion only on the first screen and Home, never on question screens,
   nothing moves under "reduce motion".
   Sections: 1 tokens, 2 type, 3 bar and switch, 4 shared parts, 5 first screen, 6 sample question, 7 screens row,
   8 glare, 9 arrival, 10 questions and marks, 11 laptops, 12 phones. */

/* ---------- 1. Tokens: day (cream, milk cards, no harsh white) and night (espresso) ---------- */
:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #FFF4DF;            /* morning cream */
  --surface: #FFF8EA;       /* warm milk: cards, chips (owner: no harsh white anywhere) */
  --surface-2: #F6E6CA;     /* sunken: tracks, source box */
  --ink: #2B1A12;           /* cocoa, 15.3:1 on cream */
  --ink-muted: #6A4B3B;     /* warm brown, 7.2:1 on cream */
  --line: #EAD7B8;
  --line-strong: #A07E66;   /* control borders */
  --brand: #F17943;         /* orange: the main button, chosen borders, focus of attention. Never text. */
  --brand-ink: #7A3412;     /* links and small accents in text: a deep burnt brown, 8.4:1 on cream */
  --brand-strong: #DE6630;  /* pressed */
  --on-brand: #24120A;      /* dark label on orange, 6.5:1 */
  --choice-line: #C9581F;   /* the chosen answer's border: 4.1:1 on the card (the plain orange is 2.6:1) */
  --brand-tint: #FFE8C6;    /* chosen state, info note */
  --accent: #FFC94D;        /* sun yellow: dashes and glow only */
  --good: #32694B; --good-bg: #ECF3E6; --on-good: #FFFFFF;
  --bad: #963A4F;  --bad-bg: #F9ECEB;  --on-bad: #FFFFFF;   /* rose red, far from the orange button */
  --warn-ink: #6E4300; --warn-bg: #FFF1CF; --warn-line: #A27415;
  --shadow-1: 0 1px 2px rgba(74, 40, 16, .07);
  --shadow-2: 0 14px 34px rgba(74, 40, 16, .14);
  --fl-focus: #2B1A12;
  --fl-sel: #3A241A; --fl-selink: #FFF4DF;     /* selected chip: cocoa fill, cream text 13.3:1 */
  --fl-progress: #B8740F;
  --fl-glass: rgba(255, 246, 228, .16); --fl-glass-hover: rgba(255, 246, 228, .34); --fl-glass-line: rgba(255, 252, 240, .75);
  --fl-tcard: rgba(255, 249, 236, .86);
  --fl-bloom: #FFD77A; --fl-bloom-o: .55;
  --fl-page-glow: transparent; /* night only: the shared warm background layer (section 5) */
  --fl-photo-filter: sepia(.35) saturate(.85) brightness(.95);
  --fl-wash: linear-gradient(90deg, rgba(255, 244, 223, .96) 0%, rgba(255, 240, 214, .9) 46%, rgba(255, 232, 196, .34) 100%),
             linear-gradient(180deg, rgba(255, 244, 223, .5) 0%, transparent 22%, transparent 66%, #FFF4DF 100%);
  --fl-wash-phone: linear-gradient(180deg, rgba(255, 244, 223, .62) 0%, rgba(255, 242, 218, .8) 40%, rgba(255, 244, 223, .97) 72%, #FFF4DF 100%);
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --ex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11'/%3E%3C/svg%3E");
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1B110D; --surface: #2A1B15; --surface-2: #36241B;
  --ink: #FFF1DC; --ink-muted: #D9BFA6;
  --line: #4A3328; --line-strong: #8E715E;
  --choice-line: #F17943; --brand: #F17943; --brand-ink: #FFD3A8; --brand-strong: #DE6630; --on-brand: #24120A; --brand-tint: #3F2717;
  --accent: #FFC94D;
  --good: #9BCFB1; --good-bg: #182B21; --on-good: #10120E;
  --bad: #E2A0AE; --bad-bg: #34191F; --on-bad: #1B110D;
  --warn-ink: #EBCB8C; --warn-bg: #2F2410; --warn-line: #B08A3E;
  --shadow-1: none;
  --shadow-2: 0 14px 34px rgba(0, 0, 0, .5);
  --fl-focus: #FFC94D;
  --fl-sel: #FFE9C4; --fl-selink: #2B1A12;
  --fl-progress: #FFC94D;
  --fl-glass: rgba(42, 27, 21, .5); --fl-glass-hover: rgba(42, 27, 21, .64); --fl-glass-line: rgba(255, 233, 196, .22);
  --fl-tcard: rgba(42, 27, 21, .92);
  --fl-bloom: #7A3A12; --fl-bloom-o: .55;
  --fl-page-glow: color-mix(in srgb, #7A3A12 62%, transparent);
  --fl-photo-filter: brightness(1.7) saturate(1.2) contrast(1.05);
  --fl-wash: linear-gradient(90deg, rgba(27, 17, 13, .9) 0%, rgba(27, 17, 13, .8) 46%, rgba(27, 17, 13, .18) 100%),
             linear-gradient(180deg, rgba(27, 17, 13, .35) 0%, transparent 22%, transparent 66%, #1B110D 100%);
  --fl-wash-phone: linear-gradient(180deg, rgba(27, 17, 13, .5) 0%, rgba(27, 17, 13, .7) 40%, rgba(27, 17, 13, .95) 72%, #1B110D 100%);
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B110D' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --ex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B110D' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #1B110D; --surface: #2A1B15; --surface-2: #36241B;
    --ink: #FFF1DC; --ink-muted: #D9BFA6;
    --line: #4A3328; --line-strong: #8E715E;
    --choice-line: #F17943; --brand: #F17943; --brand-ink: #FFD3A8; --brand-strong: #DE6630; --on-brand: #24120A; --brand-tint: #3F2717;
    --accent: #FFC94D;
    --good: #9BCFB1; --good-bg: #182B21; --on-good: #10120E;
    --bad: #E2A0AE; --bad-bg: #34191F; --on-bad: #1B110D;
    --warn-ink: #EBCB8C; --warn-bg: #2F2410; --warn-line: #B08A3E;
    --shadow-1: none;
    --shadow-2: 0 14px 34px rgba(0, 0, 0, .5);
    --fl-focus: #FFC94D;
    --fl-sel: #FFE9C4; --fl-selink: #2B1A12;
    --fl-progress: #FFC94D;
    --fl-glass: rgba(42, 27, 21, .5); --fl-glass-hover: rgba(42, 27, 21, .64); --fl-glass-line: rgba(255, 233, 196, .22);
    --fl-tcard: rgba(42, 27, 21, .92);
    --fl-bloom: #7A3A12; --fl-bloom-o: .55;
    --fl-page-glow: color-mix(in srgb, #7A3A12 62%, transparent);
    --fl-photo-filter: brightness(1.7) saturate(1.2) contrast(1.05);
    --fl-wash: linear-gradient(90deg, rgba(27, 17, 13, .9) 0%, rgba(27, 17, 13, .8) 46%, rgba(27, 17, 13, .18) 100%),
               linear-gradient(180deg, rgba(27, 17, 13, .35) 0%, transparent 22%, transparent 66%, #1B110D 100%);
    --fl-wash-phone: linear-gradient(180deg, rgba(27, 17, 13, .5) 0%, rgba(27, 17, 13, .7) 40%, rgba(27, 17, 13, .95) 72%, #1B110D 100%);
    --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B110D' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
    --ex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B110D' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11'/%3E%3C/svg%3E");
  }
}
:root {
  --r-md: 14px; --r-lg: 20px;
  /* Latin and Vietnamese letters in every language: Be Vietnam Pro, with its two stand-ins (theme/fonts.css) while it loads */
  --fl-latin: "Be Vietnam Pro", "BVP Standin A", "BVP Standin R";
  --font: var(--fl-latin), "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fl-display: "Fraunces FL", "Fraunces Standin G", "Fraunces Standin N", "Be Vietnam Pro", "Noto Sans", Georgia, serif;
  /* language names (menus, lists, "Your language" lines): the small names-only fonts for the Nepali, Burmese and Sinhala names, then the phone's own fonts */
  --font-names: var(--fl-latin), "Orso Names", "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
/* Each script keeps its OWN font (audit 23 Nov 2026, M2). styles.css sets these stacks per language, but the --font above has the
   same weight as those rules and comes later, so on a Burmese, Sinhala, Nepali or Chinese page it used to win, and the text fell
   to whatever font the phone had (on a Zawgyi phone: scrambled Burmese). Said again here, after it, with our Latin font first so
   digits and Latin words look the same in every language. Each font's unicode-range keeps it on its own script. */
[lang="ne"], [lang="hi"] { --font: var(--fl-latin), "Noto Sans Devanagari", "Noto Sans", system-ui, "Nirmala UI", sans-serif; }
[lang="my"] { --font: var(--fl-latin), "Noto Sans Myanmar", "Noto Sans", system-ui, "Myanmar Text", sans-serif; }
[lang="si"] { --font: var(--fl-latin), "Noto Sans Sinhala", "Noto Sans", system-ui, "Sinhala Sangam MN", "Iskoola Pota", "Nirmala UI", sans-serif; }
[lang|="zh"] { --font: var(--fl-latin), "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans SC Subset", "Noto Sans", sans-serif; }
[lang="ar"], [lang="fa"] { --font: "Noto Sans Arabic", var(--fl-latin), "Noto Sans", system-ui, "Segoe UI", Tahoma, sans-serif; }
/* The street photo for each look: AVIF, then WebP, then JPEG (tools/make-photos.py). Only the one in use is downloaded. */
:root, [data-theme="light"] {
  --fl-photo: url("img/day-1920.jpg"); --fl-photo-set: image-set(url("img/day-1920.avif") type("image/avif"), url("img/day-1920.webp") type("image/webp"), url("img/day-1920.jpg") type("image/jpeg"));
  --fl-photo-s: url("img/day-960.jpg"); --fl-photo-set-s: image-set(url("img/day-960.avif") type("image/avif"), url("img/day-960.webp") type("image/webp"), url("img/day-960.jpg") type("image/jpeg"));
  --fl-photo-pos: 62% 58%;
}
[data-theme="dark"] {
  --fl-photo: url("img/night-1920.jpg"); --fl-photo-set: image-set(url("img/night-1920.avif") type("image/avif"), url("img/night-1920.webp") type("image/webp"), url("img/night-1920.jpg") type("image/jpeg"));
  --fl-photo-s: url("img/night-960.jpg"); --fl-photo-set-s: image-set(url("img/night-960.avif") type("image/avif"), url("img/night-960.webp") type("image/webp"), url("img/night-960.jpg") type("image/jpeg"));
  --fl-photo-pos: 50% 60%;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --fl-photo: url("img/night-1920.jpg"); --fl-photo-set: image-set(url("img/night-1920.avif") type("image/avif"), url("img/night-1920.webp") type("image/webp"), url("img/night-1920.jpg") type("image/jpeg"));
    --fl-photo-s: url("img/night-960.jpg"); --fl-photo-set-s: image-set(url("img/night-960.avif") type("image/avif"), url("img/night-960.webp") type("image/webp"), url("img/night-960.jpg") type("image/jpeg"));
    --fl-photo-pos: 50% 60%;
  }
}

/* ---------- 2. Type: Fraunces for headings in Latin-alphabet languages; study text always in the plain font ---------- */
:focus-visible { outline-color: var(--fl-focus); }
:is(html[lang="en"], html[lang="vi"], html[lang="tl"], html[lang="id"]) :is(.hero h2, .intro h2, .bar-title:not(.brand), .result-score, .plan-price bdi, .offer.card strong, .price.card strong, .score) {
  font-family: var(--fl-display); font-weight: 600; letter-spacing: -0.01em;
}
html[lang="vi"] :is(.hero h2, .intro h2) { line-height: 1.22; } /* room for stacked Vietnamese marks (ệ, ỗ) */
/* a language's own name, wherever it is listed: one neutral stack with the names-only fonts (--font-names above) */
.chip-lang, .lang-pill, .lang-list li, .wall-langs [lang], .lang-grid [lang], .ln[lang] { font-family: var(--font-names); }

/* ---------- 3. Top bar, wordmark (the Sunrise logo: theme/logo.css; this .name styles the plain word shown before the app has drawn), day/night switch ---------- */
.bar { border-block-end: 1px solid transparent; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); gap: var(--s-2); } /* lets the night glow through softly */
.bar.no-brand { border-block-end-color: var(--line); }
.bar-title.brand { gap: 10px; }
.bar-title.brand .name { font-family: "Fraunces FL", Georgia, serif; font-weight: 600; font-size: 1.62rem; letter-spacing: -0.012em; text-transform: lowercase; line-height: 1; }
.fl-switch { flex: none; display: inline-flex; gap: 4px; padding: 2px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); }
.fl-switch button, .fl-toggle { inline-size: 44px; block-size: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--ink-muted); cursor: pointer; padding: 0; }
.fl-switch button[aria-pressed="true"] { background: var(--fl-sel); color: var(--fl-selink); }
.fl-sw-ico { display: inline-flex; }
.lang-pill { border: 1px solid var(--line); }
@media (max-width: 599px) { .bar.no-brand .fl-switch { display: none; } } /* phones: the switch lives on the first screen and Home; Settings has it too */
.fl-toggle { flex: none; display: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.lang-pill > span:not(.i) { white-space: nowrap; }
/* under 420 px the two buttons become one 44x44 toggle (it shows the look it switches to), so the language button can keep the
   language's own name beside its globe (friend remarks 2, 8, 10); under 340 px only the globe is left */
@media (max-width: 419px) {
  .fl-switch { display: none; } .fl-toggle { display: inline-flex; }
  .bar.no-brand .fl-toggle { display: none; }
}
@media (max-width: 374px) { .bar-title.brand .name { font-size: 1.42rem; } }
@media (max-width: 339px) {
  .lang-pill > span:not(.i) { display: none; }
  .lang-pill { min-inline-size: 44px; justify-content: center; }
  .lang-pill .i-down { display: none; }
}

/* ---------- 4. Shared parts ---------- */
.card, .strip, .row, .sign-row, .pp-card, .plan, .report { border-radius: var(--r-lg); }
.btn { border-radius: var(--r-md); border-width: 1px; border-color: var(--line-strong); }
.btn.primary { border: 1px solid #C9581F; color: var(--on-brand); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(140, 50, 5, .18); }
.btn.primary:active { background: var(--brand-strong); }
.chip-lang { border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 86%, transparent); }
.chip-lang[aria-pressed="true"] { background: var(--fl-sel); border-color: var(--fl-sel); color: var(--fl-selink); }
.hero .for { color: var(--ink-muted); }
.hero .for::before { inline-size: 24px; block-size: 6px; border-radius: 3px; background: var(--accent); }
.trust .i, .once .i { color: var(--ink); }
.menu .btn:not(.primary)::before { background-color: var(--ink-muted); } /* orange keeps one job: the filled button */
.bar-fill { background: var(--fl-progress); }
.result.passed .meter .bar-fill { background: var(--good); }
.pill-free { color: var(--ink); background: var(--brand-tint); }
.pp-go { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: .2em; }
.notice::before, .msg.info::before { background-color: var(--ink-muted); }
.jump-btn.here { outline-color: var(--fl-focus); }
.btn.seg.current { border: 2px solid var(--brand); }
.fl-seg-row { grid-template-columns: 1fr 1fr; }
.fl-seg-row > :first-child { grid-column: 1 / -1; }
.fl-tip { display: flex; flex-direction: column; gap: var(--s-1); }
.fl-mark.inline { inline-size: 1.15em; block-size: 1.15em; vertical-align: -0.2em; margin-inline: .05em; }
.fl-tip .fl-tip-ok { align-self: flex-end; inline-size: auto; min-block-size: 44px; padding-inline: var(--s-3); color: var(--ink); }
@media (hover: hover) {
  .btn.primary:not(:disabled):hover { background: #F48A58; border-color: #C9581F; } /* a little lighter; the dark label stays 7:1 */
  .chip-lang[aria-pressed="true"]:hover { background: var(--fl-sel); border-color: var(--fl-sel); }
  .chip-lang:not([aria-pressed="true"], :disabled):hover, .fl-switch button[aria-pressed="false"]:hover, .fl-toggle:hover { background: var(--surface-2); }
  /* the glass card brightens its veil a little (text contrast only rises) and lifts */
  .fl-hero .plan:hover { background: var(--fl-glass-hover); border-color: var(--fl-glass-line); box-shadow: 0 22px 52px rgba(0, 0, 0, .26); }
  .fl-teaser:hover .fl-t-go { text-decoration-thickness: 2px; }
}
@media (prefers-reduced-motion: no-preference) {
  .fl-switch button, .fl-toggle { transition: background-color .3s, color .3s; }
  .fl-hero .plan { transition: background-color .2s, box-shadow .2s; }
  /* day/night: the new look opens as a circle from the switch (top right) instead of a cross-fade, so every pixel is fully
     one look or the other and no grey half-way ever shows (UX re-check n2) */
  ::view-transition-old(root) { animation: none; }
  ::view-transition-new(root) { animation: fl-wipe .4s cubic-bezier(.3, .6, .3, 1); mix-blend-mode: normal; }
  @keyframes fl-wipe { from { clip-path: circle(0 at 88% 3%); } to { clip-path: circle(150% at 88% 3%); } }
}

/* ---------- 5. First screen: photo, wash, bloom, glass price card ---------- */
#app { background: transparent; } /* the page colour and the night glow (body) show through; #app stays unpositioned, so the scene spans the whole window */
html.has-hero .bar { position: relative; background: transparent; } /* above the scene (z-index 2 from styles.css) */
.fl-scene { position: absolute; inset-inline: 0; inset-block-start: 0; block-size: max(680px, 100svh); z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
.fl-photo { position: absolute; inset: 0; background-image: var(--fl-photo); background-size: cover; background-position: var(--fl-photo-pos);
  filter: var(--fl-photo-filter); }
/* the smaller AVIF and WebP copies only where the browser can choose by type: an older iPhone cannot, and there a var() that
   fails would leave no photo at all, so it keeps the JPEG above */
@supports (background-image: image-set(url("x.avif") type("image/avif"))) { .fl-photo { background-image: var(--fl-photo-set); } }
.fl-wash { position: absolute; inset: 0; background: var(--fl-wash); }
/* Night: one shared background layer for EVERY screen (owner 22 Nov: "the page still has life in it"; only the first screen has
   the photo, which covers this layer). A soft warm glow low-left and high-right, fixed to the window: steady, never animated,
   no extra width. Day: --fl-page-glow is transparent, so nothing changes. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70vmax 46vmax at 10% 100%, var(--fl-page-glow), transparent 70%),
    radial-gradient(60vmax 40vmax at 94% 6%, var(--fl-page-glow), transparent 70%); }
.fl-bloom { position: absolute; inset-inline-start: 18%; inset-block-start: 74%; inline-size: 1100px; block-size: 640px; translate: -50% -50%;
  background: radial-gradient(closest-side, var(--fl-bloom) 0%, color-mix(in srgb, var(--fl-bloom) 50%, transparent) 40%, transparent 100%); opacity: var(--fl-bloom-o); }
.fl-hero .split { position: relative; z-index: 1; }
.fl-hero .plan { background: var(--fl-glass); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid var(--fl-glass-line); border-radius: 22px; box-shadow: 0 18px 44px rgba(0, 0, 0, .2); }
.fl-hero .plan .small, .fl-hero .plan .i-chev { color: var(--ink); opacity: .86; }
/* "Already bought? Enter your access code": a quiet text link under the price card, one click to the code box */
.have-code { display: inline-flex; align-items: center; min-block-size: 44px; margin-block-start: var(--s-1); color: var(--ink); font-size: .9rem; font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: .22em; }
.fl-side.has-code { display: flex; flex-direction: column; }
.fl-hero .trust .i { inline-size: 32px; block-size: 32px; }
.fl-hero .trust li { color: var(--ink-muted); }
.fl-hero .trust li > .i { -webkit-mask-size: 18px; mask-size: 18px; background-color: var(--ink); box-shadow: none; }
.fl-hero .trust li { position: relative; }
.fl-hero .trust li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0; inline-size: 32px; block-size: 32px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 30%, var(--bg)); }
.fl-hero .trust li > .i { position: relative; }

/* ---------- 6. The translating sample question (scroll-linked; app sets --x from 60 to 0) ---------- */
.fl-teaser { --x: 60; position: relative; z-index: 1; margin: var(--s-8) 0 0; display: flex; gap: var(--s-6); align-items: center;
  background: var(--fl-tcard); border: 1px solid var(--line); border-radius: 26px; padding: var(--s-6); box-shadow: var(--shadow-2); }
.fl-t-sign { flex: none; }
.fl-t-img.sign-img.square { inline-size: 120px; }
.fl-t-body { flex: 1; min-inline-size: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.fl-t-pills { display: flex; justify-content: space-between; gap: var(--s-2); }
.fl-t-pill { padding: 4px 14px; border-radius: var(--r-pill); background: var(--fl-sel); color: var(--fl-selink); font-weight: 600; font-size: var(--fs-xs); }
.fl-t-pill.ja { font-family: var(--font-ja); }
.fl-teaser.done .fl-t-pill.ja { opacity: 0; }
.fl-t-q { position: relative; display: grid; }
.fl-t-q > p { grid-area: 1 / 1; margin: 0; font-weight: 600; }
.fl-t-local { font-size: 1.32rem; line-height: 1.38; clip-path: inset(0 0 0 calc(var(--x) * 1%)); }
.fl-t-ja { font-family: var(--font-ja); font-size: 1.2rem; line-height: 1.55; clip-path: inset(0 calc((100 - var(--x)) * 1%) 0 0); }
.fl-t-sweep { position: absolute; inset-block: -8px; inset-inline-start: calc(var(--x) * 1%); inline-size: 2px; border-radius: 2px; background: #FFD466; box-shadow: 0 0 14px 4px rgba(255, 190, 80, .5); }
.fl-teaser.done .fl-t-sweep { opacity: 0; }
.fl-t-marks { display: flex; gap: var(--s-3); }
.fl-t-mark { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-sm); color: var(--ink-muted); }
.fl-t-mark .fl-mark { inline-size: 22px; block-size: 22px; color: var(--ink-muted); }
.fl-teaser { cursor: pointer; }
.fl-t-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }
/* one real control; its ::after covers the card, so a click anywhere on the card starts practice */
.fl-t-go { min-block-size: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; font-weight: 600;
  color: var(--brand-ink); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: .22em; cursor: pointer; }
.fl-t-go::after { content: ""; position: absolute; inset: 0; border-radius: 26px; }
.fl-t-go:focus-visible { outline: 0; } .fl-t-go:focus-visible::after { outline: 3px solid var(--fl-focus); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .fl-t-local, .fl-t-ja { transition: clip-path .35s ease-out; }
  .fl-t-sweep { transition: inset-inline-start .35s ease-out, opacity .6s; }
  .fl-t-pill.ja { transition: opacity .6s; }
}

/* ---------- 7. The row of real app screens, under a line of lane dashes ---------- */
.fl-screens { position: relative; z-index: 1; margin-block-start: var(--s-8); overflow-x: clip; }
.fl-phones:focus-visible { outline: 3px solid var(--fl-focus); outline-offset: 4px; border-radius: 12px; }
.fl-lanes { display: flex; justify-content: center; gap: 44px; margin-block-end: var(--s-7); }
.fl-lanes i { inline-size: 74px; block-size: 7px; border-radius: 4px; background: var(--accent); opacity: .5; flex: none; }
.fl-phones { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: var(--s-4); }
.fl-phone { --fl-frame: 184px; display: flex; flex-direction: column; align-items: center; gap: var(--s-3); flex: none; inline-size: var(--fl-frame); }
.fl-phone-frame { display: block; inline-size: var(--fl-frame); aspect-ratio: 184 / 378; border-radius: 28px; background: #0B0B0D; padding: 6px; box-shadow: 0 20px 44px rgba(0, 0, 0, .3); }
.fl-shot { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: top; border-radius: 22px; background: var(--bg); }
.fl-phone-cap { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-muted); text-align: center; max-inline-size: 100%; text-wrap: balance; } /* wraps under its picture (n3) */

/* ---------- 8. The main-button glare (friend remark 6): one slow, soft highlight sweeps across a filled button, once when it first
   appears (class glare-once, set by theme.js glare) and on hover or keyboard focus. No pulse, no loop; off under "reduce motion". ---------- */
.btn.primary { background-image: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .26) 50%, transparent 62%); background-size: 250% 100%;
  background-position: 130% 0; background-repeat: no-repeat; }
@keyframes fl-glare { from { background-position: 130% 0; } to { background-position: -30% 0; } }
@media (prefers-reduced-motion: no-preference) {
  .btn.primary.glare-once, .btn.primary:focus-visible { animation: fl-glare 1.8s ease-in-out 1 both; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .btn.primary:not(:disabled):hover { background-image: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .26) 50%, transparent 62%); animation: fl-glare 1.8s ease-in-out 1 both; }
}
.btn.primary:focus-visible { outline: 3px solid transparent; /* kept for Windows high contrast */
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .45), 0 0 0 3px var(--ink), 0 0 0 6px var(--bg); }

/* ---------- 9. Arrival on the first screen: picture and light first, then the words in order (once per visit) ---------- */
.fl-arriving .fl-photo, .fl-arriving .fl-bloom { opacity: 0; scale: 1.04; }
.fl-arriving .fl-a, .fl-arriving .bar > :not(h1) { opacity: 0; translate: 0 12px; }
.fl-arriving.fl-in .fl-photo { opacity: 1; scale: 1; transition: opacity 1.3s ease, scale 2.4s cubic-bezier(.2, .6, .2, 1); }
.fl-arriving.fl-in .fl-bloom { opacity: var(--fl-bloom-o); scale: 1; transition: opacity 1.6s ease .2s, scale 2.4s ease; }
.fl-arriving.fl-in .fl-a, .fl-arriving.fl-in .bar > :not(h1) { opacity: 1; translate: 0 0; transition: opacity .8s ease var(--d, .3s), translate 1s cubic-bezier(.2, .7, .2, 1) var(--d, .3s); }
.fl-a:nth-child(1) { --d: .35s; }
.hero .for.fl-a { --d: .5s; }
.hero .lead.fl-a { --d: .8s; }
.cta.fl-a { --d: .95s; }
.trust.fl-a { --d: 1.1s; }
.fl-side.fl-a { --d: 1.2s; }

/* ---------- 10. Questions: Japan's marks above the words (Theme.ANSWER_MARKS) ---------- */
.btn.choice { border-width: 1.5px; }
.btn.choice.has-mark { align-items: center; text-align: center; padding-inline: 44px; gap: 2px; }
.fl-mark { display: inline-flex; inline-size: 38px; block-size: 38px; color: var(--ink); }
.fl-mark svg { inline-size: 100%; block-size: 100%; }
.btn.choice.has-mark > span:not(.fl-mark) { font-size: var(--fs-md); }
/* the corner ring would be a second circle next to ○: it shows only once there is something to say (chosen, right, wrong) */
.btn.choice.has-mark:not(.chosen, .is-answer)::after { display: none; }
.btn.choice:disabled:not(.is-answer, .chosen) .fl-mark { color: var(--ink-muted); }
.feedback { border-radius: var(--r-md); }
/* Softer right / wrong / alert colours (friend remark 9): the tokens in section 1 are lower in saturation, the boxes are tinted (not
   loud fills) with a clear border, an icon and a word, so colour is never the only sign. The chosen answer's border uses --choice-line
   (3:1 or better on the card in day and night). */
.btn.choice.chosen { border-color: var(--choice-line); }
.btn.choice.chosen::after { border-color: var(--choice-line); background: radial-gradient(circle, var(--choice-line) 0 5px, transparent 5.5px); }

/* ---------- 11. Laptops (from 1024 px) ---------- */
@media (min-width: 1024px) {
  .bar { min-block-size: 80px; }
  .screen.has-hero { max-inline-size: none; }
  html.has-hero .screen { padding-block-start: var(--s-2); }
  .fl-hero { min-block-size: calc(100svh - 96px); display: flex; flex-direction: column; justify-content: center; }
  .fl-hero .split { grid-template-columns: minmax(0, 600px) minmax(0, 1fr); align-items: end; gap: var(--s-7); }
  .fl-hero .hero { padding-block: var(--s-6) 0; gap: var(--s-4); }
  .fl-hero .hero .for { font-size: .86rem; }
  .fl-hero .hero h2 { font-variation-settings: "opsz" 100; }
  .fl-hero .hero h2 { font-size: 3.3rem; line-height: 1.06; letter-spacing: -0.018em; }
  html:not([lang="en"], [lang="vi"], [lang="tl"], [lang="id"]) .fl-hero .hero h2 { font-size: 2.3rem; line-height: 1.4; letter-spacing: 0; }
  html[lang="vi"] .fl-hero .hero h2 { line-height: 1.2; }
  .fl-hero .hero .lead { font-size: 1.08rem; }
  .fl-hero .cta { align-items: flex-start; margin-block-start: var(--s-3); }
  .fl-hero .cta .btn.primary { inline-size: auto; min-inline-size: 340px; min-block-size: 66px; border-radius: 22px; font-size: 1.1rem; padding-inline: var(--s-7); }
  .fl-hero .cta .free, .fl-hero .soon-line { text-align: start; font-size: .82rem; color: var(--ink-muted); margin-block-start: var(--s-2); }
  .fl-hero .trust { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-5); margin-block-start: var(--s-3); }
  .fl-hero .trust li { font-size: .76rem; line-height: 1.45; }
  .fl-hero .fl-side { align-self: end; align-items: flex-end; }
  .fl-hero .plan { inline-size: min(380px, 100%); padding: var(--s-5) var(--s-4) var(--s-5) var(--s-5); margin-block-end: var(--s-8); }
  .plan-main.two-prices.two-prices .plan-price { flex-wrap: nowrap; } /* the label wraps beside its price, as in the mock (first screen and Home) */
  .fl-hero .plan-price { font-size: .82rem; }
  .fl-hero .plan-price bdi { font-size: 1.24rem; }
  .fl-hero .plan .small { font-size: .7rem; margin-block-start: var(--s-1); }
  html:not([lang="en"], [lang="vi"], [lang="tl"], [lang="id"]) .fl-hero .trust li { font-size: .82rem; } /* small text in non-Latin scripts stays readable */
  html:not([lang="en"], [lang="vi"], [lang="tl"], [lang="id"]) .fl-hero .plan .small { font-size: .82rem; }
  .fl-hero .hero .lead { max-inline-size: 31em; } /* keeps the lead over the strong part of the wash (UX check m1) */
  .fl-teaser { margin: 120px auto 0; inline-size: min(900px, 100%); padding: 34px 40px; gap: 34px; }
  .fl-t-img.sign-img.square { inline-size: 138px; }
  .fl-t-local { font-size: 1.55rem; }
  .fl-t-ja { font-size: 1.4rem; }
  .fl-screens { margin-block-start: 110px; }
  .fl-phone:nth-child(even) { margin-block-start: 44px; }
  .menu .btn.primary { min-block-size: 60px; }
  .intro h2 { font-size: 2.3rem; line-height: 1.12; }
  .btn.choice.has-mark { min-block-size: 112px; }
  .fl-mark { inline-size: 44px; block-size: 44px; }
}

/* the first screen at real laptop WINDOW heights (650 to 820 px: browser bars and the dock take the rest), UX check B1 */
@media (min-width: 1024px) and (max-height: 820px) {
  .bar { min-block-size: 68px; }
  .fl-hero { min-block-size: calc(100svh - 84px); }
  .fl-hero .split { align-items: start; }
  /* the price card sits level with Start (its centre on the button, owner 22 Nov: lower, so it no longer covers the picture),
     raised only as far as needed to stay inside a short window; non-Latin scripts make the card about 320 px tall; 209 = the English card plus its "Already bought?" line */
  .fl-hero .fl-side { align-self: start; margin-block-start: min(392px, calc(100svh - 92px - var(--fl-card-h, 209px))); }
  html:not([lang="en"], [lang="vi"], [lang="tl"], [lang="id"]) .fl-hero .fl-side { --fl-card-h: 320px; }
  .fl-hero .plan { margin-block-end: 0; }
}

/* ---------- 12. Phones and tablets (under 1024 px) ---------- */
@media (max-width: 1023px) {
  .fl-scene { block-size: 760px; }
  .fl-photo { background-image: var(--fl-photo-s); }
  @supports (background-image: image-set(url("x.avif") type("image/avif"))) { .fl-photo { background-image: var(--fl-photo-set-s); } }
  .fl-wash { background: var(--fl-wash-phone); }
  .fl-bloom { inset-inline-start: 50%; inset-block-start: 62%; inline-size: 760px; block-size: 520px; }
  .fl-hero .hero h2 { font-size: 1.95rem; line-height: 1.12; }
  html:not([lang="en"], [lang="vi"], [lang="tl"], [lang="id"]) .fl-hero .hero h2 { font-size: 1.55rem; line-height: 1.45; }
  html[lang="vi"] .fl-hero .hero h2 { line-height: 1.24; }
  .fl-hero .cta .btn.primary { min-block-size: 58px; border-radius: 18px; font-size: 1.05rem; }
  .fl-hero .plan { margin-block-start: var(--s-2); }
  .fl-teaser { flex-direction: column; align-items: stretch; padding: var(--s-5); gap: var(--s-4); }
  .fl-t-sign { align-self: center; }
  .fl-t-img.sign-img.square { inline-size: 96px; }
    .fl-lanes { gap: 20px; overflow: hidden; }
  .fl-lanes i { inline-size: 40px; block-size: 5px; }
  /* the row runs edge to edge but rests with its first picture inside the page padding (UX re-check n1); --fl-edge = .screen padding */
  .fl-screens { --fl-edge: var(--s-4); margin-inline: calc(-1 * var(--fl-edge)); }
  .fl-phones { overflow-x: auto; scroll-snap-type: x mandatory; justify-content: flex-start; padding-block-end: var(--s-3); padding-inline: var(--fl-edge); scroll-padding-inline: var(--fl-edge); }
  .fl-phone { --fl-frame: 150px; scroll-snap-align: start; }
  .fl-phone-frame { border-radius: 24px; padding: 5px; }
  .fl-shot { border-radius: 19px; }
}
@media (max-width: 340px) { .fl-screens { --fl-edge: var(--s-3); } } /* the page padding is 12 px here (styles.css) */
