/* =========================================================================
   RTL Landing — 2026 redesign
   Dark-default, Hebrew-first, mobile-first. Light theme via [data-theme="light"].
   Layout uses logical properties so RTL flips automatically.
   ========================================================================= */

/* ---------- Theme tokens (DARK — defaults) ---------- */
:root {
  /* Surfaces — soft deep ink, warmer than pure black */
  --c-bg: #14151d;
  --c-bg-2: #1a1c28;
  --c-surface: #20232f;
  --c-surface-2: #282c39;
  --c-border: rgba(255, 255, 255, 0.08);
  --c-border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --c-text: #ecedf2;
  --c-text-muted: #9aa0b4;
  --c-text-dim: #6b7088;

  /* Single accent — violet → indigo. Restrained, modern, holds up in HE/AR. */
  --c-accent: #8b7cff;
  --c-accent-hover: #a394ff;
  --c-accent-soft: rgba(139, 124, 255, 0.14);
  --c-accent-on: #0a0b14;
  --c-accent-ring: rgba(139, 124, 255, 0.45);

  /* Subtle semantic */
  --c-success: #6ee7b7;
  --c-warning: #fbbf24;

  /* Gradient — used very sparingly, headline accent only */
  --grad-accent: linear-gradient(135deg, #8b7cff 0%, #c4b5fd 50%, #f0abfc 100%);
  --grad-hero-mesh:
    radial-gradient(60% 80% at 15% 0%, rgba(139, 124, 255, 0.18), transparent 60%),
    radial-gradient(50% 60% at 90% 20%, rgba(192, 132, 252, 0.10), transparent 60%),
    radial-gradient(80% 50% at 50% 100%, rgba(56, 189, 248, 0.06), transparent 70%);

  /* Type */
  --font-latin: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-hebrew: 'Heebo', 'Inter', system-ui, sans-serif;
  --font-arabic: 'Cairo', 'Inter', system-ui, sans-serif;
  --font-mono: ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, Consolas, monospace;

  --fs-base: 1rem;
  --lh-body: 1.6;

  /* Spacing scale (8pt baseline) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radii */
  --radius-sm: 0.5rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 999px;

  /* Shadows — soft and low-contrast in dark, never harsh */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.45);
  --glow-accent: 0 0 0 1px rgba(139, 124, 255, 0.25), 0 16px 48px rgba(139, 124, 255, 0.18);

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 760px;
  --header-h: 64px;
}

/* ---------- LIGHT theme — opt-in via JS ---------- */
:root[data-theme="light"] {
  --c-bg: #fbfbfd;
  --c-bg-2: #f4f5f8;
  --c-surface: #ffffff;
  --c-surface-2: #f4f5f8;
  --c-border: rgba(10, 11, 20, 0.08);
  --c-border-strong: rgba(10, 11, 20, 0.16);

  --c-text: #0e1020;
  --c-text-muted: #51546b;
  --c-text-dim: #767a92;

  --c-accent: #6d5cf0;
  --c-accent-hover: #5a48d8;
  --c-accent-soft: rgba(109, 92, 240, 0.10);
  --c-accent-on: #ffffff;
  --c-accent-ring: rgba(109, 92, 240, 0.35);

  --grad-accent: linear-gradient(135deg, #6d5cf0 0%, #8b7cff 50%, #c084fc 100%);
  --grad-hero-mesh:
    radial-gradient(60% 80% at 15% 0%, rgba(109, 92, 240, 0.10), transparent 60%),
    radial-gradient(50% 60% at 90% 20%, rgba(192, 132, 252, 0.08), transparent 60%);

  --shadow-sm: 0 1px 2px rgba(10, 11, 20, 0.06);
  --shadow: 0 12px 32px rgba(10, 11, 20, 0.08);
  --shadow-lg: 0 24px 64px rgba(10, 11, 20, 0.12);
  --glow-accent: 0 0 0 1px rgba(109, 92, 240, 0.20), 0 16px 48px rgba(109, 92, 240, 0.16);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--c-bg);
  color-scheme: dark;
}
:root[data-theme="light"] html,
:root[data-theme="light"] { color-scheme: light; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-latin);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html[lang="he"] body { font-family: var(--font-hebrew); }
html[lang="ar"] body { font-family: var(--font-arabic); }

img, svg { max-width: 100%; height: auto; display: block; }

/* ---------- A11y helpers ---------- */
.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--c-accent);
  color: var(--c-accent-on);
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  z-index: 1000;
}
.skip-link:focus {
  inset-inline-start: var(--space-4);
  top: var(--space-4);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container-narrow { max-width: var(--max-width-narrow); }

@media (max-width: 640px) {
  .container { padding-inline: var(--space-4); }
}

.section { padding-block: var(--space-24); position: relative; }
.section-tight { padding-block: var(--space-16); }
@media (max-width: 720px) {
  .section { padding-block: var(--space-16); }
  .section-tight { padding-block: var(--space-12); }
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-accent);
  margin-bottom: var(--space-4);
}
.section-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-header { margin-bottom: var(--space-12); max-width: 720px; }
.section-header.center { margin-inline: auto; text-align: center; }
.section-header p {
  color: var(--c-text-muted);
  font-size: 1.0625rem;
  margin: var(--space-3) 0 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  margin: 0 0 var(--space-4);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--c-text);
}
html[lang="he"] :is(h1,h2,h3,h4),
html[lang="ar"] :is(h1,h2,h3,h4) {
  letter-spacing: -0.01em;
  line-height: 1.25;
}

h1 { font-size: clamp(2.25rem, 5.5vw + 0.5rem, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 2.5vw + 0.75rem, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 var(--space-4); color: var(--c-text); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--c-accent);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
a:hover { color: var(--c-accent-hover); text-decoration: underline; }

.text-gradient {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  /* Hebrew italic doesn't exist; keep upright */
  font-style: normal;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--c-bg) 70%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--c-text);
  letter-spacing: 0.02em;
}
.logo:hover { color: var(--c-text); text-decoration: none; }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--grad-accent);
  color: var(--c-accent-on);
  border-radius: var(--radius-sm);
  font-size: 1.0625rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(139, 124, 255, 0.35);
}
.logo-text { font-weight: 700; }

.primary-nav {
  display: flex;
  gap: var(--space-2);
}
.primary-nav a {
  color: var(--c-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background-color 0.15s;
}
.primary-nav a:hover { color: var(--c-text); background: var(--c-surface); text-decoration: none; }

@media (max-width: 860px) {
  .primary-nav { display: none; }
}

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

.lang-switcher {
  display: inline-flex;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--c-surface);
  padding: 3px;
}
.lang-switcher button {
  background: transparent;
  border: 0;
  color: var(--c-text-muted);
  padding: 0 var(--space-3);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  min-height: 28px;
  min-width: 36px;
  font-family: inherit;
  border-radius: var(--radius-full);
  transition: background-color 0.15s, color 0.15s;
}
.lang-switcher button[aria-pressed="true"] {
  background: var(--c-accent);
  color: var(--c-accent-on);
}
.lang-switcher button:hover:not([aria-pressed="true"]) {
  background: var(--c-surface-2);
  color: var(--c-text);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
}
.theme-toggle:hover {
  background: var(--c-surface-2);
  color: var(--c-text);
  border-color: var(--c-border-strong);
}
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-6);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
  text-align: center;
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: -0.005em;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--c-accent);
  color: var(--c-accent-on);
  box-shadow: var(--glow-accent);
}
.btn-primary:hover { background: var(--c-accent-hover); color: var(--c-accent-on); }

.btn-secondary {
  background: var(--c-surface);
  color: var(--c-text);
  border-color: var(--c-border-strong);
}
.btn-secondary:hover { background: var(--c-surface-2); color: var(--c-text); border-color: var(--c-border-strong); }

.btn-large { min-height: 54px; padding: 0 var(--space-8); font-size: 1rem; }

.btn .btn-icon { width: 18px; height: 18px; flex-shrink: 0; }
/* Logical positioning of icons in mixed-direction layouts */
html[lang="he"] .btn-secondary .btn-icon-arrow,
html[lang="ar"] .btn-secondary .btn-icon-arrow { transform: scaleX(-1); }

/* ---------- Trust pills (small badges above hero CTA) ---------- */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-6);
  color: var(--c-text-muted);
  font-size: 0.875rem;
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.trust-row svg { width: 14px; height: 14px; color: var(--c-success); }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  text-align: center;
  padding-block: var(--space-24) var(--space-20);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-hero-mesh);
  z-index: -1;
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-text-muted);
  margin-bottom: var(--space-6);
  letter-spacing: 0.01em;
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-soft);
}

.hero h1 {
  max-width: 880px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}
.hero-subtitle {
  max-width: 640px;
  margin: 0 auto var(--space-10);
  color: var(--c-text-muted);
  font-size: 1.125rem;
  line-height: 1.55;
}
.hero-ctas {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .hero { padding-block: var(--space-16) var(--space-12); }
  .hero-ctas .btn { width: 100%; }
}

/* =========================================================================
   Live demo widget
   ========================================================================= */
.demo {
  background: var(--c-bg-2);
  border-block: 1px solid var(--c-border);
}

.demo-toggle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}
.demo-toggle-row .label {
  color: var(--c-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

/* iOS-style switch button */
.demo-switch {
  position: relative;
  width: 56px;
  height: 32px;
  border: 1px solid var(--c-border-strong);
  background: var(--c-surface-2);
  border-radius: var(--radius-full);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, border-color 0.25s ease;
  flex-shrink: 0;
}
.demo-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 24px;
  height: 24px;
  background: var(--c-text);
  border-radius: 50%;
  transition: transform 0.25s ease, background 0.25s ease;
}
.demo-switch[aria-pressed="true"] {
  background: var(--c-accent);
  border-color: var(--c-accent);
}
.demo-switch[aria-pressed="true"]::after {
  transform: translateX(24px);
  background: var(--c-accent-on);
}
html[dir="rtl"] .demo-switch[aria-pressed="true"]::after { transform: translateX(-24px); }

.demo-state {
  display: inline-block;
  min-width: 72px;
  text-align: start;
  font-weight: 600;
  color: var(--c-text);
}
.demo-state.is-off { color: var(--c-text-muted); }

/* The mock chat */
.demo-chat {
  max-width: 720px;
  margin-inline: auto;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.demo-chat-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--c-bg-2);
  border-bottom: 1px solid var(--c-border);
}
.demo-chat-dots {
  display: inline-flex;
  gap: 6px;
}
.demo-chat-dots span {
  width: 10px; height: 10px;
  background: var(--c-border-strong);
  border-radius: 50%;
}
.demo-chat-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-text-muted);
  letter-spacing: 0.02em;
}
.demo-chat-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Messages — direction is controlled by data-rtl on the chat root */
.demo-msg {
  max-width: 85%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  line-height: 1.55;
  /* Default — broken state: force LTR even on Hebrew text */
  direction: ltr;
  unicode-bidi: plaintext;
  text-align: start;
}
.demo-msg-user {
  align-self: flex-end;
  background: var(--c-accent);
  color: var(--c-accent-on);
  border-bottom-right-radius: var(--radius-sm);
}
.demo-msg-bot {
  align-self: flex-start;
  background: var(--c-bg-2);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  border-bottom-left-radius: var(--radius-sm);
}

/* When toggle is ON, flip prose to RTL — but keep code inline LTR */
.demo-chat[data-rtl="true"] .demo-msg {
  direction: rtl;
  text-align: start;
}
.demo-chat[data-rtl="true"] .demo-msg-user {
  align-self: flex-start;
  border-bottom-right-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-sm);
}
.demo-chat[data-rtl="true"] .demo-msg-bot {
  align-self: flex-end;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-sm);
}

.demo-msg code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.05em 0.4em;
  border-radius: 0.3em;
  direction: ltr;
  unicode-bidi: isolate;
}
:root[data-theme="light"] .demo-msg-user code { background: rgba(255,255,255,0.22); color: #fff; }
:root[data-theme="light"] .demo-msg-bot code { background: rgba(10,11,20,0.06); color: var(--c-text); }

.demo-caption {
  margin-top: var(--space-6);
  text-align: center;
  color: var(--c-text-muted);
  font-size: 0.875rem;
}

/* =========================================================================
   Before / after gallery (real screenshots)
   ========================================================================= */
.before-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.before-grid figure {
  margin: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.before-grid figure:hover {
  transform: translateY(-2px);
  border-color: var(--c-border-strong);
}
.before-grid img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--c-border);
}
.before-grid figcaption {
  padding: var(--space-4) var(--space-5);
  color: var(--c-text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* =========================================================================
   Supported sites grid
   ========================================================================= */
.supported {
  background: var(--c-bg-2);
  border-block: 1px solid var(--c-border);
}
.site-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-3);
}
.site-list li {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: var(--space-4);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9375rem;
  text-align: center;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Brand names are LTR even on RTL pages */
  direction: ltr;
  unicode-bidi: isolate;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.site-list li:hover {
  background: var(--c-surface-2);
  border-color: var(--c-border-strong);
  transform: translateY(-1px);
}

.supported-note {
  margin-top: var(--space-8);
  text-align: center;
  color: var(--c-text-dim);
  font-size: 0.875rem;
}

/* =========================================================================
   How it works
   ========================================================================= */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  counter-reset: step;
}
.steps li {
  background: var(--c-surface);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.steps li:hover {
  border-color: var(--c-border-strong);
  transform: translateY(-2px);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--c-accent-soft);
  color: var(--c-accent);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--space-5);
  font-variant-numeric: tabular-nums;
}
.steps h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-3);
}
.steps p {
  color: var(--c-text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* =========================================================================
   Pricing
   ========================================================================= */
.pricing {
  background: var(--c-bg-2);
  border-block: 1px solid var(--c-border);
}
.price-card {
  max-width: 480px;
  margin-inline: auto;
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-hero-mesh);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}
.price-card > * { position: relative; z-index: 1; }

.price-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--c-accent-soft);
  color: var(--c-accent);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.price-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--c-text-muted);
  margin-bottom: var(--space-4);
}
.price-amount {
  font-size: clamp(3.5rem, 9vw, 5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--space-2);
  letter-spacing: -0.04em;
  color: var(--c-text);
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-flex;
  align-items: baseline;
  gap: 0.15em;
}
.price-currency {
  font-size: 0.45em;
  vertical-align: top;
  color: var(--c-text-muted);
  font-weight: 600;
}
.price-period {
  font-size: 0.3em;
  color: var(--c-text-muted);
  font-weight: 500;
  letter-spacing: 0;
}
.price-label {
  color: var(--c-text-muted);
  margin-bottom: var(--space-8);
  font-size: 1rem;
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8);
  text-align: start;
  display: grid;
  gap: var(--space-3);
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: var(--c-text);
  line-height: 1.5;
}
.price-features li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  background-color: var(--c-accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 11 8 15 16 5'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 11 8 15 16 5'/></svg>") center / contain no-repeat;
}
.price-card .btn { width: 100%; }
.price-fineprint {
  color: var(--c-text-dim);
  font-size: 0.8125rem;
  margin-top: var(--space-6);
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
}

.price-note {
  max-width: 720px;
  margin: var(--space-10) auto 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-inline-start: 3px solid var(--c-accent);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
  font-size: 0.875rem;
  text-align: start;
  color: var(--c-text-muted);
  line-height: 1.6;
}
.price-note strong {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--c-text);
  font-weight: 600;
}

/* =========================================================================
   FAQ — native <details>
   ========================================================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.faq-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item[open] {
  border-color: var(--c-border-strong);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-5) var(--space-6);
  font-weight: 600;
  font-size: 1rem;
  color: var(--c-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-color: var(--c-text-muted);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 7 9 12 14 7'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 7 9 12 14 7'/></svg>") center / contain no-repeat;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(-180deg);
  background-color: var(--c-accent);
}
.faq-item summary:hover { background: var(--c-surface-2); }
.faq-item .faq-answer {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--c-text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.faq-item .faq-answer code {
  background: var(--c-surface-2);
  padding: 0.1em 0.4em;
  border-radius: 0.25em;
  font-family: var(--font-mono);
  font-size: 0.9em;
  direction: ltr;
  unicode-bidi: isolate;
}

/* =========================================================================
   Final CTA
   ========================================================================= */
.final-cta {
  text-align: center;
  position: relative;
  isolation: isolate;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-hero-mesh);
  z-index: -1;
  pointer-events: none;
}
.final-cta h2 { font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem); margin-bottom: var(--space-4); }
.final-cta p { color: var(--c-text-muted); margin-bottom: var(--space-8); font-size: 1.0625rem; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding-block: var(--space-10) var(--space-8);
  background: var(--c-bg);
}
.footer-inner {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr auto;
  align-items: start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 360px;
}
.footer-brand .logo { font-size: 1rem; }
.footer-brand p {
  color: var(--c-text-muted);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.5;
}
.footer-nav {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--c-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}
.footer-nav a:hover { color: var(--c-text); text-decoration: underline; }
.footer-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  color: var(--c-text-dim);
  font-size: 0.8125rem;
}
.footer-bottom .copyright { margin: 0; }

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* =========================================================================
   Legal pages (privacy / terms / accessibility) — preserved API
   ========================================================================= */
.legal-page {
  padding-block: var(--space-12) var(--space-20);
}
.legal-back {
  margin: 0 0 var(--space-6);
  font-size: 0.9375rem;
}
.legal-back a {
  color: var(--c-text-muted);
  text-decoration: none;
}
.legal-back a:hover { color: var(--c-accent); text-decoration: underline; }

.legal-header h1 { margin-bottom: var(--space-6); }

.legal-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--space-2) var(--space-6);
  margin: 0 0 var(--space-10);
  padding: var(--space-5) var(--space-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-inline-start: 3px solid var(--c-accent);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}
.legal-meta dt {
  margin: 0;
  font-weight: 600;
  color: var(--c-text-muted);
}
.legal-meta dd {
  margin: 0;
  color: var(--c-text);
}
.legal-meta time {
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}
@media (max-width: 600px) {
  .legal-meta {
    grid-template-columns: 1fr;
    gap: 0;
    padding: var(--space-4);
  }
  .legal-meta dt { margin-top: var(--space-3); }
  .legal-meta dt:first-child { margin-top: 0; }
  .legal-meta dd { margin-bottom: var(--space-1); }
}

.legal-body { line-height: 1.7; color: var(--c-text); }
.legal-body h2 {
  font-size: 1.5rem;
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  font-size: 1.125rem;
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}
.legal-body p { margin: 0 0 var(--space-4); color: var(--c-text); }
.legal-body ul,
.legal-body ol {
  margin: 0 0 var(--space-4);
  padding-inline-start: var(--space-6);
  color: var(--c-text);
}
.legal-body li { margin-bottom: var(--space-2); }
.legal-body code {
  background: var(--c-surface-2);
  padding: 0.1em 0.35em;
  border-radius: 0.25em;
  font-family: var(--font-mono);
  font-size: 0.9em;
  direction: ltr;
  unicode-bidi: isolate;
}
.legal-body hr {
  border: 0;
  border-top: 1px solid var(--c-border);
  margin: var(--space-8) 0;
}

.placeholder-note {
  background: var(--c-surface);
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--radius);
  padding: var(--space-5);
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}
.placeholder-note strong {
  color: var(--c-accent);
  font-weight: 700;
  margin-inline-end: var(--space-2);
}
