/* Luphare's page for parents (api.luphare.visionpm.fr/luphare/).
   The app's design system (docs/design-system.md of the app repo): night, always; the lantern is the one bright
   thing; glass for the parent surface; glow, not shadow; the lantern gold once, for what to press next.
   Values are its tokens, named as in its tokens.json, the same as the legal pages' lanti.css.
   No web font (SF Pro Rounded comes with every Apple device, the system face elsewhere), no script. */

:root {
  color-scheme: dark;
  --ground: #0a0f29;
  --ground-deep: #1a1245;
  --surface-raised: rgba(255, 255, 255, 0.10);
  --surface-solid: #1a1245;
  --ink: #ffffff;
  --ink-muted: rgba(255, 255, 255, 0.82);
  --ink-faint: rgba(255, 255, 255, 0.60);
  --hairline: rgba(255, 255, 255, 0.18);
  --accent: #7aa5ff;
  --accent-wash: rgba(122, 165, 255, 0.16);
  --lantern-gold: #ffcc4d;
  --lantern-amber: rgba(255, 184, 76, 0.38);
  --gold-wash: rgba(255, 204, 77, 0.14);
  --focus-ring: #ffcc4d;
  --ask-from: #6b5ce8;
  --ask-to: #3f3cb8;
  --explore-from: #b861ff;
  --explore-to: #ff63a8;
  --remember-from: #ffb347;
  --remember-to: #ed6638;
  --glow-ask: 0 6px 24px rgba(107, 92, 232, 0.30);
  --glow-explore: 0 6px 24px rgba(184, 97, 255, 0.28);
  --glow-remember: 0 6px 24px rgba(255, 179, 71, 0.28);
  --glow-orb: 0 0 120px 40px rgba(255, 184, 76, 0.22);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --radius-chip: 12px;
  --radius-field: 20px;
  --radius-card: 26px;
  --radius-frame: 32px;
  --radius-pill: 999px;
  --rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  --system: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --column: 1040px;
  --wide: 900px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--ground), var(--ground-deep)) fixed;
  background-color: var(--ground);
  color: var(--ink);
  font: 17px/1.6 var(--system);
  overflow-x: hidden;
}
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--rounded); font-weight: 700; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: var(--space-4); top: -100px; padding: var(--space-2) var(--space-4); background: var(--ground-deep); border-radius: var(--radius-chip); color: var(--ink); z-index: 2; }
.skip:focus { top: var(--space-4); }

.wrap {
  max-width: var(--column);
  margin: 0 auto;
  padding-left: max(var(--space-4), env(safe-area-inset-left));
  padding-right: max(var(--space-4), env(safe-area-inset-right));
}

/* ---- top band -------------------------------------------------------------------------------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-5); padding-bottom: var(--space-5); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--ink); text-decoration: none; font: 700 22px/1 var(--rounded); }
.brand img { width: 44px; height: 44px; border-radius: 22%; box-shadow: var(--glow-ask); }
.links { display: flex; gap: var(--space-2); }
.links a {
  color: var(--ink); text-decoration: none; font: 600 15px/1 var(--rounded);
  padding: var(--space-3) var(--space-4); min-height: 44px; display: inline-flex; align-items: center;
  border: 1px solid var(--hairline); border-radius: var(--radius-pill); background: var(--surface-raised);
}

/* ---- hero ------------------------------------------------------------------------------------ */
.hero { display: grid; grid-template-columns: 1fr; gap: var(--space-6); align-items: center; padding-top: var(--space-5); padding-bottom: var(--space-7); }
.eyebrow { margin: 0 0 var(--space-3); color: var(--ink-faint); font: 700 13px/1.3 var(--rounded); letter-spacing: .14em; text-transform: uppercase; }
h1 { font-size: clamp(34px, 7.4vw, 58px); line-height: 1.08; max-width: 14ch; }
.lead { margin: var(--space-5) 0 0; max-width: 34rem; color: var(--ink-muted); font-size: clamp(17px, 2.2vw, 20px); }
.tagline { margin: var(--space-5) 0 0; font: 700 clamp(17px, 2.4vw, 21px)/1.3 var(--rounded); color: var(--lantern-gold); }

.hero-art { position: relative; display: grid; place-items: center; order: -1; min-height: 260px; }
.hero-art .halo { position: absolute; width: 56%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 224, 140, 0.34), rgba(255, 184, 76, 0.10) 55%, transparent 72%); box-shadow: var(--glow-orb); }
.hero-art .lanti { position: relative; width: min(62vw, 300px); height: auto; }

/* ---- download tiles -------------------------------------------------------------------------- */
.get { display: grid; grid-template-columns: 1fr; gap: var(--space-3); margin-top: var(--space-6); }
.store {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-4); min-height: 52px;
  color: var(--ink); text-decoration: none;
  background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: var(--radius-card);
}
a.store { border-color: var(--lantern-gold); background: var(--gold-wash); box-shadow: 0 0 0 0 var(--lantern-amber); }
a.store:hover { box-shadow: 0 0 28px 2px var(--lantern-amber); }
.store.soon { color: var(--ink-muted); }
.qr { width: 96px; height: 96px; flex: none; border-radius: var(--radius-chip); }
.store-text { display: flex; flex-direction: column; line-height: 1.2; }
.store-small { font: 600 13px/1.2 var(--rounded); color: var(--ink-faint); }
.store-name { font: 700 22px/1.15 var(--rounded); margin-top: 2px; }
.store-note { font-size: 14px; color: var(--ink-faint); margin-top: var(--space-2); }
.soon .store-note { color: var(--lantern-gold); font: 700 14px/1.2 var(--rounded); }

/* ---- pillars --------------------------------------------------------------------------------- */
.film { padding-bottom: var(--space-7); }
.film h2 { font-size: clamp(26px, 4.6vw, 38px); line-height: 1.15; margin-bottom: var(--space-5); }
/* The poster is a background, so each format gets its own without a script; the video's own poster is a
   transparent pixel, without which Chrome paints the box grey until the video plays. */
.film-video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-frame); border: 1px solid var(--hairline); background: var(--ground-deep) url(luphare-video-16x9.jpg) center / cover no-repeat; box-shadow: var(--glow-ask); }
.film-note { margin: var(--space-3) 0 0; color: var(--ink-faint); font-size: 14px; }
@media (max-width: 700px) and (orientation: portrait) {
  .film-video { width: min(100%, calc(82vh * 9 / 16)); aspect-ratio: 9 / 16; margin-inline: auto; background-image: url(luphare-video-9x16.jpg); }
  .film-note { text-align: center; }
}
.pillars { padding-bottom: var(--space-7); }
.cards { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.card {
  padding: var(--space-5); border-radius: var(--radius-card);
  background: var(--surface-raised); border: 1px solid var(--hairline);
}
.card-eyebrow { margin: 0 0 var(--space-3); font: 700 13px/1.3 var(--rounded); letter-spacing: .12em; text-transform: uppercase; color: var(--lantern-gold); }
.card h3 { font-size: 21px; line-height: 1.25; margin-bottom: var(--space-3); }
.card p { color: var(--ink-muted); }

/* ---- characters ------------------------------------------------------------------------------ */
.characters { padding: var(--space-7) 0; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.04) 20%, rgba(255, 255, 255, 0.04) 80%, transparent); }
.characters h2, .parents h2, .trust h2, .cta h2 { font-size: clamp(26px, 4.6vw, 38px); line-height: 1.15; max-width: 22ch; }
.cast { display: grid; grid-template-columns: 1fr; gap: var(--space-4); margin-top: var(--space-6); }
.who { padding: var(--space-5); border-radius: var(--radius-card); text-align: center; border: 1px solid var(--hairline); display: grid; justify-items: center; }
.who img { height: 150px; width: auto; margin-bottom: var(--space-3); }
.who h3 { font-size: 22px; margin-bottom: var(--space-2); }
.who p { color: var(--ink-muted); max-width: 30rem; }
.who.ask { background: linear-gradient(160deg, rgba(107, 92, 232, 0.28), rgba(63, 60, 184, 0.14)); box-shadow: var(--glow-ask); }
.who.explore { background: linear-gradient(160deg, rgba(184, 97, 255, 0.26), rgba(255, 99, 168, 0.12)); box-shadow: var(--glow-explore); }
.who.remember { background: linear-gradient(160deg, rgba(255, 179, 71, 0.24), rgba(237, 102, 56, 0.12)); box-shadow: var(--glow-remember); }
.under { margin-top: var(--space-6); color: var(--ink-muted); max-width: 40rem; }

/* ---- parents --------------------------------------------------------------------------------- */
.parents { padding: var(--space-7) var(--space-4); }
.glass { padding: var(--space-6) var(--space-5); border-radius: var(--radius-frame); background: var(--surface-raised); border: 1px solid var(--hairline); }
.steps { counter-reset: step; display: grid; gap: var(--space-4); margin-top: var(--space-6); }
.steps li { position: relative; padding-left: 52px; color: var(--ink-muted); }
.steps li strong { color: var(--ink); font-family: var(--rounded); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font: 700 17px/1 var(--rounded); color: var(--ground); background: var(--lantern-gold);
}

/* ---- trust ----------------------------------------------------------------------------------- */
.trust { padding-bottom: var(--space-7); }
.facts { display: grid; grid-template-columns: 1fr; gap: var(--space-3); margin-top: var(--space-6); }
.facts li { padding: var(--space-4) var(--space-5); border-radius: var(--radius-field); background: var(--surface-raised); border: 1px solid var(--hairline); color: var(--ink-muted); }
.facts strong { color: var(--ink); font-family: var(--rounded); }
.more { margin-top: var(--space-5); color: var(--ink-faint); }

/* ---- what Luphare is not ---------------------------------------------------------------------- */
.how { margin: var(--space-4) 0 0; }
.how a { color: var(--accent); font: 600 16px/1.4 var(--rounded); text-underline-offset: 4px; }
.isnot { padding-bottom: var(--space-7); }
.isnot h2, .faq h2 { font-size: clamp(26px, 4.6vw, 38px); line-height: 1.15; max-width: 22ch; }
.nots { display: grid; grid-template-columns: 1fr; gap: var(--space-3); margin-top: var(--space-6); }
.nots li { display: grid; gap: var(--space-1); padding: var(--space-4) var(--space-5); border-radius: var(--radius-field); border: 1px solid var(--hairline); background: var(--surface-raised); }
.nots strong { color: var(--ink); font: 700 18px/1.3 var(--rounded); }
.nots span { color: var(--ink-muted); font: 400 16px/1.55 var(--system); }

/* ---- questions: the question in the rounded face, its answer on a line of its own ---------------- */
.faq { padding-bottom: var(--space-7); }
.qas { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
.qa { border-radius: var(--radius-field); border: 1px solid var(--hairline); background: var(--surface-raised); }
.qa[open] { border-color: var(--accent); }
.qa summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: var(--space-3);
  min-height: 52px; padding: var(--space-3) var(--space-5); color: var(--ink); font: 700 18px/1.35 var(--rounded);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before {
  content: "?"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--radius-pill);
  background: var(--accent-wash); color: var(--accent); font: 800 16px/1 var(--rounded);
}
.qa summary::after { content: "▾"; margin-left: auto; color: var(--accent); }
.qa[open] summary::after { content: "▴"; }
.qa p { margin: 0; padding: 0 var(--space-5) var(--space-5) calc(var(--space-5) + 30px + var(--space-3)); color: var(--ink-muted); font: 400 16px/1.6 var(--system); }

/* ---- call to action -------------------------------------------------------------------------- */
.cta { padding-bottom: var(--space-7); }
.cta-box { text-align: center; padding: var(--space-7) var(--space-5); border-radius: var(--radius-frame); background: linear-gradient(160deg, rgba(107, 92, 232, 0.30), rgba(63, 60, 184, 0.12)); border: 1px solid var(--hairline); box-shadow: var(--glow-ask); }
.cta-box h2 { margin: 0 auto; }
.cta-box p { margin-top: var(--space-3); color: var(--ink-muted); }
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; margin-top: var(--space-6); padding: var(--space-3) var(--space-7);
  border-radius: var(--radius-pill); background: var(--lantern-gold); color: var(--ground); text-decoration: none; font: 700 18px/1 var(--rounded);
}

/* ---- footer ---------------------------------------------------------------------------------- */
.foot { padding-top: var(--space-6); padding-bottom: max(var(--space-7), env(safe-area-inset-bottom)); border-top: 1px solid var(--hairline); display: grid; gap: var(--space-4); color: var(--ink-faint); font-size: 15px; }
.foot-brand { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink-muted); font-family: var(--rounded); font-weight: 700; }
.foot-brand img { border-radius: 22%; }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.foot-links a { color: var(--ink-muted); }

@media (max-width: 639px) { .qa p { padding-left: var(--space-5); } }

/* ---- wider windows --------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .get { grid-template-columns: 1fr 1fr; }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: 1fr 1fr; }
  .nots { grid-template-columns: 1fr 1fr; }
  .nots li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .parents { padding-left: 0; padding-right: 0; }
  .glass { padding: var(--space-7); }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; gap: var(--space-7); padding-top: var(--space-7); }
  .hero-art { order: 0; min-height: 420px; }
  .hero-art .lanti { width: 340px; }
  .cast { grid-template-columns: repeat(3, 1fr); }
  .qr { width: 120px; height: 120px; }
}

/* ---- respect the person's settings ----------------------------------------------------------- */
@media (prefers-reduced-transparency: reduce) {
  .card, .who, .glass, .facts li, .nots li, .qa, .store, .links a, .cta-box { background: var(--surface-solid); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art .lanti { animation: sway 6s ease-in-out infinite; }
  .hero-art .halo { animation: breathe 4s ease-in-out infinite; }
}
@keyframes sway { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
@keyframes breathe { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
@media print {
  body { background: #fff; color: #000; }
  .card, .who, .glass, .facts li, .store, .cta-box { background: none; border-color: #999; box-shadow: none; color: #000; }
  .hero-art, .skip { display: none; }
}
