/* ===========================================================================
   Kwezr — the public landing page (redesigned 2026-10-09).

   One stylesheet, no build step. The tokens are the app's own
   (kwezr-app lib/core/theme/kw_palette.dart): a warm ground #F6F5F2, ink
   #14161B, the action blue #1A6FE6 and its tint, amber for the last days
   before an exam, and the miss red-orange for a wrong answer. Latin type is
   Plus Jakarta Sans, the face the app ships; Arabic is Almarai. There is no
   gradient anywhere on the page and no icon that repeats its label.

   The pass used three ui-skills.com skills (docs/design/
   landing-redesign-2026-10-09.md): pbakaus/impeccable and
   anthropics/frontend-design — identity from the subject, one bold element
   (the plan week), no template chrome (accent words, eyebrows, numbered
   chips, tick tables) — and hardikpandya/stop-slop for the copy.

   Conventions
   • Components are `lp-<block>`, parts `lp-<block>__<part>`, states `is-*`.
   • Logical properties throughout; Arabic needs only 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: Plus Jakarta Sans (Latin) + Almarai (Arabic), subset, self-hosted */
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; font-display: swap; src: url("../fonts/jakarta-400.c924a1a4019d.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: 'Plus Jakarta Sans'; font-weight: 500; font-display: swap; src: url("../fonts/jakarta-500.de98599f0750.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: 'Plus Jakarta Sans'; font-weight: 600; font-display: swap; src: url("../fonts/jakarta-600.6301e8cbb1ef.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: 'Plus Jakarta Sans'; font-weight: 700; font-display: swap; src: url("../fonts/jakarta-700.f1bdf90bb053.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 {
  /* action: the app's `action` / `actionInk` / `actionTint` */
  --t-primary: #1a6fe6;
  --t-primary-hover: #1459c2;
  --t-primary-strong: #1459c2;
  --t-on-primary: #ffffff;
  --t-wash: #e9f1fd;
  /* the app marks a right answer in its action blue, not green */
  --t-success: #1a6fe6;
  --t-error: #e4572e;
  --t-error-ink: #a83a18;
  --t-warning: #f2a10c;
  /* amber: the final days before an exam */
  --t-work: #f2a10c;
  --t-work-tint: #fdf1da;
  --t-work-ink: #865000;
  /* templates/landing/_icons.html tints its success glyph with the older kit's token name. */
  --k-success: var(--t-success);

  --t-text-1: #14161b;
  --t-text-2: #545b67;
  /* the app's ink3 (#7A808B) is 3.6:1 on the ground; one step darker passes AA */
  --t-text-3: #686e79;
  --t-bg: #f6f5f2;
  --t-surface: #ffffff;
  --t-surface-variant: #efede8;
  --t-surface-container: #faf9f7;
  --t-border: #e6e3dc;
  --t-border-variant: #d6d2c8;
  --t-divider: #e6e3dc;
  --t-hover: rgb(20 22 27 / .04);
  --t-pressed: rgb(20 22 27 / .08);
  --t-shadow: rgb(20 22 27 / .06);

  --t-font: 'Plus Jakarta Sans', 'Almarai', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* type scale, named by use */
  --fs-display: clamp(2.5rem, 4.4vw + 1rem, 4.5rem);
  --fs-h2: clamp(1.875rem, 2vw + 1.1rem, 2.75rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.0625rem, .35vw + 1rem, 1.25rem);
  --fs-body: 1rem;
  --fs-ui: .9375rem;
  --fs-sm: .875rem;
  --fs-xs: .75rem;
  --lh-display: 1.02;
  --lh-heading: 1.1;
  --lh-body: 1.6;

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

  --dur-micro: 150ms;
  --dur-default: 200ms;
  --ease-out: cubic-bezier(.215, .61, .355, 1);

  /* z-index scale: nothing else on the page sets one */
  --z-dock: 80;
  --z-nav: 90;
  --z-skip: 100;

  --nav-h: 64px;
  --shadow-card: 0 1px 0 var(--t-border), 0 24px 48px -28px rgb(20 22 27 / .22);

  color-scheme: light;
}
:root:lang(ar) { --t-font: 'Almarai', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; --lh-display: 1.3; --lh-heading: 1.35; --lh-body: 1.8; }

/* Dark: the app's dark tones. Declared twice on purpose — once for the system
   preference (skipped when the visitor chose light) and once for the toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --t-primary: #2f7ff0; --t-primary-hover: #5a9bf5; --t-primary-strong: #8dbdff; --t-wash: #16263d; --t-success: #5aa5ff;
    --t-error: #ff7a52; --t-error-ink: #ffa888; --t-work: #f5b53d; --t-work-tint: #33260e; --t-work-ink: #f7c76a;
    --t-text-1: #edf1f6; --t-text-2: #a9b3c2; --t-text-3: #8792a3;
    --t-bg: #0e1218; --t-surface: #171c24; --t-surface-variant: #1e242e; --t-surface-container: #1b2029;
    --t-border: #2a313c; --t-border-variant: #39414d; --t-divider: #2a313c;
    --t-hover: rgb(237 241 246 / .05); --t-pressed: rgb(237 241 246 / .09); --t-shadow: rgb(0 0 0 / .4);
    --shadow-card: 0 1px 0 var(--t-border), 0 24px 48px -28px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --t-primary: #2f7ff0; --t-primary-hover: #5a9bf5; --t-primary-strong: #8dbdff; --t-wash: #16263d; --t-success: #5aa5ff;
  --t-error: #ff7a52; --t-error-ink: #ffa888; --t-work: #f5b53d; --t-work-tint: #33260e; --t-work-ink: #f7c76a;
  --t-text-1: #edf1f6; --t-text-2: #a9b3c2; --t-text-3: #8792a3;
  --t-bg: #0e1218; --t-surface: #171c24; --t-surface-variant: #1e242e; --t-surface-container: #1b2029;
  --t-border: #2a313c; --t-border-variant: #39414d; --t-divider: #2a313c;
  --t-hover: rgb(237 241 246 / .05); --t-pressed: rgb(237 241 246 / .09); --t-shadow: rgb(0 0 0 / .4);
  --shadow-card: 0 1px 0 var(--t-border), 0 24px 48px -28px rgb(0 0 0 / .7);
  color-scheme: dark;
}

/* ── Base ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  margin: 0;
  background: var(--t-bg);
  color: var(--t-text-1);
  font: 400 var(--fs-body)/var(--lh-body) var(--t-font);
  letter-spacing: 0;
  overflow-x: clip;
}
img, svg { max-width: 100%; }
img { height: auto; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { letter-spacing: 0; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
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; }
::selection { background: color-mix(in srgb, var(--t-primary) 24%, transparent); }
@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: var(--z-skip); padding: 12px 18px; border-radius: var(--radius-icon); background: var(--t-surface); color: var(--t-text-1); box-shadow: var(--shadow-card); font-weight: 700; text-decoration: none; }
.lp-skip:focus { top: 12px; }

/* ── Type ────────────────────────────────────────────────────────────────── */
.lp-display { font-size: var(--fs-display); font-weight: 700; line-height: var(--lh-display); max-width: 12ch; }
:lang(ar) .lp-display { font-size: calc(var(--fs-display) * .88); font-weight: 800; max-width: 13ch; }
.lp-h2 { font-size: var(--fs-h2); font-weight: 700; line-height: var(--lh-heading); }
:lang(ar) .lp-h2 { font-weight: 800; }
.lp-h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.3; }
:lang(ar) .lp-h3 { line-height: 1.5; }
.lp-lead { color: var(--t-text-2); font-size: var(--fs-lead); line-height: var(--lh-body); max-width: 52ch; }
.lp-link { color: var(--t-primary); font-weight: 600; text-decoration: underline; text-decoration-thickness: from-font; text-underline-position: from-font; text-decoration-color: color-mix(in srgb, var(--t-primary) 40%, transparent); }
.lp-link:hover { text-decoration-color: currentColor; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.lp-wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.lp-section { padding-block: clamp(72px, 9vw, 128px); }
.lp-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); }
.lp-head .lp-h2 { max-width: 20ch; }

/* ── Buttons: the app's AppButton — 48px tall, radius 20, no glow ────────── */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: var(--radius-card);
  font-size: var(--fs-ui); font-weight: 600; line-height: 1.2; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}
:lang(ar) .lp-btn { font-weight: 700; }
.lp-btn:active:not(:disabled) { transform: scale(.97); }
.lp-btn--primary { background: var(--t-primary); color: var(--t-on-primary); border-color: var(--t-primary); }
.lp-btn--primary:hover { background: var(--t-primary-hover); border-color: var(--t-primary-hover); }
.lp-btn--secondary { background: var(--t-surface); color: var(--t-text-1); border-color: var(--t-border-variant); }
.lp-btn--secondary:hover { background: var(--t-surface-container); border-color: var(--t-text-3); }
.lp-btn--quiet { min-height: 40px; padding: 8px 12px; background: transparent; color: var(--t-text-2); font-weight: 500; }
.lp-btn--quiet:hover { background: var(--t-hover); color: var(--t-text-1); }
.lp-btn--icon { width: 40px; padding: 0; }
.lp-btn:disabled { opacity: .55; cursor: default; }

/* ── Chips: only the question-type label in the card uses one ─────────────── */
.lp-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px;
  border-radius: 8px;
  background: var(--t-surface-variant);
  color: var(--t-text-2); font-size: var(--fs-xs); font-weight: 600; line-height: 1.3;
}

/* ── Nav: a flat bar, hairline once the page moves ───────────────────────── */
.lp-nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: color-mix(in srgb, var(--t-bg) 90%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-default) var(--ease-out);
}
.lp-nav.is-scrolled { border-bottom-color: var(--t-divider); }
.lp-nav__row { display: flex; align-items: center; gap: 8px; height: var(--nav-h); }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--t-text-1); font-size: 1.0625rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.lp-brand img { width: 28px; height: 28px; border-radius: 8px; }
.lp-nav__links { display: none; gap: 2px; margin-inline-start: 28px; }
.lp-nav__links a { padding: 8px 12px; border-radius: var(--radius-icon); color: var(--t-text-2); font-size: var(--fs-sm); font-weight: 500; 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__cta { min-height: 40px; padding: 8px 16px; margin-inline-start: 8px; }
@media (min-width: 960px) { .lp-nav__links { display: flex; } }
@media (max-width: 560px) { .lp-nav__cta { display: none; } }

/* ── Hero: one sentence beside the working card ──────────────────────────── */
.lp-hero { padding-block: clamp(32px, 6vw, 88px) clamp(56px, 7vw, 96px); }
.lp-hero__grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.lp-hero__intro { display: grid; gap: 24px; justify-items: start; }
.lp-hero__note { color: var(--t-text-1); font-size: var(--fs-ui); font-weight: 600; }
.lp-apps { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; color: var(--t-text-3); font-size: var(--fs-sm); }
.lp-apps a { color: var(--t-text-1); font-weight: 500; text-decoration: underline; text-decoration-thickness: from-font; text-underline-position: from-font; text-decoration-color: var(--t-border-variant); }
.lp-apps a:hover { text-decoration-color: currentColor; }
.lp-stage { width: 100%; max-width: 540px; justify-self: center; }
@media (min-width: 960px) {
  .lp-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .lp-stage { justify-self: end; }
}

.lp-store { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px; border: 1px solid var(--t-border-variant); border-radius: var(--radius-card); background: var(--t-surface); color: var(--t-text-1); text-decoration: none; }
.lp-store:hover { background: var(--t-surface-container); }
.lp-store svg { flex: 0 0 auto; }
.lp-store small { display: block; color: var(--t-text-3); font-size: .6875rem; font-weight: 500; line-height: 1.2; }
.lp-store strong { display: block; font-size: var(--fs-sm); font-weight: 700; line-height: 1.2; }

/* ── The plan week: the page's one bold element ──────────────────────────── */
/* Drawn with the app timetable's legend: a block's height is its minutes, a
   rest day is striped, and the last days before the exam are amber. */
.lp-section--week { padding-top: clamp(24px, 4vw, 48px); }
.lp-week { margin: 0; padding: clamp(16px, 2.4vw, 28px); border: 1px solid var(--t-border); border-radius: var(--radius-sheet); background: var(--t-surface); }
.lp-week__scroll { overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-width: thin; padding-bottom: 4px; }
.lp-week__scroll:focus-visible { outline-offset: 4px; }
.lp-week__grid {
  display: grid;
  grid-template-columns: repeat(var(--days), minmax(128px, 1fr));
  grid-template-rows: auto 1fr;
  column-gap: 10px; row-gap: 12px;
  min-width: calc(var(--days) * 138px);
}
.lp-week__final {
  grid-row: 1; align-self: end;
  padding-top: 8px; border-top: 3px solid var(--t-work);
  color: var(--t-work-ink); font-size: .8125rem; font-weight: 700; line-height: 1.3;
}
.lp-day { grid-row: 2; display: flex; flex-direction: column; gap: 8px; scroll-snap-align: start; }
.lp-day__name { padding-bottom: 8px; border-bottom: 1px solid var(--t-border); color: var(--t-text-1); font-size: var(--fs-sm); font-weight: 700; }
.lp-day__tasks { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.lp-day__tasks li {
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  min-height: max(56px, calc(var(--m) * 9px));
  padding: 9px 10px; border-radius: var(--radius-icon);
  background: var(--t-wash); color: var(--t-primary-strong);
  font-size: .8125rem; font-weight: 600; line-height: 1.3;
}
.lp-day__tasks small { font-size: .75rem; font-weight: 500; opacity: .8; font-variant-numeric: tabular-nums; }
.lp-day--final .lp-day__tasks li { background: var(--t-work-tint); color: var(--t-work-ink); }
.lp-day__rest, .lp-day__exam { flex: 1 1 auto; min-height: 120px; border-radius: var(--radius-icon); }
.lp-day__rest {
  display: grid; place-items: center;
  border: 1px solid var(--t-border);
  background: repeating-linear-gradient(135deg, var(--t-border) 0 1px, transparent 1px 9px);
  color: var(--t-text-3); font-size: .8125rem; font-weight: 600;
}
.lp-day__exam {
  display: flex; align-items: flex-end; padding: 12px;
  background: var(--t-text-1); color: var(--t-bg);
  font-size: var(--fs-ui); font-weight: 700; line-height: 1.25;
}
.lp-week figcaption { margin-top: 16px; color: var(--t-text-3); font-size: var(--fs-sm); }

.lp-rules { display: grid; gap: 24px; margin: clamp(32px, 4vw, 48px) 0 0; }
.lp-rules div { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--t-border-variant); }
.lp-rules dt { font-weight: 700; }
.lp-rules dd { margin: 0; color: var(--t-text-2); font-size: var(--fs-ui); max-width: 40ch; }
@media (min-width: 820px) { .lp-rules { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }

/* ── The tour: an index of the app, one screen at a time ─────────────────── */
.lp-tour { display: grid; gap: 56px; }
.lp-panel { display: grid; gap: 28px; align-items: center; }
.lp-panel__copy { display: grid; gap: 14px; align-content: start; }
.lp-panel__kicker { color: var(--t-text-3); font-size: var(--fs-sm); font-weight: 600; }
.lp-panel__title { font-size: clamp(1.5rem, 1.2vw + 1.05rem, 2rem); line-height: 1.15; max-width: 18ch; }
.lp-panel__body { color: var(--t-text-2); max-width: 46ch; }
.lp-panel__media { justify-self: center; width: min(100%, 300px); }
.lp-panel__media img { display: block; width: 100%; border: 1px solid var(--t-border); border-radius: 36px; background: var(--t-surface); box-shadow: var(--shadow-card); }
.lp-points { display: grid; margin: 4px 0 0; padding: 0; list-style: none; max-width: 46ch; }
.lp-points li { padding: 10px 0; border-top: 1px solid var(--t-border); color: var(--t-text-2); font-size: var(--fs-ui); line-height: 1.5; }
.lp-points li:last-child { border-bottom: 1px solid var(--t-border); }
@media (min-width: 720px) { .lp-panel { grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; } .lp-tour.is-tabbed .lp-panel { align-items: start; } .lp-tour.is-tabbed .lp-panel__copy { padding-top: 12px; } }

.lp-tour__tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--t-border); }
.lp-tour__tabs::-webkit-scrollbar { display: none; }
.lp-tour__tab {
  flex: 0 0 auto; padding: 12px 10px; margin-bottom: -1px;
  border: 0; border-bottom: 2px solid transparent; background: none;
  color: var(--t-text-3); font-size: var(--fs-ui); font-weight: 600; text-align: start; cursor: pointer;
  transition: color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}
.lp-tour__tab:hover { color: var(--t-text-1); }
.lp-tour__tab[aria-selected="true"] { color: var(--t-text-1); border-bottom-color: var(--t-text-1); }
.lp-tour.is-tabbed { gap: 32px; }
.lp-tour.is-tabbed .lp-panel__kicker { display: none; }
.lp-tour.is-tabbed .lp-panel:focus-visible { outline-offset: 8px; border-radius: var(--radius-card); }
@media (min-width: 960px) {
  .lp-tour.is-tabbed { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; }
  .lp-tour__tabs { flex-direction: column; gap: 0; overflow: visible; border-bottom: 0; border-top: 1px solid var(--t-border); position: sticky; top: calc(var(--nav-h) + 24px); }
  .lp-tour__tab {
    padding: 14px 0; margin: 0; border-bottom: 1px solid var(--t-border);
    font-size: 1.375rem; font-weight: 600; line-height: 1.25;
  }
  .lp-tour__tab[aria-selected="true"] { border-bottom-color: var(--t-border); color: var(--t-primary); }
}

/* ── Comparison: plain rows, the Kwezr column in ink ─────────────────────── */
.lp-compare { width: 100%; border-collapse: collapse; font-size: var(--fs-ui); }
.lp-compare th, .lp-compare td { padding: 16px 16px 16px 0; text-align: start; vertical-align: top; border-top: 1px solid var(--t-border); }
.lp-compare thead th { padding-top: 0; border-top: 0; color: var(--t-text-3); font-size: var(--fs-sm); font-weight: 600; }
.lp-compare thead th.is-us { color: var(--t-primary); font-weight: 700; }
.lp-compare tbody th { width: 30%; font-weight: 600; }
.lp-compare td.is-them { color: var(--t-text-3); }
.lp-compare td.is-us { color: var(--t-text-1); font-weight: 600; }
:lang(ar) .lp-compare th, :lang(ar) .lp-compare td { padding: 16px 0 16px 16px; }
@media (max-width: 719px) {
  .lp-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lp-compare tr { display: grid; gap: 6px; padding: 16px 0; border-top: 1px solid var(--t-border); }
  .lp-compare th, .lp-compare td, :lang(ar) .lp-compare th, :lang(ar) .lp-compare td { display: block; width: auto; padding: 0; border: 0; }
  .lp-compare td::before { content: attr(data-col) ": "; color: var(--t-text-3); font-weight: 500; }
}

.lp-majors { display: grid; gap: 10px; margin-top: clamp(48px, 6vw, 80px); max-width: 62ch; }
.lp-majors p { color: var(--t-text-2); }
.lp-inline { margin: 4px 0 0; padding: 0; list-style: none; color: var(--t-text-1); font-weight: 600; }
.lp-inline li { display: inline; }
.lp-inline li:not(:last-child)::after { content: ", "; font-weight: 400; color: var(--t-text-3); }
:lang(ar) .lp-inline li:not(:last-child)::after { content: "، "; }

/* ── Pricing: the free plan as text, Pro as the one sheet ────────────────── */
.lp-plans { display: grid; gap: 40px; align-items: start; }
.lp-plan { display: flex; flex-direction: column; gap: 10px; }
.lp-plan__name { font-size: 1.5rem; font-weight: 700; }
.lp-plan__price { color: var(--t-text-1); font-weight: 600; }
.lp-plan__tag { color: var(--t-text-2); }
.lp-plan .lp-points { margin: 10px 0 16px; }
.lp-plan .lp-btn { align-self: flex-start; }
.lp-plan--pro { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--t-border); border-radius: var(--radius-sheet); background: var(--t-surface); box-shadow: var(--shadow-card); }
.lp-plan__note { margin-top: 12px; color: var(--t-text-3); font-size: var(--fs-xs); line-height: 1.55; }
@media (min-width: 860px) {
  .lp-plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; }
  .lp-plan:not(.lp-plan--pro) { padding-top: clamp(24px, 3vw, 36px); }
}

/* ── Your files · invite friends ─────────────────────────────────────────── */
.lp-pair { display: grid; gap: 48px; }
.lp-pair > div { display: grid; gap: 16px; align-content: start; padding-top: 20px; border-top: 1px solid var(--t-border-variant); }
.lp-pair__body { color: var(--t-text-2); max-width: 46ch; }
.lp-defs { display: grid; gap: 14px; margin: 0; }
.lp-defs dt { font-weight: 600; }
.lp-defs dd { margin: 2px 0 0; color: var(--t-text-2); font-size: var(--fs-ui); max-width: 52ch; }
@media (min-width: 860px) { .lp-pair { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.lp-faq { display: grid; gap: 32px; }
.lp-faq__head { display: grid; gap: 12px; align-content: start; }
.lp-faq__list details { border-top: 1px solid var(--t-border); }
.lp-faq__list details:last-child { border-bottom: 1px solid var(--t-border); }
.lp-faq__list summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; cursor: pointer; list-style: none; }
.lp-faq__list summary::-webkit-details-marker { display: none; }
.lp-faq__list summary::after { content: "+"; flex: 0 0 auto; color: var(--t-text-3); font-weight: 400; font-size: 1.25rem; line-height: 1; }
.lp-faq__list details[open] summary::after { content: "\2212"; }
.lp-faq__list details p { padding: 0 0 20px; color: var(--t-text-2); max-width: 64ch; }
@media (min-width: 960px) { .lp-faq { grid-template-columns: 320px minmax(0, 1fr); gap: 64px; } .lp-faq__head { position: sticky; top: calc(var(--nav-h) + 24px); } }

/* ── Closing: Naba and the same action as the top ────────────────────────── */
.lp-close { display: grid; gap: 24px; align-items: center; justify-items: start; }
.lp-close__naba { width: 132px; height: auto; }
.lp-close__copy { display: grid; gap: 16px; justify-items: start; }
.lp-close__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.lp-close__note { color: var(--t-text-3); font-size: var(--fs-sm); }
@media (min-width: 720px) { .lp-close { grid-template-columns: auto minmax(0, 1fr); gap: 48px; } .lp-close__naba { width: 168px; } }


/* ── The trial card ──────────────────────────────────────────────────────── */
/* ── The card ────────────────────────────────────────────────────────────── */
.lp-card { background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--radius-sheet); box-shadow: var(--shadow-card); }
.lp-try__kicker { color: var(--t-text-3); font-size: var(--fs-sm); font-weight: 600; }
.lp-try__naba { width: 72px; height: auto; }
.lp-try { display: flex; flex-direction: column; gap: 20px; padding: clamp(18px, 3vw, 28px); }
.lp-try__head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.lp-try__title { font-size: 1.375rem; 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: 200px; padding: 24px 16px;
  border: 1.5px dashed var(--t-border-variant); border-radius: var(--radius-card);
  background: var(--t-bg); text-align: center; cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out);
}
.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: inset 0 0 0 2px var(--t-primary); }
.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 { text-wrap: balance; 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: 500; opacity: .32; transition: opacity var(--dur-default) var(--ease-out); }
.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); }
/* the active step breathes on opacity only (a compositor property) */
.lp-steps li.is-active .lp-steps__tile::after { content: ""; position: absolute; inset: 0; background: rgb(255 255 255 / .28); animation: lp-pulse .9s var(--ease-out) infinite alternate; }
.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-pulse { from { opacity: 0; } to { opacity: 1; } }
.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: 500; 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: 500; }
.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: 700; 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-out), background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.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 1px 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: 700; }
.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-muted { color: var(--t-text-3); font-size: var(--fs-sm); }
.lp-score { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; 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: 700; 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: 500; }
.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: 500; }
.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; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.lp-footer { padding: 40px 0 calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--t-divider); color: var(--t-text-3); font-size: var(--fs-sm); }
.lp-footer__row { display: flex; flex-wrap: wrap; align-items: flex-start; 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: var(--fs-xs); }

/* ── Dock: the phone's bottom bar, shown past the hero ───────────────────── */
/* Solid, not glass: it slides, and baseline-ui keeps blur off moving surfaces. */
.lp-dock { position: fixed; inset-inline: 0; bottom: 0; z-index: var(--z-dock); 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: var(--t-surface); transform: translateY(110%); transition: transform var(--dur-default) var(--ease-out); }
.lp-dock.is-visible { transform: none; }
.lp-dock__text { flex: 1 1 auto; min-width: 0; color: var(--t-text-2); font-size: var(--fs-xs); font-weight: 500; line-height: 1.4; }
.lp-dock .lp-btn { min-height: 44px; padding: 10px 18px; }
@media (min-width: 900px) { .lp-dock { display: none; } }


/* ── Legal pages: /privacy-policy/ and /terms/ (templates/landing/legal_base.html) ── */
/* Long-form reading: body 1rem/1.7, measure capped near 70ch, an on-page
   contents list beside the text on wide screens and above it on phones. */
.lp-nav__links a[aria-current="page"] { background: var(--t-hover); color: var(--t-text-1); }
.lp-legal { display: grid; gap: 28px; padding-block: clamp(32px, 6vw, 72px) clamp(64px, 8vw, 112px); grid-template-areas: "head" "toc" "body"; }
@media (min-width: 1000px) {
  .lp-legal { grid-template-columns: 15rem minmax(0, 1fr); grid-template-areas: "toc head" "toc body"; column-gap: 72px; row-gap: 40px; align-items: start; }
  .lp-legal__toc { position: sticky; top: calc(var(--nav-h) + 24px); }
}
.lp-legal__head { grid-area: head; display: grid; gap: 12px; padding-bottom: 28px; border-bottom: 1px solid var(--t-divider); }
.lp-legal__date { color: var(--t-text-3); font-size: var(--fs-sm); }
.lp-legal__toc { grid-area: toc; display: grid; gap: 10px; align-content: start; }
.lp-legal__toc ol { display: grid; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.lp-legal__toc li { counter-increment: toc; }
.lp-legal__toc a { display: flex; gap: 10px; padding: 6px 0; color: var(--t-text-2); font-size: var(--fs-sm); font-weight: 500; line-height: 1.4; text-decoration: none; }
.lp-legal__toc a::before { content: counter(toc); min-width: 1.5em; color: var(--t-text-3); font-variant-numeric: tabular-nums; }
.lp-legal__toc a:hover { color: var(--t-primary); }
@media (max-width: 999px) {
  .lp-legal__toc { padding: 16px 20px; border-radius: var(--radius-card); background: var(--t-surface-variant); }
  .lp-legal__toc ol { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); column-gap: 20px; }
}

.lp-prose { grid-area: body; max-width: 70ch; color: var(--t-text-2); line-height: 1.7; }
.lp-prose section { padding-top: 8px; }
.lp-prose section + section { margin-top: 40px; }
.lp-prose h2 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; color: var(--t-text-1); font-size: var(--fs-h3); font-weight: 700; line-height: 1.3; }
.lp-prose__n { flex: 0 0 auto; display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding-inline: 6px; border-radius: var(--radius-icon); background: var(--t-wash); color: var(--t-primary); font-size: var(--fs-xs); font-weight: 700; font-variant-numeric: tabular-nums; transform: translateY(-1px); }
.lp-prose p { margin-bottom: 14px; }
.lp-prose ul { margin: 6px 0 14px; padding-inline-start: 1.25rem; }
.lp-prose li { margin-bottom: 8px; padding-inline-start: 4px; }
.lp-prose li::marker { color: var(--t-text-3); }
.lp-prose strong { color: var(--t-text-1); font-weight: 700; }
.lp-prose a { color: var(--t-primary); font-weight: 500; text-decoration: underline; text-decoration-thickness: from-font; text-underline-position: from-font; text-decoration-color: color-mix(in srgb, var(--t-primary) 40%, transparent); overflow-wrap: anywhere; }
.lp-prose a:hover { text-decoration-color: currentColor; }
/* a callout is a tinted panel, not a coloured side stripe */
.lp-note { margin: 16px 0; padding: 20px 24px; border-radius: var(--radius-card); background: var(--t-surface-variant); }
.lp-note p:last-child { margin-bottom: 0; }
.lp-numbered { display: grid; gap: 14px; margin: 0 0 16px; padding: 0; list-style: none; counter-reset: step; }
.lp-numbered li { display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: 0; counter-increment: step; }
.lp-numbered li::before { content: counter(step); flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; background: var(--t-primary); color: var(--t-on-primary); font-size: var(--fs-xs); font-weight: 700; font-variant-numeric: tabular-nums; }
.lp-label { color: var(--t-text-3); font-size: var(--fs-xs); font-weight: 700; }
