/* ============================================================
   B3 — b3house.co
   Dark liquid glass over a black void, lit by the mark's own
   sunset (#F89CDE → #F05370 → #F5A524). Glass is a privilege of
   floating layers only; everything in-flow sits opaque.
   ============================================================ */

:root {
  /* Depth ladder — three planes only */
  --bg-void:     #0B0B0D;
  --bg-card:     #161618;
  --bg-elevated: #1C1C1F;
  /* ⭐ B3 Aether — the identity's own blue ladder (2026-08-20). Values copied
     from b3-ios/B3/DesignSystem/Aether/AetherColors.swift, the single place
     hex is allowed to live, and NOT invented here. */
  --aether-300: #5B74FF;
  --aether-200: #8FA3FF;

  /* Text */
  --text-primary:   #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.64);
  --text-muted:     rgba(255, 255, 255, 0.40);
  --text-silver:    #BCBEC0;

  /* Strokes */
  --stroke-dim:   rgba(255, 255, 255, 0.08);
  --stroke-glass: rgba(255, 255, 255, 0.14);
  --stroke-brand: rgba(240, 83, 112, 0.35);

  /* Brand — the logo's own light */
  --grad-brand: linear-gradient(160deg, #F89CDE 0%, #F05370 55%, #F5A524 100%);
  --brand-hi:   #F89CDE;
  --brand:      #F05370;
  --brand-warm: #F5A524;
  --brand-mid:  #F576A0;

  /* Semantics — the app's own */
  --success: #10B981;
  --warning: #FCCE44;
  --error:   #FF383C;

  /* Shape */
  --radius-card: 20px;
  --radius-pill: 999px;

  /* Motion */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --dur-hover:  200ms;
  --dur-reveal: 600ms;
  --dur-modal:  350ms;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  overflow-x: clip;
}

body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: "IBM Plex Sans Arabic", -apple-system, "SF Pro", sans-serif;
  line-height: 1.75;
  overflow-x: clip;
}

::selection { background: rgba(240, 83, 112, 0.40); }

img { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--brand-mid);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* The one and only place gradient text is allowed: the colored line in the hero H1. */
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Glass tiers (floating layers only) ---------- */

/* Tier 1 — floating chrome: nav, chips */
.glass-1 {
  background: rgba(20, 20, 24, 0.62);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--stroke-glass);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 16px 48px rgba(0, 0, 0, 0.45);
}

/* Tier 2 — hero tile & modals: deeper, brand-lit */
.glass-2 {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(240, 83, 112, 0.10) 0%, transparent 60%),
    rgba(24, 22, 26, 0.55);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--stroke-glass);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(240, 83, 112, 0.10),
    0 32px 90px rgba(0, 0, 0, 0.60),
    0 24px 80px rgba(240, 83, 112, 0.16);
}

@supports not (backdrop-filter: blur(1px)) {
  .glass-1, .glass-2, .nav { background: rgba(20, 20, 24, 0.92); }
}

/* ---------- Nav (glass tier 1, edge-to-edge) ---------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: rgba(20, 20, 24, 0.62);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--stroke-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo { display: inline-flex; align-items: center; }
/* The mark sits bare: no tile, no glow, no «B3» spelled beside it. */
.nav-mark { width: 44px; height: auto; display: block; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--dur-hover) var(--ease-out);
}
.nav-links a:hover { color: var(--brand-mid); }
.nav-cta {
  background: var(--grad-brand);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: transform var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out);
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(240, 83, 112, 0.30);
}
.lang-toggle {
  background: transparent;
  border: 1px solid var(--stroke-glass);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  cursor: pointer;
  transition: color var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out);
}
.lang-toggle:hover { color: var(--text-primary); border-color: var(--stroke-brand); }
@media (max-width: 720px) {
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 156px 0 96px;
  text-align: center;
  overflow: hidden;
}
/* Parallax layer — JS moves transform only, so centering uses auto margins. */
.hero-glow {
  position: absolute;
  top: -220px;
  inset-inline: 0;
  margin-inline: auto;
  width: min(900px, 140vw);
  height: 620px;
  background: radial-gradient(ellipse at center, rgba(240, 83, 112, 0.22) 0%, rgba(245, 165, 36, 0.08) 45%, transparent 70%);
  pointer-events: none;
  will-change: transform;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.3;
  max-width: 900px;
  margin: 0 auto 20px;
  position: relative;
}
.hero p.lead {
  color: var(--text-secondary);
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 400;
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto 36px;
  position: relative;
}

/* The stage: a glass tile holding the mark, chips hovering outside it. */
.hero-stage {
  position: relative;
  width: min(580px, 94vw);
  height: 320px;
  margin: 0 auto 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Color pools behind the glass, so the blur has something to drink. */
.stage-bloom {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
}
.bloom-pink {
  width: 280px; height: 240px;
  top: -10px;
  inset-inline-start: 16%;
  background: rgba(240, 83, 112, 0.30);
}
.bloom-amber {
  width: 240px; height: 200px;
  bottom: -20px;
  inset-inline-end: 14%;
  background: rgba(245, 165, 36, 0.18);
}
.icon-tile {
  width: 260px;
  height: 260px;
  border-radius: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  animation: heroFloat 7s ease-in-out infinite;
}
/* The mark carries its own gradient — never tinted, never overlaid. */
.icon-mark {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(240, 83, 112, 0.35))
          drop-shadow(0 2px 12px rgba(245, 165, 36, 0.18));
}

.float-chip {
  position: absolute;
  z-index: 2;
  border-radius: 16px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  white-space: nowrap;
  animation: heroFloat 7s ease-in-out infinite;
}
.float-chip b {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.chip-live {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  top: 34px;
  inset-inline-start: 0;
  color: #FF6B6E;
  font-weight: 600;
  animation-delay: 0s;
}
.chip-live b { color: var(--warning); }
.chip-price {
  bottom: 30px;
  inset-inline-end: 0;
  animation-delay: 0.4s;
}
.chip-deal {
  top: 96px;
  inset-inline-end: -6px;
  color: var(--success);
  animation-delay: 0.8s;
}
.chip-deal b { color: var(--text-secondary); font-weight: 400; font-size: 12px; }
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--error);
  animation: pulse 1.6s ease-in-out infinite;
}
@media (max-width: 640px) {
  .hero-stage { height: 300px; }
  .icon-tile { width: 210px; height: 210px; border-radius: 46px; }
  .icon-mark { width: 148px; }
  .chip-live  { top: 4px; inset-inline-start: 2px; }
  .chip-deal  { top: auto; bottom: 4px; inset-inline-start: 2px; inset-inline-end: auto; }
  .chip-price { bottom: 4px; inset-inline-end: 2px; }
}

@keyframes pulse { 50% { opacity: 0.35; } }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.hero-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  position: relative;
}
.badge {
  border: 1px solid var(--stroke-dim);
  background: var(--bg-card);
  border-radius: var(--radius-pill);
  padding: 7px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex-shrink: 0; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #0B0B0D;
  border-radius: 16px;
  padding: 13px 28px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  position: relative;
  transition: transform var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out);
}
.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(240, 83, 112, 0.30);
}
.store-btn .soon {
  font-size: 11px;
  font-weight: 400;
  color: rgba(11, 11, 13, 0.55);
  display: block;
  line-height: 1.2;
  text-align: start;
}
.store-btn svg { flex-shrink: 0; }
.store-btn > span { text-align: start; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  margin-bottom: 14px;
}
.section-sub {
  color: var(--text-secondary);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
  font-size: 17px;
  line-height: 1.75;
}

/* ---------- The three ways (opaque cards, app-quote icons) ---------- */
.journey-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) {
  .journey-cards { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}
.j-card {
  background: var(--bg-card);
  border: 1px solid var(--stroke-dim);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  transition: transform var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out);
}
.j-card:hover { transform: translateY(-3px); border-color: var(--stroke-brand); }
.j-icon {
  width: 60px;
  height: 60px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
/* Aurora and emerald survive here only — literal quotes of the app's own icons. */
.j-icon-aurora  { background: rgba(107, 33, 247, 0.12); border: 1px solid rgba(107, 33, 247, 0.30); }
.j-icon-emerald { background: rgba(16, 185, 129, 0.10); border: 1px solid rgba(16, 185, 129, 0.30); }
.j-icon-sunset  { background: rgba(240, 83, 112, 0.10); border: 1px solid rgba(240, 83, 112, 0.30); }
.j-icon svg { width: 28px; height: 28px; }
.j-card h3 { font-size: 20px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.j-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.8; }

/* The garage door at motif scale, same slats and handle as the app. */
.mini-garage-door {
  width: 30px;
  height: 27px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  outline: 1px solid rgba(240, 83, 112, 0.5);
}
.mini-garage-door span {
  flex: 1;
  background: linear-gradient(180deg, #3A3A3A 0%, #282828 60%, #1A1A1A 100%);
}
.mini-garage-door .door-handle {
  position: absolute;
  bottom: 3px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: #6B6B6B;
}
html[dir="ltr"] .mini-garage-door .door-handle { transform: translateX(-50%); }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--stroke-dim);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  transition: transform var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out);
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--stroke-brand); }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: rgba(240, 83, 112, 0.08);
  border: 1px solid rgba(240, 83, 112, 0.22);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 20px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.8; }

/* ---------- App screenshots: pure-CSS iPhones ---------- */
.screens { padding-bottom: 72px; }
.screens .section-sub { margin-bottom: 36px; }
.shots-row {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 56px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-elevated) transparent;
}
/* Auto-margin bookends center the row when it fits, without breaking scroll when it doesn't. */
.shots-row::before,
.shots-row::after { content: ""; margin: auto; }
.shots-row::-webkit-scrollbar { height: 6px; }
.shots-row::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }

.shot { flex-shrink: 0; text-align: center; margin: 0; }
.shot figcaption {
  margin-top: 18px;
  color: var(--text-silver);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

/* Titanium bezel, big radius, lit top edge. */
.phone {
  width: 240px;
  border-radius: 52px;
  padding: 10px;
  position: relative;
  background: linear-gradient(180deg, #2E2E32 0%, #131316 55%, #0A0A0C 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 40px 90px rgba(0, 0, 0, 0.60);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 42px;
}
/* Dynamic island */
.phone::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 27%;
  height: 20px;
  border-radius: var(--radius-pill);
  background: #000;
}
/* No tilt — the sides recede, the center glows. */
.shot-side { transform: translateY(28px) scale(0.94); }
.shot-side.visible { opacity: 0.85; }
.phone.center {
  width: 300px;
  z-index: 2;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 48px 110px rgba(0, 0, 0, 0.65),
    0 32px 100px rgba(240, 83, 112, 0.22);
}
.phone.center::after { height: 24px; top: 24px; }

@media (max-width: 767px) {
  .shots-row {
    scroll-snap-type: x mandatory;
    padding-bottom: 40px;
  }
  .shot { scroll-snap-align: center; }
  .shot-side { transform: none; }
  .shot-side.visible { opacity: 1; }
  .phone, .phone.center { width: min(70vw, 270px); }
  .phone::after, .phone.center::after { height: 18px; top: 18px; }
}

/* ---------- The journey, five steps ---------- */
.journey { background: var(--bg-card); border-block: 1px solid var(--stroke-dim); }
.journey .step { background: var(--bg-elevated); }
.journey-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
@media (max-width: 980px) {
  .journey-steps { grid-template-columns: repeat(2, 1fr); }
  .journey-steps .step:last-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .journey-steps { grid-template-columns: 1fr; }
  .journey-steps .step:last-child { grid-column: auto; }
}
.step {
  border: 1px solid var(--stroke-dim);
  border-radius: var(--radius-card);
  padding: 26px 20px;
  transition: transform var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out);
}
.step:hover { transform: translateY(-3px); border-color: var(--stroke-brand); }
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  color: #fff;
  margin-bottom: 16px;
}
.step h3 { font-size: 16px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
.step p { color: var(--text-secondary); font-size: 13px; line-height: 1.7; }

/* ---------- Privacy ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 720px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--stroke-dim);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: transform var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out);
}
.trust-card:hover { transform: translateY(-3px); border-color: var(--stroke-brand); }
.trust-card .t-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 83, 112, 0.08);
  border: 1px solid rgba(240, 83, 112, 0.22);
}
.trust-card .t-icon svg { width: 22px; height: 22px; }
.trust-card h3 { font-size: 16px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
.trust-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.8; }

/* ---------- Contact ---------- */
.contact-wrap {
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--stroke-dim);
  border-radius: 24px;
  padding: 40px 32px;
}
@media (max-width: 480px) { .contact-wrap { padding: 32px 20px; } }
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--stroke-dim);
  border-radius: 14px;
  padding: 13px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  transition: border-color var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(240, 83, 112, 0.18);
}
.form-row textarea { min-height: 130px; resize: vertical; }
#cf-email { text-align: end; }
html[dir="ltr"] #cf-email { text-align: start; }
/* Honeypot: invisible to humans, tempting to bots. */
.form-field-website {
  position: absolute;
  inset-inline-start: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}
/* Turnstile mounts here later; the slot stays silent while empty. */
.turnstile-slot {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  min-height: 0;
}
.turnstile-slot:empty { display: none; }
.verify-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
/* Contact: a real address on our own domain, next to the form. */
#contact .section-sub { margin-bottom: 10px; }
.contact-direct {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0 auto 48px;
}
.contact-direct a { color: var(--brand-mid); text-decoration: none; }
.contact-direct a:hover { text-decoration: underline; }
.submit-btn {
  width: 100%;
  background: var(--grad-brand);
  border: none;
  border-radius: 16px;
  padding: 15px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity var(--dur-hover) var(--ease-out), transform var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out);
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(240, 83, 112, 0.30);
}
.submit-btn:disabled { opacity: 0.5; cursor: default; transform: none; box-shadow: none; }
.form-status { margin-top: 16px; text-align: center; font-size: 14px; font-weight: 600; display: none; }
.form-status.ok  { display: block; color: var(--success); }
.form-status.err { display: block; color: var(--error); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--stroke-dim);
  padding: 48px 0;
  text-align: center;
}
.footer-logo {
  width: 72px;
  height: auto;
  display: block;
  margin: 0 auto 14px;
  opacity: 0.92;
}
.footer-slogan {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 20px;
}
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--dur-hover) var(--ease-out);
}
.footer-links a:hover { color: var(--brand-mid); }
.footer-entity { color: var(--text-secondary); font-size: 13px; margin-bottom: 8px; }
.footer-copy { color: var(--text-silver); font-size: 13px; }
/* «B3» as text is always plain white on dark — never gradient. */
.footer-copy .b3-word { color: #FFFFFF; }

/* ---------- Legal pages (shared stylesheet) ---------- */
.legal { padding: 130px 20px 80px; max-width: 780px; margin: 0 auto; }
.legal h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 700; margin-bottom: 8px; }
.legal .updated { color: var(--text-muted); font-size: 13px; margin-bottom: 40px; }
.legal h2 {
  font-size: 21px;
  font-weight: 700;
  margin: 40px 0 12px;
  padding-top: 8px;
}
.legal h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--text-secondary); font-size: 15px; }
.legal ul, .legal ol { padding-inline-start: 24px; margin: 10px 0 18px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text-primary); }
.legal .callout {
  background: var(--bg-card);
  border: 1px solid var(--stroke-dim);
  border-inline-start: 3px solid var(--brand);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 18px 0;
}
/* ⭐ Links inside the legal pages — ONE rule, not ten inline colours repeated
   across four files, which is ten places the next round would have to remember
   (2026-08-20). The colour is aether-300, the step B3 Aether designates for
   text on dark (THEME.md replacement map: «Ocean → aether-300/500 مسطّح أو نص»).
   Measured, not eyeballed: 5.04:1 over --bg-void and 4.64:1 over --bg-card, the
   only two surfaces a legal link sits on, both clearing the constitution's
   rule 4 of AA >= 4.5. It replaces #FF7BAC, which is on the retired identity's
   forbidden list. */
.legal a { color: var(--aether-300); }
.legal a:hover { color: var(--aether-200); }

.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.legal th, .legal td {
  border: 1px solid var(--stroke-dim);
  padding: 10px 14px;
  text-align: start;
  color: var(--text-secondary);
}
.legal th { color: var(--text-primary); background: var(--bg-card); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
/* After the entrance ends, hand transitions back to the hover timings. */
.reveal.settled {
  transition: transform var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out);
}
.reveal-fade {
  opacity: 0;
  transition: opacity 700ms var(--ease-out);
}
.reveal-fade.visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-fade { opacity: 1; transform: none; transition: none; }
  .shot-side { transform: translateY(28px) scale(0.94); }
  .shot-side.visible { opacity: 0.85; }
  .icon-tile, .float-chip { animation: none; }
  .live-dot { animation: none; }
  .nav-cta:hover, .store-btn:hover, .submit-btn:hover,
  .j-card:hover, .feature-card:hover, .step:hover, .trust-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 767px) {
  .shot-side { transform: none; }
  .shot-side.visible { opacity: 1; }
}
