/* Elu: elu.css
   Palette and type taken from the app (Shared/Palette.swift): warm paper,
   plum ink, the four phase colours. Headlines in New York, the serif Elu uses
   on iPhone; elsewhere a close system serif. No web fonts to load. */

:root {
  color-scheme: light dark;
  --bg: #FAF7F4;
  --bg-soft: #F3EEF3;
  --surface: #FFFFFF;
  --line: #E7E0E7;
  --ink: #2A1F2D;
  --ink-2: #6E6472;
  --ink-3: #8F8593;
  --plum: #6D3F72;
  --plum-deep: #4A2950;
  --lavender: #C9B8E8;
  --lavender-soft: #EFE8F8;
  --rose: #C2586B;
  --rose-soft: #F6DDE1;
  --sage: #7E9C8A;
  --follicular: #B9A4DC;
  --fertile: #8FB3C9;
  --luteal: #DDB7A6;
  --ring-track: rgba(109, 63, 114, 0.08);
  --shadow: 0 30px 60px -20px rgba(74, 41, 80, 0.28), 0 12px 24px -12px rgba(74, 41, 80, 0.18);
  --card-shadow: 0 1px 2px rgba(42, 31, 45, 0.04), 0 8px 24px -12px rgba(42, 31, 45, 0.12);
  --nav-bg: rgba(250, 247, 244, 0.78);

  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 5vw, 48px);
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141116;
    --bg-soft: #1B171E;
    --surface: #1F1A22;
    --line: #3A3240;
    --ink: #F4EEF5;
    --ink-2: #B9AEBD;
    --ink-3: #958A99;
    --plum: #CBB0E6;
    --plum-deep: #E4D4F2;
    --lavender: #8D77B5;
    --lavender-soft: #2C2539;
    --rose: #E68D9C;
    --rose-soft: #452630;
    --sage: #9DBBA8;
    --follicular: #9C86C4;
    --fertile: #86AFC6;
    --luteal: #B38D7C;
    --ring-track: rgba(203, 176, 230, 0.10);
    --shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7), 0 12px 24px -12px rgba(0, 0, 0, 0.5);
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
    --nav-bg: rgba(20, 17, 22, 0.75);
  }
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--plum); color: var(--bg); }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(44px, 8vw, 92px); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 18px;
}
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
section { padding-block: clamp(96px, 16vh, 168px); }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 8vh, 80px); }
.section-head .lede { margin-top: 20px; }
.center { text-align: center; margin-inline: auto; }
.center .lede { margin-inline: auto; }

/* ── Nav ─────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.is-scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { height: 60px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav__spacer { flex: 1; }
.lang { display: flex; gap: 2px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.lang a { text-decoration: none; color: var(--ink-3); padding: 6px 8px; border-radius: 8px; }
.lang a[aria-current="page"] { color: var(--ink); }
.lang a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px;
  background: var(--plum); color: var(--bg);
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
@media (max-width: 480px) {
  .nav__inner { gap: 10px; }
  .nav .btn { padding: 7px 14px; font-size: 13px; }
}

/* ── Hero ────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; overflow: clip; overflow-clip-margin: 0; padding-top: clamp(130px, 20vh, 190px); padding-bottom: 72px; text-align: center; }
.hero .lede { margin: 26px auto 0; }
.hero h1 em { font-style: italic; color: var(--plum); }
.cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 36px; }
.badge { display: inline-block; line-height: 0; border-radius: 10px; transition: transform 0.3s var(--ease); }
.badge:hover { transform: translateY(-2px); }
.badge svg { height: 52px; width: auto; }
.cta small { font-size: 14px; color: var(--ink-3); }

.halo {
  position: absolute; left: 50%; top: 52%;
  width: min(1100px, 150vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: -1; pointer-events: none;
}
.halo circle { fill: none; }

.hero__stage { animation: stage-in 1.1s var(--ease) 0.35s both; perspective: 1400px; margin-top: clamp(56px, 10vh, 96px); display: flex; justify-content: center; }
.hero__stage .phone { width: min(340px, 74vw, 42vh); transform-origin: 50% 0; will-change: transform; }
@keyframes stage-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ── Phone frame ─────────────────────────────────── */
.phone {
  position: relative;
  border-radius: 54px;
  padding: 11px;
  background: linear-gradient(145deg, #3a3140, #1b161e 60%);
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}
.phone img, .phone picture { border-radius: 44px; width: 100%; height: auto; }
.phone--sm { border-radius: 40px; padding: 8px; }
.phone--sm img { border-radius: 33px; }

/* ── Statement: words light up as you scroll ─────── */
.statement { padding-block: clamp(80px, 18vh, 200px) clamp(140px, 24vh, 240px); }
.statement p {
  font-family: var(--serif);
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  max-width: 18em;
  margin-inline: auto;
  text-align: center;
  text-wrap: balance;
}
.statement .w { opacity: 0.16; transition: opacity 0.35s ease; }
.statement .w.on { opacity: 1; }
.statement .accent { color: var(--plum); }

/* ── Tour: sticky phone, steps scroll past ──────── */
.tour__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.tour__stage { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; }
.tour__stage .phone { width: min(330px, 30vw, 38vh); }
.tour__screens { position: relative; border-radius: 44px; overflow: hidden; aspect-ratio: 647 / 1400; }
.tour__screens img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0;
  opacity: 0; transform: scale(1.04);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}
.tour__screens img.is-active { opacity: 1; transform: scale(1); }
.step { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; max-width: 30em; }
.step .num { font-family: var(--serif); font-size: 15px; color: var(--plum); margin-bottom: 12px; font-style: italic; }
.step h3 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; margin-bottom: 16px; }
.step p { color: var(--ink-2); font-size: 18px; }
.step { opacity: 0.25; transition: opacity 0.6s var(--ease); }
.step.is-active { opacity: 1; }
.step .phone { display: none; }
@media (max-width: 860px) {
  .tour__grid { grid-template-columns: 1fr; }
  .tour__stage { display: none; }
  .step { min-height: auto; opacity: 1; padding-block: 40px; max-width: none; }
  .step .phone { display: block; width: min(280px, 70vw); margin: 36px auto 0; }
}

/* ── Prediction ring ─────────────────────────────── */
.predict__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
@media (max-width: 860px) { .predict__grid { grid-template-columns: 1fr; } }
.ring { position: relative; width: min(460px, 86vw); aspect-ratio: 1; margin-inline: auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring circle { fill: none; stroke-linecap: round; }
.ring .track { stroke: var(--ring-track); }
.ring__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring__center small { color: var(--ink-2); font-size: 15px; }
.ring__center b { font-family: var(--serif); font-weight: 500; font-size: clamp(52px, 8vw, 84px); line-height: 1.05; font-variant-numeric: tabular-nums; }
.ring__center span { color: var(--luteal); font-size: 15px; font-weight: 600; }
.ring__dot { fill: var(--bg); stroke: var(--plum-deep); }
.ring .window { fill: none; stroke-linecap: round; stroke: var(--rose); stroke-dasharray: 0.1 2.4; stroke-width: 1.1; opacity: 0; transition: opacity 0.8s var(--ease); }
.ring.done .window { opacity: 0.9; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; font-size: 14px; color: var(--ink-2); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 0.05em; }
.facts { margin-top: 36px; display: grid; gap: 14px; }
.fact { display: flex; gap: 14px; align-items: baseline; }
.fact b { font-family: var(--serif); font-size: 22px; font-weight: 500; min-width: 5.2em; color: var(--plum); }
.fact span { color: var(--ink-2); }

/* ── Privacy cards ───────────────────────────────── */
.privacy { background: var(--bg-soft); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--surface);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--card-shadow);
}
.card svg { width: 28px; height: 28px; color: var(--plum); margin-bottom: 18px; }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 16px; }

/* ── Plans ───────────────────────────────────────── */
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { border-radius: 28px; padding: clamp(28px, 4vw, 44px); background: var(--surface); box-shadow: var(--card-shadow); }
.plan h3 { font-size: 30px; }
.plan .price { margin: 6px 0 26px; color: var(--ink-2); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; }
.plan li svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--sage); }
.plan--premium {
  background: linear-gradient(150deg, #5E3865 0%, #6D3F72 45%, #8D6294 100%);
  color: #FBF8F2;
  box-shadow: var(--shadow);
}
.plan--premium .price { color: rgba(251, 248, 242, 0.75); }
.plan--premium li svg { color: #FDD9DF; }
.plans__note { margin-top: 28px; color: var(--ink-3); font-size: 15px; text-align: center; max-width: 40em; margin-inline: auto; }

/* ── FAQ ─────────────────────────────────────────── */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 24px 0; font-family: var(--serif); font-size: 21px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 1.8px solid var(--ink-3); border-bottom: 1.8px solid var(--ink-3);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding-bottom: 24px; color: var(--ink-2); max-width: 40em; }

/* ── Closing ─────────────────────────────────────── */
.closing { text-align: center; }
.closing img.icon { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 36px; box-shadow: var(--shadow); }
.closing .lede { margin: 20px auto 0; }

/* ── Footer ──────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding-block: 40px 56px; font-size: 14px; color: var(--ink-3); }
.footer__row { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.footer__row a { text-decoration: none; color: var(--ink-2); }
.footer__row a:hover { color: var(--ink); }
.footer__row .spacer { flex: 1; }
@media (max-width: 600px) {
  .footer__row { column-gap: 20px; }
  .footer__row > span:first-child { flex-basis: 100%; }
  .footer__row .spacer { display: none; }
}
.disclaimer { margin-top: 20px; max-width: 46em; }

/* ── Legal pages ─────────────────────────────────── */
.legal { max-width: 720px; margin-inline: auto; padding: 120px var(--gutter) 40px; }
.legal h1 { font-size: clamp(40px, 6vw, 60px); }
.legal .updated { color: var(--ink-3); font-size: 14px; margin: 14px 0 36px; }
.legal h2 { font-size: 26px; margin: 48px 0 14px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 14px; }
.legal ul { padding-left: 20px; margin: 12px 0 0; display: grid; gap: 8px; }
.legal ul + p, .legal p + ul { margin-top: 18px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal .summary { background: var(--lavender-soft); border-radius: 20px; padding: 22px 26px; color: var(--ink); }
.legal .summary p { color: var(--ink); }
.legal a { color: var(--plum); }
.legal + footer .wrap { max-width: 720px; }

/* ── Scroll reveal (as on imprv.ch) ──────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .statement .w { opacity: 1; }
  .step { opacity: 1; }
}

/* Plan subtitle */
.plan .plan__sub { margin-top: 4px; font-family: var(--serif, ui-serif, "New York", Georgia, serif); font-size: 19px; }
.plan .plan__sub + .price { margin-top: 2px; }
.section-head .lede { margin: 18px auto 0; }
