/* mindagap.com: layout and components.
   No colour values here: every colour comes from palette.css.
   Logical properties (margin-inline, padding-block, inset-inline-start...)
   so dir="rtl" pages (Hebrew) mirror automatically.

   System
   - Spacing: 8pt grid  (--sp-1 4px ... --sp-10 128px)
   - Type: one face (Rubik, covers Hebrew), scale ratio 1.25, six sizes
   - Radius: rounded consumer family. Parent 24 > card 16 > inner 12 > chip 8; pills 999
   - Controls: buttons and inputs share heights (48 default, 40 small) */

:root {
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;

  --fs-sm: 14px;                              /* captions, meta, fine print */
  --fs-base: 17px;                            /* body */
  --fs-md: 21px;                              /* h3, lede */
  --fs-lg: clamp(24px, 2.6vw, 27px);          /* small h2, card titles */
  --fs-xl: clamp(32px, 4.4vw, 42px);          /* section h2 */
  --fs-display: clamp(44px, 7vw, 76px);       /* hero h1 */

  --r-chip: 8px; --r-inner: 12px; --r-card: 16px; --r-panel: 24px; --r-pill: 999px;
  --h-control: 48px; --h-control-sm: 40px;

  --wrap: 1152px;
  --gutter: var(--sp-5);
  --shadow-sm: 0 1px 2px var(--color-shadow);
  --shadow-md: 0 1px 2px var(--color-shadow), 0 8px 24px var(--color-shadow);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --font: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", "Arial Hebrew", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--sp-8); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font); font-size: var(--fs-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:not([class]) { color: var(--color-accent); text-underline-offset: 3px; }
a:not([class]):hover { color: var(--color-accent-hover); }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; }
h1 { letter-spacing: -0.03em; } h2 { letter-spacing: -0.02em; } h3 { letter-spacing: -0.01em; }
:lang(he) h1, :lang(he) h2, :lang(he) h3 { letter-spacing: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (max-width: 640px) { :root { --gutter: var(--sp-4); --fs-base: 16px; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: var(--sp-4); top: -64px; z-index: 50; padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill); background: var(--color-accent); color: var(--color-on-accent); text-decoration: none; }
.skip-link:focus { top: var(--sp-3); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: var(--r-chip); }

/* Theme-specific images */
.only-dark { display: none !important; }
:root[data-theme="dark"] .only-dark { display: block !important; }
:root[data-theme="dark"] .only-light { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: block !important; }
  :root:not([data-theme="light"]) .only-light { display: none !important; }
}

/* AutoLang yellow areas: components switch to Ink whatever the theme */
.on-yellow {
  color-scheme: light;
  --color-text: var(--al-on-yellow);
  --color-text-muted: var(--al-on-yellow-muted);
  --color-surface: var(--al-chip);
  --color-line: var(--al-line-on-yellow);
  --color-line-strong: var(--al-line-on-yellow);
  --color-accent: var(--al-ink);
  --color-accent-hover: var(--al-on-yellow-muted);
  --color-on-accent: var(--al-chip);
  --color-focus: var(--al-ink);
  --color-success: var(--al-on-yellow);
  --color-success-soft: var(--al-chip);
  background: var(--al-yellow); color: var(--al-on-yellow);
}

/* Logo: "minde|gap" with a text caret in the gap */
.logo { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.logo-word { display: inline-flex; align-items: center; font-weight: 600; font-size: var(--fs-md); letter-spacing: -0.02em; color: var(--color-text); }
.logo-caret { display: inline-block; width: 3px; height: 1.05em; margin-inline: 5px; border-radius: 2px; background: var(--color-accent); animation: caret-blink 1.1s steps(1) 4; }
.logo-a { color: var(--color-accent); }
.logo:hover .logo-caret { animation: caret-blink 1.1s steps(1) infinite; }
.caret { display: inline-block; width: .08em; height: .82em; margin-inline-start: .06em; border-radius: 2px; background: var(--color-accent); vertical-align: -0.04em; animation: caret-blink 1.1s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }

/* Header and navigation */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--color-overlay-blur); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--color-line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 64px; }
.nav { display: flex; align-items: center; gap: var(--sp-5); font-size: 15px; }
.nav-links { display: flex; gap: var(--sp-5); list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--color-text-muted); }
.nav-links a:hover { color: var(--color-text); }
.nav-links a[aria-current="page"] { color: var(--color-text); font-weight: 500; }
.nav-tools { display: flex; align-items: center; gap: var(--sp-3); }
.lang { display: flex; gap: 2px; list-style: none; margin: 0; padding: 3px; border: 1px solid var(--color-line); border-radius: var(--r-pill); background: var(--color-surface); }
.lang a { display: grid; place-items: center; min-width: 36px; height: 30px; padding: 0 var(--sp-2); border-radius: var(--r-pill); font-size: 13px; font-weight: 500; color: var(--color-text-muted); text-decoration: none; }
.lang a[aria-current="page"] { background: var(--color-text); color: var(--color-bg); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--color-line); border-radius: 50%; background: var(--color-surface); color: var(--color-text); cursor: pointer; transition: transform .15s var(--ease-out); }
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn:active { transform: translateY(0); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: block; } .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
}
.menu-toggle { display: none; }
@media (max-width: 768px) {
  .menu-toggle { display: inline-grid; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: var(--sp-2) var(--gutter) var(--sp-5); background: var(--color-bg); border-bottom: 1px solid var(--color-line); box-shadow: var(--shadow-md); }
  .site-header.menu-open .nav { display: flex; animation: drop-in .2s var(--ease-out); }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: flex; min-height: 56px; font-size: var(--fs-md); border-bottom: 1px solid var(--color-line); }
  .nav-tools { padding-block-start: var(--sp-4); justify-content: space-between; }
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Buttons, badges, links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: var(--h-control); padding: 0 var(--sp-5); border: 1px solid transparent; border-radius: var(--r-pill);
  background: var(--color-accent); color: var(--color-on-accent); font-weight: 500;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, transform .15s var(--ease-out), box-shadow .15s;
}
.btn:hover { background: var(--color-accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--secondary { background: transparent; color: var(--color-text); border-color: var(--color-line-strong); }
.btn--secondary:hover { background: var(--color-surface); }
.btn--sm { min-height: var(--h-control-sm); padding: 0 var(--sp-4); font-size: 15px; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; background: var(--al-ink); color: var(--al-chip); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--al-yellow); }
.badge--accent { background: var(--color-accent-soft); color: var(--color-accent-on-soft); }
.badge--accent::before { background: var(--color-accent); }
.badge--quiet { background: var(--color-surface-2); color: var(--color-text-muted); }
.badge--quiet::before { background: var(--color-text-faint); }
.more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; color: var(--color-text); }
.more:hover { color: var(--color-accent); }

/* Placeholders that still need Tomer's input: visible on purpose */
.todo { outline: 2px dashed var(--color-todo); outline-offset: 3px; border-radius: 4px; }
.todo::after { content: " [NEEDS INPUT]"; font-size: 11px; font-weight: 600; color: var(--color-todo); }
.todo[data-todo]::after { content: " [NEEDS INPUT: " attr(data-todo) "]"; }
.todo-block { border: 2px dashed var(--color-todo); border-radius: var(--r-inner); padding: var(--sp-4) var(--sp-5); color: var(--color-text-muted); }
.todo-block strong { color: var(--color-todo); font-size: 13px; letter-spacing: .04em; }
.todo-block p + p { margin-block-start: var(--sp-2); }

/* Sections */
.section { padding-block: var(--sp-9); }
.section--tight { padding-block-start: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: 500; color: var(--color-text-muted); }
.section-head { max-width: 640px; margin-block-end: var(--sp-7); }
.section-head h2 { font-size: var(--fs-xl); }
.section-head p { margin-block-start: var(--sp-3); color: var(--color-text-muted); font-size: var(--fs-md); line-height: 1.5; }
@media (max-width: 640px) { .section { padding-block: var(--sp-8); } .section-head { margin-block-end: var(--sp-6); } }

/* Home hero */
.hero { padding-block: var(--sp-8) var(--sp-9); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: var(--sp-8); align-items: center; }
.hero h1 { font-size: var(--fs-display); line-height: 1.02; margin-block: var(--sp-4) var(--sp-5); text-wrap: balance; }
.lede { font-size: var(--fs-md); line-height: 1.5; color: var(--color-text-muted); max-width: 32ch; text-wrap: balance; }
:lang(he) .lede { max-width: 38ch; }
.hero-first { margin-block: var(--sp-6) var(--sp-4); font-size: var(--fs-base); max-width: 46ch; }
.hero-first strong { font-weight: 600; }
@media (max-width: 1024px) { .hero-grid { grid-template-columns: 1fr; gap: var(--sp-7); } }
@media (max-width: 640px) { .hero { padding-block: var(--sp-6) var(--sp-8); } }

/* AutoLang demo panel (home hero) */
.al-panel { border-radius: var(--r-panel); padding: var(--sp-5); }
.al-panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-block-end: var(--sp-4); }
.al-panel-name { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 600; }
.al-panel-name img { width: 28px; height: 28px; }
.al-panel-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-block-start: var(--sp-4); }

/* Sign-up form */
.signup { display: grid; gap: var(--sp-2); max-width: 520px; }
.field-label { font-size: var(--fs-sm); font-weight: 500; }
.signup-row { display: flex; gap: var(--sp-2); }
.signup input[type="email"] {
  flex: 1; min-width: 0; height: var(--h-control); padding: 0 var(--sp-4);
  border: 1px solid var(--color-line-strong); border-radius: var(--r-pill); background: var(--color-surface);
  box-shadow: inset 0 1px 2px var(--color-shadow); font: inherit; color: var(--color-text);
}
.signup input[type="email"]::placeholder { color: var(--color-text-faint); }
.signup input[type="email"]:focus { outline: 3px solid var(--color-focus); outline-offset: 1px; }
.signup input[aria-invalid="true"] { border-color: var(--color-error); }
.check { display: flex; align-items: flex-start; gap: var(--sp-2); min-height: 32px; padding-block: var(--sp-1); font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--color-accent); flex: none; }
.trust { display: flex; align-items: center; gap: var(--sp-2); font-size: 15px; font-weight: 500; }
.trust svg { width: 18px; height: 18px; flex: none; color: var(--color-accent); }
.fine { font-size: 13px; color: var(--color-text-muted); }
.status { font-size: var(--fs-sm); font-weight: 500; }
.status:empty { display: none; }
.status.ok, .status.err { display: flex; align-items: flex-start; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-inner); }
.status.ok { background: var(--color-success-soft); color: var(--color-success); }
.status.err { background: var(--color-error-soft); color: var(--color-error); }
.status.ok::before { content: "✓"; font-weight: 700; }
.status.err::before { content: "!"; font-weight: 700; }
.on-yellow .status.err { background: var(--al-chip); color: var(--al-ink); }
@media (max-width: 480px) { .signup-row { flex-direction: column; } .signup-row .btn, .signup input[type="email"] { flex: none; width: 100%; } }

/* Roadmap ("What's next") */
.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); list-style: none; margin: 0; padding: 0; }
.road-item { position: relative; display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5); border: 1px solid var(--color-line); border-radius: var(--r-card); background: var(--color-surface); }
.road-step { font-size: var(--fs-sm); font-weight: 500; color: var(--color-text-muted); }
.road-item h3 { font-size: var(--fs-lg); display: flex; align-items: center; gap: var(--sp-2); }
.road-item h3 img { height: 36px; width: auto; margin-inline-start: -6px; }
.road-item p { color: var(--color-text-muted); }
.road-item .more { margin-block-start: auto; align-self: flex-start; }
.road-item--now { border-color: transparent; box-shadow: 0 0 0 2px var(--al-yellow); }
.road-item--now .card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.road-item--vision { background: transparent; border-style: dashed; }
@media (max-width: 900px) { .roadmap { grid-template-columns: 1fr; } }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--sp-7); align-items: start; }
.about-body { display: grid; gap: var(--sp-4); font-size: var(--fs-md); line-height: 1.5; }
.about-body .todo-block { font-size: var(--fs-base); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: var(--sp-5); } }

/* Closing call to action */
.closing { text-align: center; display: grid; justify-items: center; gap: var(--sp-4); padding: var(--sp-8) var(--sp-5); border-radius: var(--r-panel); background: var(--color-surface); border: 1px solid var(--color-line); }
.closing h2 { font-size: var(--fs-xl); max-width: 20ch; }
.closing p { color: var(--color-text-muted); max-width: 46ch; }

/* Mobile sticky call to action */
.sticky-cta { display: none; }
@media (max-width: 768px) {
  .sticky-cta {
    display: flex; position: fixed; z-index: 25; inset-inline: var(--sp-4); bottom: var(--sp-4);
    transform: translateY(calc(100% + var(--sp-5))); transition: transform .25s var(--ease-out);
    box-shadow: var(--shadow-md);
  }
  .sticky-cta.visible { transform: none; }
  .sticky-cta .btn { width: 100%; }
}

/* "Wrong keyboard" before/after chips */
.swap { width: 100%; display: grid; gap: var(--sp-2); }
.swap-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); background: var(--al-chip); color: var(--al-chip-text); border-radius: var(--r-inner); padding: var(--sp-3) var(--sp-4); box-shadow: var(--shadow-sm); }
.swap-label { font-size: 13px; color: var(--al-on-yellow-muted); line-height: 1.3; }
.swap-words { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-md); font-weight: 500; }
.swap-typed { color: var(--al-on-yellow-muted); opacity: .55; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.swap-arrow::before { content: "→"; color: var(--al-on-yellow-muted); font-weight: 400; }
[dir="rtl"] .swap-arrow::before { content: "←"; }

/* Live typing demo */
.demo-window { background: var(--al-chip); color: var(--al-chip-text); border-radius: var(--r-card); padding: var(--sp-4); box-shadow: var(--shadow-sm); }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); font-size: 13px; color: var(--al-on-yellow-muted); }
.demo-kbd { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 var(--sp-3); border-radius: var(--r-chip); background: var(--al-paper); font-weight: 600; color: var(--al-ink); transition: background-color .2s; }
.demo-kbd.flash { background: var(--al-yellow); }
.demo-field { margin-block-start: var(--sp-3); min-height: 64px; display: flex; align-items: center; padding: 0 var(--sp-4); border: 1px solid var(--al-paper); border-radius: var(--r-inner); background: var(--al-chip); font-size: 32px; font-weight: 500; }
.demo-caret { display: inline-block; width: 2px; height: 1.1em; background: var(--al-ink); margin-inline-start: 2px; animation: caret-blink 1s steps(1) infinite; }
.demo-status { margin-block-start: var(--sp-3); min-height: 1.5em; font-size: var(--fs-sm); color: var(--al-on-yellow-muted); }
.demo-status b { color: var(--al-ink); font-weight: 600; }
.demo-note { font-size: 13px; color: var(--al-on-yellow-muted); }
.demo-pause { background: none; border: 0; min-height: 44px; padding: 0 var(--sp-2); font-size: 13px; text-decoration: underline; cursor: pointer; color: var(--al-on-yellow-muted); }
.demo-window, .demo-controls, .demo-note { display: none; }
.demo.animating .demo-window, .demo.animating .demo-note { display: block; }
.demo.animating .demo-controls { display: flex; }
.demo.animating .swap { display: none; }

/* Footer */
.site-footer { padding-block: var(--sp-8) var(--sp-6); border-top: 1px solid var(--color-line); margin-block-start: var(--sp-8); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-6); align-items: flex-start; }
.footer-brand p { margin-block-start: var(--sp-2); color: var(--color-text-muted); max-width: 32ch; }
.footer-contact h2 { font-size: var(--fs-lg); margin-block-end: var(--sp-2); }
.mail { display: inline-flex; min-height: 44px; align-items: center; font-size: var(--fs-md); font-weight: 500; color: var(--color-accent); }
.social { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); list-style: none; margin: var(--sp-2) 0 0; padding: 0; font-size: 15px; }
.social a { display: inline-flex; min-height: 44px; align-items: center; color: var(--color-text-muted); }
.soon { display: inline-flex; min-height: 44px; align-items: center; color: var(--color-text-faint); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); margin-block-start: var(--sp-7); font-size: 13px; color: var(--color-text-muted); }
.footer-bottom a { color: var(--color-text-muted); }

/* AutoLang page */
.back { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--color-text-muted); text-decoration: none; }
.back:hover { color: var(--color-text); }
.al-hero { padding-block: var(--sp-5) var(--sp-9); }
.al-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--sp-7); align-items: center; margin-block-start: var(--sp-4); }
.al-logo { width: 224px; margin-block-end: var(--sp-5); margin-inline-start: -8px; }
.al-hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.05; max-width: 15ch; margin-block: var(--sp-4); }
:lang(he) .al-hero h1 { max-width: 17ch; }
.al-hero .lede { max-width: 40ch; margin-block: 0 var(--sp-6); color: var(--al-on-yellow-muted); }
.al-facts { margin-block-start: var(--sp-5); font-size: var(--fs-sm); color: var(--al-on-yellow-muted); }
.demo { background: var(--al-panel-on-yellow); border-radius: var(--r-panel); padding: var(--sp-5); }
.demo-controls { justify-content: space-between; align-items: center; gap: var(--sp-3); margin-block-start: var(--sp-3); }
@media (max-width: 1024px) { .al-hero-grid { grid-template-columns: 1fr; } .al-hero { padding-block: var(--sp-4) var(--sp-8); } }

.subnav { position: sticky; top: 64px; z-index: 20; background: var(--color-overlay-blur); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-line); }
.subnav ul { display: flex; gap: var(--sp-1); list-style: none; margin: 0; padding: var(--sp-2) 0; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: flex; align-items: center; height: 36px; padding: 0 var(--sp-4); border-radius: var(--r-pill); font-size: var(--fs-sm); color: var(--color-text-muted); text-decoration: none; white-space: nowrap; }
.subnav a:hover, .subnav a.active { background: var(--color-surface); color: var(--color-text); box-shadow: 0 0 0 1px var(--color-line); }
.subnav .subnav-cta { margin-inline-start: auto; background: var(--al-yellow); color: var(--al-ink); font-weight: 500; }
.subnav .subnav-cta:hover { background: var(--al-yellow); color: var(--al-ink); }

.al-section { padding-block: var(--sp-9) 0; scroll-margin-top: 120px; }
.al-section:last-of-type { padding-block-end: var(--sp-9); }
.al-section h2 { font-size: var(--fs-xl); max-width: 22ch; }
.al-section .intro { color: var(--color-text-muted); margin-block-start: var(--sp-3); max-width: 58ch; font-size: var(--fs-md); line-height: 1.5; }
@media (max-width: 640px) { .al-section { padding-block-start: var(--sp-8); } .al-section:last-of-type { padding-block-end: var(--sp-8); } }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); margin: var(--sp-7) 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--r-card); padding: var(--sp-5); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--al-yellow); color: var(--al-ink); font-weight: 600; margin-block-end: var(--sp-4); }
.steps h3 { font-size: var(--fs-md); margin-block-end: var(--sp-2); }
.steps p { color: var(--color-text-muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-7) var(--sp-6); margin-block-start: var(--sp-7); }
.features h3 { font-size: var(--fs-md); margin-block-end: var(--sp-2); }
.features p { color: var(--color-text-muted); }
.feature-icon { width: 40px; height: 40px; border-radius: var(--r-inner); background: var(--al-yellow); color: var(--al-ink); display: grid; place-items: center; margin-block-end: var(--sp-4); }
.feature-icon svg { width: 20px; height: 20px; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.privacy { background: var(--al-band-bg); color: var(--al-band-text); border: 1px solid var(--al-band-line); border-radius: var(--r-panel); padding: clamp(var(--sp-6), 6vw, var(--sp-8)); }
.privacy .intro { color: var(--al-band-muted); }
.privacy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-7); margin-block-start: var(--sp-7); }
.privacy-grid h3 { font-size: var(--fs-md); margin-block-end: var(--sp-2); }
.privacy-grid p { color: var(--al-band-muted); }
.privacy-grid svg { width: 24px; height: 24px; margin-block-end: var(--sp-3); color: var(--al-yellow); }
@media (max-width: 900px) { .privacy-grid { grid-template-columns: 1fr; } }

.shots { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--sp-5); margin-block-start: var(--sp-7); align-items: start; }
.shots figure { margin: 0; }
.shots img { border-radius: var(--r-card); box-shadow: var(--shadow-md); border: 1px solid var(--color-line); }
.shots figcaption { font-size: var(--fs-sm); color: var(--color-text-muted); margin-block-start: var(--sp-3); }
@media (max-width: 768px) { .shots { grid-template-columns: 1fr; } }

.reqs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: var(--sp-7) 0 0; border: 1px solid var(--color-line); border-radius: var(--r-card); background: var(--color-surface); overflow: hidden; }
.reqs div { padding: var(--sp-5); border-inline-start: 1px solid var(--color-line); }
.reqs div:first-child { border-inline-start: 0; }
.reqs dt { font-size: 13px; color: var(--color-text-muted); margin-block-end: var(--sp-1); }
.reqs dd { margin: 0; font-weight: 500; }
@media (max-width: 900px) {
  .reqs { grid-template-columns: 1fr 1fr; }
  .reqs div:nth-child(3) { border-inline-start: 0; }
  .reqs div:nth-child(n+3) { border-top: 1px solid var(--color-line); }
}

.faq { margin-block-start: var(--sp-6); border-top: 1px solid var(--color-line); max-width: 800px; }
.faq details { border-bottom: 1px solid var(--color-line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); min-height: 64px; padding-block: var(--sp-4); cursor: pointer; font-size: var(--fs-md); font-weight: 500; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--color-surface-2); font-size: 20px; font-weight: 400; color: var(--color-text-muted); transition: transform .2s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 var(--sp-5); color: var(--color-text-muted); max-width: 64ch; }
.faq .answer p + p { margin-block-start: var(--sp-2); }

.al-cta { border-radius: var(--r-panel); padding: clamp(var(--sp-6), 6vw, var(--sp-8)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-5); }
.al-cta h2 { font-size: var(--fs-xl); }
.al-cta p { margin-block-start: var(--sp-2); color: var(--al-on-yellow-muted); }

/* Text pages (privacy, 404) */
.prose { max-width: 720px; padding-block: var(--sp-7) var(--sp-9); }
.prose h1 { font-size: var(--fs-xl); margin-block-end: var(--sp-3); }
.prose h2 { font-size: var(--fs-md); margin-block: var(--sp-6) var(--sp-2); }
.prose p, .prose li { color: var(--color-text-muted); }
.prose ul { padding-inline-start: 1.2em; }
.prose li + li { margin-block-start: var(--sp-2); }
.draft-note { display: inline-block; margin-block: var(--sp-2) var(--sp-5); }

/* Phones */
@media (max-width: 640px) {
  .swap-row { flex-direction: column; align-items: flex-start; gap: var(--sp-1); }
  .demo-field { font-size: 28px; }
}

/* Home hero: the demo sits straight on the AutoLang panel */
.demo--bare { background: none; padding: 0; }
.road-item h3 small { font-size: var(--fs-sm); font-weight: 400; letter-spacing: 0; }
.closing p { text-wrap: balance; }

/* Home subline: one line wherever it fits (tablet and up); wraps on phones */
@media (min-width: 641px) { .hero .lede { max-width: none; white-space: nowrap; text-wrap: initial; } }
