/* just-ai.it — page styles
   Imports design tokens from tokens.css (Just AI It Design System).
   ========================================================================= */
@import url("./tokens.css");

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: linear-gradient(160deg, #f2efff 0%, #f8f6ff 50%, #f0eeff 100%) fixed;
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; cursor: pointer; }
img { display: block; max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; }

/* Focus ring — royal indigo @ 70% opacity, meets 3:1 non-text contrast (WCAG 2.1 SC 1.4.11) */
:focus-visible {
  outline: 4px solid rgba(49, 45, 208, 0.7);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ===== Header (sticky, Variant B) ===== */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-faint);
  box-shadow: var(--shadow-xs);
  transition: background var(--dur-md) var(--ease-out);
}
.header__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 36px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 16px;
}
.header__logo { height: 32px; display: block; }
.header__links {
  display: flex;
  gap: 28px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.header__links a { transition: color var(--dur-sm) var(--ease-out); }
.header__links a:hover,
.header__links a:focus-visible { color: var(--accent); }
.header__right { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}
.lang-toggle button,
.lang-toggle a {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--fg-muted);
  cursor: pointer;
  text-decoration: none;
  transition: color var(--dur-sm) var(--ease-out);
}
.lang-toggle button.active,
.lang-toggle a.active { color: var(--accent); font-weight: var(--fw-black); }
.lang-toggle button:hover:not(.active),
.lang-toggle a:hover:not(.active) { color: var(--fg); }
.lang-toggle .sep { color: var(--fg-faint); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--r-pill);
  font-weight: var(--fw-black);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
  transition: transform var(--dur-sm) var(--ease-out),
              box-shadow var(--dur-sm) var(--ease-out),
              background var(--dur-sm) var(--ease-out),
              border-color var(--dur-sm) var(--ease-out);
  border: 1px solid transparent;
}

.btn--dark {
  background: var(--ink-900);
  color: var(--paper);
}
.btn--dark:hover  { background: var(--ink-700); color: var(--paper); }
.btn--dark:active { background: var(--ink-800); color: var(--paper); transform: scale(0.97); }

.btn--gradient {
  background: var(--brand-gradient);
  color: var(--paper);
  box-shadow: var(--shadow-brand-sm);
  padding: 13px 22px;
  letter-spacing: 0.2em;
}
/* inset box-shadow paints below text — explicit color lock prevents any cascade override */
.btn--gradient:hover,
.btn--gradient:active,
.btn--gradient:focus,
.btn--gradient:visited {
  color: var(--paper);
}
.btn--gradient:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 9999px rgba(255, 255, 255, 0.12), var(--shadow-brand-md);
}
.btn--gradient:active {
  transform: scale(0.97) translateY(0);
  box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.09), var(--shadow-brand-sm);
}

.btn--ghost {
  background: var(--paper);
  color: var(--fg);
  border-color: var(--border);
  padding: 13px 22px;
  letter-spacing: 0.2em;
}
.btn--ghost:hover  { border-color: var(--border-brand); background: var(--accent-soft-bg); color: var(--fg); }
.btn--ghost:active { background: var(--accent-soft-bg); color: var(--fg); transform: scale(0.97); }

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}
.btn--gradient:disabled {
  opacity: 0.6;
  transform: none;
}
.btn--gradient:disabled:hover {
  opacity: 0.6;
  transform: none;
  box-shadow: var(--shadow-brand-sm);
}

/* ===== Hero shell — dot-grid + soft gradient tint ===== */
/* ===== Floating outline shapes — Vantage-style background layer ===== */
.bg-shapes {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-shape {
  position: absolute;
  background: transparent;
  will-change: transform;
}

/* Shape 1 — purple, top-left, large — SPINNING */
.bg-shape:nth-child(1) {
  width: 440px; height: 440px;
  top: -200px; left: -190px;
  border-radius: 60px;
  border: 2.5px solid rgba(96, 4, 176, 0.28);
  animation: shape-spin 30s linear infinite;
}
/* Shape 2 — cyan, top-right, medium — SPINNING */
.bg-shape:nth-child(2) {
  width: 250px; height: 250px;
  top: 30px; right: 50px;
  border-radius: 44px;
  border: 2px solid rgba(51, 152, 244, 0.32);
  animation: shape-spin 42s linear infinite reverse;
  animation-delay: -8s;
}
/* Shape 3 — violet, center-right — SPINNING */
.bg-shape:nth-child(3) {
  width: 370px; height: 370px;
  top: 32vh; right: -140px;
  border-radius: 56px;
  border: 2px solid rgba(49, 45, 208, 0.20);
  animation: shape-spin 48s linear infinite;
  animation-delay: -15s;
}
/* Shape 4 — purple, center-left — SPINNING */
.bg-shape:nth-child(4) {
  width: 310px; height: 310px;
  top: 50vh; left: -130px;
  border-radius: 50px;
  border: 2.5px solid rgba(96, 4, 176, 0.22);
  animation: shape-spin 36s linear infinite reverse;
  animation-delay: -5s;
}
/* Shape 5 — cyan, bottom-right — SPINNING */
.bg-shape:nth-child(5) {
  width: 290px; height: 290px;
  bottom: 10vh; right: -90px;
  border-radius: 48px;
  border: 2px solid rgba(51, 152, 244, 0.26);
  animation: shape-spin 38s linear infinite;
  animation-delay: -22s;
}
/* Shape 6 — violet, bottom-left — SPINNING */
.bg-shape:nth-child(6) {
  width: 400px; height: 400px;
  bottom: -140px; left: 3vw;
  border-radius: 64px;
  border: 2px solid rgba(49, 45, 208, 0.16);
  animation: shape-spin 52s linear infinite reverse;
  animation-delay: -10s;
}

@keyframes shape-spin {
  from { transform: rotate(0deg);   }
  to   { transform: rotate(360deg); }
}

/* ===== Static blurred shapes — visible in mission / apps / founder sections ===== */
.bg-shapes-static {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-shape-static {
  position: absolute;
  background: transparent;
}

/* Blurred shape 1 — purple, center-left — STATIC */
.bg-shape-static:nth-child(1) {
  width: 480px; height: 480px;
  top: 52vh; left: -210px;
  border-radius: 68px;
  border: 3px solid rgba(96, 4, 176, 0.30);
  filter: blur(6px);
  transform: rotate(22deg);
}
/* Blurred shape 2 — cyan, center-right — STATIC */
.bg-shape-static:nth-child(2) {
  width: 360px; height: 360px;
  top: 38vh; right: -145px;
  border-radius: 56px;
  border: 2.5px solid rgba(51, 152, 244, 0.28);
  filter: blur(7px);
  transform: rotate(-18deg);
}
/* Blurred shape 3 — violet, bottom-left — STATIC */
.bg-shape-static:nth-child(3) {
  width: 320px; height: 320px;
  bottom: 12vh; left: 6vw;
  border-radius: 50px;
  border: 2px solid rgba(49, 45, 208, 0.22);
  filter: blur(6px);
  transform: rotate(35deg);
}

/* ===== Hero shell — transparent so body lavender + shapes show through ===== */
.hero-shell {
  position: relative;
  background: transparent;
}
.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--ink-200) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* ===== Hero (Variant 2 — left + sparkle orb) ===== */
.hero {
  padding: 64px 36px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -50px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(96, 4, 176, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero__content { position: relative; z-index: 1; }
.hero__eyebrow {
  font-size: var(--fs-micro);
  font-weight: var(--fw-black);
  letter-spacing: var(--ls-caps-xl);
  text-transform: uppercase;
  color: var(--accent);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.02;
  letter-spacing: var(--ls-tight);
  margin: 12px 0 18px;
  color: var(--fg-strong);
}
.hero__mission {
  color: var(--fg);
  font-size: 16px;
  line-height: var(--lh-body);
  max-width: 520px;
  margin: 0;
}
.hero__ctas {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.sparkle-deco {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* .sparkle removed — replaced by .blob-trio */

/* ===== Stat strip ===== */
.stats-strip {
  padding: 0 36px 24px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.stats-strip__eyebrow {
  font-size: var(--fs-micro);
  font-weight: var(--fw-black);
  letter-spacing: var(--ls-caps-xl);
  text-transform: uppercase;
  color: var(--fg-subtle);
  text-align: center;
  margin-bottom: 16px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}
.stat { text-align: center; padding: 0 16px; }
.stat__value {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 42px;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-black);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--fg);
  margin-top: 8px;
}
.stat__desc {
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  margin-top: 6px;
  font-weight: var(--fw-medium);
}
.stats-strip__source {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--fg-subtle);
  margin-top: 6px;
  font-style: italic;
  letter-spacing: 0.05em;
}

/* ===== Mission / Manifesto (Variant 1) ===== */
.mission-section {
  padding: 32px 36px;
  background: rgba(248, 250, 252, 0.82);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.mission-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(96, 4, 176, 0.06) 0%, transparent 65%);
  pointer-events: none;
}
.mission-section__inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.mission-section__quote-mark {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 1;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: -20px;
  font-weight: var(--fw-bold);
  display: block;
}
.mission-section__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 auto;
  max-width: 760px;
  color: var(--fg-strong);
}
.mission-section__attribution {
  margin-top: 28px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-black);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.principles {
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.principle {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--border-faint);
  border-radius: var(--r-lg);
  text-align: left;
}
.principle__num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}
.principle__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 16px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  color: var(--fg-strong);
}
.principle__body {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ===== Apps grid (Style 2 — richer cards) ===== */
.apps-section {
  padding: 64px 36px;
  background: rgba(255, 255, 255, 0.84);
  position: relative;
  z-index: 1;
}
.section-head {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 36px;
}
.section-head__eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-black);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.section-head__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(26px, 3.5vw, 30px);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg-strong);
}
.section-head__subline {
  color: var(--fg-muted);
  font-size: var(--fs-sm);
  margin: 8px auto 0;
  max-width: 440px;
}
.apps-grid {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.app-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--dur-md) var(--ease-out);
  display: flex;
  flex-direction: column;
  color: inherit;
  position: relative;
}
.app-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-brand);
  box-shadow: 0 14px 40px rgba(49, 45, 208, 0.16);
}
.app-card__shot {
  width: 88px;
  flex-shrink: 0;
  align-self: stretch;
  background: linear-gradient(180deg, #edebfb 0%, #e2e4fb 50%, #d9eefd 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* shot::before removed — solid colors need no white overlay */
.app-card__icon-tile {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--border-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}
.app-card__icon-tile svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app-card__content {
  padding: 16px 18px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.app-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.app-card__tag {
  font-size: 9px;
  font-weight: var(--fw-black);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.app-card__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: var(--fw-black);
  letter-spacing: -0.01em;
  color: var(--fg-strong);
}
.app-card__desc {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  line-height: 1.6;
  flex: 1;
}
.app-card__meta {
  padding: 10px 18px 14px;
  border-top: 1px solid var(--border-faint);
  display: flex;
  align-items: center;
}
.app-card__framework {
  font-size: 9px;
  color: var(--fg-subtle);
  font-weight: var(--fw-semibold);
}
.app-card__framework strong {
  color: var(--fg);
  font-weight: var(--fw-black);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
/* Hover-reveal open button — circle in top-end corner, hidden until hover/focus */
.app-card__open {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-sm) var(--ease-out), transform var(--dur-sm) var(--ease-out);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  z-index: 2;
  line-height: 1;
}
.app-card:hover .app-card__open,
.app-card:focus-within .app-card__open {
  opacity: 1;
  pointer-events: auto;
}
.app-card__open:hover {
  background: var(--accent-soft-bg);
  border-color: var(--border-brand);
  transform: scale(1.12);
}
.app-card__open--disabled {
  color: var(--fg-muted);
  opacity: 0.5;
  cursor: not-allowed;
}
.app-card__open--disabled:hover {
  background: var(--paper);
  border-color: var(--border);
  transform: scale(1);
}

/* Body button: button reset + horizontal flex (shot left, content right) */
.app-card__body {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  width: 100%;
  flex: 1;
}
.app-card__body:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* Active state when this card's spotlight is showing */
.app-card.is-active {
  border-color: var(--border-brand);
  box-shadow: 0 0 0 2px var(--border-brand), 0 14px 40px rgba(49, 45, 208, 0.20);
}
/* Active shot: per-color overrides below handle each hue */

/* ===== Per-app color overrides (data-color set by JS on each .app-card) ===== */

/* ---- indigo ---- */
.app-card[data-color="indigo"] .app-card__shot {
  background: var(--color-indigo-base);
}
.app-card[data-color="indigo"] .app-card__tag { color: var(--color-indigo-base); }
.app-card[data-color="indigo"] .app-card__icon-tile svg { color: var(--color-indigo-base); }
.app-card[data-color="indigo"]:hover {
  box-shadow: 0 14px 40px var(--color-indigo-glow);
  border-color: color-mix(in srgb, var(--color-indigo-base) 38%, transparent);
}
.app-card[data-color="indigo"].is-active {
  border-color: color-mix(in srgb, var(--color-indigo-base) 48%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-indigo-base) 38%, transparent),
              0 14px 40px var(--color-indigo-glow);
}
.app-card[data-color="indigo"].is-active .app-card__shot {
  background: color-mix(in srgb, var(--color-indigo-base) 82%, black);
}

/* ---- purple ---- */
.app-card[data-color="purple"] .app-card__shot {
  background: var(--color-purple-base);
}
.app-card[data-color="purple"] .app-card__tag { color: var(--color-purple-base); }
.app-card[data-color="purple"] .app-card__icon-tile svg { color: var(--color-purple-base); }
.app-card[data-color="purple"]:hover {
  box-shadow: 0 14px 40px var(--color-purple-glow);
  border-color: color-mix(in srgb, var(--color-purple-base) 38%, transparent);
}
.app-card[data-color="purple"].is-active {
  border-color: color-mix(in srgb, var(--color-purple-base) 48%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-purple-base) 38%, transparent),
              0 14px 40px var(--color-purple-glow);
}
.app-card[data-color="purple"].is-active .app-card__shot {
  background: color-mix(in srgb, var(--color-purple-base) 82%, black);
}

/* ---- azure ---- */
.app-card[data-color="azure"] .app-card__shot {
  background: var(--color-azure-base);
}
.app-card[data-color="azure"] .app-card__tag { color: var(--color-azure-base); }
.app-card[data-color="azure"] .app-card__icon-tile svg { color: var(--color-azure-base); }
.app-card[data-color="azure"]:hover {
  box-shadow: 0 14px 40px var(--color-azure-glow);
  border-color: color-mix(in srgb, var(--color-azure-base) 38%, transparent);
}
.app-card[data-color="azure"].is-active {
  border-color: color-mix(in srgb, var(--color-azure-base) 48%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-azure-base) 38%, transparent),
              0 14px 40px var(--color-azure-glow);
}
.app-card[data-color="azure"].is-active .app-card__shot {
  background: color-mix(in srgb, var(--color-azure-base) 82%, black);
}

/* ===== Apps Spotlight panel ===== */
.apps-spotlight {
  max-width: 920px;
  margin: 28px auto 0;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 40px;
  box-shadow: var(--shadow-md);
  scroll-margin-top: 90px;
  position: relative;
  overflow: hidden;
}
.apps-spotlight::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--spotlight-color, var(--brand-violet));
  transition: background var(--dur-md) var(--ease-out);
}
.apps-spotlight__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 18px 32px;
  margin-bottom: 28px;
}
.apps-spotlight__eyebrow {
  grid-column: 1;
  font-size: var(--fs-micro);
  font-weight: var(--fw-black);
  letter-spacing: var(--ls-caps-xl);
  text-transform: uppercase;
  color: var(--spotlight-color, var(--accent));
  transition: color var(--dur-md) var(--ease-out);
}
.apps-spotlight__title {
  grid-column: 1;
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  color: var(--fg-strong);
}
.apps-spotlight__desc {
  grid-column: 1;
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 540px;
}
.apps-spotlight__framework {
  grid-column: 1;
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
  max-width: 540px;
}
.apps-spotlight__framework a {
  color: var(--spotlight-color, var(--accent));
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity var(--dur-sm) var(--ease-out);
}
.apps-spotlight__framework a:hover {
  opacity: 0.78;
}
.apps-spotlight__cta {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  white-space: nowrap;
}
/* CTA in spotlight uses the active app's color, not the brand gradient */
.apps-spotlight .apps-spotlight__cta.btn--gradient {
  background: var(--spotlight-color, var(--brand-violet));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--spotlight-color, var(--accent)) 30%, transparent);
  transition: filter var(--dur-sm) var(--ease-out),
              transform var(--dur-sm) var(--ease-out),
              box-shadow var(--dur-sm) var(--ease-out),
              background var(--dur-md) var(--ease-out);
}
.apps-spotlight .apps-spotlight__cta.btn--gradient:hover,
.apps-spotlight .apps-spotlight__cta.btn--gradient:active,
.apps-spotlight .apps-spotlight__cta.btn--gradient:visited {
  color: var(--paper);
}
.apps-spotlight .apps-spotlight__cta.btn--gradient:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 9999px rgba(255, 255, 255, 0.12),
              0 12px 32px color-mix(in srgb, var(--spotlight-color, var(--accent)) 36%, transparent);
}
.apps-spotlight .apps-spotlight__cta.btn--gradient:active {
  transform: scale(0.97) translateY(0);
  box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.09),
              0 6px 16px color-mix(in srgb, var(--spotlight-color, var(--accent)) 30%, transparent);
}

/* ===== Testimonials grid ===== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.testimonial {
  background: var(--paper-tint);
  border: 1px solid var(--border-faint);
  border-radius: var(--r-lg);
  padding: 22px 20px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.testimonial__quote-mark {
  position: absolute;
  top: 6px;
  left: 14px;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  color: var(--spotlight-color, var(--accent));
  opacity: 0.22;
  pointer-events: none;
  transition: color var(--dur-md) var(--ease-out);
}
.testimonial__quote {
  margin: 14px 0 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg);
  flex: 1;
}
.testimonial__attribution {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-faint);
}
.testimonial__avatar {
  --avatar-hue: 270;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: hsl(var(--avatar-hue), 70%, 92%);
  color: hsl(var(--avatar-hue), 65%, 32%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: var(--fw-black);
  flex-shrink: 0;
}
.testimonial__name {
  font-size: 12px;
  font-weight: var(--fw-bold);
  color: var(--fg-strong);
  line-height: 1.3;
}
.testimonial__role {
  font-size: 11px;
  color: var(--fg-subtle);
  line-height: 1.3;
}

.pill {
  font-size: 8px;
  font-weight: var(--fw-black);
  padding: 3px 8px;
  border-radius: var(--r-pill);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.pill--personal { background: var(--color-azure-tint-bg);  color: var(--color-azure-tint-fg); }
.pill--business { background: var(--color-purple-tint-bg); color: var(--color-purple-tint-fg); }

/* ===== Founder Spotlight ===== */
.founder-section {
  padding: 64px 36px;
  background: rgba(248, 250, 252, 0.82);
  position: relative;
  z-index: 1;
}
.founder-card {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.founder-card::before,
.founder-card::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  pointer-events: none;
  z-index: 0;
}
.founder-card::before {
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, rgba(96, 4, 176, 0.08) 0%, transparent 65%);
}
.founder-card::after {
  bottom: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(51, 152, 244, 0.10) 0%, transparent 65%);
}
.founder-card__text { position: relative; z-index: 1; min-width: 0; }
.founder-card__eyebrow {
  font-size: var(--fs-micro);
  font-weight: var(--fw-black);
  letter-spacing: var(--ls-caps-xl);
  text-transform: uppercase;
  color: var(--accent);
}
.founder-card__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(24px, 3.5vw, 32px);
  margin: 14px 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--fg-strong);
  word-break: break-word;
  overflow-wrap: break-word;
}
.founder-card__bio {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--fg);
  line-height: 1.65;
  max-width: 520px;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Creds — "Previously" company logos strip */
.creds {
  margin: 18px 0 22px;
  padding: 16px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}
.creds__eyebrow {
  font-size: 8px;
  font-weight: var(--fw-black);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 10px;
}
.creds__logos {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  width: auto;
  max-width: 100%;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.creds__logos::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  scroll-snap-align: start;
  min-width: 100px;
  font-family: var(--font-ui);
  font-weight: var(--fw-black);
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
  opacity: 0.7;
  transition: opacity var(--dur-md) var(--ease-out), color var(--dur-md) var(--ease-out);
  user-select: none;
}
.logo-item:hover { opacity: 1; color: var(--accent); }
.logo-item__img {
  max-width: 100%;
  height: auto;
  max-height: 32px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: opacity var(--dur-md) var(--ease-out), filter var(--dur-md) var(--ease-out);
}
.logo-item:hover .logo-item__img {
  opacity: 1;
  filter: grayscale(0%);
}
.logo-item--unit {
  font-family: var(--font-mono);
  font-weight: var(--fw-bold);
  color: var(--ink-700);
  border: 1.5px solid currentColor;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
}
.logo-item--sapiens {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  color: #1a4d80;
  letter-spacing: 0;
}
.logo-item--ncr {
  font-weight: var(--fw-black);
  letter-spacing: -0.02em;
  font-size: 14px;
  color: #0a3a5d;
}
.logo-item--amdocs {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  color: #ee7a30;
  letter-spacing: 0.01em;
}
.logo-item--matrixdna {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--ok);
  letter-spacing: 0;
}

/* Founder actions row */
.founder-card__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}
.socials {
  display: flex;
  gap: 8px;
  margin-left: 6px;
  flex-shrink: 0;
  min-width: fit-content;
  overflow: visible;
}
.social {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  border-radius: var(--r-sm);
  background: var(--bg);
  flex-shrink: 0 !important;
  flex-basis: 36px !important;
  border: 1px solid var(--border-faint);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--fg-muted);
  transition: all var(--dur-md) var(--ease-out);
}
.social:hover,
.social:focus-visible {
  background: var(--accent-soft-bg);
  color: var(--accent);
}
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* Photo — gradient ring + brand-tinted overlay + Solo Studio badge */
.founder-card__photo {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.photo-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--brand-gradient);
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-brand-lg);
  position: relative;
}
.photo-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--ink-800);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(49, 45, 208, 0.20) 0%, rgba(51, 152, 244, 0.18) 100%);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.photo-fallback {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 56px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.18);
  position: relative;
  z-index: 0;
  display: none;
}
.photo-badge {
  position: absolute;
  bottom: 10px;
  right: -6px;
  background: var(--paper);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 9px;
  font-weight: var(--fw-black);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--border-faint);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===== Footer (Variant 2 — slate-900, gradient stripe, 2-column) ===== */
.footer {
  background: var(--bg-inverse);
  color: var(--fg-inverse);
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-gradient);
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}
.footer__logo {
  height: 36px;
  display: block;
  margin-bottom: 14px;
  filter: brightness(1.1);
}
.footer__tagline {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 18px;
  color: var(--ink-200);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  line-height: 1.4;
  max-width: 380px;
}
.footer__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--ink-300);
  font-weight: var(--fw-semibold);
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-pill);
  transition: all var(--dur-md) var(--ease-out);
  text-decoration: none;
}
.footer__email:hover,
.footer__email:focus-visible {
  background: rgba(49, 45, 208, 0.28);
  color: var(--paper);
  border-color: rgba(99, 91, 230, 0.5);
}
.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.footer__col-title {
  font-size: 9px;
  font-weight: var(--fw-black);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin: 0 0 14px;
}
.footer__col a {
  display: block;
  color: var(--ink-300);
  font-size: var(--fs-sm);
  margin-bottom: 10px;
  font-weight: var(--fw-medium);
  transition: color var(--dur-sm) var(--ease-out);
  text-decoration: none;
}
.footer__col a:hover,
.footer__col a:focus-visible { color: var(--paper); }

/* Footer socials use the same .social class but with dark-bg variant */
.footer__col .socials .social {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--ink-300);
}
.footer__col .socials .social:hover,
.footer__col .socials .social:focus-visible {
  background: rgba(49, 45, 208, 0.32);
  color: var(--paper);
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: var(--fs-xs);
  color: var(--fg-subtle);
  letter-spacing: 0.05em;
}
.footer__legal a {
  color: var(--fg-subtle);
  margin-left: 18px;
  text-decoration: none;
  transition: color var(--dur-sm) var(--ease-out);
}
.footer__legal a:hover,
.footer__legal a:focus-visible { color: var(--ink-300); }

/* Visually hidden — for screen-reader-only headings */
.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;
}

/* ===== Mobile nav drawer (≤640px) ===== */
.header__menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--fg);
  border-radius: var(--r-sm);
  transition: background var(--dur-sm) var(--ease-out);
}
.header__menu-toggle:hover { background: var(--bg-subtle); }
.header__menu-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header__nav { padding: 12px 20px; }
  .header__links { display: none; gap: 12px; }

  /* Hide decorative shape layers on mobile — avoid fixed-position compositing issues */
  .bg-shapes, .bg-shapes-static { display: none; }

  /* Restore solid section backgrounds on mobile */
  body { background: var(--bg); }
  .hero-shell { background: linear-gradient(160deg, #f5f4fe 0%, #f7f5ff 45%, #f0f5fd 100%); }
  .mission-section { background: var(--bg); }
  .apps-section    { background: var(--paper); }
  .founder-section { background: var(--bg); }

  .hero {
    grid-template-columns: 1fr;
    padding: 40px 24px 16px;
  }
  .sparkle-deco { display: none; }
  .sparkle { width: 140px; height: 140px; }
  .sparkle svg { width: 56px; height: 56px; }

  .stats-strip { padding: 0 24px 8px; }
  .stats { grid-template-columns: 1fr; gap: 24px; }

  .mission-section { padding: 12px 24px 32px; }
  .principles { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }

  .apps-section { padding: 48px 24px; }
  .apps-grid { grid-template-columns: 1fr; }
  .apps-spotlight { padding: 28px 22px; margin-top: 24px; }
  .apps-spotlight__head { grid-template-columns: 1fr; }
  .apps-spotlight__cta { grid-column: 1; grid-row: auto; align-self: start; justify-self: start; }
  .testimonials { grid-template-columns: 1fr; }

  .founder-section { padding: 48px 24px; }
  .founder-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 24px;
    gap: 28px;
  }
  .founder-card__bio { margin-left: auto; margin-right: auto; max-width: 100%; }
  .creds__eyebrow { text-align: center; }
  .creds__logos { width: 100%; justify-content: flex-start; }
  .founder-card__actions { justify-content: center; }
  .founder-card__photo { order: -1; }

  .footer { padding: 36px 24px; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__legal a:first-child { margin-left: 0; }
}

@media (max-width: 640px) {
  .header__menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header__nav.is-open .header__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border-faint);
    box-shadow: var(--shadow-md);
    padding: 16px 24px 24px;
    gap: 16px;
    z-index: var(--z-nav);
    align-items: flex-start;
  }
  .header { position: sticky; }
  .header__nav { position: relative; }

  .hero__title { font-size: 32px; }
  .hero__ctas { gap: 8px; }
  .btn {
    white-space: normal;
    flex-wrap: wrap;
  }
  .btn--gradient,
  .btn--ghost { padding: 12px 18px; font-size: 9px; }

  .founder-card__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .founder-card__actions .btn { width: 100%; }

  .footer__cols { grid-template-columns: 1fr; gap: 24px; }
}

/* ===================================================================
   RTL / Hebrew overrides  (applied when html[dir="rtl"])
   =================================================================== */

/* Hebrew font stack */
[dir="rtl"] body {
  font-family: 'Heebo', var(--font-ui);
}
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] .hero__title,
[dir="rtl"] .founder-card__title,
[dir="rtl"] .mission-section__title,
[dir="rtl"] .section-head__title,
[dir="rtl"] .app-card__title {
  font-family: 'Heebo', var(--font-display);
  letter-spacing: 0;
}

/* Header: push links to the right side in RTL */
[dir="rtl"] .header__nav {
  flex-direction: row-reverse;
}
[dir="rtl"] .header__links {
  flex-direction: row-reverse;
}
[dir="rtl"] .header__right {
  flex-direction: row-reverse;
}
[dir="rtl"] .lang-toggle {
  flex-direction: row-reverse;
}

/* Hero */
[dir="rtl"] .hero__ctas {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

/* Principle cards: left-align text becomes right-align */
[dir="rtl"] .principle {
  text-align: right;
}
[dir="rtl"] .principle__num {
  text-align: right;
}

/* Mission attribution */
[dir="rtl"] .mission-section__attribution {
  text-align: right;
}

/* Stats: keep centered but let RTL flow naturally */
[dir="rtl"] .stats-strip__eyebrow,
[dir="rtl"] .stats-strip__source {
  text-align: center;
}

/* App cards: dir="rtl" already reverses the row-flex flow so tag stays on
   the start (right) and the open link on the end (left). No override needed. */

/* Spotlight panel: dir="rtl" auto-flips the grid columns so the title block
   sits on the right and the CTA on the left. No grid-column override needed.
   Just align text to the right. */
[dir="rtl"] .apps-spotlight__head { text-align: right; }
[dir="rtl"] .apps-spotlight__title { text-align: right; }
[dir="rtl"] .apps-spotlight__desc { text-align: right; }

/* Testimonials in RTL — quote mark anchors top-right; text aligned right;
   attribution row keeps default flex-direction row, which in RTL puts the
   avatar on the right and the name block to its left automatically. */
[dir="rtl"] .testimonial__quote-mark {
  left: auto;
  right: 14px;
}
[dir="rtl"] .testimonial__quote {
  text-align: right;
}
[dir="rtl"] .testimonial__name,
[dir="rtl"] .testimonial__role {
  text-align: right;
}

/* Founder card: flip so photo appears on the left in RTL */
[dir="rtl"] .founder-card {
  grid-template-columns: auto 1fr;
}
[dir="rtl"] .founder-card__text {
  order: 2;
}
[dir="rtl"] .founder-card__photo {
  order: 1;
}

/* Creds logo strip */
[dir="rtl"] .creds__logos {
  flex-direction: row-reverse;
}

/* Founder actions row */
[dir="rtl"] .founder-card__actions {
  flex-direction: row-reverse;
}

/* Footer */
[dir="rtl"] .footer__brand {
  align-items: flex-end;
  text-align: right;
}
[dir="rtl"] .footer__bottom {
  flex-direction: row-reverse;
}
[dir="rtl"] .footer__legal {
  flex-direction: row-reverse;
}
[dir="rtl"] .footer__legal a {
  margin-left: 0;
  margin-right: 18px;
}
[dir="rtl"] .footer__cols {
  direction: rtl;
}
[dir="rtl"] .footer__col {
  text-align: right;
}

/* Mobile nav drawer in RTL */
@media (max-width: 640px) {
  [dir="rtl"] .header__nav.is-open .header__links {
    align-items: flex-end;
  }
}

/* Mobile founder card in RTL: keep photo on top, text centered */
@media (max-width: 768px) {
  [dir="rtl"] .founder-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  [dir="rtl"] .founder-card__text {
    order: 2;
  }
  [dir="rtl"] .founder-card__photo {
    order: 1;
  }
  [dir="rtl"] .founder-card__actions {
    justify-content: center;
  }
  [dir="rtl"] .creds__logos {
    flex-direction: row-reverse;
    justify-content: center;
  }
  [dir="rtl"] .footer__brand {
    align-items: center;
    text-align: center;
  }
  [dir="rtl"] .footer__bottom {
    flex-direction: column;
    align-items: flex-end;
  }
}

/* =========================================================================
   LEGAL PAGES — terms, privacy, accessibility
   ========================================================================= */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--sp-12) var(--sp-6) var(--sp-20);
  border-top: 4px solid var(--accent);
}

.legal-page__eyebrow {
  font-size: var(--fs-xs);
  font-weight: var(--fw-black);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.legal-page__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  color: var(--fg-strong);
  line-height: var(--lh-tight);
  margin-bottom: var(--sp-2);
}

.legal-page__meta {
  font-size: var(--fs-sm);
  color: var(--fg-muted);
  margin-bottom: var(--sp-12);
}

.legal-page__section {
  margin-bottom: var(--sp-10);
}

.legal-page__section h2 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-black);
  color: var(--fg-strong);
  margin-bottom: var(--sp-3);
}

.legal-page__section p,
.legal-page__section li {
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
  color: var(--fg-muted);
}

.legal-page__section ul,
.legal-page__section ol {
  padding-inline-start: var(--sp-6);
  margin-top: var(--sp-2);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.legal-page__warning {
  background: var(--warn-soft);
  border: 1px solid var(--warn);
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-6);
  margin-bottom: var(--sp-10);
}

.legal-page__warning p {
  font-size: var(--fs-sm);
  color: var(--warn-ink);
  line-height: var(--lh-body);
}

.legal-page__warning strong { font-weight: var(--fw-bold); }

.legal-page hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--sp-10) 0;
}

[dir="rtl"] .legal-page__section ul,
[dir="rtl"] .legal-page__section ol {
  padding-inline-start: var(--sp-6);
  padding-inline-end: 0;
}

/* ===== Scroll-reveal ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--dur-lg) var(--ease-out),
    transform var(--dur-lg) var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="delay-1"] { transition-delay: 80ms; }
[data-reveal="delay-2"] { transition-delay: 160ms; }

/* ===== Legal page per-page leading color ===== */
body[data-color="indigo"] {
  --accent:         var(--color-indigo-base);
  --accent-hover:   var(--color-indigo-hover);
  --accent-soft-bg: var(--color-indigo-tint-bg);
  --accent-soft-fg: var(--color-indigo-tint-fg);
  --border-brand:   color-mix(in srgb, var(--color-indigo-base) 35%, transparent);
}
body[data-color="purple"] {
  --accent:         var(--color-purple-base);
  --accent-hover:   var(--color-purple-hover);
  --accent-soft-bg: var(--color-purple-tint-bg);
  --accent-soft-fg: var(--color-purple-tint-fg);
  --border-brand:   color-mix(in srgb, var(--color-purple-base) 35%, transparent);
}
body[data-color="azure"] {
  --accent:         var(--color-azure-base);
  --accent-hover:   var(--color-azure-hover);
  --accent-soft-bg: var(--color-azure-tint-bg);
  --accent-soft-fg: var(--color-azure-tint-fg);
  --border-brand:   color-mix(in srgb, var(--color-azure-base) 35%, transparent);
}

/* ===== Three-blob hero graphic ===== */
.blob-trio {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blob-trio svg {
  overflow: visible;
  filter: drop-shadow(0 12px 32px rgba(49, 45, 208, 0.18));
}
.blob {
  animation: blob-float 9s ease-in-out infinite;
  transform-origin: 50% 50%;
}
.blob--indigo { animation-delay: 0s; }
.blob--purple { animation-delay: -3s; }
.blob--azure  { animation-delay: -6s; }

@keyframes blob-float {
  0%, 100% { transform: translate(0,    0)    rotate(0deg);   }
  33%       { transform: translate(4px,  -7px) rotate(2deg);   }
  66%       { transform: translate(-3px,  5px) rotate(-1.5deg);}
}

/* ===== Skip-to-main link (keyboard / SR users) ===== */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  padding: 10px 20px;
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  text-decoration: none;
  z-index: 9999;
}
.skip-link:focus-visible {
  top: 0;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  /* Reveal elements immediately — no animation */
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* hero-shell responsive dot-grid */
@media (max-width: 768px) {
  .hero-shell::after { background-size: 16px 16px; }
}

/* =========================================================================
   Buy Me a Coffee Widget RTL Override
   ========================================================================= */
[dir="rtl"] #bmc-wbtn,
[dir="rtl"] iframe#bmc-iframe,
[dir="rtl"] div[id^="bmc"],
[dir="rtl"] iframe[id^="bmc"],
[dir="rtl"] .bmc-btn-container {
  left: 18px !important;
  right: auto !important;
}
