/* ============================================================
   WILA — Design System
   Forest green · blush rose · cream  ·  literary / editorial
   ============================================================ */

:root {
  /* Wila app palette, dark theme (apps/mobile/src/theme.ts). The handoff's token names are kept
     so every rule picks these up: "forest" = the navy night sky, "sage" = the app's blue-grey text,
     "rose" = the app's blush, "cream" = the app's warm ink. */
  --forest-900: #03060E;  /* bgDeep */
  --forest-800: #060B18;  /* bg */
  --forest-700: #0A1428;  /* skyMid */
  --forest-600: #12203B;
  --forest-500: #1B2E50;  /* skyGlow */
  --forest-400: #243657;  /* a card over the glow */
  --forest-300: #3A4C70;

  --sage-400: #9AA6BA;    /* textDim */
  --sage-300: #A7B3C7;    /* textBody */
  --sage-200: #C9D3E6;    /* star */
  --sage-100: #E4E9F2;

  --rose-700: #4C1B2E;    /* ctaInk */
  --rose-600: #C9788C;    /* periodArc */
  --rose-500: #F0A3BB;    /* blushBright */
  --rose-400: #E9B7C0;    /* ctaTo */
  --rose-300: #F5D9DE;    /* blushLight */
  --rose-200: #F7DEE2;    /* ctaFrom */
  --rose-100: #FBEEF0;    /* ring arcSoft */

  --cream-100: #F4ECE0;   /* textHi */
  --cream-200: #F2ECDF;
  --cream-300: #EAE2D4;
  --cream-400: #E0D6C6;

  /* Roles */
  --ink: #060B18;
  --ink-soft: #243657;
  --paper: var(--cream-200);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-serif: "Newsreader", Georgia, serif;
  --font-sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; margin: 0; letter-spacing: -0.01em; }
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.lede { font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.6; }
.serif-italic { font-style: italic; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.narrow { max-width: 640px; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-sans); font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 1.05em 2.2em; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn-light { background: var(--ink); color: var(--cream-100); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -16px rgba(6,11,24,.8); }
.btn-rose { background: var(--rose-500); color: var(--forest-800); }
.btn-rose:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -14px rgba(240,163,187,.9); }
.btn-glow {
  background: rgba(240,163,187,.10); color: var(--cream-100);
  border-color: rgba(240,163,187,.55);
  box-shadow: 0 0 0 1px rgba(240,163,187,.12), 0 0 34px -8px rgba(240,163,187,.55);
}
.btn-glow:hover { transform: translateY(-2px); background: rgba(240,163,187,.18); box-shadow: 0 0 40px -6px rgba(240,163,187,.8); }
.btn-ghost { border-color: rgba(6,11,24,.28); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream-100); }

.link-underline {
  font-family: var(--font-sans); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  padding-bottom: 3px; border-bottom: 1px solid currentColor;
  transition: opacity .2s ease, gap .2s ease;
  display: inline-flex; gap: .5em; align-items: center;
}
.link-underline:hover { opacity: .6; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid rgba(6,11,24,.08);
}
.site-header.on-dark {
  background: color-mix(in srgb, var(--forest-800) 60%, transparent);
  border-bottom-color: rgba(240,163,187,.14);
  color: var(--cream-200);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brandmark { font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; letter-spacing: .01em; text-decoration: none; display: inline-flex; align-items: center; gap: .55rem; }
.brandmark .seed { width: 9px; height: 9px; border-radius: 50%; background: var(--rose-500); box-shadow: 0 0 12px var(--rose-500); }
.nav-links { display: flex; gap: clamp(1rem, 2.4vw, 2.3rem); align-items: center; }
.nav-links a {
  font-family: var(--font-sans); font-weight: 500; font-size: 0.82rem;
  letter-spacing: 0.04em; text-decoration: none; opacity: .82;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta { font-size: 0.74rem !important; letter-spacing: 0.14em !important; text-transform: uppercase; border: 1px solid currentColor; padding: .55em 1.15em; border-radius: 999px; opacity: 1 !important; }
.nav-toggle { display: none; }
@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ---------- Starfield hero (echoes the app) ---------- */
.hero-dark {
  position: relative; overflow: hidden;
  background:
    radial-gradient(62% 62% at 50% 56%, #1B2E50 0%, #0A1428 55%, #060B18 100%);
  color: var(--cream-200);
}
.hero-dark .stars {
  position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(255,255,255,.9), transparent),
    radial-gradient(1.2px 1.2px at 78% 14%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 30% 62%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.6px 1.6px at 62% 48%, rgba(255,255,255,.85), transparent),
    radial-gradient(1px 1px at 88% 70%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.2px 1.2px at 20% 84%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 50% 30%, rgba(255,255,255,.45), transparent),
    radial-gradient(1.3px 1.3px at 8% 54%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 70% 88%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.1px 1.1px at 42% 8%, rgba(255,255,255,.5), transparent);
}
.hero-dark .stars::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 25% 35%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 65% 22%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 85% 52%, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 15% 72%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 55% 80%, rgba(255,255,255,.3), transparent);
}
/* The luminous orb / moon */
.orb {
  --orb: clamp(86px, 16vw, 150px);
  position: relative; width: var(--orb); height: var(--orb);
  margin: 0 auto 2.2rem;
  border-radius: 50%;
  display: grid; place-items: center;
}
.orb::before { /* outer halo */
  content: ""; position: absolute; inset: -120%;
  background: radial-gradient(circle, rgba(247,222,226,.5) 0%, rgba(240,163,187,.18) 30%, transparent 62%);
  filter: blur(4px);
}
.orb .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(245,217,222,.35); }
.orb .ring.r2 { inset: 11%; border-color: rgba(245,217,222,.22); }
.orb .core {
  position: relative; width: 46%; height: 46%; border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #ffffff 0%, var(--rose-200) 42%, var(--rose-400) 100%);
  box-shadow: 0 0 26px 8px rgba(247,222,226,.65), 0 0 64px 18px rgba(240,163,187,.45);
}
.hero-dark .wrap { position: relative; z-index: 2; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.card {
  position: relative; padding: 2.4rem 2rem; border-radius: var(--radius);
  background: var(--cream-100);
  border: 1px solid rgba(6,11,24,.09);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
  display: flex; flex-direction: column; min-height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -30px rgba(6,11,24,.45); border-color: rgba(6,11,24,.16); }
.card .num { font-family: var(--font-sans); font-weight: 600; font-size: .72rem; letter-spacing: .26em; color: var(--rose-600); margin-bottom: 1.1rem; }
.card h3 { font-size: 1.85rem; margin-bottom: .35rem; }
.card .tag { font-style: italic; color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 1rem; }
.card p { color: var(--ink-soft); margin: 0 0 1.4rem; font-size: 0.99rem; }
.card .card-foot { margin-top: auto; }
.card .leaf { position: absolute; top: 1.8rem; right: 1.8rem; color: var(--sage-300); opacity: .8; }

/* tone variants */
.card.t-rose { background: linear-gradient(160deg, var(--rose-100), var(--cream-100)); }
.card.t-rose .num { color: var(--rose-600); }
.card.t-forest { background: linear-gradient(160deg, #EEF1F6, var(--cream-100)); }
.card.t-forest .num { color: var(--forest-400); }

/* ---------- Pull quote ---------- */
.quote { text-align: center; }
.quote blockquote {
  margin: 0; font-family: var(--font-display); font-weight: 500; font-style: italic;
  font-size: clamp(1.9rem, 5vw, 3.4rem); line-height: 1.12; letter-spacing: -0.015em;
}
.quote cite { display: block; margin-top: 1.6rem; font-style: normal;
  font-family: var(--font-sans); font-weight: 600; font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; color: var(--rose-600); }

/* ---------- Feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.feature-row.flip .col-media { order: 2; }
@media (max-width: 880px) { .feature-row { grid-template-columns: 1fr; } .feature-row.flip .col-media { order: 0; } }

/* phone frame */
.phone {
  width: min(300px, 78vw); aspect-ratio: 9/19.5; margin-inline: auto;
  border-radius: 42px; padding: 11px;
  background: linear-gradient(160deg, #1d2029, #0a0b0f);
  box-shadow: 0 40px 80px -40px rgba(6,11,24,.7), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden;
  background: radial-gradient(62% 62% at 50% 56%, #1B2E50 0%, #0A1428 55%, #060B18 100%);
  display: grid; place-content: center; text-align: center; color: var(--cream-200); padding: 2rem 1.4rem; }
.phone .screen .stars { position: absolute; inset: 0;
  background-image:
    radial-gradient(1.3px 1.3px at 18% 20%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 70% 30%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.4px 1.4px at 40% 60%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 82% 72%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 28% 82%, rgba(255,255,255,.5), transparent); }
.phone .screen > * { position: relative; z-index: 2; }
.phone .notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 38%; height: 22px; background: #0a0b0f; border-radius: 0 0 14px 14px; z-index: 5; }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 2rem; }
.stat .n { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 3.8rem); line-height: 1; }
.stat .l { font-family: var(--font-sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: .6rem; }

/* ---------- Stat bubbles (Foundation) — floating glass boxes ---------- */
.bubbles {
  display: grid; gap: clamp(1.4rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  max-width: 1080px; margin: 0 auto;
}
.bubble {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(2rem, 3.2vw, 2.7rem) clamp(1.5rem, 2.6vw, 2rem);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  border: 1px solid rgba(245,217,222,.20);
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  box-shadow:
    0 22px 55px rgba(0,0,0,.34),
    0 0 44px rgba(240,163,187,.10),
    inset 0 1px 0 rgba(255,255,255,.10);
  animation: bubbleFloat 9s ease-in-out infinite;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.bubble:hover {
  border-color: rgba(245,217,222,.4);
  box-shadow: 0 28px 64px rgba(0,0,0,.4), 0 0 56px rgba(240,163,187,.18), inset 0 1px 0 rgba(255,255,255,.14);
}
.bubble .fig {
  display: block;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1;
  color: var(--cream-100); letter-spacing: .01em;
  text-shadow: 0 0 22px rgba(247,222,226,.4), 0 0 50px rgba(240,163,187,.3);
}
.bubble .fig::after {
  content: ""; display: block; width: 34px; height: 1px; margin: 1.1rem auto 0;
  background: linear-gradient(90deg, transparent, var(--rose-500), transparent);
}
.bubble h3 {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: clamp(1.16rem, 2vw, 1.42rem); line-height: 1.22;
  color: var(--cream-100); margin: 1.2rem auto .7rem;
}
.bubble p {
  font-family: var(--font-serif); font-size: .98rem; line-height: 1.55;
  color: var(--sage-300); margin: 0 auto;
}
.bubble:nth-child(2) { animation-delay: -1.6s; }
.bubble:nth-child(3) { animation-delay: -3.2s; }
.bubble:nth-child(4) { animation-delay: -4.8s; }
@keyframes bubbleFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) {
  .bubble { animation: none !important; }
}

/* ---------- Merch drop — screen-print tiles ---------- */
.merch-grid {
  display: grid; gap: clamp(1.1rem, 2vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  max-width: 1140px; margin: 0 auto;
}
.merch-item {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  aspect-ratio: 4 / 5;
  padding: clamp(1.5rem, 2.6vw, 2.2rem);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255,255,255,.065), rgba(255,255,255,.02));
  border: 1px solid rgba(245,217,222,.18);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 20px 48px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.merch-item:hover {
  transform: translateY(-6px); border-color: rgba(245,217,222,.42);
  box-shadow: 0 30px 64px rgba(0,0,0,.42), 0 0 52px rgba(240,163,187,.18), inset 0 1px 0 rgba(255,255,255,.12);
}
.merch-item .kind {
  font-family: var(--font-sans); font-weight: 600; font-size: .66rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--rose-400);
}
.merch-item .body {
  flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
}
.merch-item .print {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem); line-height: 1.1; color: var(--cream-100);
}
.merch-item .print.caps {
  font-family: var(--font-sans); font-style: normal; font-weight: 700; text-transform: uppercase;
  letter-spacing: .015em; font-size: clamp(1.25rem, 2.8vw, 1.75rem); line-height: 1.14;
}
.merch-item .print.rose { color: var(--rose-300); }
.merch-item .div {
  display: block; width: 30px; height: 1px; margin: 1rem auto;
  background: linear-gradient(90deg, transparent, var(--rose-500), transparent);
}
.merch-item .sub {
  font-family: var(--font-serif); font-size: .92rem; line-height: 1.45; color: var(--sage-300);
}
.merch-item .tag {
  font-family: var(--font-sans); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--sage-400); text-align: center;
}

/* ---------- Section heads ---------- */
.sec-head { max-width: 720px; }
.sec-head .eyebrow { color: var(--rose-600); display: block; margin-bottom: 1.1rem; }
.sec-head h2 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
.sec-head p { color: var(--ink-soft); margin-top: 1.2rem; }

/* on dark surfaces */
.surface-forest { background: var(--forest-800); color: var(--cream-200); }
.surface-forest .sec-head p, .surface-forest .card p, .surface-forest .ink-soft { color: var(--sage-300); }
.surface-forest .eyebrow { color: var(--rose-500); }
.surface-cream { background: var(--cream-300); }

/* list */
.checklist { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 1.15rem; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; }
.checklist .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--rose-200); color: var(--rose-700);
  display: grid; place-items: center; font-size: .8rem; margin-top: .2rem; flex: none; }
.checklist b { font-family: var(--font-sans); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.checklist span.d { color: var(--ink-soft); }
/* glowing moon-logo: outer ring + inner ring + glowing core (bullets + app mockup) */
.checklist.glow .dot, .phone .logo-orb {
  position: relative; border-radius: 50%; background: transparent;
  border: 1px solid rgba(245,217,222,.42);
  box-shadow: 0 0 13px 2px rgba(240,163,187,.3);
}
.checklist.glow .dot { width: 22px; height: 22px; margin-top: .3rem; font-size: 0; color: transparent; }
.checklist.glow .dot::before, .phone .logo-orb::before {
  content: ''; position: absolute; inset: 24%; border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #fff 0%, var(--rose-200) 45%, var(--rose-400) 100%);
  box-shadow: 0 0 7px 2px rgba(247,222,226,.7), 0 0 13px 4px rgba(240,163,187,.5);
}
.checklist.glow .dot::after, .phone .logo-orb::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(245,217,222,.16);
}

/* --- Advocate app-screen mockup (built, not a screenshot) --- */
.phone .screen.app { display: block; text-align: left; padding: 1.55rem .8rem .5rem; }
.phone .app { position: relative; z-index: 2; }
.phone .statusbar { display: flex; justify-content: space-between; align-items: center; color: var(--cream-100); font-family: var(--font-sans); font-weight: 600; font-size: .55rem; padding: 0 .25rem .45rem; }
.phone .sysicons { display: inline-flex; align-items: center; gap: 4px; }
.phone .bars { display: inline-flex; align-items: flex-end; gap: 1px; height: 8px; }
.phone .bars i { width: 2px; background: rgba(255,255,255,.8); border-radius: 1px; }
.phone .bars i:nth-child(1){height:3px;} .phone .bars i:nth-child(2){height:5px;}
.phone .bars i:nth-child(3){height:7px;} .phone .bars i:nth-child(4){height:8px;}
.phone .batt { position: relative; display: inline-block; width: 16px; height: 8px; border: 1px solid rgba(255,255,255,.7); border-radius: 2px; }
.phone .batt::after { content: ''; position: absolute; inset: 1.5px; right: 4px; background: rgba(255,255,255,.85); border-radius: 1px; }
.phone .eyebrow-mini { font-family: var(--font-sans); font-size: .52rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-400); margin: 0; }
.phone .app-title { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.7rem; color: var(--cream-100); margin: .05rem 0 0; line-height: 1; }
.phone .sumcard { margin-top: .7rem; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); border-radius: 14px; padding: .75rem; }
.phone .sumhead { display: flex; align-items: center; gap: .55rem; }
.phone .logo-orb { width: 32px; height: 32px; flex: none; }
.phone .sum-title { font-family: var(--font-serif); font-size: .86rem; color: var(--cream-100); margin: .04rem 0 0; }
.phone .sum-body { font-family: var(--font-sans); font-size: .57rem; line-height: 1.5; color: var(--sage-200); margin: .55rem 0 0; }
.phone .dlbtn { margin-top: .7rem; background: var(--rose-300); color: var(--forest-800); border-radius: 999px; text-align: center; padding: .55rem; font-family: var(--font-sans); font-weight: 700; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 2px; }
.phone .mini-row { display: flex; align-items: center; gap: .55rem; margin-top: .5rem; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.035); border-radius: 12px; padding: .55rem .6rem; }
.phone .mini-ic { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(245,217,222,.4); display: grid; place-items: center; font-size: .68rem; color: var(--rose-200); flex: none; }
.phone .mini-row .txt { flex: 1; min-width: 0; }
.phone .mini-row .txt b { display: block; font-family: var(--font-sans); font-weight: 600; font-size: .55rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cream-100); }
.phone .mini-row .txt .sub { font-family: var(--font-sans); font-size: .52rem; color: var(--sage-300); }
.phone .mini-row .chev { color: var(--sage-400); font-size: .85rem; flex: none; }
.phone .tabbar { display: flex; justify-content: space-around; align-items: center; margin-top: .7rem; padding-top: .5rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; color: var(--sage-400); }
.phone .tabbar .on { color: var(--rose-200); position: relative; }
.phone .tabbar .on::after { content: ''; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); width: 3px; height: 3px; border-radius: 50%; background: var(--rose-300); }
/* real Wila SVG icons inside the mockup */
.phone .tabbar span { display: inline-flex; }
.phone .tabbar svg { width: 20px; height: 20px; display: block; }
.phone .mini-ic svg, .phone .chev svg { width: 15px; height: 15px; display: block; }
.phone .chev { display: inline-flex; }
.phone .dlbtn svg { width: 13px; height: 13px; display: inline-block; vertical-align: -2px; margin-right: 5px; }

/* --- Observe screen mockup --- */
.phone .obspill { display: flex; align-items: center; gap: .5rem; margin-top: .7rem; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); border-radius: 12px; padding: .5rem .6rem; }
.phone .obspill .logo-orb { width: 24px; height: 24px; flex: none; }
.phone .obspill-t { font-family: var(--font-serif); font-size: .84rem; color: var(--cream-100); margin: .02rem 0 0; }
.phone .obscard { margin-top: .6rem; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.045); border-radius: 14px; padding: .7rem; }
.phone .obs-italic { font-family: var(--font-serif); font-style: italic; font-size: .62rem; line-height: 1.5; color: var(--sage-200); margin: .4rem 0 0; }
.phone .heat { display: flex; align-items: flex-end; gap: 1.5px; height: 42px; margin-top: .55rem; }
.phone .heat i { flex: 1; background: linear-gradient(to top, rgba(240,163,187,.95), rgba(240,163,187,.32)); border-radius: 1px; }
.phone .phaserow { display: flex; justify-content: space-between; margin-top: .35rem; font-family: var(--font-sans); font-size: .42rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sage-400); }
.phone .statrow { display: flex; justify-content: space-between; align-items: baseline; padding: .34rem 0; border-bottom: 1px solid rgba(180,198,226,.18); gap: 8px; }
.phone .statrow:last-child { border-bottom: none; }
.phone .statrow .k { font-family: var(--font-sans); font-size: .5rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-300); }
.phone .statrow .val { font-family: var(--font-serif); font-size: .66rem; color: var(--rose-200); text-align: right; }
/* Observe — calendar */
.phone .period-btn { display: flex; align-items: center; gap: 5px; border: 1px solid rgba(240,163,187,.5); border-radius: 999px; padding: .35rem .6rem; font-family: var(--font-sans); font-size: .46rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cream-100); box-shadow: 0 0 12px -2px rgba(240,163,187,.5); flex: none; }
.phone .period-btn .dot { width: 6px; height: 6px; border-radius: 50%; background: #e7a6b1; }
.phone .calhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: .35rem; }
.phone .calchev { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; font-size: .66rem; color: var(--sage-300); }
.phone .calmonth { font-family: var(--font-serif); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-100); margin: 0; }
.phone .caldow { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; margin: .25rem 0; }
.phone .caldow span { text-align: center; font-family: var(--font-sans); font-size: .42rem; letter-spacing: .08em; color: var(--sage-400); }
.phone .calgrid { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }
.phone .calday { position: relative; aspect-ratio: 1; border-radius: 6px; border: 1px solid rgba(255,255,255,.06); display: flex; align-items: flex-start; justify-content: center; padding-top: 2px; font-family: var(--font-sans); font-size: .5rem; font-weight: 500; color: var(--sage-200); }
.phone .calday.period { background: linear-gradient(150deg, rgba(255,211,224,.95), rgba(240,162,186,.9)); border-color: transparent; color: var(--rose-700); font-weight: 700; box-shadow: 0 0 8px -2px rgba(240,163,187,.55); }
.phone .calday.sel { border-color: rgba(201,211,230,.75); box-shadow: 0 0 0 1px rgba(201,211,230,.45); }
.phone .calday.sym::after { content: ''; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); width: 3px; height: 3px; border-radius: 50%; background: var(--rose-200); box-shadow: 0 0 3px rgba(233,183,192,.7); }
.phone .calday.period.sym::after { background: #fff6f8; box-shadow: none; }
.phone .calday.ovu::after { content: ''; position: absolute; bottom: 2.5px; left: 50%; transform: translateX(-50%); width: 7px; height: 7px; border-radius: 50%; border: 1.4px solid var(--rose-200); }
.phone .callegend { display: flex; justify-content: center; gap: .8rem; margin-top: .55rem; font-family: var(--font-sans); font-size: .46rem; color: var(--sage-300); }
.phone .callegend span { display: flex; align-items: center; gap: 4px; }
.phone .callegend .lg-sym { width: 4px; height: 4px; border-radius: 50%; background: var(--rose-200); box-shadow: 0 0 3px rgba(233,183,192,.7); }
.phone .callegend .lg-per { width: 9px; height: 9px; border-radius: 3px; background: linear-gradient(150deg,#e7a6b1,#ad626f); }
.phone .callegend .lg-ovu { width: 9px; height: 9px; border-radius: 50%; border: 1.4px solid var(--rose-200); }

/* ---------- Witness chat ---------- */
.phone .modepill { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-family: var(--font-sans); font-size: .5rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--rose-200); padding: .34em .8em; border-radius: 999px;
  background: rgba(240,163,187,.12); border: 1px solid rgba(240,163,187,.28); margin: .15rem 0 .2rem; }
.phone .modepill .wit { width: 11px; height: 11px; display: inline-flex; }
.phone .chat { display: flex; flex-direction: column; gap: .55rem; margin-top: .2rem; }
.phone .bub { max-width: 84%; padding: .55rem .68rem; border-radius: 14px; font-family: var(--font-serif);
  font-size: .64rem; line-height: 1.5; }
.phone .bub.w { align-self: flex-start; border-bottom-left-radius: 4px;
  background: rgba(255,255,255,.055); border: 1px solid rgba(240,163,187,.18); color: var(--cream-200); }
.phone .bub.w .who { display: flex; align-items: center; gap: 5px; font-family: var(--font-sans); font-size: .46rem;
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-300); margin-bottom: .28rem; }
.phone .bub.w .who .orb { width: 9px; height: 9px; border-radius: 50%; border: 1.3px solid var(--rose-200);
  position: relative; box-shadow: 0 0 5px rgba(233,183,192,.7); }
.phone .bub.w .who .orb::after { content:''; position:absolute; inset:2px; border-radius:50%; background: var(--rose-200); }
.phone .bub.me { align-self: flex-end; border-bottom-right-radius: 4px; text-align: left;
  background: linear-gradient(150deg, rgba(240,163,187,.28), rgba(201,120,140,.22));
  border: 1px solid rgba(240,163,187,.3); color: var(--cream-100); }
.phone .bub em { color: var(--rose-200); font-style: italic; }
.phone .chatbar { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: .6rem; }
.phone .chatbar .field { flex: 1; padding: .5rem .7rem; border-radius: 999px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(180,198,226,.22); font-family: var(--font-serif); font-style: italic;
  font-size: .56rem; color: var(--sage-300); line-height: 1.3; }
.phone .chatbar .send { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--rose-300), var(--rose-500)); color: var(--forest-900); }

/* ---------- Educate ---------- */
.phone .edu-intro { font-family: var(--font-serif); font-style: italic; font-size: .68rem; line-height: 1.5;
  color: var(--sage-200); margin: .1rem 0 .55rem; }
.phone .edu-sec { font-family: var(--font-sans); font-size: .5rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--rose-300); margin: .5rem 0 .45rem; }
.phone .lesson { display: flex; align-items: center; gap: 9px; padding: .5rem 0; border-bottom: 1px solid rgba(180,198,226,.16); }
.phone .lesson:last-child { border-bottom: none; }
.phone .lesson .l-ic { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center;
  background: rgba(240,163,187,.1); border: 1px solid rgba(240,163,187,.22); color: var(--rose-200); }
.phone .lesson .l-tx { flex: 1; min-width: 0; }
.phone .lesson .l-tt { font-family: var(--font-serif); font-size: .66rem; color: var(--cream-100); line-height: 1.25; }
.phone .lesson .l-bl { font-family: var(--font-sans); font-size: .5rem; color: var(--sage-300); line-height: 1.3; margin-top: .14rem; }
.phone .lesson .l-rd { flex: none; font-family: var(--font-sans); font-size: .46rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--sage-400); }

/* ---------- Society ---------- */
.phone .soc-line { font-family: var(--font-display); font-style: italic; font-size: .92rem; line-height: 1.3;
  color: var(--cream-100); margin: .1rem 0 .15rem; }
.phone .soc-sub { font-family: var(--font-serif); font-size: .6rem; line-height: 1.45; color: var(--sage-300); margin: 0 0 .55rem; }
.phone .circle { display: flex; align-items: center; gap: 9px; padding: .5rem .6rem; border-radius: 12px; margin-bottom: .42rem;
  background: rgba(255,255,255,.04); border: 1px solid rgba(240,163,187,.16); }
.phone .circle .c-dot { width: 14px; height: 14px; flex: none; border-radius: 50%; box-shadow: 0 0 6px rgba(240,163,187,.5); }
.phone .circle .c-tx { flex: 1; min-width: 0; }
.phone .circle .c-nm { font-family: var(--font-serif); font-size: .66rem; color: var(--cream-100); line-height: 1.25; }
.phone .circle .c-ds { font-family: var(--font-sans); font-size: .5rem; color: var(--sage-300); line-height: 1.3; margin-top: .12rem; }
.phone .circle .c-cv { color: var(--sage-400); display: inline-flex; }

/* ---------- Footer (sleek, centered) ---------- */
.site-footer { background: var(--forest-900); color: var(--sage-200); padding-block: clamp(3.5rem, 7vw, 5.5rem); text-align: center; }
.site-footer a { text-decoration: none; color: var(--sage-200); opacity: .82; transition: opacity .25s ease, color .25s ease; }
.site-footer a:hover { opacity: 1; color: var(--cream-100); }
/* the Wila logo lockup in the footer */
.foot-company { margin: 0 auto .5rem; line-height: 0; }
.foot-company .wila-logo { display: block; width: auto; height: clamp(30px, 3.4vw, 40px); margin: 0 auto; }
.foot-tagline { font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem); line-height: 1.2; color: var(--sage-300); margin: 1.1rem auto 2.4rem; }
.foot-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem 2.2rem;
  font-family: var(--font-sans); font-weight: 500; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; }
.foot-social { display: flex; justify-content: center; flex-wrap: wrap; gap: .9rem 1.8rem; margin-top: 1.5rem;
  font-family: var(--font-sans); font-size: .82rem; }
.foot-social a { color: var(--sage-400); }
.foot-bottom { border-top: 1px solid rgba(180,198,226,.13); margin-top: 2.8rem; padding-top: 1.7rem;
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  font-family: var(--font-sans); font-size: .76rem; letter-spacing: .03em; color: var(--sage-400); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* tag pill */
.pill { display:inline-block; font-family: var(--font-sans); font-weight:600; font-size:.7rem; letter-spacing:.18em; text-transform:uppercase;
  padding:.5em 1em; border-radius:999px; background: rgba(240,163,187,.16); color: var(--rose-600); }
.surface-forest .pill { background: rgba(240,163,187,.16); color: var(--rose-500); }

.divider-leaf { text-align:center; color: var(--sage-300); font-size: 1.4rem; letter-spacing: .6em; padding-block: .5rem; }

/* keep a phrase on one line (wraps again on small screens) */
.oneline { white-space: nowrap; }
@media (max-width: 480px) { .oneline { white-space: normal; } }

/* anchor jumps land just below the sticky header */
section[id] { scroll-margin-top: 76px; }

/* ============================================================
   SPLASH — atmospheric outer-space entrance (index.html)
   Deep near-black field, dense canvas starfield, soft shooting
   stars, small glowing pulsing orb. Spacial · modern · feminine.
   ============================================================ */
.splash {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center; overflow: hidden;
  color: var(--cream-100);
  /* the app's night sky (Starfield.tsx) */
  background: radial-gradient(62% 62% at 50% 56%, #1B2E50 0%, #0A1428 55%, #060B18 100%);
  padding: clamp(2rem, 6vw, 4rem) var(--gutter);
}
/* one full-screen canvas renders stars, shooting stars, the parallax
   mountain/forest layers, drifting moonlit fog, blossoms and petals */
.splash .scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; display: block; }
/* a soft aura sits behind the moon */
.splash .aura {
  position: absolute; z-index: 2; top: 30%; left: 50%; width: min(60vw, 520px); aspect-ratio: 1;
  transform: translate(-50%, -56%); pointer-events: none;
  background: radial-gradient(circle, rgba(240,163,187,.15) 0%, rgba(143,168,214,.06) 36%, transparent 62%);
  animation: auraBreath 7s ease-in-out infinite;
}
@keyframes auraBreath { 0%,100% { opacity: .7; } 50% { opacity: 1; } }

.splash .splash-inner { position: relative; z-index: 5; max-width: 720px; animation: rise 1.6s cubic-bezier(.2,.7,.2,1) both; }
/* warp transition: fade the content as the stars streak away */
.splash.warp .splash-inner, .splash.warp .aura { opacity: 0; transition: opacity .55s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* the Wila logo lockup, large, with a soft lavender glow */
.splash .company { margin: 0; line-height: 0; }
.splash .company .wila-logo {
  display: block; width: clamp(220px, 52vw, 440px); height: auto; margin: 0 auto;
  filter: drop-shadow(0 0 26px rgba(195,180,215,.22)) drop-shadow(0 2px 20px rgba(0,0,0,.45));
}
.splash .company + .tagline { margin-top: clamp(1rem, 2.4vw, 1.5rem); }

/* the Wila mark's reveal on the splash, after the app (WilaMark.tsx) but slower and with fewer turns: 5.4s (app 3.6s), one shared landing.
   Centre petal still; side petals spin one turn in from opposite sides (-420deg to -60deg, +420deg to +60deg; app: two turns),
   ease cubic-bezier(.2,.85,.12,1); a radial glow blooms in from 1.35s (app 0.9s). Origin = the petals' shared pivot. */
.wila-anim { overflow: visible; }
.wila-anim .wila-petal { transform-box: view-box; transform-origin: 52.12px 60.24px;
  animation: 5.4s cubic-bezier(.2,.85,.12,1) both; }
.wila-anim .wila-petal-l { animation-name: wilaSpinL; }
.wila-anim .wila-petal-r { animation-name: wilaSpinR; }
@keyframes wilaSpinL { from { transform: rotate(-360deg); } to { transform: rotate(0deg); } }
@keyframes wilaSpinR { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
.wila-anim .wila-glow { transform-box: fill-box; transform-origin: center; opacity: 0;
  animation: wilaGlow 4.05s linear 1.35s both; }
@keyframes wilaGlow {
  0.00% { opacity: 0.000; transform: scale(0.350); }
  4.17% { opacity: 0.333; transform: scale(0.567); }
  8.33% { opacity: 0.732; transform: scale(0.826); }
  10.82% { opacity: 1.000; transform: scale(1.000); }
  12.50% { opacity: 0.946; transform: scale(1.030); }
  16.67% { opacity: 0.807; transform: scale(1.106); }
  20.83% { opacity: 0.672; transform: scale(1.180); }
  25.00% { opacity: 0.553; transform: scale(1.246); }
  29.17% { opacity: 0.453; transform: scale(1.301); }
  33.33% { opacity: 0.371; transform: scale(1.346); }
  37.50% { opacity: 0.303; transform: scale(1.384); }
  41.67% { opacity: 0.246; transform: scale(1.414); }
  45.83% { opacity: 0.200; transform: scale(1.440); }
  50.00% { opacity: 0.161; transform: scale(1.462); }
  54.17% { opacity: 0.128; transform: scale(1.480); }
  58.33% { opacity: 0.101; transform: scale(1.495); }
  62.50% { opacity: 0.078; transform: scale(1.507); }
  66.67% { opacity: 0.059; transform: scale(1.518); }
  70.83% { opacity: 0.043; transform: scale(1.526); }
  75.00% { opacity: 0.031; transform: scale(1.533); }
  79.17% { opacity: 0.020; transform: scale(1.539); }
  83.33% { opacity: 0.013; transform: scale(1.543); }
  87.50% { opacity: 0.007; transform: scale(1.546); }
  91.67% { opacity: 0.003; transform: scale(1.548); }
  95.83% { opacity: 0.001; transform: scale(1.550); }
  100.00% { opacity: 0.000; transform: scale(1.550); }
}
@media (prefers-reduced-motion: reduce) {
  .wila-anim .wila-petal, .wila-anim .wila-glow { animation: none; }
}

.splash .tagline {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.2rem, 3.2vw, 2.1rem); color: var(--rose-200);
  margin: .55rem 0 0; letter-spacing: .005em;
  text-shadow: 0 0 30px rgba(240,163,187,.25);
}
.splash .hairline { width: 54px; height: 1px; margin: 2.2rem auto 0; background: linear-gradient(90deg, transparent, rgba(245,217,222,.5), transparent); }

/* small glowing, pulsing orb — sits a little higher above the words */
.splash .orb { --orb: clamp(64px, 9vw, 92px); margin-bottom: clamp(3rem, 6.5vw, 5rem); }
.orb.pulse { animation: orbFloat 8s ease-in-out infinite; }
.orb.pulse::before { animation: haloPulse 5s ease-in-out infinite; }
.orb.pulse .core { animation: corePulse 5s ease-in-out infinite; }
.orb.pulse .ring { animation: ringPulse 5s ease-in-out infinite; }
.orb.pulse .ring.r2 { animation: ringPulse 5s ease-in-out infinite .5s; }
@keyframes orbFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes haloPulse { 0%,100% { opacity: .65; transform: scale(1); } 50% { opacity: 1; transform: scale(1.14); } }
@keyframes corePulse {
  0%,100% { box-shadow: 0 0 18px 5px rgba(247,222,226,.55), 0 0 44px 12px rgba(240,163,187,.4); }
  50%     { box-shadow: 0 0 28px 9px rgba(247,222,226,.85), 0 0 66px 20px rgba(240,163,187,.6); }
}
@keyframes ringPulse { 0%,100% { opacity: .45; transform: scale(1); } 50% { opacity: .85; transform: scale(1.07); } }

/* glass, floating, glowing CTA */
.btn-witness {
  position: relative;
  margin-top: clamp(2.6rem, 5vw, 3.7rem);
  font-size: .95rem; letter-spacing: .32em; padding: 1.4em 3.5em;
  color: var(--cream-100);
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(13px) saturate(135%);
  backdrop-filter: blur(13px) saturate(135%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.30),
    inset 0 -1px 0 rgba(0,0,0,.18),
    0 26px 50px -16px rgba(0,0,0,.7),
    0 0 40px -8px rgba(240,163,187,.5);
  animation: witnessFloat 6.5s ease-in-out infinite;
}
/* steady (non-pulsing) rose glow halo behind the glass */
.btn-witness::before {
  content: ""; position: absolute; inset: -8px; border-radius: 999px; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(240,163,187,.34), rgba(240,163,187,0) 70%);
  filter: blur(12px); opacity: .8;
}
/* soft cast shadow beneath, sells the "floating" */
.btn-witness::after {
  content: ""; position: absolute; left: 14%; right: 14%; bottom: -18px; height: 18px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.45), transparent 72%);
  filter: blur(6px); z-index: -1;
  animation: witnessShadow 6.5s ease-in-out infinite;
}
.btn-witness:hover {
  transform: translateY(-4px); background: rgba(255,255,255,.12);
  border-color: rgba(245,217,222,.45); letter-spacing: .35em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34),
    0 32px 58px -18px rgba(0,0,0,.75),
    0 0 54px -6px rgba(240,163,187,.8);
}
@keyframes witnessFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes witnessShadow { 0%,100% { opacity: .7; transform: scaleX(1); } 50% { opacity: .4; transform: scaleX(.84); } }

/* slow breathing-glow variant of the glass CTA */
.btn-witness.btn-pulse { animation: witnessPulse 5s ease-in-out infinite; }
.btn-witness.btn-pulse::before { animation: witnessGlow 5s ease-in-out infinite; }
@keyframes witnessPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes witnessGlow {
  0%,100% { opacity: .5; filter: blur(12px); transform: scale(1); }
  50% { opacity: 1; filter: blur(17px); transform: scale(1.06); }
}

/* ---- "be a witness" exit: content fades, then we travel through space ---- */
/* !important so the fade beats the .splash-inner "rise" load animation */
.splash.warp .splash-inner, .splash.warp .aura {
  opacity: 0 !important; pointer-events: none; transition: opacity .5s ease;
}

@media (prefers-reduced-motion: reduce) {
  .splash .aura, .orb.pulse, .orb.pulse *,
  .btn-witness, .btn-witness::after, .btn-witness::before, .splash .splash-inner { animation: none !important; }
}

/* ============================================================
   SPACE THEME — dark, animated starfield carried across the site
   ============================================================ */
body.space {
  background: #060B18;
  color: var(--cream-200);
}
/* fixed full-viewport canvas behind all content */
.space-bg {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: -1; pointer-events: none; display: block;
  background: radial-gradient(62% 62% at 50% 56%, #1B2E50 0%, #0A1428 55%, #060B18 100%);   /* fixed, so the glow sits where it does on the app's screens */
}

/* --- centered offerings nav (no brandmark) --- */
.space .site-header {
  background: rgba(6,11,24,.5) !important;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  color: var(--cream-200);
}
.nav-center {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: clamp(1rem, 3.2vw, 2.8rem); padding-block: 1.2rem;
}
.nav-center a {
  font-family: var(--font-sans); font-weight: 500; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: var(--cream-200); opacity: .8; transition: opacity .2s, color .2s;
}
.nav-center a:hover { opacity: 1; }
.nav-center a.active { color: var(--rose-300); opacity: 1; }
/* back-to-enter button, pinned left while offerings stay centered */
.nav-back {
  position: absolute; left: var(--gutter); top: 0; height: 100%;
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--font-sans); font-weight: 500; font-size: .76rem;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: var(--cream-200); opacity: .68; transition: opacity .2s; z-index: 2;
}
.nav-back:hover { opacity: 1; }
@media (max-width: 600px) { .nav-back { left: 1rem; font-size: .68rem; } .nav-back .label { display: none; } }

/* ---------- Redesigned header: brand (left) · tabs (right) ---------- */
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: .55rem 1.4rem; flex-wrap: wrap; padding-block: 1rem;
}
.nav-brand {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1rem, 1.9vw, 1.3rem); letter-spacing: .01em;
  color: var(--cream-100); text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: baseline; transition: color .2s;
}
.nav-brand:hover { opacity: .82; }
.nav-brand .wila-logo { display: block; width: auto; height: clamp(24px, 2.6vw, 30px); }
.nav-tabs { display: flex; align-items: center; gap: clamp(.35rem, 1.5vw, 1.3rem); flex-wrap: wrap; }
.nav-tabs a {
  font-family: var(--font-sans); font-weight: 500; font-size: clamp(.68rem, 1.25vw, .8rem);
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: var(--cream-200); opacity: .7; transition: opacity .2s, color .2s;
  padding: .5em .6em; border-radius: 999px; white-space: nowrap;
}
.nav-tabs a:hover { opacity: 1; color: var(--rose-200); }
.nav-tabs a.active {
  color: var(--cream-100); opacity: 1; font-weight: 600; padding: .5em 1em;
  animation: navTabPulse 2.8s ease-in-out infinite;
}
@keyframes navTabPulse {
  0%,100% { background: rgba(201,120,140,.34); box-shadow: 0 0 10px rgba(201,120,140,.3), inset 0 0 0 1px rgba(245,217,222,.3); }
  50% { background: rgba(201,120,140,.55); box-shadow: 0 0 22px rgba(201,120,140,.6), inset 0 0 0 1px rgba(245,217,222,.55); }
}

/* ---------- Scroll-down cue (glowing, pulsing chevron) ---------- */
.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(1.2rem, 3vw, 2.2rem);
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  color: var(--rose-300); text-decoration: none; z-index: 6;
  animation: scrollBob 2.2s ease-in-out infinite;
}
.scroll-cue svg { width: 26px; height: 26px; animation: scrollGlow 2.2s ease-in-out infinite; }
@keyframes scrollBob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 9px); } }
@keyframes scrollGlow {
  0%,100% { opacity: .5; filter: drop-shadow(0 0 5px rgba(245,217,222,.4)); }
  50% { opacity: 1; filter: drop-shadow(0 0 14px rgba(240,163,187,.95)); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-tabs a.active { animation: none; background: rgba(201,120,140,.42); box-shadow: inset 0 0 0 1px rgba(245,217,222,.4); }
  .scroll-cue, .scroll-cue svg { animation: none; }
  .scroll-cue { transform: translateX(-50%); }
}

/* --- let the starfield show through every section --- */
.space .hero-dark, .space .surface-cream, .space section { background: transparent !important; }
.space .hero-dark .stars { display: none !important; }
.space .surface-forest { background: rgba(10,20,40,.5) !important; }

/* --- flip the light sections' text to read on dark --- */
.space .sec-head h2,
.space .surface-cream .display,
.space .feature-row .col-text h3,
.space .checklist b, .space .stat .n,
.space .card h3 { color: var(--cream-100) !important; }
.space .sec-head p,
.space .surface-cream p,
.space .feature-row .col-text p,
.space .checklist span.d, .space .stat .l,
.space .card p, .space .card .tag { color: var(--sage-300) !important; }
.space .eyebrow { color: var(--rose-400) !important; }
.space .card .num { color: var(--rose-400) !important; }
.space .link-underline { color: var(--rose-300) !important; }

/* --- cards → dark glass --- */
.space .card, .space .card.t-rose, .space .card.t-forest {
  background: rgba(255,255,255,.045) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.space .card:hover { border-color: rgba(255,255,255,.2) !important; }

/* --- buttons / footer on dark --- */
.space .btn-ghost { border-color: rgba(255,255,255,.32) !important; color: var(--cream-100) !important; }
.space .btn-ghost:hover { background: var(--cream-100) !important; color: var(--forest-800) !important; }
.space .site-footer { background: rgba(3,6,14,.72) !important; }

/* ---------- Waitlist / pre-launch page ---------- */
.wl { position: relative; z-index: 3; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: clamp(2.4rem, 7vw, 5rem) var(--gutter); }
.wl-inner { max-width: 640px; width: 100%; animation: rise 1.4s cubic-bezier(.2,.7,.2,1) both; }
.wl-brand { margin: 0; line-height: 0; }
.wl-brand .wila-logo {
  display: block; width: clamp(220px, 50vw, 420px); height: auto; margin: 0 auto;
  filter: drop-shadow(0 0 26px rgba(195,180,215,.22)) drop-shadow(0 2px 20px rgba(0,0,0,.45));
}
.wl-tagline { font-family: var(--font-sans); font-size: .7rem; letter-spacing: .34em; text-transform: uppercase; color: var(--sage-300); margin-top: .7rem; }
.wl-head { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: clamp(2.4rem, 7vw, 4.2rem); color: var(--cream-100); line-height: 1.05; margin-top: clamp(1.8rem, 4vw, 2.6rem); }
.wl-sub { color: var(--sage-200); font-size: clamp(1.02rem, 2vw, 1.18rem); line-height: 1.65; max-width: 32rem; margin: 1.4rem auto 0; }
.wl-form { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-top: clamp(2rem, 4.5vw, 3rem); }
.wl-input {
  flex: 1 1 240px; max-width: 340px;
  font-family: var(--font-sans); font-size: 1rem; color: var(--cream-100);
  padding: .95em 1.3em; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(245,217,222,.28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .2s, box-shadow .2s;
}
.wl-input::placeholder { color: rgba(245,217,222,.5); }
.wl-input:focus { outline: none; border-color: rgba(240,163,187,.75); box-shadow: 0 0 0 3px rgba(240,163,187,.18), 0 0 24px rgba(240,163,187,.28); }
.wl-btn { border-radius: 999px; padding: .95em 1.9em; letter-spacing: .04em; white-space: nowrap; }
.wl-note { color: var(--sage-400); font-size: .82rem; letter-spacing: .03em; margin-top: 1.3rem; }
.wl-ok { color: var(--rose-300); font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-top: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.25; }
/* ---------- Meet Wila: the brief overview between the splash and the waitlist ----------
   Fills one screen on any device without scrolling. Everything inside .wl-inner is sized in em, and a
   small script in meet.html sets .wl-inner's font-size to the largest value that fits the viewport
   (and refits on resize). The font-size below is only the no-script fallback. */
.meet { --vh: 1vh; }
@supports (height: 1svh) { .meet { --vh: 1svh; } }
.wl.meet { padding-block: calc(4 * var(--vh)); }
.meet .wl-inner { font-size: clamp(14px, calc(1.9 * var(--vh)), 22px); max-width: min(46em, 100%); min-width: 0; }   /* min-width 0: the email box may narrow instead of widening the page */
.meet .wl-brand { font-size: 1em; }   /* h1 would otherwise double the em the logo is sized in */
.meet .wl-brand .wila-logo { width: 15em; max-width: 100%; }
.meet-cta { font-size: .8em; margin-top: 1.2em; padding: .95em 2.2em; }
.meet-head { font-size: 2.3em; line-height: 1.12; margin-top: .45em; text-wrap: balance; }
.meet .wl-sub { font-size: 1em; line-height: 1.5; max-width: 40em; margin-top: .75em; }
.meet-pillars { list-style: none; padding: 0; max-width: 40em; text-align: left; margin: 1.1em auto 0; }
.meet-pillars li { display: grid; grid-template-columns: 6.6em 1fr; gap: .25em 1em; align-items: baseline;
  padding: .5em 0; border-top: 1px solid rgba(180,198,226,.16); }
.meet-pillars li:last-child { border-bottom: 1px solid rgba(180,198,226,.16); }
.meet-pillars .eyebrow { font-size: .7em; letter-spacing: .2em; }
.meet-pillars p { margin: 0; color: var(--sage-200); font-size: .95em; line-height: 1.4; }
.meet-promise { font-family: var(--font-display); font-style: italic; color: var(--rose-300);
  font-size: 1.25em; margin-top: .8em; }
.meet .wl-note { font-size: .72em; margin-top: 1em; }
/* the signup row: email box left, Join the waitlist right, on every screen size */
.meet-form { flex-wrap: nowrap; gap: .6em; max-width: 34em; margin: 1.2em auto 0; }
.meet-form .wl-input { flex: 1 1 auto; min-width: 0; max-width: none; padding: .8em 1.2em;
  font-size: max(16px, .9em); }   /* 16px floor: below it, iPhones zoom in on the field */
.meet-form .meet-cta { flex: none; margin-top: 0; }
.meet .wl-ok { font-size: 1.4em; margin-top: .8em; }
/* narrow screens: a smaller headline and logo relative to the body, so the body text can stay larger */
@media (max-width: 480px) {
  .meet .wl-brand .wila-logo { width: 12em; }
  .meet-head { font-size: 1.85em; }
  .meet-pillars li { grid-template-columns: 6.2em 1fr; gap: .2em .8em; }
  .meet-pillars .eyebrow { letter-spacing: .14em; }
  .meet-form .meet-cta { padding: .95em 1.3em; }
  .meet-form .wl-input { padding: .8em 1em; }
}
@media (max-height: 620px) { .wl.meet { padding-block: calc(1.5 * var(--vh)); } }
@media (max-width: 340px) { .meet-head { font-size: 1.6em; } .meet .wl-brand .wila-logo { width: 10.5em; } }
/* arriving from the splash's warp: the sky and stars come up out of the navy the warp ended on, then the words */
.arrive .space-bg { animation: arriveSky 1.4s ease-out both; }
.arrive .wl-inner { animation-delay: .35s; }
@keyframes arriveSky { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .arrive .space-bg { animation: none; } }

.wl-social { display: flex; gap: 1.5rem; justify-content: center; margin-top: clamp(2.4rem, 5.5vw, 3.6rem); }
.wl-social a { font-family: var(--font-sans); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-300); text-decoration: none; opacity: .78; transition: opacity .2s, color .2s; }
.wl-social a:hover { opacity: 1; color: var(--rose-200); }

/* a giant daisy that slowly blooms open behind everything */
.wl-bloom {
  position: fixed; inset: 0; margin: auto; z-index: 1; pointer-events: none;
  width: min(120vmin, 820px); height: min(120vmin, 820px);
  opacity: 0; filter: drop-shadow(0 0 30px rgba(240,163,187,.35));
  animation: wlBloomBreath 15s ease-in-out infinite, wlBloomSpin 120s linear infinite;
}
.wl-bloom .wl-petal {
  stroke-dasharray: 130; stroke-dashoffset: 130;
  animation: wlBloomDraw 15s ease-in-out infinite;
}
.wl-bloom .wl-core { opacity: 0; animation: wlBloomCore 15s ease-in-out infinite; }
@keyframes wlBloomBreath { 0%,100% { opacity: 0; } 22% { opacity: .13; } 64% { opacity: .13; } 82% { opacity: 0; } }
@keyframes wlBloomDraw { 0% { stroke-dashoffset: 130; } 34% { stroke-dashoffset: 0; } 84% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 130; } }
@keyframes wlBloomCore { 0%,30% { opacity: 0; } 44% { opacity: 1; } 82% { opacity: 1; } 92%,100% { opacity: 0; } }
@keyframes wlBloomSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .wl-bloom { animation: none; opacity: .1; }
  .wl-bloom .wl-petal { animation: none; stroke-dashoffset: 0; }
  .wl-bloom .wl-core { animation: none; opacity: 1; }
}
