/* ===========================================================================
   Kwezr — the public landing page (September 2026).

   One stylesheet, no build step. The tokens are the app's DESIGN_SYSTEM.md as
   the web app already spells them (webapp-ui/src/styles/tokens.css): same
   names, same values, so the landing page, the web app and the mobile app are
   one palette, one type scale, one set of radii (12 / 20 / 999, with 24 for
   the closing sheet and 30 for the floating nav — the two architectural
   exceptions the app allows itself).

   Conventions
   • Components are `lp-<block>`, parts `lp-<block>__<part>`, states `is-*`.
   • No gradients paint colour. The only `linear-gradient()` calls are alpha
     masks (a fade on a screenshot, the shimmer on the active build step).
   • Words before glyphs. A glyph appears only where it carries meaning on its
     own: the drop target, the "yes" cells of the comparison, the theme and
     language controls.
   • Logical properties throughout; Arabic RTL needs no overrides except the
     type metrics under `:lang(ar)`.
   • `static/landing/css/kwezr.css` is the older kit that /p, /r and /plan
     still use. Nothing here depends on it.
   =========================================================================== */

/* ── Fonts: Montserrat (Latin) + Almarai (Arabic), subset, self-hosted ───── */
@font-face { font-family: 'Montserrat'; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-400.ede9ae0e9e1c.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-500.d924d584b51a.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-700.8bb0fd31efcb.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-800.c48b9cc50abe.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Almarai'; font-weight: 400; font-display: swap; src: url("../fonts/almarai-400.17a1122730d2.woff2") format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Almarai'; font-weight: 700; font-display: swap; src: url("../fonts/almarai-700.0a96eac20cd7.woff2") format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Almarai'; font-weight: 800; font-display: swap; src: url("../fonts/almarai-800.e2ce50ebc1d5.woff2") format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --t-primary: #2f8cff;
  --t-on-primary: #ffffff;
  --t-success: #22c55e;
  --t-warning: #f59e0b;
  --t-error: #ef4444;
  /* templates/landing/_icons.html tints its success glyph with the older kit's token name. */
  --k-success: var(--t-success);

  --t-text-1: #0b1220;
  --t-text-2: #334155;
  --t-text-3: #475569;
  --t-bg: #f7f9fc;
  --t-surface: #ffffff;
  --t-surface-variant: #f1f5fa;
  --t-surface-container: #fafbff;
  --t-border: #e5eaf2;
  --t-border-variant: #d8e0ec;
  --t-divider: #e5eaf2;
  --t-hover: rgb(47 140 255 / .04);
  --t-pressed: rgb(47 140 255 / .12);
  --t-shadow: rgb(17 23 42 / .08);

  --t-font: 'Montserrat', 'Almarai', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-icon: 12px;
  --radius-card: 20px;
  --radius-pill: 999px;
  --radius-sheet: 24px;
  --radius-nav: 30px;

  --dur-micro: 150ms;
  --dur-default: 300ms;
  --dur-entrance: 500ms;
  --ease: cubic-bezier(.215, .61, .355, 1);
  --glass-blur: 18px;

  /* the app's signature shadows */
  --shadow-card: 0 10px 24px var(--t-shadow);
  --shadow-nav: 0 14px 32px rgb(47 140 255 / .12), 0 8px 18px var(--t-shadow);
  --shadow-fab: 0 4px 10px rgb(47 140 255 / .3);
  --shadow-device: drop-shadow(0 18px 36px rgb(47 140 255 / .16)) drop-shadow(0 6px 14px rgb(17 23 42 / .12));

  color-scheme: light;
}
:root:lang(ar) { --t-font: 'Almarai', 'Montserrat', system-ui, -apple-system, sans-serif; }

/* Dark: declared twice on purpose — once for the system preference (skipped
   when the visitor chose light) and once for the explicit toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --t-text-1: #f8fafc; --t-text-2: #cbd5e1; --t-text-3: #94a3b8;
    --t-bg: #07111f; --t-surface: #0e1a2b; --t-surface-variant: #14233a; --t-surface-container: #1a2b45;
    --t-border: #263a56; --t-border-variant: #345077; --t-divider: #1f314b;
    --t-hover: rgb(47 140 255 / .08); --t-pressed: rgb(47 140 255 / .16); --t-shadow: rgb(0 0 0 / .4);
    --shadow-device: drop-shadow(0 0 1px rgb(255 255 255 / .5)) drop-shadow(0 18px 36px rgb(0 0 0 / .55));
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --t-text-1: #f8fafc; --t-text-2: #cbd5e1; --t-text-3: #94a3b8;
  --t-bg: #07111f; --t-surface: #0e1a2b; --t-surface-variant: #14233a; --t-surface-container: #1a2b45;
  --t-border: #263a56; --t-border-variant: #345077; --t-divider: #1f314b;
  --t-hover: rgb(47 140 255 / .08); --t-pressed: rgb(47 140 255 / .16); --t-shadow: rgb(0 0 0 / .4);
  --shadow-device: drop-shadow(0 0 1px rgb(255 255 255 / .5)) drop-shadow(0 18px 36px rgb(0 0 0 / .55));
  color-scheme: dark;
}

/* ── Base ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--t-bg);
  color: var(--t-text-1);
  font: 500 16px/1.6 var(--t-font);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; }
p, h1, h2, h3, h4, ul, ol, figure { margin: 0; }
h1, h2, h3 { letter-spacing: 0; text-wrap: balance; }
a { color: inherit; }
button { font: inherit; letter-spacing: 0; color: inherit; }
[hidden] { display: none !important; }
:where(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--t-primary); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

.lp-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lp-skip { position: absolute; inset-inline-start: 12px; top: -100px; z-index: 200; padding: 12px 18px; border-radius: var(--radius-icon); background: var(--t-surface); color: var(--t-text-1); box-shadow: var(--shadow-card); font-weight: 600; text-decoration: none; }
.lp-skip:focus { top: 12px; }
[dir="rtl"] .lp-flip { transform: scaleX(-1); }

/* ── Type ────────────────────────────────────────────────────────────────── */
.lp-display { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; line-height: .98; }
:lang(ar) .lp-display { font-size: clamp(2.1rem, 5.2vw, 3.5rem); line-height: 1.25; }
.lp-h2 { font-size: clamp(1.7rem, 3.2vw, 2.25rem); font-weight: 700; line-height: 1.1; }
:lang(ar) .lp-h2 { line-height: 1.35; }
.lp-h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.lp-lead { color: var(--t-text-2); font-size: clamp(1rem, 1.4vw, 1.125rem); line-height: 1.6; }
.lp-em { color: var(--t-primary); }
.lp-muted { color: var(--t-text-3); font-size: .875rem; }
.lp-index { display: inline-flex; align-items: center; gap: 10px; color: var(--t-text-3); font-size: .75rem; font-weight: 600; }
.lp-index b { color: var(--t-primary); font-weight: 800; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.lp-wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.lp-section { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--t-divider); scroll-margin-top: 84px; }
.lp-section__head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.lp-section__head .lp-lead { max-width: 60ch; }

/* ── Buttons: the app's AppButton — 48px tall, radius 20 ─────────────────── */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border: 1px solid transparent; border-radius: var(--radius-card);
  font-size: .875rem; font-weight: 600; line-height: 1.2; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform var(--dur-micro) var(--ease), background-color var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease), box-shadow var(--dur-micro) var(--ease);
}
.lp-btn--primary { background: var(--t-primary); color: var(--t-on-primary); border-color: var(--t-primary); box-shadow: var(--shadow-fab); }
.lp-btn--primary:hover { transform: translateY(-1px); }
.lp-btn--primary:active { transform: scale(.98); }
.lp-btn--secondary { background: var(--t-surface); color: var(--t-text-1); border-color: var(--t-border); }
.lp-btn--secondary:hover { border-color: var(--t-border-variant); background: var(--t-surface-container); }
.lp-btn--ghost { background: transparent; color: var(--t-primary); border-color: color-mix(in srgb, var(--t-primary) 18%, transparent); }
.lp-btn--ghost:hover { background: var(--t-hover); }
.lp-btn--quiet { min-height: 44px; padding: 10px 14px; background: transparent; color: var(--t-text-2); }
.lp-btn--quiet:hover { background: var(--t-hover); color: var(--t-text-1); }
.lp-btn--sm { min-height: 44px; padding: 10px 18px; }
.lp-btn:disabled { opacity: .6; cursor: default; transform: none; }

/* ── Chips ───────────────────────────────────────────────────────────────── */
.lp-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--t-primary) 12%, var(--t-surface));
  border: 1px solid color-mix(in srgb, var(--t-primary) 18%, transparent);
  color: var(--t-primary); font-size: .75rem; font-weight: 600; line-height: 1.2;
}
.lp-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--t-success); }
.lp-chip--neutral { background: var(--t-surface-variant); border-color: var(--t-border); color: var(--t-text-2); }
.lp-chip--caps { text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; }
:lang(ar) .lp-chip--caps { text-transform: none; letter-spacing: 0; font-size: .75rem; }

/* ── Nav: the app's floating bar — 62px, radius 30, glass ────────────────── */
.lp-nav { position: fixed; top: 12px; inset-inline: 0; z-index: 100; padding-inline: 12px; pointer-events: none; }
.lp-nav__bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: 6px;
  max-width: 1120px; height: 62px; margin-inline: auto;
  padding-inline: 18px 8px;
  border-radius: var(--radius-nav);
  background: color-mix(in srgb, var(--t-surface) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--t-border) 58%, transparent);
  box-shadow: var(--shadow-nav);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  transition: box-shadow var(--dur-default) var(--ease);
}
.lp-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--t-text-1); font-size: 1.1rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.lp-brand img { width: 32px; height: 32px; border-radius: 9px; }
.lp-nav__links { display: none; gap: 2px; margin-inline: auto; }
.lp-nav__links a { padding: 10px 12px; border-radius: var(--radius-icon); color: var(--t-text-2); font-size: .875rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.lp-nav__links a:hover { background: var(--t-hover); color: var(--t-text-1); }
.lp-nav__actions { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.lp-nav__actions .lp-btn--quiet { padding-inline: 12px; font-size: .8125rem; }
.lp-nav__cta { margin-inline-start: 6px; min-height: 44px; padding: 10px 18px; }
@media (min-width: 1000px) { .lp-nav__links { display: flex; } .lp-nav__actions { margin-inline-start: 0; } }
@media (max-width: 560px) { .lp-nav__cta { display: none; } .lp-nav__bar { height: 56px; padding-inline: 14px 6px; } }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.lp-hero { padding-top: calc(74px + clamp(40px, 7vw, 88px)); padding-bottom: clamp(48px, 6vw, 80px); text-align: center; }
.lp-hero__copy { display: flex; flex-direction: column; align-items: center; gap: 22px; max-width: 840px; margin-inline: auto; }
.lp-hero h1 { max-width: 21ch; }
:lang(ar) .lp-hero h1 { max-width: 26ch; }
.lp-hero .lp-lead { max-width: 58ch; }
.lp-stage { max-width: 760px; margin: clamp(32px, 5vw, 56px) auto 0; text-align: start; }
.lp-hero__proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 28px auto 0; padding: 0; list-style: none; color: var(--t-text-2); font-size: .875rem; }
.lp-hero__proof li { display: flex; align-items: flex-start; gap: 10px; text-align: start; }
.lp-hero__proof li::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin-top: .55em; border-radius: 50%; background: var(--t-primary); opacity: .6; }
.lp-hero__stores { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 12px; margin-top: 26px; }
.lp-hero__stores-label { flex: 0 0 100%; color: var(--t-text-3); font-size: .875rem; }
.lp-hero__note { margin-top: 12px; color: var(--t-text-3); font-size: .75rem; }

/* store links: secondary buttons with the store's mark */
.lp-store { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 18px; border: 1px solid var(--t-border); border-radius: var(--radius-card); background: var(--t-surface); color: var(--t-text-1); text-decoration: none; text-align: start; transition: border-color var(--dur-micro) var(--ease), background-color var(--dur-micro) var(--ease); }
.lp-store:hover { border-color: var(--t-border-variant); background: var(--t-surface-container); }
.lp-store svg { flex: 0 0 auto; }
.lp-store small { display: block; color: var(--t-text-3); font-size: .68rem; font-weight: 500; line-height: 1.1; }
.lp-store strong { display: block; font-size: .875rem; font-weight: 700; line-height: 1.2; }

/* ── The card ────────────────────────────────────────────────────────────── */
.lp-card { background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.lp-try { display: flex; flex-direction: column; gap: 20px; padding: clamp(18px, 3vw, 28px); scroll-margin-top: 92px; }
.lp-try__head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.lp-try__title { font-size: 1.125rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.lp-try__sub { color: var(--t-text-2); font-size: .875rem; }
.lp-try__stage { display: flex; flex-direction: column; gap: 16px; }
.lp-try__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-try__actions--fill > .lp-btn { flex: 1 1 auto; }
.lp-try__fine { display: flex; align-items: flex-start; gap: 8px; color: var(--t-text-3); font-size: .75rem; line-height: 1.5; }
.lp-try__fine svg { flex: 0 0 auto; margin-top: 2px; }
.lp-try__error { color: var(--t-text-1); font-size: .9375rem; line-height: 1.55; }

/* the drop target: the app's upload file card, given room */
.lp-drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 210px; padding: 24px 16px;
  border: 1px solid var(--t-border); border-radius: var(--radius-card);
  background: var(--t-surface-variant); text-align: center; cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease), box-shadow var(--dur-micro) var(--ease);
}
.lp-drop:hover, .lp-drop:focus-within { border-color: var(--t-primary); background: color-mix(in srgb, var(--t-primary) 4%, var(--t-surface-variant)); }
.lp-drop.is-over { border-color: var(--t-primary); box-shadow: inset 0 0 0 1px var(--t-primary); background: color-mix(in srgb, var(--t-primary) 8%, var(--t-surface)); }
.lp-drop.is-calling { border-color: var(--t-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--t-primary) 22%, transparent); }
.lp-drop__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lp-tile { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-icon); background: var(--t-surface); color: var(--t-primary); box-shadow: 0 1px 2px var(--t-shadow); }
.lp-drop__title { margin-top: 8px; font-size: 1rem; font-weight: 700; }
.lp-drop__sub { color: var(--t-text-3); font-size: .875rem; }
.lp-drop__formats { max-width: 40ch; margin-top: 8px; color: var(--t-text-3); font-size: .75rem; line-height: 1.5; }

/* the build steps: the app's AiProcessingView */
.lp-steps { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.lp-steps li { display: flex; align-items: center; gap: 12px; padding: 6px 0; color: var(--t-text-2); font-size: .875rem; font-weight: 600; opacity: .32; transition: opacity var(--dur-default) var(--ease); }
.lp-steps__tile { position: relative; overflow: hidden; display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--radius-icon); background: var(--t-surface-variant); color: var(--t-text-3); font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.lp-steps li.is-active { opacity: 1; color: var(--t-text-1); }
.lp-steps li.is-active .lp-steps__tile { background: var(--t-primary); color: var(--t-on-primary); }
.lp-steps li.is-active .lp-steps__tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .35) 50%, transparent 70%); background-size: 200% 100%; animation: lp-shimmer 1.4s linear infinite; }
.lp-steps li.is-done { opacity: 1; }
.lp-steps li.is-done .lp-steps__tile { background: color-mix(in srgb, var(--t-success) 14%, var(--t-surface)); color: var(--t-success); }
@keyframes lp-shimmer { 0% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
.lp-wait { display: flex; align-items: center; gap: 12px; color: var(--t-text-3); font-size: .8125rem; }
.lp-wait__clock { margin-inline-start: auto; font-variant-numeric: tabular-nums; direction: ltr; }
.lp-filechip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 8px 12px; border-radius: var(--radius-icon); background: var(--t-surface-variant); color: var(--t-text-2); font-size: .8125rem; font-weight: 600; overflow-wrap: anywhere; }

/* the quiz: the app's quiz screen */
.lp-quiz__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--t-text-3); font-size: .75rem; font-weight: 600; }
.lp-quiz__top b { color: var(--t-primary); font-weight: 700; font-variant-numeric: tabular-nums; }
.lp-segbar { display: flex; gap: 4px; height: 6px; }
.lp-segbar span { position: relative; flex: 1; overflow: hidden; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--t-primary) 15%, transparent); }
.lp-segbar span.is-done::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--t-primary); }
.lp-question { padding: 20px; border-radius: var(--radius-card); background: var(--t-surface-variant); font-size: 1.0625rem; font-weight: 600; line-height: 1.5; text-wrap: pretty; outline: none; }
.lp-options { display: grid; gap: 10px; }
.lp-option {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 12px 14px;
  border: 1px solid var(--t-border); border-radius: var(--radius-card);
  background: var(--t-surface); color: var(--t-text-1);
  font-size: .9375rem; font-weight: 500; line-height: 1.4; text-align: start; cursor: pointer;
  transition: border-color var(--dur-micro) var(--ease), background-color var(--dur-micro) var(--ease), transform var(--dur-micro) var(--ease);
}
.lp-option:hover:not(:disabled) { border-color: var(--t-border-variant); background: var(--t-surface-container); }
.lp-option:active:not(:disabled) { transform: scale(.99); }
.lp-option:disabled { cursor: default; }
.lp-option__key { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-icon); background: var(--t-surface-variant); color: var(--t-text-2); font-size: .8125rem; font-weight: 700; direction: ltr; }
.lp-option__text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.lp-option__mark { flex: 0 0 auto; display: none; color: var(--t-success); }
.lp-option.is-selected { border-color: var(--t-primary); box-shadow: inset 0 0 0 .5px var(--t-primary); background: var(--t-hover); }
.lp-option.is-selected .lp-option__key { background: var(--t-primary); color: var(--t-on-primary); }
.lp-option.is-correct { border-color: var(--t-success); background: color-mix(in srgb, var(--t-success) 10%, var(--t-surface)); }
.lp-option.is-correct .lp-option__key { background: var(--t-success); color: #fff; }
.lp-option.is-correct .lp-option__mark { display: block; }
.lp-option.is-wrong { border-color: var(--t-error); background: color-mix(in srgb, var(--t-error) 8%, var(--t-surface)); }
.lp-option.is-wrong .lp-option__key { background: var(--t-error); color: #fff; }
.lp-verdict { padding: 14px 16px; border-radius: var(--radius-card); background: color-mix(in srgb, var(--t-success) 14%, var(--t-surface)); }
.lp-verdict.is-wrong { background: color-mix(in srgb, var(--t-error) 10%, var(--t-surface)); }
.lp-verdict strong { display: block; color: var(--t-success); font-size: .9375rem; font-weight: 800; }
.lp-verdict.is-wrong strong { color: var(--t-error); }
.lp-verdict p { margin-top: 6px; color: var(--t-text-2); font-size: .875rem; line-height: 1.55; }
.lp-page { display: inline-flex; align-items: center; margin-top: 10px; padding: 4px 10px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--t-primary) 12%, transparent); color: var(--t-primary); font-size: .75rem; font-weight: 700; }

/* the result: the app's summary tiles */
.lp-score { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; line-height: 1.15; }
.lp-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 520px) { .lp-tiles { grid-template-columns: repeat(2, 1fr); } }
.lp-stat { padding: 14px 10px; border-radius: var(--radius-card); background: var(--t-surface-variant); text-align: center; }
.lp-stat b { display: block; color: var(--t-text-1); font-size: 1.375rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lp-stat span { display: block; margin-top: 4px; color: var(--t-text-3); font-size: .75rem; font-weight: 600; }
.lp-stat--score b { color: var(--t-primary); }
.lp-stat--good b { color: var(--t-success); }
.lp-stat--miss b { color: var(--t-error); }
.lp-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lp-topics li { padding: 6px 12px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--t-primary) 9%, var(--t-surface)); border: 1px solid color-mix(in srgb, var(--t-primary) 18%, transparent); color: var(--t-text-1); font-size: .8125rem; font-weight: 600; }
.lp-keep { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--radius-card); background: color-mix(in srgb, var(--t-primary) 8%, var(--t-surface)); border: 1px solid color-mix(in srgb, var(--t-primary) 16%, transparent); }
.lp-keep strong { font-size: .9375rem; font-weight: 700; }
.lp-keep p { color: var(--t-text-2); font-size: .875rem; }

/* ── Trust row ───────────────────────────────────────────────────────────── */
.lp-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 32px; margin: 0; padding: 0; list-style: none; }
.lp-trust li { padding-top: 16px; border-top: 1px solid var(--t-border); }
.lp-trust strong { display: block; font-size: 1rem; font-weight: 700; }
.lp-trust span { display: block; margin-top: 6px; color: var(--t-text-3); font-size: .875rem; line-height: 1.55; }

/* ── How it works ────────────────────────────────────────────────────────── */
.lp-how { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .lp-how { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.lp-how li { padding-top: 20px; border-top: 1px solid var(--t-border); }
.lp-how__n { display: block; color: var(--t-primary); font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.lp-how h3 { margin-top: 14px; font-size: 1.25rem; font-weight: 700; }
.lp-how p { margin-top: 8px; color: var(--t-text-2); font-size: .9375rem; line-height: 1.6; }

/* ── Showcase rows ───────────────────────────────────────────────────────── */
.lp-show { display: grid; gap: clamp(48px, 8vw, 112px); }
.lp-row { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; }
@media (min-width: 900px) {
  .lp-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .lp-row--flip .lp-row__media { order: -1; }
}
.lp-row__media { display: flex; justify-content: center; }
.lp-row__media img { width: min(100%, 320px); height: auto; filter: var(--shadow-device); -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 99%); mask-image: linear-gradient(to bottom, #000 84%, transparent 99%); }
.lp-row__copy { display: grid; gap: 14px; }
.lp-row__copy .lp-h2 { max-width: 22ch; }
.lp-points { display: grid; margin: 8px 0 0; padding: 0; list-style: none; }
.lp-points li { padding: 12px 0; border-top: 1px solid var(--t-border); color: var(--t-text-2); font-size: .9375rem; line-height: 1.5; }
.lp-points li:last-child { border-bottom: 1px solid var(--t-border); }
.lp-points li strong { color: var(--t-text-1); }

/* ── Majors ──────────────────────────────────────────────────────────────── */
.lp-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lp-tags li { padding: 10px 16px; border: 1px solid var(--t-border); border-radius: var(--radius-pill); background: var(--t-surface); font-size: .875rem; font-weight: 600; }

/* ── Comparison ──────────────────────────────────────────────────────────── */
.lp-compare { width: 100%; border-collapse: collapse; }
.lp-compare th, .lp-compare td { padding: 16px 12px; border-top: 1px solid var(--t-border); text-align: start; vertical-align: top; font-size: .9375rem; }
.lp-compare thead th { padding-top: 0; border-top: 0; color: var(--t-text-3); font-size: .75rem; font-weight: 600; }
.lp-compare thead th.is-us { color: var(--t-primary); }
.lp-compare tbody th { width: 26%; color: var(--t-text-1); font-weight: 600; }
.lp-compare tbody tr:last-child th, .lp-compare tbody tr:last-child td { border-bottom: 1px solid var(--t-border); }
.lp-compare .is-them { color: var(--t-text-3); }
.lp-compare td.is-us { color: var(--t-text-1); font-weight: 600; background: color-mix(in srgb, var(--t-primary) 5%, transparent); }
.lp-cell { display: flex; align-items: flex-start; gap: 10px; }
.lp-dash { flex: 0 0 auto; width: 14px; height: 2px; margin-top: .6em; border-radius: 1px; background: var(--t-border-variant); }
.lp-cell svg { flex: 0 0 auto; margin-top: 2px; color: var(--t-success); }
@media (max-width: 700px) {
  .lp-compare thead { display: none; }
  .lp-compare tr { display: grid; gap: 8px; padding: 16px 0; border-top: 1px solid var(--t-border); }
  .lp-compare tbody tr:last-child { border-bottom: 1px solid var(--t-border); }
  .lp-compare th, .lp-compare td, .lp-compare tbody th, .lp-compare tbody tr:last-child th, .lp-compare tbody tr:last-child td { width: auto; padding: 0; border: 0; }
  .lp-compare td.is-us { background: none; }
  .lp-compare td::before { content: attr(data-col); display: block; margin-bottom: 2px; color: var(--t-text-3); font-size: .75rem; font-weight: 600; }
  .lp-compare td.is-us::before { color: var(--t-primary); }
}

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.lp-plans { display: grid; gap: 20px; }
@media (min-width: 860px) { .lp-plans { grid-template-columns: 1fr 1fr; } }
.lp-plan { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--t-border); border-radius: var(--radius-card); background: var(--t-surface); }
.lp-plan--pro { background: var(--t-surface-variant); border-color: transparent; }
.lp-plan__name { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.lp-plan__price { color: var(--t-text-3); font-size: .875rem; }
.lp-plan__tag { color: var(--t-text-2); font-size: .9375rem; }
.lp-plan .lp-points { margin: 6px 0 12px; }
.lp-plan .lp-points li { padding: 10px 0; font-size: .875rem; }
.lp-plan .lp-btn { align-self: flex-start; }
.lp-plan__note { color: var(--t-text-3); font-size: .75rem; line-height: 1.5; }

/* ── Paired blocks (referral · your files) ───────────────────────────────── */
.lp-pair { display: grid; gap: 24px; }
@media (min-width: 900px) { .lp-pair { grid-template-columns: 1fr 1fr; gap: 32px; } }
.lp-pair > div { display: grid; gap: 14px; align-content: start; padding: 28px; border: 1px solid var(--t-border); border-radius: var(--radius-card); background: var(--t-surface); }
.lp-pair .lp-h3 { font-size: 1.375rem; }
.lp-pair p { color: var(--t-text-2); font-size: .9375rem; line-height: 1.6; }
.lp-pair a { color: var(--t-primary); font-weight: 600; text-decoration: none; }
.lp-pair a:hover { text-decoration: underline; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.lp-faq { max-width: 820px; }
.lp-faq details { border-top: 1px solid var(--t-border); }
.lp-faq details:last-child { border-bottom: 1px solid var(--t-border); }
.lp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 16px 0; font-size: 1rem; font-weight: 600; cursor: pointer; list-style: none; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--t-border); border-radius: 50%; color: var(--t-text-2); font-size: 1.125rem; font-weight: 500; line-height: 1; }
.lp-faq details[open] summary::after { content: "−"; }
.lp-faq p { max-width: 68ch; padding-bottom: 20px; color: var(--t-text-2); font-size: .9375rem; line-height: 1.65; }

/* ── Closing sheet: the one saturated surface on the page ────────────────── */
.lp-close { display: grid; gap: 18px; justify-items: start; padding: clamp(32px, 6vw, 64px); border-radius: var(--radius-sheet); background: var(--t-primary); color: #fff; }
.lp-close h2 { max-width: 18ch; color: #fff; }
.lp-close p { max-width: 52ch; color: rgb(255 255 255 / .86); font-size: 1rem; }
.lp-close__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lp-close .lp-btn--primary { background: #fff; color: var(--t-primary); border-color: #fff; box-shadow: none; }
.lp-close .lp-store { background: transparent; color: #fff; border-color: rgb(255 255 255 / .4); }
.lp-close .lp-store:hover { background: rgb(255 255 255 / .1); }
.lp-close .lp-store small { color: rgb(255 255 255 / .75); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.lp-footer { padding: 40px 0 36px; border-top: 1px solid var(--t-divider); color: var(--t-text-3); font-size: .875rem; }
.lp-footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.lp-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.lp-footer nav a { color: var(--t-text-2); font-weight: 500; text-decoration: none; }
.lp-footer nav a:hover { color: var(--t-primary); }
.lp-footer__tagline { margin-top: 10px; max-width: 40ch; }
.lp-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--t-divider); font-size: .75rem; }

/* ── Dock: the phone's bottom bar, shown past the hero ───────────────────── */
.lp-dock { position: fixed; inset-inline: 0; bottom: 0; z-index: 90; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--t-border); background: color-mix(in srgb, var(--t-surface) 92%, transparent); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); transform: translateY(110%); transition: transform var(--dur-default) var(--ease); }
.lp-dock.is-visible { transform: none; }
.lp-dock__text { flex: 1 1 auto; min-width: 0; color: var(--t-text-3); font-size: .75rem; }
.lp-dock__text strong { display: block; color: var(--t-text-1); font-size: .875rem; }
.lp-dock .lp-btn { min-height: 44px; padding: 10px 18px; }
@media (min-width: 900px) { .lp-dock { display: none; } }

/* ── Entrance: the app's AppAnimatedEntrance — fade, 24px, .98 → 1 ────────── */
.lp-reveal { opacity: 0; transform: translateY(24px) scale(.98); transition: opacity var(--dur-entrance) var(--ease), transform var(--dur-entrance) var(--ease); }
.lp-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .lp-reveal { opacity: 1; transform: none; } }
