/* White Lights marketing site, 2026-08-07 layout revision B
   Dark charcoal, warm paper, and the soft gold used by the iPhone app.
   No external fonts or scripts. */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  overflow-x: clip;
  background: #0a0a09;
  color: #f2ede3;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }

:root {
  --bg: #0a0a09;
  --bg-raised: #11110f;
  --soft: #181816;
  --soft-2: #20201d;
  --paper: #f2ede3;
  --paper-2: #ddd5c8;
  --muted: #b8afa1;
  --faint: #837c71;
  --warm: #e6bb80;
  --warm-deep: #9c7345;
  --line: rgba(242, 237, 227, 0.12);
  --line-strong: rgba(242, 237, 227, 0.22);
  --glow: 0 0 34px rgba(255, 244, 224, 0.25);
  --container: 1160px;
  --display: Georgia, "Times New Roman", serif;
}

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.container.narrow { max-width: 760px; }

a {
  color: var(--warm);
  text-decoration: none;
  border-bottom: 1px solid rgba(230, 187, 128, 0.36);
}
a:hover { border-bottom-color: var(--warm); }

h1, h2, h3 {
  color: var(--paper);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}
h1, .story h2, .chapter h3, .boundary-copy h2, .source h2, .closer h2, .legal-hero h1 {
  font-family: var(--display);
}
h1 { font-size: clamp(3.1rem, 6.8vw, 6.2rem); }
h2 { font-size: clamp(2.35rem, 4.7vw, 4.5rem); }
h3 { font-size: 1.35rem; }
p { color: var(--muted); }
.body-lg { font-size: clamp(1.08rem, 1.7vw, 1.3rem); }
.lede { max-width: 38em; font-size: clamp(1.05rem, 1.7vw, 1.28rem); }
.fine { color: var(--faint); font-size: 0.88rem; }
.kicker, .card-label, .chapter-label {
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Header */
.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 22px clamp(20px, 4vw, 48px);
}
.brand {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  border: 0;
}
.brand-mark {
  width: 44px;
  height: 16px;
  fill: #fff9ee;
  filter: drop-shadow(0 0 6px rgba(255, 244, 224, 0.55));
}
.brand-name { color: var(--paper); font-size: 1.02rem; font-weight: 700; letter-spacing: 0.04em; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { border: 0; color: var(--paper-2); font-size: 0.86rem; font-weight: 650; }
.site-nav a:hover { color: var(--paper); }
.coming-pill {
  justify-self: end;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 10, 9, 0.38);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  backdrop-filter: blur(9px);
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  min-height: min(96vh, 940px);
  align-items: flex-start;
}
.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero.webp");
  background-position: 22% center;
  background-size: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(10, 10, 9, 0.05) 32%),
    linear-gradient(to bottom, rgba(10, 10, 9, 0.66) 0%, rgba(10, 10, 9, 0.28) 38%, rgba(10, 10, 9, 0.03) 64%),
    radial-gradient(ellipse at 62% 24%, rgba(10, 10, 9, 0.42), transparent 67%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  width: min(100% - 48px, var(--container));
}
.hero-copy {
  width: min(78%, 860px);
  padding: clamp(108px, 14vh, 148px) 0 9vh;
  text-align: center;
}
.hero-copy h1 {
  max-width: 11em;
  margin-inline: auto;
  font-size: clamp(3.15rem, 5.3vw, 5.2rem);
  text-shadow: 0 3px 32px rgba(0, 0, 0, 0.72);
}
.hero-copy .kicker { margin-bottom: 1.1rem; }
.hero-copy .lede {
  margin: 1.35rem auto 0;
  color: var(--paper-2);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.88);
}
.hero-actions { margin-top: 2rem; }
.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 21px;
  border-radius: 13px;
  background: var(--paper);
  box-shadow: var(--glow);
  color: var(--bg);
  font-size: 0.96rem;
  font-weight: 700;
}
.cta-badge svg { width: 16px; height: 20px; }

/* Three plain truths */
.plain-truths { border-bottom: 1px solid var(--line); }
.truth-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--line);
}
.truth-grid p {
  display: grid;
  gap: 8px;
  padding: 30px clamp(22px, 3.5vw, 40px);
  border-right: 1px solid var(--line);
}
.truth-grid strong { color: var(--paper); font-size: 0.95rem; }
.truth-grid span { color: var(--faint); font-size: 0.88rem; line-height: 1.45; }

/* Story walkthrough */
.story { padding: clamp(96px, 13vw, 170px) 0 clamp(110px, 14vw, 190px); }
.story-head { max-width: 790px; text-align: center; }
.story-head .kicker { margin-bottom: 1.2rem; }
.story-head .body-lg { max-width: 42em; margin: 1.4rem auto 0; }
.walkthrough { display: grid; gap: clamp(120px, 16vw, 220px); margin-top: clamp(90px, 12vw, 150px); }
.chapter {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(460px, 1.18fr);
  align-items: center;
  gap: clamp(46px, 8vw, 110px);
}
.chapter-flip { grid-template-columns: minmax(460px, 1.18fr) minmax(0, 0.82fr); }
.chapter-flip .chapter-copy { order: 2; }
.chapter-flip .chapter-media { order: 1; }
.chapter-copy { position: relative; z-index: 2; }
.chapter-label { display: flex; align-items: center; gap: 11px; margin-bottom: 1.15rem; }
.chapter-label span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(230, 187, 128, 0.45);
  border-radius: 50%;
  font-size: 0.7rem;
  letter-spacing: 0;
}
.chapter h3 { font-size: clamp(2.45rem, 4.7vw, 4.6rem); }
.chapter-copy > p:last-child { max-width: 31em; margin-top: 1.25rem; font-size: 1.06rem; }
.chapter-media {
  position: relative;
  display: grid;
  min-height: 760px;
  place-items: center;
  isolation: isolate;
}
.chapter-media::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 187, 128, 0.15) 0%, rgba(230, 187, 128, 0.035) 48%, transparent 70%);
  filter: blur(4px);
}
.phone-frame {
  position: relative;
  z-index: 1;
  width: min(72%, 390px);
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(242, 237, 227, 0.22);
  border-radius: 58px;
  background: #050605;
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.5), 0 0 0 5px rgba(255, 255, 255, 0.018);
}
.phone-frame img { width: 100%; border-radius: 50px; }
.popup {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 2px;
  width: min(47%, 245px);
  padding: 14px 16px;
  border: 1px solid rgba(10, 10, 9, 0.12);
  border-radius: 17px;
  background: rgba(242, 237, 227, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  color: var(--bg);
  backdrop-filter: blur(12px);
}
.popup::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 1px;
  background: rgba(230, 187, 128, 0.75);
}
.popup strong { font-size: 0.91rem; line-height: 1.25; }
.popup span { color: #625b51; font-size: 0.74rem; line-height: 1.35; }
.stat-popup strong { color: #8b6035; font-family: var(--display); font-size: 1.18rem; }
.popup-tl { top: 15%; left: 0; }
.popup-tl::after, .popup-bl::after { top: 50%; right: -34px; }
.popup-tr { top: 19%; right: 0; }
.popup-tr::after, .popup-br::after { top: 50%; left: -34px; }
.popup-bl { bottom: 18%; left: 0; }
.popup-br { right: 0; bottom: 19%; }

/* Packaging */
.product-boundary {
  padding: clamp(90px, 12vw, 150px) 0;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 14% 0%, rgba(230, 187, 128, 0.12), transparent 31%),
    var(--bg-raised);
}
.boundary-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; align-items: start; gap: clamp(50px, 8vw, 110px); }
.boundary-copy .kicker { margin-bottom: 1.15rem; }
.boundary-copy h2 { font-size: clamp(2.45rem, 4.5vw, 4.15rem); }
.boundary-copy > p:last-child { max-width: 34em; margin-top: 1.3rem; }
.boundary-cards { display: grid; gap: 18px; }
.boundary-card {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.025);
}
.boundary-card-warm {
  border-color: rgba(230, 187, 128, 0.35);
  background: linear-gradient(145deg, rgba(230, 187, 128, 0.15), rgba(230, 187, 128, 0.035));
}
.boundary-card h3 { margin-top: 0.6rem; font-size: 1.7rem; }
.boundary-card > p:last-child { margin-top: 0.8rem; }

/* Source */
.source { padding: clamp(90px, 12vw, 150px) 0; }
.source-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(42px, 8vw, 100px); }
.source .kicker { margin-bottom: 1.05rem; }
.source h2 { font-size: clamp(2.4rem, 4.1vw, 3.9rem); }
.source .body-lg + .fine { margin-top: 1.3rem; }

/* Closing image */
.closer {
  position: relative;
  display: flex;
  min-height: 76vh;
  align-items: center;
  padding: 0;
  text-align: center;
}
.closer-media {
  position: absolute;
  inset: 0;
  background-image: url("assets/lockout.webp");
  background-position: center 30%;
  background-size: cover;
}
.closer-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--bg) 0%, rgba(10, 10, 9, 0.1) 35%),
    linear-gradient(to top, var(--bg) 0%, rgba(10, 10, 9, 0.28) 48%),
    rgba(10, 10, 9, 0.18);
}
.closer-copy { position: relative; z-index: 1; padding: 14vh 0; }
.closer-copy .kicker { margin-bottom: 1rem; }
.closer-copy .lede { margin: 1rem auto 2rem; color: var(--paper-2); }

/* Footer */
.site-footer { padding: 52px 0 60px; border-top: 1px solid var(--line); }
.footer-inner { text-align: center; }
.footer-inner .brand-mark { margin: 0 auto 20px; }
.footer-inner p { max-width: 48em; margin: 0 auto 12px; font-size: 0.91rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin: 22px 0 14px; }
.footer-links a { font-size: 0.9rem; }

/* Legal and support pages */
.page-header {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 9, 0.96);
}
.page-header .coming-pill { background: rgba(255, 255, 255, 0.03); }
.legal-main { min-height: 70vh; }
.legal-hero {
  padding: clamp(76px, 11vw, 126px) 0 clamp(48px, 7vw, 78px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 18%, rgba(230, 187, 128, 0.12), transparent 34%),
    linear-gradient(150deg, rgba(255, 244, 224, 0.04), transparent 46%);
}
.legal-hero h1 { max-width: 13em; font-size: clamp(2.8rem, 5.2vw, 5rem); }
.legal-hero .kicker { margin-bottom: 1rem; }
.legal-hero .lede { margin-top: 1em; }
.legal-meta { margin-top: 1.4em; color: var(--faint); font-size: 0.88rem; }
.legal-content { max-width: 780px; padding-top: clamp(58px, 8vw, 96px); padding-bottom: clamp(72px, 10vw, 120px); }
.legal-content section + section { margin-top: 3.1rem; }
.legal-content h2 { margin-bottom: 0.65em; font-family: inherit; font-size: clamp(1.4rem, 2.5vw, 1.9rem); letter-spacing: -0.02em; }
.legal-content h3 { margin-top: 1.6em; }
.legal-content p + p { margin-top: 0.9em; }
.legal-content ul { margin: 1em 0 0 1.25em; color: var(--muted); }
.legal-content li + li { margin-top: 0.55em; }
.legal-content strong { color: var(--paper); }
.legal-callout {
  margin: 0 0 3.2rem;
  padding: 22px 24px;
  border: 1px solid rgba(230, 187, 128, 0.3);
  border-radius: 16px;
  background: rgba(230, 187, 128, 0.06);
}
.legal-callout p { color: var(--paper); }
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 2rem; }
.legal-content .support-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 244, 224, 0.04), transparent 55%);
}
.support-grid .support-card + .support-card { margin-top: 0; }
.support-card h2 { font-size: 1.2rem; }
.support-card p { font-size: 0.94rem; }
.support-card p + p { margin-top: 0.75em; }
.support-email { display: inline-block; margin-top: 1.4rem; overflow-wrap: anywhere; font-size: clamp(1.05rem, 3vw, 1.35rem); }

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s ease var(--reveal-delay, 0ms), transform 0.72s ease var(--reveal-delay, 0ms);
}
.reveal-delay-140 { --reveal-delay: 140ms; }
.reveal-delay-180 { --reveal-delay: 180ms; }
.reveal-delay-360 { --reveal-delay: 360ms; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 940px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .chapter, .chapter-flip {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .chapter-flip .chapter-copy, .chapter-flip .chapter-media { order: initial; }
  .chapter-copy { width: min(100%, 650px); }
  .chapter-media { width: min(100%, 650px); min-height: 720px; margin-inline: auto; }
  .boundary-grid, .source-grid { grid-template-columns: 1fr; }
  .boundary-copy { max-width: 720px; }
  .boundary-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .container { width: min(100% - 36px, var(--container)); }
  .site-header { padding: 19px 18px; }
  .coming-pill { display: none; }
  .hero { align-items: flex-end; min-height: 850px; }
  .hero-media { background-position: 9% center; }
  .hero-media::after {
    background:
      linear-gradient(to top, var(--bg) 4%, rgba(10, 10, 9, 0.38) 55%, rgba(10, 10, 9, 0.02) 78%),
      linear-gradient(to right, rgba(10, 10, 9, 0.18), rgba(10, 10, 9, 0.08));
  }
  .hero-inner { justify-content: flex-start; }
  .hero-copy { width: 100%; padding: 47vh 0 68px; text-align: left; }
  .hero-copy h1 { max-width: 9em; margin-inline: 0; font-size: clamp(3rem, 14vw, 4.6rem); }
  .hero-copy .lede { margin-left: 0; }
  .truth-grid { grid-template-columns: 1fr; border-left: 0; }
  .truth-grid p { padding: 23px 0; border-right: 0; border-top: 1px solid var(--line); }
  .walkthrough { gap: 122px; }
  .chapter h3 { font-size: clamp(2.55rem, 12vw, 3.55rem); }
  .chapter-copy > p:last-child { font-size: 1rem; }
  .chapter-media { min-height: 610px; }
  .phone-frame { width: min(78%, 306px); padding: 5px; border-radius: 47px; }
  .phone-frame img { border-radius: 41px; }
  .popup { width: min(46%, 175px); padding: 11px 12px; border-radius: 14px; }
  .popup strong { font-size: 0.78rem; }
  .popup span { font-size: 0.66rem; }
  .stat-popup strong { font-size: 1rem; }
  .popup-tl { top: 14%; }
  .popup-tr { top: 20%; }
  .popup-bl { bottom: 18%; }
  .popup-br { bottom: 21%; }
  .popup::after { width: 18px; }
  .popup-tl::after, .popup-bl::after { right: -18px; }
  .popup-tr::after, .popup-br::after { left: -18px; }
  .boundary-cards, .support-grid { grid-template-columns: 1fr; }
  .closer { min-height: 680px; }
}

@media (max-width: 420px) {
  .chapter-media { min-height: 560px; }
  .phone-frame { width: 76%; }
  .popup { width: 45%; }
  .popup-tl, .popup-bl { left: -5px; }
  .popup-tr, .popup-br { right: -5px; }
}
