/* ==========================================================================
   WakeMeUp — marketing site styles
   "Frosted Night" — tokens consumed verbatim from docs/design/DESIGN_SYSTEM.md
   (§1 colors, §2 type, §3 glass tiers, §4 motion, §7 site identity).
   Vanilla CSS. No build step.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* §1.1 Dark theme — Aurora Night */
  --bg-base: #0B0E1A;
  --bg-elevated: #10152B;
  --aurora-violet: #241B54;
  --aurora-cyan: #4CC9F0;
  --surface-composite: #171E38; /* worst-case glass composite (§3.3) */

  --accent-violet: #7C5CFF;
  --accent-violet-text: #A99CFF;
  --accent-cyan: #4CC9F0;
  --accent-cyan-text: #7FDCEF;

  --success: #4ADE80;
  --warning: #FBBF24;
  --error: #FF5C7A;

  --text-primary: #F4F6FF;
  --text-secondary: #A7B0C8;
  --text-disabled: #5C6478;

  /* §3.1 Glass tiers (dark) — fill / blur / border / inner highlight / shadow / radius */
  --glass-1-fill: rgba(255, 255, 255, 0.06);
  --glass-1-border: rgba(255, 255, 255, 0.12);
  --glass-1-hi: rgba(255, 255, 255, 0.10);
  --glass-1-blur: 20px;
  --glass-1-radius: 16px;

  --glass-2-fill: rgba(255, 255, 255, 0.10);
  --glass-2-border: rgba(255, 255, 255, 0.16);
  --glass-2-hi: rgba(255, 255, 255, 0.12);
  --glass-2-blur: 28px;
  --glass-2-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --glass-2-radius: 24px;

  --glass-3-fill: rgba(255, 255, 255, 0.14);
  --glass-3-border: rgba(255, 255, 255, 0.20);
  --glass-3-hi: rgba(255, 255, 255, 0.16);
  --glass-3-blur: 40px;
  --glass-3-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  --glass-3-radius: 32px;

  /* §4.1 Motion durations */
  --d-instant: 100ms;
  --d-quick: 200ms;
  --d-standard: 300ms;
  --d-expressive: 450ms;
  --d-hero: 600ms;

  /* §4.2 Easing curves */
  --ease-settle: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ease-depart: cubic-bezier(0.3, 0, 0.8, 0.15);
  --ease-glide: cubic-bezier(0.2, 0, 0, 1);

  /* §2 Type */
  --font-latin: "Inter", -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "Inter", -apple-system, system-ui, sans-serif;
  --font-body: var(--font-latin);

  /* Scale (rem @16px base, per §2.2) */
  --fs-display: clamp(2.5rem, 1.4rem + 5vw, 3.5625rem); /* 57px max */
  --fs-headline: clamp(1.75rem, 1.3rem + 2vw, 2rem);    /* 32px */
  --fs-title: 1.375rem;                                  /* 22px */
  --fs-body: 1rem;                                       /* 16px */
  --fs-body-small: 0.875rem;                             /* 14px */
  --fs-label: 0.875rem;

  --maxw: 1120px;
  --reading: 720px;
  --section-pad: clamp(4rem, 3rem + 5vw, 7rem);
}

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

/* --------------------------------------------------------------------------
   2. Base / reset
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: var(--accent-cyan-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(var(--maxw), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Arabic adjustments per §2.2: +4% line-height, never letter-space Arabic */
html[lang="ar"] body {
  line-height: 1.56;
}

html[lang="ar"] .wordmark,
html[lang="ar"] [data-en],
html[lang="ar"] [data-ar] {
  letter-spacing: normal;
}

/* Skip link */
.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  transition: top var(--d-quick) var(--ease-settle);
}

.skip-link:focus-visible {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   3. Aurora background + noise (§1.1, §3.1 noise 2.5%)
   -------------------------------------------------------------------------- */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg-base);
}

.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  width: 140vmax;
  height: 140vmax;
  border-radius: 50%;
  will-change: transform;
}

/* violet bloom — top-right */
.aurora::before {
  top: -55vmax;
  inset-inline-end: -45vmax;
  background: radial-gradient(circle at center,
      rgba(124, 92, 255, 0.28) 0%,
      rgba(36, 27, 84, 0.55) 30%,
      rgba(36, 27, 84, 0) 62%);
  animation: drift-a 46s var(--ease-glide) infinite alternate;
}

/* cyan bloom — bottom-left */
.aurora::after {
  bottom: -60vmax;
  inset-inline-start: -50vmax;
  background: radial-gradient(circle at center,
      rgba(76, 201, 240, 0.14) 0%,
      rgba(20, 27, 62, 0.5) 32%,
      rgba(20, 27, 62, 0) 60%);
  animation: drift-b 58s var(--ease-glide) infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-9vmax, 7vmax, 0) scale(1.08); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to   { transform: translate3d(8vmax, -6vmax, 0) scale(1); }
}

/* 2.5% noise overlay — kills gradient banding (§3.1) */
.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* --------------------------------------------------------------------------
   4. Header / nav
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-1-fill);
  -webkit-backdrop-filter: blur(var(--glass-1-blur));
  backdrop-filter: blur(var(--glass-1-blur));
  border-bottom: 1px solid var(--glass-1-border);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: var(--surface-composite);
  }
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand svg {
  width: 28px;
  height: 28px;
  color: var(--text-primary);
}

.wordmark {
  font-family: var(--font-latin);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: 1.125rem;
}

.site-header nav {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  color: var(--text-secondary);
  font-size: var(--fs-label);
  font-weight: 500;
}

.nav-link:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.lang-toggle {
  font-family: var(--font-latin);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-violet-text);
  background: transparent;
  border: 1px solid rgba(169, 156, 255, 0.4);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  min-height: 36px;
  min-width: 48px;
  cursor: pointer;
  transition: background var(--d-instant) var(--ease-settle),
              color var(--d-instant) var(--ease-settle);
}

.lang-toggle:hover {
  background: rgba(124, 92, 255, 0.15);
}

/* --------------------------------------------------------------------------
   5. Buttons (§5 recipes)
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 56px;
  padding: 0 1.75rem;
  border-radius: 999px;
  font-size: var(--fs-label);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--d-instant) var(--ease-settle),
              filter var(--d-quick) var(--ease-settle);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: rgba(124, 92, 255, 0.9);
  color: var(--text-primary);
  border: none;
}

.btn-primary:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

.btn-ghost {
  background: var(--glass-1-fill);
  border: 1px solid rgba(169, 156, 255, 0.4);
  color: var(--accent-violet-text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: clamp(3.5rem, 2rem + 6vw, 6.5rem) 0 var(--section-pad);
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-body-small);
  font-weight: 500;
  color: var(--accent-cyan-text);
  border: 1px solid rgba(127, 220, 239, 0.3);
  background: rgba(76, 201, 240, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: var(--fs-display);
  letter-spacing: -0.02em;
  margin-bottom: 0.4em;
}

html[lang="ar"] .hero h1 {
  letter-spacing: normal;
  line-height: 1.25;
}

.hero .sub {
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--glass-2-fill);
  border: 1px solid var(--glass-2-border);
  border-radius: 12px;
  padding: 0.6rem 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: background var(--d-quick) var(--ease-settle);
}

.play-badge:hover {
  background: rgba(255, 255, 255, 0.14);
  text-decoration: none;
}

.play-badge svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.play-badge .pb-top {
  display: block;
  font-size: 0.625rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.play-badge .pb-main {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
}

.hero-note {
  margin-top: 1.1rem;
  font-size: var(--fs-body-small);
  color: var(--text-secondary);
}

.hero-note .dot {
  color: var(--success);
  margin-inline-end: 0.4rem;
}

/* Phone mockup ----------------------------------------------------------- */

.phone-scene {
  perspective: 1200px;
  display: flex;
  justify-content: center;
}

.phone {
  width: min(320px, 78vw);
  aspect-ratio: 9 / 18.6;
  border-radius: 44px;
  background: #0D1122;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 40px 90px rgba(36, 27, 84, 0.5);
  padding: 12px;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform var(--d-expressive) var(--ease-glide);
  will-change: transform;
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: var(--bg-base);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* tiny aurora inside the screen */
.phone-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 85% -5%, rgba(124, 92, 255, 0.30) 0%, rgba(36, 27, 84, 0) 60%),
    radial-gradient(110% 60% at 0% 105%, rgba(76, 201, 240, 0.13) 0%, rgba(20, 27, 62, 0) 55%);
  pointer-events: none;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
}

.p-statusbar {
  display: flex;
  justify-content: space-between;
  font-size: 0.625rem;
  color: var(--text-secondary);
  font-family: var(--font-latin);
}

.p-greeting {
  margin-top: 0.4rem;
  font-size: 0.6875rem;
  color: var(--text-secondary);
}

.p-alarm-card {
  position: relative;
  border-radius: var(--glass-3-radius);
  background: var(--glass-3-fill);
  border: 1.5px solid var(--glass-3-border);
  box-shadow: inset 0 1px 0 var(--glass-3-hi);
  padding: 1rem 1.1rem;
}

.p-alarm-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.p-chip {
  font-size: 0.5625rem;
  font-weight: 500;
  color: var(--accent-cyan-text);
  border: 1px solid rgba(127, 220, 239, 0.35);
  background: rgba(76, 201, 240, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-family: var(--font-latin);
}

.p-time {
  font-family: var(--font-latin);
  font-size: clamp(2.4rem, 9vw, 2.9rem);
  font-weight: 600;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  direction: ltr;
  unicode-bidi: isolate;
  margin: 0.15rem 0 0.35rem;
}

.p-countdown {
  font-size: 0.6875rem;
  color: var(--accent-cyan-text);
  font-family: var(--font-latin);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

.p-challenges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  position: relative;
}

.p-challenge {
  flex: 1 1 auto;
  text-align: center;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--glass-1-fill);
  border: 1px solid var(--glass-1-border);
  border-radius: var(--glass-1-radius);
  padding: 0.55rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}

.p-challenge svg {
  width: 16px;
  height: 16px;
  color: var(--accent-violet-text);
}

.p-rows {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

.p-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-radius: var(--glass-1-radius);
  background: var(--glass-1-fill);
  border: 1px solid var(--glass-1-border);
  padding: 0.55rem 0.8rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.p-switch {
  flex: none;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent-violet);
  position: relative;
}

.p-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  inset-inline-end: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
}

.p-switch.off {
  background: var(--glass-1-fill);
  border: 1px solid var(--glass-1-border);
}

.p-switch.off::after {
  inset-inline-end: auto;
  inset-inline-start: 2px;
  background: var(--text-disabled);
}

/* --------------------------------------------------------------------------
   7. Sections / cards
   -------------------------------------------------------------------------- */

.section {
  padding-block: var(--section-pad);
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.section-head .eyebrow {
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--accent-cyan-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.5rem;
}

html[lang="ar"] .section-head .eyebrow {
  letter-spacing: normal;
  text-transform: none;
}

.section-head h2 {
  font-size: var(--fs-headline);
  letter-spacing: -0.015em;
}

html[lang="ar"] .section-head h2 {
  letter-spacing: normal;
}

.section-head p {
  color: var(--text-secondary);
}

/* Feature cards ---------------------------------------------------------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  position: relative;
  border-radius: var(--glass-2-radius);
  background: var(--glass-2-fill);
  border: 1px solid var(--glass-2-border);
  box-shadow:
    inset 0 1px 0 var(--glass-2-hi),
    var(--glass-2-shadow);
  padding: 1.75rem;
  -webkit-backdrop-filter: blur(var(--glass-2-blur));
  backdrop-filter: blur(var(--glass-2-blur));
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card {
    background: var(--surface-composite);
  }
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(124, 92, 255, 0.14);
  border: 1px solid rgba(169, 156, 255, 0.3);
  margin-bottom: 1rem;
}

.card .icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent-violet-text);
}

.card.cyan .icon {
  background: rgba(76, 201, 240, 0.10);
  border-color: rgba(127, 220, 239, 0.3);
}

.card.cyan .icon svg {
  color: var(--accent-cyan-text);
}

.card h3 {
  font-size: var(--fs-title);
  margin-bottom: 0.4rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin: 0;
}

.card ul {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.card ul li {
  font-size: var(--fs-body-small);
  font-weight: 500;
  color: var(--text-primary);
  background: var(--glass-1-fill);
  border: 1px solid var(--glass-1-border);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}

/* honest-limitations card uses warning accent (per §1.1 warning role) */
.card.honest .icon {
  background: rgba(251, 191, 36, 0.10);
  border-color: rgba(251, 191, 36, 0.35);
}

.card.honest .icon svg {
  color: var(--warning);
}

.card.honest a {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 500;
}

/* How it works ----------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  border-radius: var(--glass-2-radius);
  background: var(--glass-2-fill);
  border: 1px solid var(--glass-2-border);
  box-shadow: inset 0 1px 0 var(--glass-2-hi);
  padding: 1.75rem;
  -webkit-backdrop-filter: blur(var(--glass-1-blur));
  backdrop-filter: blur(var(--glass-1-blur));
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .step {
    background: var(--surface-composite);
  }
}

.step-illus {
  height: 96px;
  border-radius: var(--glass-1-radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-1-border);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}

.step-illus svg {
  width: 64px;
  height: 64px;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(124, 92, 255, 0.9);
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  font-family: var(--font-latin);
}

.step h3 {
  font-size: 1.125rem;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin: 0;
}

.reliability-note {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border-radius: var(--glass-1-radius);
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.07);
  padding: 1rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.reliability-note svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--warning);
  margin-top: 0.15rem;
}

.reliability-note strong {
  color: var(--text-primary);
}

/* FAQ --------------------------------------------------------------------- */

.faq {
  max-width: var(--reading);
  margin-inline: auto;
}

.faq-item {
  border-radius: var(--glass-1-radius);
  background: var(--glass-1-fill);
  border: 1px solid var(--glass-1-border);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text-primary);
  min-height: 48px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .chev {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--accent-cyan-text);
  transition: transform var(--d-quick) var(--ease-settle);
}

.faq-item[open] summary .chev {
  transform: rotate(180deg);
}

.faq-item .faq-body {
  padding: 0 1.4rem 1.2rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.faq-item .faq-body p:last-child {
  margin-bottom: 0;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--glass-1-border);
  background: var(--glass-1-fill);
  padding: 3rem 0 2.5rem;
  -webkit-backdrop-filter: blur(var(--glass-1-blur));
  backdrop-filter: blur(var(--glass-1-blur));
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-footer {
    background: var(--surface-composite);
  }
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
  justify-content: space-between;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: var(--fs-body-small);
  max-width: 22rem;
  margin-top: 0.75rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: var(--fs-body-small);
}

.footer-links a,
.footer-links button {
  color: var(--text-secondary);
  text-align: start;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--text-primary);
}

.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-1-border);
  color: var(--text-disabled);
  font-size: var(--fs-body-small);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.footer-legal .disclaimer {
  max-width: 46rem;
}

/* --------------------------------------------------------------------------
   8. Scroll reveal (§4.3 — 60ms stagger, Settle, 16px + 0.97→1.0)
      Hidden state only applies when JS is present (html.js), so content
      is always visible without JavaScript.
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition:
    opacity var(--d-standard) var(--ease-settle),
    transform var(--d-standard) var(--ease-settle);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   9. Privacy page
   -------------------------------------------------------------------------- */

.page-hero {
  padding: clamp(3rem, 2rem + 4vw, 5rem) 0 1rem;
  text-align: center;
}

.page-hero h1 {
  font-size: var(--fs-headline);
}

.page-hero .meta {
  color: var(--text-secondary);
  font-size: var(--fs-body-small);
}

.privacy-card {
  max-width: var(--reading);
  margin: 2rem auto var(--section-pad);
  border-radius: var(--glass-3-radius);
  background: var(--glass-3-fill);
  border: 1.5px solid var(--glass-3-border);
  box-shadow:
    inset 0 1px 0 var(--glass-3-hi),
    var(--glass-3-shadow);
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  -webkit-backdrop-filter: blur(var(--glass-3-blur));
  backdrop-filter: blur(var(--glass-3-blur));
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .privacy-card {
    background: var(--surface-composite);
  }
}

.draft-note {
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.07);
  border-radius: var(--glass-1-radius);
  padding: 0.9rem 1.2rem;
  font-size: var(--fs-body-small);
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.draft-note strong {
  color: var(--warning);
}

.privacy-card section {
  margin-bottom: 2.25rem;
}

.privacy-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-1-border);
}

.privacy-card section:first-of-type h2 {
  border-top: none;
  padding-top: 0;
}

.privacy-card p,
.privacy-card li {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.privacy-card strong {
  color: var(--text-primary);
}

.privacy-card ul {
  padding-inline-start: 1.25rem;
}

.privacy-card li {
  margin-bottom: 0.4rem;
}

.privacy-card .placeholder {
  color: var(--accent-cyan-text);
  font-family: var(--font-latin);
}

.policy-lang {
  font-size: var(--fs-body-small);
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.policy-lang a {
  font-weight: 500;
}

/* AR section of the policy — RTL-correct */
.policy-ar {
  direction: rtl;
  text-align: right;
}

.policy-ar h2,
.policy-ar p,
.policy-ar li {
  font-family: var(--font-arabic);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   10. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .phone-scene {
    order: -1;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .site-header nav .nav-link {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-ctas .btn {
    width: 100%;
  }

  .play-badge {
    width: 100%;
    justify-content: flex-start;
  }
}

/* --------------------------------------------------------------------------
   11. Reduced motion (§4.5 — 150ms opacity-only crossfades, no loops)
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .aurora::before,
  .aurora::after {
    animation: none;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: opacity 150ms ease;
  }

  .js [data-reveal].revealed {
    transition: none;
  }

  .phone {
    transform: none !important;
    transition: none;
  }

  .faq-item summary .chev,
  .btn,
  .play-badge {
    transition-duration: 150ms;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
