/* ============================================================
   Minbar — Site de pré-lancement (v2)
   Vanilla CSS, aucune dépendance. Typographie système (SF sur Apple).
   Accent : or Minbar #C9A24B. Mobile-first. Mode sombre natif.
   Sections : Hero (mockup iPhone 3D CSS) · Valeurs · Transparence
   (camembert animé) · Espace mosquée. Animations au scroll (JS natif).
   ============================================================ */

:root {
  --gold: #c9a24b;
  --gold-deep: #a8842f;
  --green: #1f7a52;
  --blue: #3b82c4;
  --gray: #a2a2ab;

  --logo-green: #1b4332;
  --logo-red: #c0392b;

  --bg: #fbfaf8;
  --bg-alt: #f3f1ea;
  --surface: #ffffff;
  --text: #1b1b1e;
  --text-secondary: #6a6a70;
  --text-tertiary: #9a9aa0;
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.16);
  --field-bg: #ffffff;
  --shadow-icon: 0 18px 44px rgba(27, 27, 30, 0.16), 0 4px 12px rgba(27, 27, 30, 0.08);
  --shadow-phone: 0 40px 80px rgba(27, 27, 30, 0.28), 0 12px 28px rgba(27, 27, 30, 0.16);
  --shadow-card: 0 1px 2px rgba(27, 27, 30, 0.04), 0 8px 24px rgba(27, 27, 30, 0.06);
  --shadow-btn: 0 6px 18px rgba(201, 162, 75, 0.32);
  --ok: #2f7d55;

  --maxw: 62rem;
  --readw: 40rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji";
}

@media (prefers-color-scheme: dark) {
  :root {
    --gold: #d9b45f;
    --gold-deep: #e6c477;
    --green: #35b07a;
    --blue: #5aa2e6;
    --gray: #86868f;

    /* Logo éclairci pour rester lisible sur fond sombre (le vert forêt
       disparaîtrait sans la tuile crème). Croissant rouge inchangé. */
    --logo-green: #4fae7f;

    --bg: #0b0b0c;
    --bg-alt: #141416;
    --surface: #161618;
    --text: #f4f4f6;
    --text-secondary: #a2a2a8;
    --text-tertiary: #77777d;
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.2);
    --field-bg: #1a1a1c;
    --shadow-icon: 0 22px 50px rgba(0, 0, 0, 0.55), 0 4px 14px rgba(0, 0, 0, 0.4);
    --shadow-phone: 0 44px 90px rgba(0, 0, 0, 0.6), 0 12px 30px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px rgba(0, 0, 0, 0.45);
    --shadow-btn: none;
    --ok: #5fd08f;
  }
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
::selection {
  background: rgba(201, 162, 75, 0.24);
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ============================================================
   Barre supérieure (sticky, translucide)
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.7rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}
.brand .logo {
  height: 27px;
  width: auto;
  display: block;
}
.logo .mg-fill { fill: var(--logo-green); }
.logo .mg-stroke { fill: none; stroke: var(--logo-green); }
.logo .mr { fill: var(--logo-red); }
.topbar__cta {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 980px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.topbar__cta:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ============================================================
   Sections génériques
   ============================================================ */
main {
  flex: 1 0 auto;
  width: 100%;
}
.section {
  padding-block: clamp(3.5rem, 11vw, 7rem);
}
.section--alt {
  background: var(--bg-alt);
}
.section__head {
  max-width: var(--readw);
  margin: 0 auto clamp(2.5rem, 7vw, 3.75rem);
  text-align: center;
}
.section__head h2 {
  font-size: clamp(1.75rem, 6.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}
.section__head .lede {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: clamp(1rem, 3vw, 1.15rem);
  line-height: 1.5;
  text-wrap: pretty;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 4.5rem) var(--gutter) clamp(3rem, 9vw, 5rem);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "intro" "visual" "capture";
  gap: clamp(1.75rem, 5vw, 2.5rem);
  align-items: center;
}
.hero__intro { grid-area: intro; text-align: center; }
.hero__visual { grid-area: visual; justify-self: center; }
.hero__capture { grid-area: capture; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-deep);
  margin-bottom: 1.1rem;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
@media (prefers-color-scheme: dark) {
  .badge { color: var(--gold); }
}

.hero h1 {
  font-size: clamp(2.35rem, 9vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.03;
  text-wrap: balance;
}
.hero .tagline {
  margin: clamp(0.9rem, 3vw, 1.25rem) auto 0;
  max-width: 32rem;
  font-size: clamp(1.075rem, 4vw, 1.3rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Bloc de capture (formulaire fidèle) */
.hero__capture {
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
}
.reassure {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.45;
}

/* ---------- Mockup iPhone 3D (CSS pur) ---------- */
.phone-stage {
  perspective: 1400px;
  perspective-origin: 50% 40%;
  width: min(280px, 74vw);
}
.phone-float {
  animation: floaty 7s ease-in-out infinite;
  will-change: transform;
}
.phone {
  position: relative;
  aspect-ratio: 9 / 19.3;
  border-radius: 12% / 5.7%;
  background: linear-gradient(145deg, #2a2a2e, #0e0e10);
  padding: 10px;
  box-shadow: var(--shadow-phone);
  transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -16deg));
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.phone::after {
  /* reflet diagonal */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 34%);
  pointer-events: none;
  z-index: 4;
}
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 9% / 4.5%;
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--text);
}
.phone__notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 16px;
  background: #0e0e10;
  border-radius: 980px;
  z-index: 3;
}
/* Écran app : page mosquée Minbar (maquette fidèle, enrichie).
   Couleurs fixes (indépendantes du thème du site) — c'est une
   « capture » d'app, elle doit rester identique en clair/sombre. */
.mk {
  --gold: #c9a24b;
  --ink: #1b1b1e;
  --sub: #8b8b91;
  background: #fff;
  color: var(--ink);
  height: 100%;
  display: flex;
  flex-direction: column;
  font-size: 10px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}
.mk__hero {
  flex: 0 0 auto;
  min-height: 40%;
  display: flex;
  flex-direction: column;
  padding: 9px 14px 4px;
  background: linear-gradient(180deg, #1f4d39 0%, #2b6349 62%, #dfe9e4 93%, #ffffff 100%);
}
.mk__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}
.mk__status .ind { display: flex; align-items: center; gap: 4px; }
.mk__status svg { display: block; fill: #fff; }
.mk__topbtns {
  display: flex;
  justify-content: space-between;
  margin-top: 11px;
}
.mk__cbtn {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: rgba(247, 250, 248, 0.5);
  display: grid;
  place-items: center;
}
.mk__cbtn svg { width: 13px; height: 13px; fill: #48584f; }
.mk__bigtitle {
  margin-top: auto;
  color: #fff;
  font-weight: 800;
  font-size: 27px;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  transform: scaleX(0.88);
  transform-origin: left;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}
.mk__body {
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 14px;
  background: #fff;
}
.mk__name { text-align: center; font-size: 13px; font-weight: 700; margin-top: 9px; }
.mk__city { text-align: center; color: var(--gold); font-weight: 600; font-size: 11px; margin-top: 3px; }
.mk__metarow { text-align: center; color: var(--sub); font-size: 9.5px; margin-top: 4px; }
.mk__actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 11px 0 9px; }
.mk__abtn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eef0ee;
  display: grid;
  place-items: center;
}
.mk__abtn svg { width: 14px; height: 14px; stroke: var(--gold); }
.mk__play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 9px 28px;
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(201, 162, 75, 0.4);
}
.mk__play::before {
  content: "";
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #fff;
}
.mk__addr { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--sub); font-size: 9px; }
.mk__addr b { color: var(--gold); font-weight: 600; flex: none; }
.mk__sec { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; margin-top: 12px; }
.mk__sec svg { width: 15px; height: 15px; stroke: var(--gold); }
.mk__list { list-style: none; margin-top: 3px; }
.mk__list li { display: flex; align-items: center; gap: 9px; padding: 6.5px 0; border-bottom: 1px solid #f1f1f1; }
.mk__list .n { width: 13px; text-align: center; color: #c2c2c8; font-size: 10px; flex: none; }
.mk__list .txt { min-width: 0; flex: 1; }
.mk__list .t { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk__list .s { font-size: 8.5px; color: var(--sub); margin-top: 1px; }
.mk__list .dots { color: #c8c8ce; font-weight: 700; letter-spacing: 1px; flex: none; margin-left: auto; }
.mk__list .chev { color: #c6c6cc; font-size: 13px; flex: none; margin-left: 4px; }
.mk__tabs { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 10px; border-top: 1px solid #eee; background: #fff; }
.mk__tab { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #a2a2a8; font-size: 8px; font-weight: 500; padding: 4px 9px; border-radius: 11px; }
.mk__tab svg { width: 16px; height: 16px; fill: currentColor; }
.mk__tab.on { color: var(--gold); background: rgba(201, 162, 75, 0.14); }
.mk__tab--search { width: 30px; height: 30px; border-radius: 50%; background: #f0f0f0; color: var(--ink); justify-content: center; padding: 0; }
.mk__tab--search svg { width: 15px; height: 15px; fill: none; stroke: currentColor; }

/* ============================================================
   VALEURS (bande compacte)
   ============================================================ */
.values {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3rem) var(--gutter);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 4vw, 1.75rem);
}
.value {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.8rem;
  align-items: start;
}
.value::before {
  content: "";
  margin-top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.value h3 {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.value p {
  grid-column: 2;
  margin-top: 0.1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ============================================================
   TRANSPARENCE (camembert animé + légende)
   ============================================================ */
.chart {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 6vw, 3.5rem);
  align-items: center;
}
.donut-wrap {
  justify-self: center;
  position: relative;
  width: min(280px, 78vw);
  aspect-ratio: 1;
}
.donut {
  width: 100%;
  height: 100%;
  transform: rotate(0deg);
}
.donut .track {
  fill: none;
  stroke: var(--border);
  stroke-width: 22;
}
.seg {
  fill: none;
  stroke-width: 22;
  stroke-linecap: butt;
  stroke-dasharray: 502.65;
  stroke-dashoffset: 502.65;
  transform: rotate(var(--rot));
  transform-box: fill-box;
  transform-origin: center;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.chart.in .seg {
  stroke-dashoffset: var(--off);
}
.donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.donut-center .amt {
  font-size: clamp(1.6rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.donut-center .cap {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.15rem;
}

.legend {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  list-style: none;
}
.legend li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.85rem;
  align-items: start;
}
.legend .dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  margin-top: 0.35rem;
}
.legend .amt {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.legend .pct {
  color: var(--text-tertiary);
  font-weight: 500;
  font-size: 0.9rem;
  margin-left: 0.4rem;
}
.legend h3 {
  font-size: 0.98rem;
  font-weight: 600;
  margin-top: 0.15rem;
}
.legend p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.2rem;
  line-height: 1.45;
}
.c-green { background: var(--green); }
.c-blue { background: var(--blue); }
.c-gold { background: var(--gold); }
.c-gray { background: var(--gray); }

/* ============================================================
   ESPACE MOSQUÉE (piliers + formulaire)
   ============================================================ */
.pillars {
  max-width: var(--maxw);
  margin: 0 auto clamp(2.5rem, 7vw, 3.5rem);
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: var(--shadow-card);
}
.pillar .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: color-mix(in srgb, var(--gold) 16%, transparent);
  margin-bottom: 0.9rem;
}
.pillar h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.pillar p {
  margin-top: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.45;
}

.formcard {
  max-width: 34rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ============================================================
   Formulaires (partagés)
   ============================================================ */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding-left: 0.15rem;
}
.field input {
  font-family: inherit;
  font-size: 1.0625rem;
  color: var(--text);
  background: var(--field-bg);
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  padding: 0.9rem 1.05rem;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: var(--text-tertiary); }
.field input:hover { border-color: var(--gold); }
.field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.22);
}
button.submit {
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1b1b1e;
  background: var(--gold);
  border: none;
  border-radius: 13px;
  padding: 1rem 1.25rem;
  margin-top: 0.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform 0.12s ease, background 0.15s ease, opacity 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
button.submit:hover { background: var(--gold-deep); color: #1b1b1e; }
button.submit:active { transform: scale(0.985); }
button.submit[disabled] { opacity: 0.55; cursor: default; box-shadow: none; }

.formmsg {
  font-size: 0.9rem;
  text-align: center;
  color: #c0392b;
}
@media (prefers-color-scheme: dark) { .formmsg { color: #ff8a7a; } }
.formmsg:empty { display: none; }

.confirm {
  text-align: center;
  padding: clamp(1.25rem, 5vw, 2rem) 0 0.5rem;
  animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.confirm__check {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
}
.confirm__check svg {
  width: 26px;
  height: 26px;
  stroke: #1b1b1e;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.confirm h3 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.confirm p {
  margin-top: 0.5rem;
  color: var(--text-secondary);
  max-width: 26rem;
  margin-inline: auto;
  text-wrap: balance;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  text-align: center;
  padding: clamp(2rem, 7vw, 2.75rem) var(--gutter);
  font-size: 0.875rem;
  color: var(--text-tertiary);
}
footer nav {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}
footer a {
  color: var(--text-secondary);
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  padding-bottom: 1px;
}
footer a:hover { color: var(--gold); border-bottom-color: var(--gold); }
footer .sep { color: var(--border-strong); user-select: none; }
footer .copy { display: block; margin-top: 0.6rem; color: var(--text-tertiary); }

/* ============================================================
   Page Confidentialité
   ============================================================ */
.legal {
  max-width: var(--readw);
  margin: 0 auto;
  padding: clamp(3rem, 10vw, 5rem) var(--gutter);
}
.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}
.legal .back:hover { color: var(--gold); }
.legal h1 {
  font-size: clamp(1.9rem, 8vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.legal .updated { margin-top: 0.6rem; color: var(--text-tertiary); font-size: 0.9rem; }
.legal h2 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
  margin-bottom: 0.6rem;
}
.legal p, .legal li { color: var(--text-secondary); font-size: 1rem; line-height: 1.6; }
.legal p + p { margin-top: 0.9rem; }
.legal ul { margin-top: 0.6rem; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.legal li::marker { color: var(--gold); }
.legal a { color: var(--text); border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
.legal a:hover { color: var(--gold); }
.legal strong { color: var(--text); font-weight: 600; }

/* ============================================================
   Animations
   ============================================================ */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Desktop ---------- */
@media (min-width: 720px) {
  .hero {
    grid-template-columns: 1.02fr 0.98fr;
    grid-template-areas:
      "intro visual"
      "capture visual";
    gap: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4rem);
    padding-top: clamp(3.5rem, 7vw, 5.5rem);
  }
  .hero__intro { text-align: left; }
  .hero__intro .tagline { margin-inline: 0; }
  .hero__capture { margin-inline: 0; }
  .hero__visual { align-self: center; }
  .reassure { text-align: left; }

  .values { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .value { grid-template-columns: 1fr; }
  .value::before { margin-bottom: 0.75rem; }
  .value p { grid-column: 1; }

  .chart { grid-template-columns: 0.9fr 1.1fr; }
  .legend { gap: 1rem; }

  .pillars { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

@media (min-width: 980px) {
  .phone-stage { width: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .chart .seg { stroke-dashoffset: var(--off); }
  .phone { transform: rotateX(4deg) rotateY(-14deg); }
}
