/* ─────────────────────────────────────────────────────────────────────
   SuperRTL — product + legal pages
   Aesthetic: matches the Xtended Techs corporate home EXACTLY.
   Hebrew-first "dark editorial". Calm deep-slate, Frank Ruhl Libre serif
   display + Assistant body + JetBrains Mono code. Single CYAN accent
   (#2BC4DE) — unified with the home. RTL-native, dark default + light.
   No terminal cues.

   CSP (live): default-src 'none'; script-src 'self' '<theme-init-hash>';
   style-src 'self' https://fonts.googleapis.com; font-src https://fonts.gstatic.com;
   img-src 'self'; connect-src 'self'.
   → ALL styles external (this file). NO <style> blocks, NO style="" attrs.
   → Atmosphere via CSS gradients only (no data-URIs). Images same-origin.
   → Fonts from Google only.
   ────────────────────────────────────────────────────────────────────── */

/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 144px;

  --fs-xs: .78rem; --fs-sm: .9rem; --fs-md: 1.0625rem; --fs-lg: 1.25rem;
  --fs-xl: 1.6rem; --fs-2xl: 2.1rem; --fs-3xl: 2.9rem; --fs-4xl: clamp(2.6rem, 6.5vw, 4.6rem);

  --serif: "Frank Ruhl Libre", "Heebo", Georgia, serif;
  --sans:  "Assistant", "Heebo", system-ui, -apple-system, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1120px;
  --container-narrow: 760px;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

html, html[data-theme="dark"] {
  --bg:        #13151B;
  --bg-soft:   #181B22;
  --surface:   #1F232D;
  --surface-2: #262B37;
  --ink:       #EEF0F6;
  --muted:     #AEB4C6;
  --faint:     #767C90;
  --line:      rgba(255,255,255,.09);
  --line-soft: rgba(255,255,255,.055);
  --accent:    #2BC4DE;
  --accent-2:  #14A4BE;
  --accent-ink:#04222A;
  --accent-soft: rgba(43,196,222,.13);
  --glow: radial-gradient(60% 50% at 78% 0%, rgba(43,196,222,.14), transparent 70%);
  --shadow-lg: 0 30px 60px -30px rgba(0,0,0,.6);
  --shadow-md: 0 18px 40px -24px rgba(0,0,0,.55);
}
html[data-theme="light"] {
  --bg:        #FBFAF7;
  --bg-soft:   #F4F2EC;
  --surface:   #FFFFFF;
  --surface-2: #F2F1EB;
  --ink:       #15171B;
  --muted:     #4C5163;
  --faint:     #7B8093;
  --line:      rgba(20,22,28,.12);
  --line-soft: rgba(20,22,28,.07);
  --accent:    #0E7C90;
  --accent-2:  #0A6172;
  --accent-ink:#FFFFFF;
  --accent-soft: rgba(14,124,144,.10);
  --glow: radial-gradient(60% 50% at 78% 0%, rgba(14,124,144,.10), transparent 70%);
  --shadow-lg: 0 30px 60px -32px rgba(20,30,48,.22);
  --shadow-md: 0 18px 40px -26px rgba(20,30,48,.18);
}

/* ── Base / reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image: var(--glow);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-md);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 700; line-height: 1.14; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; transition: color .18s var(--ease); }
img { max-width: 100%; display: block; }
code, kbd { font-family: var(--mono); font-size: .9em; color: var(--accent); direction: ltr; unicode-bidi: isolate; }
strong { font-weight: 700; color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--space-5); }
.container-narrow { max-width: var(--container-narrow); }

.skip-link { position: absolute; inset-inline-start: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: var(--space-3) var(--space-4); z-index: 100; border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-weight: 700; }
.skip-link:focus { inset-inline-start: var(--space-4); }

/* Latin brand words / forced-LTR runs inside RTL prose. */
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ── Header (sticky) ────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: var(--space-5); height: 68px; }

/* Wordmark "SuperRTL" — Latin, forced LTR so it never reorders in RTL. */
.logo { display: inline-flex; align-items: center; gap: .5ch; font-family: var(--serif); direction: ltr; }
.logo-mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--sans); font-size: 1.05rem; line-height: 1;
}
.logo-text { font-weight: 800; font-size: 1.28rem; letter-spacing: -.02em; color: var(--ink); }
.logo:hover .logo-text { color: var(--accent); }

/* In-page nav */
.primary-nav { display: flex; align-items: center; gap: var(--space-5); margin-inline-end: auto; font-family: var(--sans); font-size: var(--fs-sm); }
.primary-nav a { color: var(--muted); font-weight: 600; position: relative; padding-block: 4px; }
.primary-nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px;
  background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: center;
  transition: transform .2s var(--ease);
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after { transform: scaleX(1); }

.header-tools { display: flex; align-items: center; gap: var(--space-3); }

/* Language switcher he / en / ar */
.lang-switcher { display: inline-flex; align-items: center; gap: .15ch; font-family: var(--sans); font-size: var(--fs-sm); color: var(--faint); }
.lang-switcher button { background: none; border: 0; color: var(--faint); font: inherit; cursor: pointer; padding: 4px 7px; border-radius: 6px; transition: color .15s, background .15s; }
.lang-switcher button[aria-pressed="true"] { color: var(--accent); font-weight: 700; background: var(--accent-soft); }
.lang-switcher button:hover { color: var(--accent); }
.lang-divider { color: var(--line); }

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  border-radius: 50%; cursor: pointer; flex: none;
  transition: color .15s, border-color .15s, transform .15s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: rotate(-12deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: block; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55ch;
  font-family: var(--sans); font-weight: 700; font-size: var(--fs-md);
  padding: 13px 24px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; line-height: 1.2;
  transition: transform .16s var(--ease), background .16s, box-shadow .16s, color .16s, border-color .16s;
}
.btn-large { font-size: var(--fs-lg); padding: 16px 30px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 28px -10px var(--accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px var(--accent); }
.btn-ghost, .btn-secondary { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover, .btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-icon { width: 1.2em; height: 1.2em; flex: none; }
.btn-icon-arrow { transition: transform .18s var(--ease); }
/* Arrows are decorative. Default (RTL) points/animates start-ward; LTR resets. */
.btn:hover .btn-icon-arrow { transform: translateX(-4px); }
html[dir="ltr"] .btn:hover .btn-icon-arrow { transform: translateX(4px); }

.link-arrow { color: var(--accent); font-weight: 700; display: inline-flex; align-items: center; gap: .4ch; }
.link-arrow:hover { gap: .8ch; }

/* ── Section heads / eyebrows (NO mono, NO numbers) ─────────────── */
.section { padding-block: var(--space-9); border-top: 1px solid var(--line-soft); }
.section-soft { background: var(--bg-soft); }

.eyebrow, .section-eyebrow {
  font-family: var(--sans); font-weight: 700; font-size: var(--fs-sm);
  letter-spacing: .04em; color: var(--accent); display: inline-flex;
  align-items: center; gap: .6ch; margin-bottom: var(--space-3);
}
.eyebrow::before, .section-eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--accent);
  display: inline-block; border-radius: 2px;
}
.section-title { font-size: var(--fs-3xl); max-width: 18ch; }
.section-head { margin-bottom: var(--space-7); }

/* Centered section header (product convention) */
.section-header { margin-bottom: var(--space-7); max-width: 60ch; }
.section-header.center { margin-inline: auto; text-align: center; }
.section-header.center .section-eyebrow { justify-content: center; }
.section-header h2 { font-size: var(--fs-3xl); margin-bottom: var(--space-3); }
.section-header p { color: var(--muted); font-size: var(--fs-lg); }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero { padding-block: clamp(var(--space-9), 13vh, var(--space-10)) var(--space-9); }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .6ch;
  font-family: var(--sans); font-weight: 600; font-size: var(--fs-sm);
  letter-spacing: .08em; color: var(--faint);
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { font-size: var(--fs-4xl); max-width: 18ch; margin-block: var(--space-5); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-subtitle { font-size: var(--fs-lg); color: var(--muted); max-width: 56ch; margin-bottom: var(--space-7); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.trust-row { margin-top: var(--space-7); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); color: var(--faint); font-size: var(--fs-sm); }
.trust-row > span { display: inline-flex; align-items: center; gap: .5ch; }
.trust-row svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* ── Live demo ──────────────────────────────────────────────────── */
.demo .demo-toggle-row {
  display: flex; align-items: center; justify-content: center; gap: var(--space-4);
  margin-bottom: var(--space-6); flex-wrap: wrap;
}
.demo-toggle-row .label { font-family: var(--sans); font-weight: 700; color: var(--ink); }
.demo-state { font-size: var(--fs-sm); font-weight: 700; color: var(--accent); min-width: 4ch; }
.demo-state.is-off { color: var(--faint); }

/* Switch-style control (legacy #rtl-toggle markup, kept working) */
.demo-switch {
  position: relative; width: 56px; height: 30px; flex: none;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  background: var(--surface-2); transition: background .2s var(--ease), border-color .2s;
}
.demo-switch::after {
  content: ""; position: absolute; top: 50%; inset-inline-start: 4px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--faint);
  transform: translateY(-50%); transition: inset-inline-start .2s var(--ease), background .2s;
}
.demo-switch[aria-pressed="true"], .demo-switch[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.demo-switch[aria-pressed="true"]::after, .demo-switch[aria-checked="true"]::after { inset-inline-start: calc(100% - 26px); background: var(--accent-ink); }

/* Button-style control — NEW CONTRACT: #demo-toggle.demo-toggle.
   Holds an inner .demo-toggle-track (pill) and a .demo-toggle-label (On/Off). */
.demo-toggle {
  display: inline-flex; align-items: center; gap: .6ch;
  font-family: var(--sans); font-weight: 700; font-size: var(--fs-sm);
  padding: 9px 16px 9px 9px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted); cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.demo-toggle:hover { border-color: var(--accent); color: var(--ink); }
.demo-toggle-track {
  position: relative; width: 44px; height: 24px; flex: none;
  border-radius: 999px; background: var(--surface-2); transition: background .2s var(--ease);
}
.demo-toggle-track::after {
  content: ""; position: absolute; top: 50%; inset-inline-start: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--faint);
  transform: translateY(-50%); transition: inset-inline-start .2s var(--ease), background .2s;
}
.demo-toggle[aria-pressed="true"] { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.demo-toggle[aria-pressed="true"] .demo-toggle-track { background: var(--accent); }
.demo-toggle[aria-pressed="true"] .demo-toggle-track::after { inset-inline-start: calc(100% - 21px); background: var(--accent-ink); }
.demo-toggle-label { font-variant-numeric: tabular-nums; }

/* Chat mock */
.demo-chat {
  max-width: 620px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
}
.demo-chat-header {
  display: flex; align-items: center; gap: .7ch;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line-soft); background: var(--bg-soft);
}
.demo-chat-dots { display: inline-flex; gap: 6px; }
.demo-chat-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); }
.demo-chat-title { font-family: var(--sans); font-size: var(--fs-sm); font-weight: 600; color: var(--faint); }
.demo-chat-body { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); }

/* A message bubble. Bubbles align by speaker. */
.demo-msg {
  max-width: 88%; padding: var(--space-3) var(--space-4);
  border-radius: 14px; font-size: var(--fs-md); line-height: 1.65;
  border: 1px solid var(--line-soft);
}
.demo-msg-user { align-self: flex-end; background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.demo-msg-bot  { align-self: flex-start; background: var(--surface-2); }

/* ──────────────────────────────────────────────────────────────────
   THE GENUINE TOGGLE — the whole point of the demo.
   Markup ships with .is-fixed (default ON) = correct RTL.
   Toggling OFF removes .is-fixed → Hebrew is FORCED LTR and the
   "(n)", "Python", "(החל מ-0)" tokens visibly land on the wrong side.
   This honestly mirrors what the extension does (sets dir from content).
   Code / .ltr runs stay LTR in BOTH states — code never flips.
   ────────────────────────────────────────────────────────────────── */
.demo-chat .demo-msg { direction: ltr; text-align: left; }            /* OFF = BROKEN */
.demo-chat.is-fixed .demo-msg { direction: rtl; text-align: right; }  /* ON  = FIXED  */
.demo-chat .demo-msg code, .demo-chat .demo-msg .ltr { direction: ltr; unicode-bidi: isolate; text-align: inherit; }

.demo-caption { text-align: center; color: var(--faint); font-size: var(--fs-sm); margin-top: var(--space-5); }

/* ── Before & after gallery (3 images, captions) ────────────────── */
.before-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.before-grid figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-md); transition: border-color .2s, transform .2s; }
.before-grid figure:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-3px); }
.before-grid img { width: 100%; height: auto; background: var(--bg-soft); }
.before-grid figcaption { padding: var(--space-4); font-size: var(--fs-sm); color: var(--muted); border-top: 1px solid var(--line-soft); }

/* ── Supported sites + native-RTL note ──────────────────────────── */
.site-list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-2); }
.site-list li {
  font-family: var(--sans); font-weight: 700; font-size: var(--fs-md);
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); direction: ltr;
  transition: border-color .18s, color .18s, transform .18s;
}
.site-list li:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.supported-note { text-align: center; color: var(--faint); font-size: var(--fs-sm); margin-top: var(--space-6); max-width: 56ch; margin-inline: auto; }

/* Native-RTL "heads up" note card — wraps the #native-rtl header in a card. */
.note-card, #native-rtl .section-header {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--space-7); max-width: none;
}
#native-rtl .section-header.center { text-align: start; margin-inline: 0; }
#native-rtl .section-header.center .section-eyebrow { justify-content: flex-start; }
#native-rtl .section-header p { font-size: var(--fs-md); color: var(--muted); max-width: none; }

/* ── How it works (steps) ───────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.steps li {
  position: relative; background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); padding: var(--space-6);
}
.steps h3 { font-size: var(--fs-xl); margin-block: var(--space-3) var(--space-2); }
.steps p { color: var(--muted); font-size: var(--fs-sm); }
/* Soft editorial step marker — NO monospace, NO harsh terminal cue. */
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font-family: var(--serif); font-weight: 700; font-size: 1.1rem; direction: ltr;
}

/* ── Pricing (Personal + Team) ──────────────────────────────────── */
.pricing .pricing-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5); align-items: stretch; max-width: 880px; margin-inline: auto;
}
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--space-7);
  box-shadow: var(--shadow-md);
}
/* When a single card ships directly under .container (current HTML), center + narrow it. */
.pricing > .container > .price-card { max-width: 520px; margin-inline: auto; }
.price-card.is-featured { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.price-badge {
  position: absolute; top: var(--space-5); inset-inline-end: var(--space-5);
  font-family: var(--sans); font-weight: 700; font-size: var(--fs-xs);
  letter-spacing: .04em; padding: 5px 12px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
}
.price-card-title { font-size: var(--fs-2xl); margin-bottom: var(--space-3); }
.price-amount { display: flex; align-items: baseline; gap: .25ch; direction: ltr; margin-bottom: var(--space-2); }
.price-currency { font-family: var(--serif); font-size: var(--fs-xl); color: var(--muted); }
.price-value { font-family: var(--serif); font-weight: 800; font-size: 3.2rem; line-height: 1; color: var(--ink); }
.price-period { font-size: var(--fs-md); color: var(--faint); }
.price-label { color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--space-5); }
.price-features { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-6); }
.price-features li { display: flex; gap: .7ch; align-items: flex-start; color: var(--muted); font-size: var(--fs-sm); }
.price-features li::before { content: "✓"; color: var(--accent); font-weight: 800; flex: none; }
.price-card .btn { width: 100%; margin-top: auto; }
.price-fineprint { color: var(--faint); font-size: var(--fs-xs); margin-top: var(--space-4); line-height: 1.6; }

.price-note {
  margin-top: var(--space-6); padding: var(--space-5) var(--space-6);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: var(--radius-sm); background: var(--accent-soft);
  color: var(--muted); font-size: var(--fs-sm); max-width: 880px; margin-inline: auto;
}
.price-note strong { display: block; color: var(--ink); margin-bottom: var(--space-2); }

/* ── FAQ accordion (styled <details>/<summary>) ─────────────────── */
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5) var(--space-6); cursor: pointer; list-style: none;
  font-family: var(--serif); font-weight: 700; font-size: var(--fs-lg); color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
/* Chevron via CSS shape (no icon font, no data-URI). */
.faq-item summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-inline-end: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .2s var(--ease); margin-top: -4px;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
.faq-item summary:hover { color: var(--accent); }
.faq-answer { padding: 0 var(--space-6) var(--space-5); color: var(--muted); font-size: var(--fs-md); }
.faq-answer a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.faq-answer code { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 5px; padding: 1px 6px; }

/* ── Final CTA ──────────────────────────────────────────────────── */
.final-cta { text-align: center; }
.final-cta h2 { font-size: var(--fs-3xl); max-width: 20ch; margin-inline: auto; margin-bottom: var(--space-4); }
.final-cta p { color: var(--muted); font-size: var(--fs-lg); margin-bottom: var(--space-6); }

/* ── Legal prose layout (.legal-page / .legal-body / .legal) ────── */
.legal-page { padding-block: var(--space-8) var(--space-9); }
.legal-back { margin-bottom: var(--space-5); font-size: var(--fs-sm); }
.legal-back a { color: var(--accent); font-weight: 700; }
.legal-back a:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal-header { margin-bottom: var(--space-7); padding-bottom: var(--space-6); border-bottom: 1px solid var(--line-soft); }
.legal-header h1 { font-size: var(--fs-3xl); margin-bottom: var(--space-5); }
.legal-meta { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-5); margin: 0; font-size: var(--fs-sm); }
.legal-meta dt { color: var(--faint); font-weight: 600; }
.legal-meta dd { margin: 0; color: var(--muted); }
.legal-meta a { color: var(--accent); }
.legal-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Prose styling: applies to BOTH .legal-body and a generic .legal wrapper. */
.legal-body, .legal { color: var(--muted); font-size: var(--fs-md); line-height: 1.8; }
.legal-body > :first-child, .legal > :first-child { margin-top: 0; }
.legal-body h2, .legal h2 { font-family: var(--serif); font-size: var(--fs-2xl); color: var(--ink); margin-top: var(--space-8); margin-bottom: var(--space-4); line-height: 1.2; }
.legal-body h3, .legal h3 { font-family: var(--serif); font-size: var(--fs-xl); color: var(--ink); margin-top: var(--space-6); margin-bottom: var(--space-3); }
.legal-body h2 + p, .legal h2 + p, .legal-body h3 + p, .legal h3 + p { margin-top: 0; }
.legal-body p, .legal p { margin-bottom: var(--space-4); }
.legal-body ul, .legal-body ol, .legal ul, .legal ol { margin-bottom: var(--space-4); padding-inline-start: var(--space-6); }
.legal-body ul, .legal ul { list-style: disc; }
.legal-body ol, .legal ol { list-style: decimal; }
.legal-body li, .legal li { margin-bottom: var(--space-2); padding-inline-start: var(--space-1); }
.legal-body li::marker, .legal li::marker { color: var(--accent); }
.legal-body a, .legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal-body a:hover, .legal a:hover { text-decoration-thickness: 2px; }
.legal-body strong, .legal strong { color: var(--ink); }
.legal-body code, .legal code { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 5px; padding: 1px 6px; }
.legal-body blockquote, .legal blockquote {
  margin: var(--space-5) 0; padding: var(--space-3) var(--space-5);
  border-inline-start: 3px solid var(--accent); background: var(--accent-soft);
  border-radius: var(--radius-sm); color: var(--ink);
}
.legal-body hr, .legal hr { border: 0; border-top: 1px solid var(--line); margin-block: var(--space-7); }

/* Tables inside legal prose */
.legal-body table, .legal table {
  width: 100%; border-collapse: collapse; margin-block: var(--space-5);
  font-size: var(--fs-sm); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden;
}
.legal-body caption, .legal caption { caption-side: top; text-align: start; color: var(--faint); font-size: var(--fs-sm); margin-bottom: var(--space-2); }
.legal-body th, .legal th { background: var(--bg-soft); color: var(--ink); font-weight: 700; text-align: start; }
.legal-body th, .legal-body td, .legal th, .legal td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line-soft); border-inline-end: 1px solid var(--line-soft); vertical-align: top; }
.legal-body tr:last-child td, .legal tr:last-child td { border-bottom: 0; }
.legal-body th:last-child, .legal-body td:last-child, .legal th:last-child, .legal td:last-child { border-inline-end: 0; }
.legal-body tbody tr:hover, .legal tbody tr:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line-soft); padding-block: var(--space-8); background: var(--bg-soft); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); }
.footer-brand { display: flex; flex-direction: column; gap: var(--space-2); max-width: 38ch; }
.footer-brand p { color: var(--muted); font-size: var(--fs-sm); }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-5); font-size: var(--fs-sm); color: var(--muted); }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-3); margin-top: var(--space-6); padding-top: var(--space-5);
  border-top: 1px solid var(--line-soft); color: var(--faint); font-size: var(--fs-sm);
}
.footer-bottom .copyright:hover { color: var(--accent); }
.footer-mark { font-family: var(--serif); font-weight: 800; letter-spacing: -.01em; }
.footer-copy { color: var(--faint); font-size: var(--fs-sm); }

/* ── Reveal animations (progressive enhancement; content always visible) ── */
@keyframes reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero .reveal { opacity: 0; animation: reveal .7s var(--ease) forwards; animation-delay: calc(var(--i, 0) * .07s); }
  @supports (animation-timeline: view()) {
    .section .reveal { opacity: 0; animation: reveal .7s var(--ease) forwards; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  }
}

/* ── Return / PayPal page helpers (kept lightweight, on-brand) ──── */
.return-shell { min-height: 70vh; display: grid; place-items: center; padding: var(--space-8); }
.return-card { max-width: 480px; text-align: center; padding: var(--space-8); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.return-card h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: var(--space-3); }
.return-card p { margin-bottom: var(--space-4); color: var(--muted); }
.return-card p:last-child { margin-bottom: 0; }
.return-icon { width: 64px; height: 64px; margin: 0 auto var(--space-4); display: block; color: var(--accent); }
.return-status { font-family: var(--mono); font-size: var(--fs-sm); direction: ltr; unicode-bidi: isolate; padding: 4px 8px; border-radius: 6px; background: var(--surface-2); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .before-grid, .steps { grid-template-columns: 1fr; }
  .pricing .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .primary-nav { display: none; }            /* in-page nav collapses; anchors stay reachable via footer + scroll */
  .header-inner { gap: var(--space-3); }
  .section { padding-block: var(--space-8); }
  .section-title, .section-header h2, .final-cta h2, .legal-header h1 { font-size: var(--fs-2xl); }
  .demo-chat-body { padding: var(--space-4); }
  .legal-meta { grid-template-columns: 1fr; gap: var(--space-1) 0; }
  .legal-meta dt { margin-top: var(--space-3); }
  .legal-meta dt:first-child { margin-top: 0; }
}
@media (max-width: 480px) {
  .btn { width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .demo .demo-toggle-row { gap: var(--space-3); }
}
