/* Narraspell website: night-sky hero that drifts through clouds into a light page. */
:root {
  color-scheme: light;
  --night: #101d61;
  --night-2: #2b2a88;
  --gold: #f8c94d;
  --gold-soft: #ffe39a;
  --gold-ink: #2b1d00;
  --paper: #f7f4ff;
  --paper-2: #ece6ff;
  --card: #ffffff;
  --ink: #1d1f5c;
  --ink-muted: #5d5b8a;
  --line: #e1dafa;
  --purple: #7b61e0;
  --pink: #e2559a;
  --teal: #1f9e86;
  --blue: #3d6fd6;
  --on-night: #ffffff;
  --on-night-muted: #d3d0f4;
  --max: 1200px;
  --gutter: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  interpolate-size: allow-keywords;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night-2); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Baloo 2", "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 .4em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.15rem; line-height: 1.25; margin-bottom: .3em; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 10px;
}

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

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 20;
  background: var(--gold); color: var(--gold-ink);
  padding: 8px 14px; border-radius: 999px; font-weight: 800;
}
.skip:focus { left: 8px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 6px;
}
.eyebrow svg { width: 16px; height: 16px; fill: var(--purple); }
.muted { color: var(--ink-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(248, 201, 77, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: var(--gold-ink); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(248, 201, 77, .45); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn.small { padding: 10px 20px; font-size: .95rem; }
.btn.small svg { stroke-width: 2.2; }
.btn.purple { background: var(--purple); color: #fff; box-shadow: none; font-size: .9rem; padding: 9px 18px; }
.btn.purple:hover { color: #fff; }

.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 18px 0 14px;
  background: #000;
  color: #fff;
  border: 1.5px solid #8a8a8a;
  border-radius: 11px;
  text-decoration: none;
  transition: transform .15s ease;
}
.badge:hover { color: #fff; transform: translateY(-2px); }
.badge.soon { cursor: default; opacity: .92; }
.badge.soon:hover { transform: none; }
.badge.soon small { color: var(--gold-soft); font-weight: 700; }
.soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 8px 24px rgba(248, 201, 77, .35);
}
.soon-pill svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.badge svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.badge span { display: flex; flex-direction: column; line-height: 1.1; }
.badge small { font-size: .66rem; }
.badge strong { font-size: 1.2rem; font-weight: 600; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }

/* ---------- Night sky ---------- */
.night {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--on-night);
  background:
    radial-gradient(55% 60% at 68% 40%, rgba(122, 96, 220, .5), transparent 70%),
    radial-gradient(45% 45% at 8% 80%, rgba(96, 80, 200, .4), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sky i { position: absolute; border-radius: 50%; background: #fff; }
.sky svg { position: absolute; fill: var(--gold-soft); }
.sky .twinkle { animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .95; } 50% { opacity: .3; } }

/* Clouds tile sideways, so they never stretch or get cropped at any width or zoom */
.clouds {
  display: block;
  height: 130px;
  margin-top: -1px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 150"><g opacity=".55"><rect x="0" y="95" width="1440" height="56" fill="%23b6a6f2"/><circle cx="0" cy="113" r="41" fill="%23b6a6f2"/><circle cx="1440" cy="113" r="41" fill="%23b6a6f2"/><circle cx="53" cy="99" r="51" fill="%23b6a6f2"/><circle cx="119" cy="110" r="45" fill="%23b6a6f2"/><circle cx="177" cy="113" r="54" fill="%23b6a6f2"/><circle cx="247" cy="95" r="36" fill="%23b6a6f2"/><circle cx="293" cy="110" r="60" fill="%23b6a6f2"/><circle cx="371" cy="112" r="42" fill="%23b6a6f2"/><circle cx="425" cy="101" r="41" fill="%23b6a6f2"/><circle cx="478" cy="110" r="56" fill="%23b6a6f2"/><circle cx="550" cy="112" r="51" fill="%23b6a6f2"/><circle cx="616" cy="107" r="49" fill="%23b6a6f2"/><circle cx="679" cy="99" r="54" fill="%23b6a6f2"/><circle cx="749" cy="99" r="41" fill="%23b6a6f2"/><circle cx="802" cy="111" r="61" fill="%23b6a6f2"/><circle cx="881" cy="95" r="46" fill="%23b6a6f2"/><circle cx="940" cy="97" r="55" fill="%23b6a6f2"/><circle cx="1011" cy="113" r="39" fill="%23b6a6f2"/><circle cx="1061" cy="104" r="35" fill="%23b6a6f2"/><circle cx="1106" cy="95" r="58" fill="%23b6a6f2"/><circle cx="1181" cy="103" r="60" fill="%23b6a6f2"/><circle cx="1259" cy="107" r="49" fill="%23b6a6f2"/><circle cx="1322" cy="108" r="56" fill="%23b6a6f2"/><circle cx="1394" cy="113" r="46" fill="%23b6a6f2"/></g><rect x="0" y="112" width="1440" height="39" fill="%23d9d0fb"/><circle cx="0" cy="116" r="44" fill="%23d9d0fb"/><circle cx="1440" cy="116" r="44" fill="%23d9d0fb"/><circle cx="55" cy="115" r="41" fill="%23d9d0fb"/><circle cx="106" cy="116" r="31" fill="%23d9d0fb"/><circle cx="144" cy="118" r="45" fill="%23d9d0fb"/><circle cx="200" cy="125" r="38" fill="%23d9d0fb"/><circle cx="247" cy="121" r="54" fill="%23d9d0fb"/><circle cx="314" cy="128" r="43" fill="%23d9d0fb"/><circle cx="367" cy="124" r="56" fill="%23d9d0fb"/><circle cx="437" cy="123" r="48" fill="%23d9d0fb"/><circle cx="497" cy="130" r="47" fill="%23d9d0fb"/><circle cx="555" cy="130" r="43" fill="%23d9d0fb"/><circle cx="608" cy="122" r="37" fill="%23d9d0fb"/><circle cx="654" cy="112" r="51" fill="%23d9d0fb"/><circle cx="717" cy="117" r="38" fill="%23d9d0fb"/><circle cx="764" cy="122" r="52" fill="%23d9d0fb"/><circle cx="829" cy="130" r="47" fill="%23d9d0fb"/><circle cx="887" cy="115" r="48" fill="%23d9d0fb"/><circle cx="947" cy="118" r="52" fill="%23d9d0fb"/><circle cx="1012" cy="130" r="50" fill="%23d9d0fb"/><circle cx="1074" cy="121" r="38" fill="%23d9d0fb"/><circle cx="1121" cy="114" r="33" fill="%23d9d0fb"/><circle cx="1162" cy="127" r="45" fill="%23d9d0fb"/><circle cx="1218" cy="123" r="32" fill="%23d9d0fb"/><circle cx="1258" cy="114" r="55" fill="%23d9d0fb"/><circle cx="1326" cy="116" r="43" fill="%23d9d0fb"/><circle cx="1379" cy="121" r="30" fill="%23d9d0fb"/><circle cx="1416" cy="125" r="43" fill="%23d9d0fb"/><circle cx="-24" cy="125" r="43" fill="%23d9d0fb"/><rect x="0" y="128" width="1440" height="23" fill="%23f7f4ff"/><circle cx="0" cy="129" r="29" fill="%23f7f4ff"/><circle cx="1440" cy="129" r="29" fill="%23f7f4ff"/><circle cx="34" cy="129" r="45" fill="%23f7f4ff"/><circle cx="1474" cy="129" r="45" fill="%23f7f4ff"/><circle cx="88" cy="146" r="38" fill="%23f7f4ff"/><circle cx="133" cy="145" r="36" fill="%23f7f4ff"/><circle cx="176" cy="144" r="34" fill="%23f7f4ff"/><circle cx="216" cy="129" r="33" fill="%23f7f4ff"/><circle cx="255" cy="128" r="35" fill="%23f7f4ff"/><circle cx="297" cy="131" r="28" fill="%23f7f4ff"/><circle cx="330" cy="145" r="45" fill="%23f7f4ff"/><circle cx="384" cy="134" r="27" fill="%23f7f4ff"/><circle cx="416" cy="137" r="39" fill="%23f7f4ff"/><circle cx="462" cy="136" r="45" fill="%23f7f4ff"/><circle cx="516" cy="129" r="30" fill="%23f7f4ff"/><circle cx="552" cy="138" r="36" fill="%23f7f4ff"/><circle cx="595" cy="132" r="37" fill="%23f7f4ff"/><circle cx="639" cy="140" r="38" fill="%23f7f4ff"/><circle cx="684" cy="144" r="40" fill="%23f7f4ff"/><circle cx="732" cy="145" r="38" fill="%23f7f4ff"/><circle cx="777" cy="144" r="29" fill="%23f7f4ff"/><circle cx="811" cy="141" r="34" fill="%23f7f4ff"/><circle cx="851" cy="135" r="46" fill="%23f7f4ff"/><circle cx="906" cy="141" r="35" fill="%23f7f4ff"/><circle cx="948" cy="144" r="34" fill="%23f7f4ff"/><circle cx="988" cy="145" r="35" fill="%23f7f4ff"/><circle cx="1030" cy="128" r="36" fill="%23f7f4ff"/><circle cx="1073" cy="146" r="39" fill="%23f7f4ff"/><circle cx="1119" cy="128" r="36" fill="%23f7f4ff"/><circle cx="1162" cy="146" r="38" fill="%23f7f4ff"/><circle cx="1207" cy="132" r="46" fill="%23f7f4ff"/><circle cx="1262" cy="138" r="27" fill="%23f7f4ff"/><circle cx="1294" cy="139" r="40" fill="%23f7f4ff"/><circle cx="1342" cy="139" r="47" fill="%23f7f4ff"/><circle cx="1398" cy="136" r="45" fill="%23f7f4ff"/><circle cx="-42" cy="136" r="45" fill="%23f7f4ff"/></svg>') center bottom / auto 100% repeat-x;
}
.clouds.top { transform: scaleY(-1); margin: 0 0 -1px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 0 10px;
  transition: background-color .25s ease, padding .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  padding-top: calc(env(safe-area-inset-top, 0px) + 10px);
  padding-bottom: 10px;
  background: rgba(16, 29, 97, .97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(10, 14, 60, .35);
}
.site-header .brand img { transition: width .25s ease; }
.site-header.scrolled .brand img { width: 160px; }
/* Room for the fixed header at the top of the first night section */
body > header + .night { padding-top: 96px; }
[id] { scroll-margin-top: 90px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: block; line-height: 0; }
.brand img { width: 210px; filter: drop-shadow(0 2px 14px rgba(248, 201, 77, .35)); }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  color: var(--on-night); text-decoration: none; font-weight: 700; font-size: .98rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current] { color: var(--gold); border-bottom-color: var(--gold); }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 480px) {
  .brand img, .site-header.scrolled .brand img { width: 130px; }
  body > header + .night { padding-top: 76px; }
  .site-header .btn.small { padding: 9px 16px; font-size: .9rem; }
  .site-header .btn.small svg { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.8rem, 6.2vw, 4.8rem); line-height: .98; margin-bottom: 18px; }
.hero h1 span { display: block; }
.hero h1 .gold { color: var(--gold); text-shadow: 0 4px 30px rgba(248, 201, 77, .3); }
.hero .lead { color: var(--on-night-muted); font-size: 1.12rem; max-width: 30rem; margin-bottom: 24px; }
.hero-actions { display: grid; gap: 16px; justify-items: start; }

.hero-art { position: relative; }
.hero-art img {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}
.hero-moon {
  position: absolute; right: 2%; top: 4%;
  width: 90px; height: 90px; border-radius: 50%;
  box-shadow: inset 22px -10px 0 0 var(--gold-soft);
  filter: drop-shadow(0 0 20px rgba(255, 227, 154, .6));
}
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 8px; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 340px; }
  .hero-moon { width: 60px; height: 60px; box-shadow: inset 15px -7px 0 0 var(--gold-soft); }
}

/* ---------- Feature strip ---------- */
.strip { padding: 4px 0 28px; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.strip p { color: var(--ink-muted); margin: 0; font-size: .95rem; max-width: 17rem; margin-inline: auto; }
.bubble {
  width: 60px; height: 60px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid; place-items: center;
}
.bubble svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bubble.purple { background: #e7e0ff; color: var(--purple); }
.bubble.blue { background: #dde8ff; color: var(--blue); }
.bubble.pink { background: #ffe0ee; color: var(--pink); }
.bubble.teal { background: #d7f3ec; color: var(--teal); }
@media (max-width: 900px) { .strip .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) {
  .strip .wrap { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .strip .wrap > div { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; }
  .strip .bubble { width: 52px; height: 52px; margin: 0; grid-row: span 2; }
  .strip p { margin: 0; }
}

/* ---------- Showcase row: shelves, phones, extras ---------- */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 28px;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 12px;
}
.showcase h2 { margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: .86rem;
}
.chips li:first-child { background: var(--purple); border-color: var(--purple); color: #fff; }
.note {
  font-family: "Caveat", "Segoe Print", cursive;
  font-size: 1.7rem;
  color: var(--purple);
  transform: rotate(-4deg);
  margin: 22px 0 0 6px;
  line-height: 1.1;
}

.phones { display: flex; justify-content: center; align-items: flex-end; gap: 12px; }
.phone {
  flex: 0 1 150px;
  padding: 6px;
  border-radius: 26px;
  background: #1a1b3f;
  box-shadow: 0 20px 40px rgba(29, 31, 92, .28), inset 0 0 0 2px #3c3d7a;
}
.phone img { border-radius: 21px; width: 100%; }
.phone.mid { flex-basis: 168px; transform: translateY(-18px); }

.extra {
  display: grid;
  gap: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #efe9ff 100%);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(29, 31, 92, .08);
}
.extra h2 { font-size: 1.6rem; }
.extra ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.extra li { position: relative; padding-left: 22px; color: var(--ink-muted); }
.extra li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.extra .btn { justify-self: start; }

@media (max-width: 1000px) {
  .showcase { grid-template-columns: 1fr 1fr; }
  .phones { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 640px) {
  .showcase { grid-template-columns: 1fr; }
  .phones { gap: 8px; }
  .phone { padding: 4px; border-radius: 18px; }
  .phone img { border-radius: 15px; }
  .phone.mid { transform: translateY(-10px); }
}

/* ---------- Plans and FAQ ---------- */
.lower { padding-top: 36px; padding-bottom: 28px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }

/* Family line in the hero and the card beside the FAQ */
.family {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--gold-soft);
  font-weight: 800;
  font-size: .9rem;
}
.family svg { width: 16px; height: 16px; fill: var(--pink); }
.family-card {
  background: linear-gradient(135deg, #ffffff 0%, #efe9ff 100%);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 12px 30px rgba(29, 31, 92, .08);
}
.family-big {
  font-family: "Caveat", "Segoe Print", cursive;
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  line-height: 1.05;
  color: var(--purple);
  margin: 6px 0 12px;
}
.family-card .muted { margin: 0; }
.faq { display: grid; gap: 8px; margin-top: 14px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 12px 30px 12px 0; font-weight: 800; font-size: .95rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--purple); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-muted); margin: 0; padding-bottom: 12px; font-size: .93rem; }

@media (max-width: 960px) { .lower { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Footer ---------- */
.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 28px;
}
.site-footer h2 { font-size: 1.6rem; margin: 0 0 4px; }
.site-footer .muted { color: var(--on-night-muted); margin: 0; }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: .9rem;
  color: var(--on-night-muted);
}
.footer-links a { color: var(--on-night); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-links span { margin-right: auto; }

/* ---------- Legal pages ---------- */
.legal { padding: 40px 0 72px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 5.5vw, 3rem); color: var(--ink); }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .5em; }
.updated { color: var(--ink-muted); font-size: .92rem; }
.todo { background: #fff0c2; color: #6b4a00; border-radius: 4px; padding: 0 4px; }

/* ---------- Motion ---------- */
.btn, .badge {
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease);
}
.btn:active, .badge:active { transform: translateY(0) scale(.97); }
.nav a { position: relative; border-bottom: 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); border-radius: 2px;
  transform: scaleX(0); transition: transform .4s var(--ease);
}
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.site-header { transition: background-color .5s var(--ease), padding .5s var(--ease), box-shadow .5s var(--ease); }
.site-header .brand img { transition: width .5s var(--ease); }

/* Hero eases in once on load */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero > div:first-child > * { animation: rise .9s var(--ease) both; }
.hero > div:first-child > :nth-child(2) { animation-delay: .08s; }
.hero > div:first-child > :nth-child(3) { animation-delay: .16s; }
.hero > div:first-child > :nth-child(4) { animation-delay: .24s; }
.hero-art { animation: rise 1.1s var(--ease) .15s both; }

/* Hero art floats gently, the moon glows */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes glow { 0%, 100% { filter: drop-shadow(0 0 16px rgba(255, 227, 154, .45)); } 50% { filter: drop-shadow(0 0 28px rgba(255, 227, 154, .8)); } }
.hero-art img { animation: float 7s ease-in-out infinite; }
.hero-moon, .moon { animation: glow 6s ease-in-out infinite; }
.sky .twinkle { animation-duration: 5.5s; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }

/* Cards and phones lift softly on hover */
.extra, .family-card, .faq details, .strip .bubble { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.extra:hover, .family-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(29, 31, 92, .12); }
.strip .wrap > div:hover .bubble { transform: translateY(-4px) scale(1.06); }
.phone { transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.phone:hover { transform: translateY(-8px); box-shadow: 0 28px 50px rgba(29, 31, 92, .32), inset 0 0 0 2px #3c3d7a; }
.phone.mid:hover { transform: translateY(-28px); }

/* FAQ answers slide open */
.faq details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size .45s var(--ease), content-visibility .45s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }

/* Sections below the first screen ease in once as they scroll into view */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Windows "Animation effects" off (and similar settings) ask for reduced motion.
   Keep the gentle fades, glows and twinkles, but drop anything that moves or floats. */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero > div:first-child > *, .hero-art { animation-name: fade; }
  .hero-art img { animation: none; }
  .reveal { transform: none; }
  .btn:hover, .badge:hover, .extra:hover, .family-card:hover, .phone:hover,
  .strip .wrap > div:hover .bubble, .btn:active, .badge:active { transform: none; }
  .phone.mid, .phone.mid:hover { transform: translateY(-18px); }
}

/* Hide the hairline rounding gap under the hero clouds at odd zoom levels */
.night + main { position: relative; margin-top: -2px; padding-top: 2px; background: var(--paper); }

/* Email helper box shown on Windows next to the Gmail pop-up */
.mail-helper {
  position: fixed;
  right: 20px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  z-index: 100;
  width: min(340px, calc(100vw - 32px));
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(16, 29, 97, .3);
  padding: 16px 18px 18px;
  font-size: .92rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.mail-helper.open { opacity: 1; transform: none; }
.mail-helper p { margin: 0 0 8px; color: var(--ink-muted); }
.mail-helper-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.mail-helper-head strong { font-family: "Baloo 2", sans-serif; font-size: 1.15rem; }
.mail-close { border: 0; background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink-muted); padding: 2px 6px; }
.mail-to { font-weight: 800; color: var(--ink) !important; user-select: all; }
.mail-warn { background: #fff0c2; color: #6b4a00 !important; border-radius: 10px; padding: 8px 10px; font-weight: 700; }
.mail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mail-btn {
  border: 1px solid var(--line); background: var(--paper); color: var(--purple);
  border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 800; font-size: .85rem;
  text-decoration: none; cursor: pointer;
}
.mail-btn:hover { background: var(--paper-2); color: var(--purple); }
@media (prefers-reduced-motion: reduce) { .mail-helper { transform: none; } }
