/* Landing and free GEO scoring. Every rule sits under .lp / .lp-body, because each app's app.css
   loads on every page. Colours: only Mat's five (tokens.css primitives) and their opacity
   variants (color-mix with transparent); no white, no black (O-01). The dark ground is --abyss;
   the light ground is --ice itself. */

.lp-body {
  --lp-ink: var(--abyss);
  --lp-ink-2: color-mix(in srgb, var(--navy) 88%, transparent);
  --lp-on: var(--ice);
  --lp-on-2: color-mix(in srgb, var(--ice) 80%, transparent);
  --lp-on-3: color-mix(in srgb, var(--ice) 64%, transparent);
  --lp-hair-dark: color-mix(in srgb, var(--ice) 16%, transparent);
  --lp-hair-light: color-mix(in srgb, var(--navy) 18%, transparent);
  --lp-wrap: 1180px;
  --lp-ease: var(--ease-out);
  background: var(--abyss); color: var(--lp-on);
}
.lp { min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
.lp main { flex: 1; }
.lp a { color: inherit; }
.lp-wrap { width: 100%; max-width: var(--lp-wrap); margin-inline: auto; padding-inline: var(--s-6); }
.lp :focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: var(--r-1); }
.lp-light :focus-visible, .lp-req-form :focus-visible, .lp-doc :focus-visible { outline-color: var(--azure); }

/* Top bar */
.lp-top { container: lp-top / inline-size; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--s-6); padding: var(--s-4) var(--s-6);
  background: color-mix(in srgb, var(--abyss) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-block-end: 1px solid var(--lp-hair-dark); }
.lp-brand { display: inline-flex; align-items: center; gap: var(--s-3); font-weight: 600; font-size: var(--t-14); line-height: 1.2; color: var(--lp-on); }
.lp-brand small { display: block; font-weight: 400; font-size: var(--t-12); color: var(--lp-on-3); }
.lp-brand .brand-mark { width: 30px; height: 30px; }
.lp-top-nav { margin-inline-start: auto; display: flex; align-items: center; gap: var(--s-5); font-size: var(--t-14); }
.lp-top-nav > a { color: var(--lp-on-2); padding-block: var(--s-2); transition: color var(--d-fast) var(--lp-ease); }
.lp-top-nav > a.lp-signin { white-space: nowrap; }
.lp-top-nav > a.lp-top-cta { white-space: nowrap; min-height: 40px; padding: 0 var(--s-4); font-size: var(--t-14); }
@media (hover: hover) { .lp-top-nav > a:hover { color: var(--lp-on); } }
.lp .lang-form button { color: var(--lp-on-2); }
.lp .lang-form button[aria-pressed="true"] { background: var(--ice); color: var(--abyss); }

/* Buttons */
.lp-btn { display: inline-flex; text-align: center; align-items: center; justify-content: center; gap: var(--s-2); min-height: 52px; padding: 0 var(--s-6);
  border-radius: var(--r-pill); font: inherit; font-weight: 600; font-size: var(--t-16); cursor: pointer; text-decoration: none; border: 1px solid transparent;
  transition: transform var(--d-fast) var(--lp-ease), background-color var(--d-fast) var(--lp-ease), color var(--d-fast) var(--lp-ease); }
.lp-btn-primary { background: var(--ice); color: var(--abyss); }
.lp-light .lp-btn-primary, .lp-req-form .lp-btn-primary { background: var(--abyss); color: var(--ice); }
.lp-btn-ghost { background: transparent; color: var(--lp-on); border-color: var(--lp-hair-dark); }
.lp a.lp-btn-primary { color: var(--abyss); }
.lp-light a.lp-btn-primary { color: var(--ice); }
@media (hover: hover) {
  .lp-btn-primary:hover { background: color-mix(in srgb, var(--ice) 82%, transparent); }
  .lp-light .lp-btn-primary:hover, .lp-req-form .lp-btn-primary:hover { background: var(--navy); }
  .lp-btn-ghost:hover { border-color: var(--lp-on-3); }
}
.lp-btn:active:not(:disabled) { transform: scale(var(--press)); }

/* Type */
.lp-h1 { font-size: clamp(2rem, 1.4rem + 3.2vw, var(--t-61)); line-height: 1.04; letter-spacing: -0.03em; font-weight: 600; color: var(--lp-on); max-width: 15ch;
  overflow-wrap: break-word; hyphens: auto; }
:lang(ar) .lp-h1 { letter-spacing: 0; line-height: 1.25; }
.lp-h2, .lp-section h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, var(--t-39)); line-height: 1.12; letter-spacing: -0.02em; font-weight: 600;
  overflow-wrap: break-word; hyphens: auto; }
/* No line ends on a single orphaned word: paragraphs wrap "pretty", headings "balance" (base.css) */
.lp p, .lp li, .lp dd, .lp figcaption { text-wrap: pretty; }
:lang(ar) .lp-h2, :lang(ar) .lp-section h2 { letter-spacing: 0; line-height: 1.3; }
.lp-lead { font-size: clamp(1rem, 0.94rem + 0.3vw, 1.1875rem); line-height: 1.6; color: var(--lp-on-2); max-width: 54ch; margin-block-start: var(--s-5); text-wrap: pretty; }
.lp-small { font-size: var(--t-13); color: var(--lp-on-3); }
.lp-req-form .lp-small, .lp-light .lp-small { color: var(--lp-ink-2); }

/* Hero */
.lp-hero { position: relative; padding-block: var(--s-20) var(--s-12); isolation: isolate; }
.lp-hero { border-block-end: 1px solid var(--lp-hair-dark); }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s-12); align-items: center; }
.lp-cta-row { display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; margin-block-start: var(--s-8); }
.lp-cta-note { font-size: var(--t-13); color: var(--lp-on-3); }

.lp-orbits { position: absolute; z-index: -1; inset-block-start: -180px; inset-inline-end: -260px; width: 820px; aspect-ratio: 1; pointer-events: none; }
.lp-orbits i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ice) 12%, transparent); }
.lp-orbits i:nth-child(2) { inset: 110px; border-color: color-mix(in srgb, var(--ice) 10%, transparent); }
.lp-orbits i:nth-child(3) { inset: 230px; border-color: color-mix(in srgb, var(--ice) 8%, transparent); }
.lp-orbits i::after { content: ""; position: absolute; inset-block-start: 50%; inset-inline-start: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--ice); opacity: 0.7; }
.lp-orbits i:nth-child(2)::after { background: var(--azure); opacity: 1; }
.lp-orbits i:nth-child(3)::after { inset-block-start: 0; inset-inline-start: 50%; opacity: 0.5; }

/* The signature: an assistant's answer with numbered citations; the client's chip is filled */
.lp-answer { margin: 0; padding: var(--s-6); border-radius: var(--r-4); position: relative;
  background: color-mix(in srgb, var(--navy) 72%, transparent); border: 1px solid var(--lp-hair-dark);
  box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--abyss) 90%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lp-q { display: flex; flex-direction: column; gap: 6px; padding-block-end: var(--s-4); border-block-end: 1px solid var(--lp-hair-dark); }
.lp-q-who, .lp-a-who { font-size: var(--t-12); color: var(--lp-on-3); }
.lp-q p { font-size: var(--t-16); color: var(--lp-on); line-height: 1.5; }
.lp-a { padding-block-start: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); }
.lp-a-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.lp-a-list li { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; padding: var(--s-2) var(--s-3); border-radius: var(--r-2); }
.lp-a-list li .chip { margin-inline-start: auto; }
.lp-bar { display: block; height: 8px; width: var(--w); border-radius: var(--r-pill); background: color-mix(in srgb, var(--ice) 22%, transparent); }
.lp-you { background: color-mix(in srgb, var(--azure) 30%, transparent); border: 1px solid color-mix(in srgb, var(--ice) 30%, transparent); flex-wrap: wrap; }
.lp-you strong { color: var(--lp-on); font-weight: 600; }
.lp-you span:not(.chip) { color: var(--lp-on-2); font-size: var(--t-13); }
.lp .chip { border-color: var(--lp-on-3); color: var(--lp-on-2); }
.lp .chip.us { background: var(--ice); border-color: var(--ice); color: var(--abyss); }
.lp-sources { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-12); color: var(--lp-on-3); }
.lp-sources > span:first-child { margin-inline-end: var(--s-1); }
.lp-answer figcaption { margin-block-start: var(--s-4); font-size: var(--t-13); color: var(--lp-on-3); }

.lp-assistants { list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4) var(--s-8);
  margin-block-start: var(--s-16); padding-block-start: var(--s-6); border-block-start: 1px solid var(--lp-hair-dark); }
.lp-assistants li { font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); font-weight: 600; color: var(--lp-on-2); letter-spacing: -0.01em; }

/* Sections */
.lp-section { padding-block: var(--s-24); position: relative; }
.lp-light { background: var(--ice); color: var(--lp-ink); }
.lp-light .lp-small, .lp-light p { color: var(--lp-ink-2); }
.lp-dark { background: color-mix(in srgb, var(--navy) 55%, transparent); }
.lp-head { display: flex; flex-direction: column; gap: var(--s-3); max-width: 60ch; margin-block-end: var(--s-12); }
.lp-head p { font-size: var(--t-16); color: var(--lp-on-2); }
.lp-light .lp-head p { color: var(--lp-ink-2); }

/* What you get: a real sequence, so it is numbered by time, not by 01/02 */
.lp-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: var(--s-4); }
.lp-timeline > li { position: relative; padding: var(--s-6); border-radius: var(--r-3);
  background: color-mix(in srgb, var(--abyss) 5%, transparent); border: 1px solid var(--lp-hair-light); }
.lp-timeline > li:first-child { background: var(--abyss); color: var(--lp-on); border-color: transparent; }
.lp-timeline > li:first-child h3 { color: var(--lp-on); }
.lp-timeline > li:first-child ul, .lp-timeline > li:first-child .lp-when { color: var(--lp-on-2); }
.lp-when { display: block; font-size: var(--t-13); font-weight: 500; color: var(--royal); margin-block-end: var(--s-2); }
.lp-timeline h3 { font-size: var(--t-20); margin-block-end: var(--s-4); color: var(--lp-ink); }
.lp-timeline ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); font-size: var(--t-14); color: var(--lp-ink-2); }
.lp-timeline ul li { padding-inline-start: 18px; position: relative; }
.lp-timeline ul li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0.62em; width: 8px; height: 2px; background: currentColor; opacity: 0.6; }

/* Score */
.lp-score-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s-16); align-items: center; }
.lp-score-copy p { color: var(--lp-on-2); margin-block-start: var(--s-4); font-size: var(--t-16); max-width: 52ch; }
.lp-formula { margin: var(--s-8) 0 var(--s-6); display: grid; gap: var(--s-4); }
.lp-formula > div { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: var(--s-4); padding-block: var(--s-4); border-block-start: 1px solid var(--lp-hair-dark); }
.lp-formula dt { font-weight: 600; font-size: var(--t-20); color: var(--lp-on); }
.lp-formula dt bdi { color: var(--ice); font-family: var(--mono); font-size: var(--t-16); margin-inline-end: 4px; }
.lp-formula dd { margin: 0; color: var(--lp-on-2); }
.lp .lp-score-copy .lp-small { color: var(--lp-on-3); font-size: var(--t-13); }

.lp-gauge { position: relative; max-width: 440px; width: 100%; justify-self: center; }
.lp-gauge svg { display: block; width: 100%; overflow: visible; }
.lp-ticks line { stroke: color-mix(in srgb, var(--ice) 22%, transparent); stroke-width: 3; stroke-linecap: round; }
.lp-ticks line.on { stroke: var(--ice); }
.lp-needle { stroke: var(--ice); stroke-width: 3; stroke-linecap: round; transform-origin: 120px 120px; transform: rotate(var(--angle, 0deg)); }
.lp-gauge circle { fill: var(--ice); }
.lp-gauge-num { margin-block-start: var(--s-3); text-align: center; font-weight: 700; font-size: clamp(3rem, 2.4rem + 2.4vw, 4.5rem); line-height: 1; color: var(--lp-on); direction: ltr; font-variant-numeric: tabular-nums; }
.lp-gauge-num small { font-size: var(--t-20); font-weight: 500; color: var(--lp-on-3); margin-inline-start: 6px; }

/* Principles */
.lp-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-10); }
.lp-principles article { display: flex; flex-direction: column; gap: var(--s-3); padding-block-start: var(--s-5); border-block-start: 2px solid var(--abyss); }
.lp-principles h3 { font-size: var(--t-25); line-height: 1.2; color: var(--lp-ink); max-width: 16ch; }
.lp-principles p { font-size: var(--t-16); line-height: 1.6; }

/* What we do not promise */
.lp-no-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-12); align-items: start; }
.lp-no { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lp-no li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--s-3); padding-block: var(--s-5); border-block-end: 1px solid var(--lp-hair-dark); font-size: var(--t-16); line-height: 1.55; color: var(--lp-on); }
.lp-no li:first-child { border-block-start: 1px solid var(--lp-hair-dark); }
.lp-no li > span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--lp-on-3); color: var(--lp-on-2); font-size: 0.9375rem; line-height: 1; }

/* Final call */
.lp-final { background: var(--ice); color: var(--lp-ink); }
.lp-final-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-5); }
.lp-final-in h2 { color: var(--lp-ink); max-width: 22ch; }
.lp-final-in p { color: var(--lp-ink-2); font-size: var(--t-16); max-width: 52ch; }
.lp-final .lp-btn-primary { background: var(--abyss); color: var(--ice); }
.lp-final a.lp-btn-primary { color: var(--ice); }

/* Footer */
.lp-foot { border-block-start: 1px solid var(--lp-hair-dark); padding-block: var(--s-10); }
.lp-foot-in { max-width: var(--lp-wrap); margin-inline: auto; padding-inline: var(--s-6); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-8); align-items: center; }
.lp-foot p { font-size: var(--t-13); color: var(--lp-on-3); max-width: 60ch; }
.lp-foot nav { display: flex; gap: var(--s-5); font-size: var(--t-13); }
.lp-foot nav a { color: var(--lp-on-2); }
.lp-foot .lang-form { display: none; }
.lp-foot nav { align-items: center; flex-wrap: wrap; }

/* Request page */
.lp-req { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); min-height: calc(100vh - 69px); }
.lp-req-side { position: relative; overflow: hidden; padding: var(--s-16) var(--s-10); isolation: isolate;
  background: color-mix(in srgb, var(--navy) 40%, transparent); }
.lp-req-side .lp-orbits { inset-block-start: auto; inset-block-end: -380px; inset-inline-end: -320px; width: 640px; }
.lp-req-side-in { position: sticky; top: 120px; display: flex; flex-direction: column; gap: var(--s-5); max-width: 440px; }
.lp-req-side-in > p { color: var(--lp-on-2); font-size: var(--t-16); line-height: 1.6; }
.lp-steps { list-style: none; margin: var(--s-2) 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.lp-steps li { display: flex; gap: var(--s-3); align-items: center; color: var(--lp-on); font-weight: 500; }
.lp-step-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1px solid var(--lp-on-3); font-size: var(--t-13); color: var(--lp-on-2); }
.lp-req-form { background: var(--ice); color: var(--lp-ink); padding: var(--s-12) var(--s-10) var(--s-16); }
.lp-form { max-width: 680px; display: flex; flex-direction: column; gap: var(--s-8); }
.lp-group { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-5); }
.lp-group > legend { font-size: var(--t-20); font-weight: 600; color: var(--lp-ink); padding: 0; margin-block-end: var(--s-5); }
.lp-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.lp-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lp-field > label, .lp-field legend { font-weight: 500; font-size: var(--t-14); color: var(--lp-ink); padding: 0; }
.lp-field fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.lp-opt { font-weight: 400; color: var(--lp-ink-2); font-size: var(--t-13); }
.lp-help { font-size: var(--t-13); color: var(--lp-ink-2); }
.lp-error { font-size: var(--t-13); font-weight: 600; color: var(--royal); display: flex; gap: 6px; align-items: center; }
.lp-error::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--royal); color: var(--ice); font-size: 11px; }
.lp-req-form input[type=text], .lp-req-form input[type=email], .lp-req-form input[type=url], .lp-req-form textarea {
  background: color-mix(in srgb, var(--abyss) 5%, transparent); border: 1px solid color-mix(in srgb, var(--navy) 36%, transparent); color: var(--lp-ink);
  border-radius: var(--r-2); min-height: 46px; font-size: var(--t-16); }
.lp-req-form input::placeholder { color: var(--lp-ink-2); }
.lp-req-form input:focus, .lp-req-form textarea:focus { border-color: var(--abyss); box-shadow: 0 0 0 3px color-mix(in srgb, var(--azure) 35%, transparent); }
.lp-field.has-error input, .lp-field.has-error textarea { border-color: var(--royal); border-width: 2px; }
.lp-pills { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.lp-pill { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s-4); border-radius: var(--r-pill); cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--navy) 36%, transparent); color: var(--lp-ink); font-size: var(--t-14);
  transition: background-color var(--d-fast) var(--lp-ease), border-color var(--d-fast) var(--lp-ease), color var(--d-fast) var(--lp-ease), transform var(--d-fast) var(--lp-ease); }
.lp-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.lp-pill:has(input:checked) { background: var(--abyss); border-color: var(--abyss); color: var(--ice); }
.lp-pill:has(input:checked) span::before { content: "✓"; margin-inline-end: 6px; }
.lp-pill:has(input:focus-visible) { outline: 2px solid var(--azure); outline-offset: 2px; }
.lp-pill:active { transform: scale(var(--press)); }
.lp-field.has-error .lp-pills .lp-pill { border-color: var(--royal); }
.lp-more { border-block: 1px solid var(--lp-hair-light); padding-block: var(--s-4); }
.lp-more summary { cursor: pointer; font-weight: 500; color: var(--lp-ink); list-style: none; display: flex; align-items: center; gap: var(--s-2); min-height: 32px; }
.lp-more summary::-webkit-details-marker { display: none; }
.lp-more summary::before { content: "+"; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--lp-ink-2); font-size: 14px; transition: transform var(--d-base) var(--lp-ease); }
.lp-more[open] summary::before { transform: rotate(45deg); }
.lp-more .lp-row { margin-block-start: var(--s-4); }
.lp-hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lp-check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--t-14); color: var(--lp-ink); cursor: pointer; line-height: 1.5; }
.lp-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--abyss); }
.lp-check a { color: var(--royal); text-decoration: underline; text-underline-offset: 2px; }
.lp-form-error { padding: var(--s-4); border-radius: var(--r-2); border: 2px solid var(--royal); color: var(--royal); font-weight: 600; background: color-mix(in srgb, var(--royal) 6%, transparent); }
.lp-submit-row { display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.lp-submit { position: relative; }
.lp-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--ice) 35%, transparent); border-top-color: var(--ice); display: none; }
.lp-submit.is-busy .lp-spinner { display: inline-block; }
.lp-submit.is-busy { pointer-events: none; }

/* Sent: the scoring is running */
.lp-sent { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100vh - 69px); display: grid; place-items: center; padding: var(--s-16) var(--s-6); text-align: center; }
.lp-orbits-center { inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 900px; }
[dir=rtl] .lp-orbits-center { transform: translate(50%, -50%); }
.lp-sent-in { max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: var(--s-5); }
.lp-sent-in .lp-lead { margin: 0; }
.lp-sent-in h1:focus { outline: none; }
.lp-scan { display: flex; flex-direction: column; gap: var(--s-2); width: min(100%, 360px); margin-block-end: var(--s-4); }
.lp-scan-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 20px; align-items: center; gap: var(--s-3); padding: 10px var(--s-4); border-radius: var(--r-2);
  background: color-mix(in srgb, var(--navy) 70%, transparent); border: 1px solid var(--lp-hair-dark); text-align: start; }
.lp-scan-row b { font-weight: 600; font-size: var(--t-14); color: var(--lp-on); }
.lp-scan-row i { height: 4px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--ice) 18%, transparent); position: relative; overflow: hidden; }
.lp-scan-row i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--ice); transform-origin: left; transform: scaleX(1); }
[dir=rtl] .lp-scan-row i::after { transform-origin: right; }
.lp-scan-row svg { width: 18px; height: 18px; fill: none; stroke: var(--ice); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Privacy */
.lp-doc { max-width: 720px; margin-inline: auto; padding: var(--s-16) var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); }
.lp-doc h2 { font-size: var(--t-20); margin-block-start: var(--s-6); color: var(--lp-on); }
.lp-doc p { color: var(--lp-on-2); font-size: var(--t-16); line-height: 1.65; }

/* ---------- Motion: one orchestrated hero, reveals, gauge; transform and opacity only ---------- */
@media (prefers-reduced-motion: no-preference) {
  .lp-hero-copy > * { animation: lp-rise 700ms var(--lp-ease) both; } /* hero only: up to 800 ms (DESIGN.md, Motion, Landing) */
  .lp-hero-copy > :nth-child(2) { animation-delay: 90ms; } .lp-hero-copy > :nth-child(3) { animation-delay: 180ms; }
  .lp-answer { animation: lp-rise 800ms var(--lp-ease) 200ms both; }
  .lp-q { animation: lp-fade 500ms var(--lp-ease) 500ms both; }
  .lp-a-list li { animation: lp-row 520ms var(--lp-ease) both; }
  .lp-a-list li:nth-child(1) { animation-delay: 900ms; } .lp-a-list li:nth-child(2) { animation-delay: 1150ms; } .lp-a-list li:nth-child(3) { animation-delay: 1400ms; }
  .lp-you .chip.us { animation: lp-pop 420ms var(--lp-ease) 1700ms both; }
  .lp-sources .chip { animation: lp-pop 360ms var(--lp-ease) both; }
  .lp-sources .chip:nth-child(2) { animation-delay: 1900ms; } .lp-sources .chip:nth-child(3) { animation-delay: 2000ms; } .lp-sources .chip:nth-child(4) { animation-delay: 2100ms; }
  .lp-assistants li { animation: lp-fade 600ms var(--lp-ease) both; }
  .lp-assistants li:nth-child(1) { animation-delay: 500ms; } .lp-assistants li:nth-child(2) { animation-delay: 580ms; } .lp-assistants li:nth-child(3) { animation-delay: 660ms; }
  .lp-assistants li:nth-child(4) { animation-delay: 740ms; } .lp-assistants li:nth-child(5) { animation-delay: 820ms; }
  .lp-js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--lp-ease), transform 600ms var(--lp-ease); }
  .lp-js .reveal.in { opacity: 1; transform: none; }
  .lp-js .lp-timeline > li.reveal:nth-child(2), .lp-js .lp-principles > .reveal:nth-child(2) { transition-delay: 80ms; }
  .lp-js .lp-timeline > li.reveal:nth-child(3), .lp-js .lp-principles > .reveal:nth-child(3) { transition-delay: 160ms; }
  .lp-js .lp-timeline > li.reveal:nth-child(4) { transition-delay: 240ms; }
  .lp-js .lp-gauge .lp-ticks line.on { opacity: 0.22; transition: opacity 220ms var(--lp-ease); }
  .lp-js .lp-gauge.in .lp-ticks line.on { opacity: 1; transition-delay: calc(var(--i) * 18ms); }
  .lp-js .lp-gauge .lp-needle { transform: rotate(-90deg); transition: transform 1000ms var(--lp-ease); }
  .lp-js .lp-gauge.in .lp-needle { transform: rotate(var(--angle, 0deg)); }
  .lp-scan-row { animation: lp-row 480ms var(--lp-ease) both; animation-delay: calc(var(--i) * 110ms); }
  .lp-scan-row i::after { animation: lp-scan 1200ms var(--lp-ease) both; animation-delay: calc(300ms + var(--i) * 260ms); }
  .lp-scan-row svg { animation: lp-pop 360ms var(--lp-ease) both; animation-delay: calc(1700ms + var(--i) * 260ms); }
  .lp-sent-in > :not(.lp-scan) { animation: lp-rise 600ms var(--lp-ease) both; animation-delay: 200ms; }
  .lp-req-form .lp-group, .lp-req-side-in { animation: lp-rise 600ms var(--lp-ease) both; }
  .lp-req-form .lp-group + .lp-group { animation-delay: 80ms; }
  .lp-field.has-error { animation: lp-nudge 320ms var(--lp-ease) 1; }
  .lp-submit.is-busy .lp-spinner { animation: lp-spin 800ms linear infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-answer, .lp-hero-copy > *, .lp-sent-in > *, .lp-scan-row { animation: lp-fade 200ms linear both; }
}
@keyframes lp-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lp-fade { from { opacity: 0; } to { opacity: 1; } }
/* Rows enter from the start side: left in English, right in Arabic */
.lp-body { --lp-dir: 1; } [dir=rtl] .lp-body, .lp-body[dir=rtl], [dir=rtl] .lp { --lp-dir: -1; }
@keyframes lp-row { from { opacity: 0; transform: translateX(calc(-10px * var(--lp-dir, 1))); } to { opacity: 1; transform: none; } }
@keyframes lp-pop { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: none; } }
@keyframes lp-spin { to { transform: rotate(360deg); } }
@keyframes lp-scan { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lp-nudge { 0%, 100% { transform: none; } 30% { transform: translateX(-4px); } 60% { transform: translateX(3px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .lp-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-req { grid-template-columns: minmax(0, 1fr); }
  .lp-req-side { padding: var(--s-10) var(--s-6); }
  .lp-req-side-in { position: static; }
}
@media (max-width: 860px) {
  .lp-hero { padding-block: var(--s-12) var(--s-10); }
  .lp-hero-grid, .lp-score-grid, .lp-no-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-10); }
  .lp-principles { grid-template-columns: minmax(0, 1fr); gap: var(--s-8); }
  .lp-top-nav > a:not(.lp-signin):not(.lp-top-cta) { display: none; }
  .lp-section { padding-block: var(--s-16); }
  .lp-foot-in { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .lp-orbits { width: 560px; inset-inline-end: -300px; }
}
@media (max-width: 560px) {
  .lp-wrap, .lp-top, .lp-foot-in { padding-inline: var(--s-4); }
  .lp-top { gap: var(--s-3); padding-block: var(--s-3); }
  .lp-top-nav { gap: var(--s-3); }
  .lp-brand small { display: none; }
  .lp-top .lang-form, .lp-top-nav > a.lp-signin { display: none; }
  .lp-top-nav { min-width: 0; }
  .lp-top-nav > a.lp-top-cta { width: auto; min-height: 40px; padding: 6px var(--s-3); font-size: var(--t-13); white-space: normal;
    line-height: 1.2; max-width: 100%; }
  .lp-brand { min-width: 0; }
  .lp-foot .lang-form { display: inline-flex; }
  .lp-brand > span { font-size: var(--t-13); }
  .lp-timeline, .lp-row { grid-template-columns: minmax(0, 1fr); }
  .lp-formula > div { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); }
  .lp-req-form { padding: var(--s-8) var(--s-4) var(--s-12); }
  .lp-btn { width: 100%; }
  .lp-cta-row { flex-direction: column; align-items: stretch; text-align: center; }
  .lp-answer { padding: var(--s-4); }
  .lp-assistants { justify-content: flex-start; gap: var(--s-3) var(--s-5); }
}

/* A narrow bar keeps the brand mark and drops the name, so the name never breaks mid-word beside the
   request button (C5). A container query in rem reacts to the bar's width and the reader's text
   size alike; the link keeps the name as its accessible label. */
@container lp-top (max-width: 22rem) {
  .lp-top .lp-brand > span { display: none; }
}
