/* ==========================================================================
   Moasher — مُؤشر | Landing styles
   Design tokens mirror the iOS app (Qimah/DesignSystem). Edit variables below
   to keep the marketing site in sync with the product.
   ========================================================================== */

/* ----- Fonts (Thmanyah Sans — same family as the app) ------------------- */
@font-face {
  font-family: "Thmanyah Sans";
  src: url("../fonts/ThmanyahSans-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah Sans";
  src: url("../fonts/ThmanyahSans-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah Sans";
  src: url("../fonts/ThmanyahSans-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah Sans";
  src: url("../fonts/ThmanyahSans-Black.otf") format("opentype");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah Sans";
  src: url("../fonts/ThmanyahSans-Liight.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}

/* ----- Design tokens ---------------------------------------------------- */
:root {
  /* Brand colour (AccentColor.colorset) */
  --accent: #5856d6;
  --accent-2: #7a78e3;
  --accent-soft: rgba(88, 86, 214, 0.10);

  /* Surfaces (AppBackground / Surface) */
  --bg: #f2f2f7;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f7fb;

  /* Labels */
  --label-primary: #000000;
  --label-secondary: rgba(60, 67, 67, 0.62);
  --label-tertiary: rgba(60, 67, 67, 0.32);

  /* Semantic */
  --price-up: #34c759;
  --price-down: #ff383c;
  --gold: #d4a23a;
  --divider: #e6e6e6;

  /* Radii (AppSpacing.Radius) */
  --r-card: 20px;
  --r-button: 22px;
  --r-pill: 28px;
  --r-lg: 32px;

  /* Spacing (AppSpacing) */
  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 12px;
  --s-lg: 16px;
  --s-xl: 20px;
  --s-2xl: 24px;
  --s-3xl: 40px;
  --s-4xl: 64px;
  --s-5xl: 96px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 18px 50px rgba(36, 35, 92, 0.16);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.55);

  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Dark tokens — applied ONLY when the user explicitly toggles dark mode
   (data-theme="dark"). The site DEFAULTS TO LIGHT regardless of the OS setting;
   the system preference is intentionally not auto-applied. */
:root[data-theme="dark"] {
  --accent: #5e5ce6;
  --accent-2: #8d8bf0;
  --accent-soft: rgba(94, 92, 230, 0.16);
  --bg: #000000;
  --bg-elevated: #0c0c0e;
  --surface: #1c1c1c;
  --surface-2: #161618;
  --label-primary: #ffffff;
  --label-secondary: rgba(255, 255, 255, 0.62);
  --label-tertiary: rgba(255, 255, 255, 0.34);
  --divider: #383838;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5), 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(28, 28, 30, 0.62);
  --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: "Thmanyah Sans", -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--label-primary);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

p { margin: 0; color: var(--label-secondary); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--s-2xl);
}

section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  letter-spacing: 0;
}

.section-head { text-align: center; max-width: 680px; margin-inline: auto; }
.section-head h2 {
  font-size: clamp(28px, 4.4vw, 44px);
  margin-top: var(--s-lg);
  letter-spacing: -0.02em;
}
.section-head p {
  font-size: clamp(16px, 2.2vw, 19px);
  margin-top: var(--s-lg);
}

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-sm);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), opacity 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 22px rgba(88, 86, 214, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(88, 86, 214, 0.4); }

.btn-ghost {
  background: var(--surface);
  color: var(--label-primary);
  border-color: var(--divider);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* App Store button — black in light mode, white in dark mode */
.btn-apple {
  background: #000;
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.4s var(--ease), color 0.4s var(--ease);
}
.btn-apple:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
:root[data-theme="dark"] .btn-apple { background: #fff; color: #000; }

.btn-sm { padding: 10px 20px; font-size: 15px; }

/* ----- Navigation ------------------------------------------------------- */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  padding-block: var(--s-md);
  transition: padding 0.3s var(--ease);
}
.nav-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 10px var(--s-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-lg);
  background: var(--glass-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-2xl);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a { color: var(--label-secondary); transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--label-primary); }

.nav-actions { display: flex; align-items: center; gap: var(--s-md); }

/* Theme toggle (sun / moon) */
.theme-toggle {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--label-primary);
  background: var(--surface);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.theme-toggle:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle svg { width: 20px; height: 20px; }
/* Show the sun in dark mode (tap → go light); moon in light mode (tap → dark) */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Language toggle (globe + code) — pill beside the circular theme toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 14px;
  flex-shrink: 0;
  border-radius: 999px;
  cursor: pointer;
  color: var(--label-primary);
  background: var(--surface);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.lang-toggle:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.lang-toggle:active { transform: scale(0.94); }
.lang-toggle svg { width: 18px; height: 18px; }
.lang-code { line-height: 1; letter-spacing: 0.02em; }

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 32px; /* reserve space so the injected logo doesn't shift layout */
}
/* Horizontal brand logo (assets/img/brand-h-logo.svg, injected by logo.js).
   The mark keeps its indigo; the wordmark + Latin recolour per theme:
   white in dark, black + grey in light. */
.brand-logo { height: 32px; width: auto; display: block; }
.lg-mark { fill: #6155f4; }
.lg-ar { fill: var(--label-primary); transition: fill 0.4s var(--ease); }
.lg-en { fill: var(--label-secondary); transition: fill 0.4s var(--ease); }

/* ----- Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(130px, 18vh, 190px) var(--s-5xl);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: var(--s-4xl);
}
.hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 60%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(17px, 2.4vw, 21px);
  margin-top: var(--s-2xl);
  max-width: 540px;
}
.hero-cta {
  display: flex;
  gap: var(--s-md);
  margin-top: var(--s-3xl);
  flex-wrap: wrap;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--s-lg);
  margin-top: var(--s-2xl);
  color: var(--label-tertiary);
  font-size: 14px;
}
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

/* soft gradient blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}
.blob-1 { width: 460px; height: 460px; background: var(--accent); inset-block-start: -120px; inset-inline-start: -80px; opacity: 0.22; }
.blob-2 { width: 380px; height: 380px; background: var(--gold); inset-block-start: 120px; inset-inline-end: -60px; opacity: 0.16; }

/* ----- Phone mockups ---------------------------------------------------- */
.phone {
  --pw: 290px;
  width: var(--pw);
  aspect-ratio: 290 / 600;
  background: var(--surface);
  border-radius: 46px;
  padding: 12px;
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.phone::before { /* notch / dynamic island */
  content: "";
  position: absolute;
  inset-block-start: 20px;
  inset-inline: 0;
  margin-inline: auto;
  width: 92px;
  height: 26px;
  background: #000;
  border-radius: var(--r-pill);
  z-index: 3;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.hero-phone-wrap {
  display: grid;
  place-items: center;
  position: relative;
}
.hero-phone-wrap .phone { --pw: 320px; transform: rotate(-2.5deg); }

/* mock screen content */
.scr-pad { padding: 46px var(--s-lg) var(--s-md); }
.scr-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--s-lg);
}
.scr-title { font-size: 22px; font-weight: 900; }
.scr-sub { font-size: 12px; color: var(--label-tertiary); font-weight: 500; }

.q-card {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 13px var(--s-lg);
  display: flex;
  align-items: center;
  gap: var(--s-md);
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid color-mix(in srgb, var(--divider) 60%, transparent);
}
.q-flag {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 18px;
  background: var(--surface-2);
  flex-shrink: 0;
}
.q-flag.gold { background: linear-gradient(135deg, #f4d27a, #d4a23a); }
.q-info { flex: 1; min-width: 0; }
.q-name { font-size: 15px; font-weight: 700; }
.q-code { font-size: 11px; color: var(--label-tertiary); font-weight: 500; }
.q-vals { text-align: start; }
.q-price { font-size: 15px; font-weight: 700; direction: ltr; }
.q-chg { font-size: 11px; font-weight: 700; direction: ltr; }
.up { color: var(--price-up); }
.down { color: var(--price-down); }

.spark { width: 54px; height: 26px; flex-shrink: 0; }

/* converter mock */
.conv-row {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 14px var(--s-lg);
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid color-mix(in srgb, var(--divider) 60%, transparent);
}
.conv-top { display: flex; align-items: center; gap: var(--s-sm); margin-bottom: 6px; }
.conv-amt { font-size: 24px; font-weight: 900; direction: ltr; text-align: start; }
.conv-cur { font-size: 12px; color: var(--label-tertiary); font-weight: 700; }
.conv-swap {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  margin: -4px auto;
  position: relative; z-index: 2;
  box-shadow: 0 4px 12px rgba(88,86,214,.3);
}

/* segmented control */
.segmented {
  display: flex;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 3px;
  margin-bottom: var(--s-md);
  font-size: 12px;
  font-weight: 700;
}
.segmented span { flex: 1; text-align: center; padding: 6px; border-radius: 9px; color: var(--label-tertiary); }
.segmented span.active { background: var(--surface); color: var(--label-primary); box-shadow: var(--shadow-sm); }

/* tab bar */
.tabbar {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding: 10px var(--s-lg) 22px;
  border-top: 1px solid var(--divider);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9px; font-weight: 600; color: var(--label-tertiary); }
.tab.active { color: var(--accent); }
.tab svg { width: 22px; height: 22px; }

/* ----- Features --------------------------------------------------------- */
.features { padding-block: var(--s-5xl); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-xl);
  margin-top: var(--s-4xl);
}
.feature-card {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--divider) 70%, transparent);
  border-radius: var(--r-card);
  padding: var(--s-2xl);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 15px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: var(--s-lg);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 20px; margin-bottom: var(--s-sm); }
.feature-card p { font-size: 15.5px; }

/* ----- Why section ------------------------------------------------------ */
.why { padding-block: var(--s-5xl); }
.why-wrap {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--divider) 70%, transparent);
  border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-md);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-xl) var(--s-4xl);
  margin-top: var(--s-3xl);
}
.why-item { display: flex; gap: var(--s-md); align-items: flex-start; }
.why-check {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
}
.why-check svg { width: 16px; height: 16px; }
.why-item h4 { font-size: 17px; margin-bottom: 2px; }
.why-item p { font-size: 14.5px; }

/* ----- Preview ---------------------------------------------------------- */
.preview { padding-block: var(--s-5xl); }
.preview-rail {
  display: flex;
  gap: var(--s-2xl);
  justify-content: center;
  align-items: flex-end;
  margin-top: var(--s-4xl);
  flex-wrap: wrap;
}
.preview-item { text-align: center; }
.preview-item .phone { --pw: 252px; }
.preview-item.mid .phone { --pw: 270px; }
.preview-cap { margin-top: var(--s-lg); font-weight: 700; font-size: 16px; }
.preview-cap span { display: block; font-size: 13px; color: var(--label-tertiary); font-weight: 500; }
.preview-cap .pc-title { font-size: 16px; color: var(--label-primary); font-weight: 700; }

/* ----- Contact form ----------------------------------------------------- */
.contact { padding-block: var(--s-5xl); }
.contact-form {
  max-width: 640px;
  margin-inline: auto;
  margin-top: var(--s-3xl);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--divider) 70%, transparent);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: var(--s-lg);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-lg);
}
.field { display: grid; gap: var(--s-sm); }
.field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--label-primary);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--label-primary);
  background: var(--surface-2);
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 13px 16px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--label-tertiary); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 132px; line-height: 1.7; }

/* Custom select chevron (RTL: arrow on the left side) */
.select-wrap { position: relative; }
.select-wrap select { padding-inline-start: 42px; cursor: pointer; }
.select-wrap .chev {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 14px;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--label-tertiary);
  width: 18px; height: 18px;
}
.field select:invalid { color: var(--label-tertiary); }

.contact-form .btn { margin-top: var(--s-xs); justify-self: stretch; width: 100%; }

.form-note {
  margin: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  padding: 12px;
  border-radius: 14px;
}
.form-note.ok { color: var(--price-up); background: color-mix(in srgb, var(--price-up) 12%, transparent); }
.form-note.err { color: var(--price-down); background: color-mix(in srgb, var(--price-down) 12%, transparent); }
.field input:user-invalid,
.field textarea:user-invalid,
.field select:user-invalid { border-color: var(--price-down); }

/* ----- Footer ----------------------------------------------------------- */
.footer {
  padding-block: var(--s-4xl) var(--s-2xl);
  border-top: 1px solid var(--divider);
  margin-top: var(--s-3xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--s-3xl);
  margin-bottom: var(--s-3xl);
}
.footer-about { max-width: 320px; }
.footer-about .brand { min-height: 38px; }
.footer-about .brand-logo { height: 38px; }
.footer-about p { margin-top: var(--s-md); font-size: 14.5px; }
.footer-col h4 { font-size: 14px; color: var(--label-tertiary); font-weight: 700; margin-bottom: var(--s-md); }
.footer-col a, .footer-col span {
  display: block;
  color: var(--label-secondary);
  font-size: 15px;
  margin-bottom: 10px;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-xl);
  border-top: 1px solid var(--divider);
  color: var(--label-tertiary);
  font-size: 13.5px;
  flex-wrap: wrap;
  gap: var(--s-md);
}

/* ----- Legal pages ------------------------------------------------------ */
.legal {
  padding-block: clamp(120px, 16vh, 170px) var(--s-4xl);
}
.legal-wrap {
  max-width: 760px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--divider) 70%, transparent);
  border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-sm);
}
.legal h1 { font-size: clamp(28px, 4.5vw, 40px); letter-spacing: -0.02em; }
.legal .updated { color: var(--label-tertiary); font-size: 14px; margin-top: var(--s-md); }
.legal h2 { font-size: 21px; margin-top: var(--s-3xl); margin-bottom: var(--s-md); }
.legal p { font-size: 16.5px; margin-bottom: var(--s-md); line-height: 2; }
.legal ul { margin: 0 0 var(--s-md); padding-inline-start: var(--s-xl); color: var(--label-secondary); }
.legal li { margin-bottom: var(--s-sm); font-size: 16.5px; line-height: 1.95; }
.legal a { color: var(--accent); font-weight: 700; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 700; font-size: 15px;
  margin-bottom: var(--s-2xl);
}
/* The chevron points toward the start in RTL; flip it for LTR so it reads as "back". */
html[dir="ltr"] .back-link svg { transform: scaleX(-1); }

/* ----- Reveal animation ------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ----- Responsive ------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-3xl); text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-meta { justify-content: center; }
  .hero-phone-wrap { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 600px) {
  .container { padding-inline: var(--s-lg); }
  .nav-links { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: var(--s-lg); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-2xl); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-phone-wrap .phone { --pw: 270px; }
  .form-grid { grid-template-columns: 1fr; }
}
