/* moonglance.app: the one stylesheet. The look is the app's night sky, its Moon, its
   coral and its dunes; headings in Newsreader as on the App Store frames, text in
   Quicksand as in the app (docs/pages-and-assets.md → "The look"). No dark mode: the
   site is always night, with one band of day sky. */

:root{
  --night-0:#070a18;
  --night-1:#0d1330;
  --night-2:#1a2550;
  --night-3:#22305f;
  --ink:#f3ecdc;
  --ink-soft:rgba(243,236,220,.78);
  --ink-faint:rgba(243,236,220,.56);
  --rule:rgba(243,236,220,.14);
  --accent:#ffb2ab;            /* the app's coral, Theme.coral */
  --coral-ink:#5a2620;         /* text on coral, Theme.coralInk */
  --glass:rgba(58,62,84,.46);
  --glass-rim:rgba(255,255,255,.16);
  --card:rgba(24,30,64,.62);
  --day-ink:#172347;
  --day-accent:#a8402b;
  --dune-1:#5d4253;            /* the icon's dunes, dark appearance */
  --dune-2:#3f2c3d;
  --dune-3:#221824;
  --serif:'Newsreader',Georgia,'Times New Roman',serif;
  --sans:'Quicksand',ui-rounded,system-ui,-apple-system,'Segoe UI',sans-serif;
}

*{ box-sizing:border-box; }
html{ background:var(--night-0); -webkit-text-size-adjust:100%; }
body{
  margin:0;
  font-family:var(--sans); font-weight:500; font-size:17.5px; line-height:1.6;
  color:var(--ink-soft);
  background:
    url(/img/stars.svg) 0 0 / 480px 480px repeat,
    radial-gradient(ellipse 130% 900px at 50% -120px, var(--night-3) 0%, var(--night-1) 55%, var(--night-0) 100%) no-repeat,
    var(--night-0);
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
  /* The dunes and the footer sit at the bottom of a short page too. */
  min-height:100vh; display:flex; flex-direction:column;
}
body > main{ flex:1 0 auto; }
img,svg{ display:block; max-width:100%; }
a{ color:var(--accent); text-underline-offset:3px; text-decoration-thickness:1px; }
a:hover{ text-decoration-thickness:2px; }
strong{ color:var(--ink); font-weight:700; }
:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; border-radius:6px; }

.wrap{ width:100%; max-width:1080px; margin:0 auto; padding:0 20px; }
.narrow{ max-width:720px; }

/* Type */
h1,h2,h3{ font-family:var(--serif); font-weight:500; color:var(--ink); letter-spacing:-.012em; margin:0; }
h1{ font-size:clamp(44px,8.4vw,78px); line-height:1.0; }
h2{ font-size:clamp(34px,5.6vw,54px); line-height:1.04; }
h3{ font-size:clamp(23px,3vw,27px); line-height:1.15; }
h1 em,h2 em,h3 em{ font-style:italic; font-weight:400; color:var(--accent); }
p{ margin:0 0 14px; }
.eyebrow{
  margin:0 0 14px; font-size:13px; font-weight:700; letter-spacing:.16em; text-transform:uppercase;
  color:var(--ink-faint);
}
.lede{ font-size:clamp(18px,2.2vw,20px); color:var(--ink-soft); max-width:34em; }
.fine{ font-size:14.5px; color:var(--ink-faint); }

/* Header */
.site-head{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding-top:18px; padding-bottom:18px; }
.brand{ display:flex; align-items:center; gap:10px; color:var(--ink); text-decoration:none; }
.brand-mark{ width:32px; height:32px; border-radius:8px; box-shadow:0 0 0 1px rgba(255,255,255,.12); }
.brand-name{ font-family:var(--serif); font-size:24px; letter-spacing:-.01em; }
.head-nav{ display:flex; gap:20px; }
.head-nav a{ color:var(--ink-soft); text-decoration:none; font-weight:600; font-size:16px; }
.head-nav a:hover{ color:var(--ink); }
@media (max-width:380px){ .brand-name{ font-size:21px; } .head-nav{ gap:14px; } .head-nav a{ font-size:15px; } }

/* The coral button, the app's main buttons. A text link to the store, not Apple's badge. */
.cta{
  display:inline-flex; flex-direction:column; align-items:flex-start; gap:1px;
  padding:13px 26px 12px; border-radius:999px;
  background:var(--accent); color:var(--coral-ink); text-decoration:none;
  box-shadow:0 0 0 1px rgba(255,255,255,.25) inset, 0 8px 30px rgba(255,150,140,.28);
  transition:transform .15s ease, box-shadow .15s ease;
}
.cta:hover{ transform:translateY(-1px); box-shadow:0 0 0 1px rgba(255,255,255,.3) inset, 0 10px 36px rgba(255,150,140,.4); text-decoration:none; }
.cta-main{ font-weight:700; font-size:18px; line-height:1.2; }
.cta-sub{ font-weight:600; font-size:13.5px; opacity:.82; }
.cta-row{ display:flex; flex-wrap:wrap; align-items:center; gap:12px 18px; margin-top:26px; }

/* Glass, as the app's Moon bar and sheet */
.glass{
  background:var(--glass); border:1px solid var(--glass-rim); border-radius:24px;
  -webkit-backdrop-filter:blur(18px) saturate(1.2); backdrop-filter:blur(18px) saturate(1.2);
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}

/* Sections */
.section{ padding:72px 0; position:relative; }
.section-head{ max-width:640px; margin-bottom:8px; }
.section-head p{ margin-top:14px; }

/* A feature: words beside a phone */
.feature{ display:grid; grid-template-columns:minmax(0,1fr); gap:34px; align-items:center; }
.feature .copy p{ font-size:18px; }
.feature .copy h2{ margin-bottom:18px; }
@media (min-width:820px){
  .feature{ grid-template-columns:1.1fr .9fr; gap:56px; }
  .feature.flip .copy{ order:2; }
}
.points{ list-style:none; padding:0; margin:18px 0 0; }
.points li{ position:relative; padding-left:28px; margin:0 0 10px; }
.points li::before{
  content:""; position:absolute; left:2px; top:.5em; width:13px; height:13px; border-radius:50%;
  background:radial-gradient(circle at 65% 40%, #fff6ec 0 55%, rgba(255,246,236,.25) 56%);
  box-shadow:0 0 10px rgba(255,246,236,.45);
}

/* The phone: a thin bezel, as on the App Store frames. The frame draws its own island
   over the spot where a capture may show one. */
.phone{
  position:relative; width:min(300px,78vw); margin:0 auto; padding:9px;
  border-radius:50px; background:#121521;
  box-shadow:0 0 0 1px rgba(255,255,255,.08), 0 30px 70px rgba(0,0,0,.5), 0 0 90px rgba(120,140,220,.12);
}
.phone img{ width:100%; height:auto; border-radius:41px; aspect-ratio:600/1304; background:#000; }
.phone::after{
  content:""; position:absolute; top:19px; left:50%; transform:translateX(-50%);
  width:29%; height:25px; border-radius:20px; background:#000;
}

/* The day band: the app's day sky, with the day ink */
.day{
  color:#2c3a5a;
  background:linear-gradient(180deg,#8fd3f7 0%,#b7e4fa 55%,#f2dcb4 100%);
}
.day h2,.day h3,.day strong{ color:var(--day-ink); }
.day h2 em{ color:var(--day-accent); }
.day .eyebrow{ color:rgba(23,35,71,.62); }
.day .feature .copy p{ color:#2c3a5a; }
.day .phone{ box-shadow:0 0 0 1px rgba(0,0,0,.1), 0 30px 70px rgba(30,60,90,.35); }
.day .points li::before{ background:#fffaf2; box-shadow:0 0 0 1.5px rgba(23,35,71,.35); }

/* Questions */
.faq{ margin-top:26px; }
.qa{ border-top:1px solid var(--rule); }
.qa:last-child{ border-bottom:1px solid var(--rule); }
.qa summary{
  list-style:none; cursor:pointer; padding:18px 40px 18px 0; position:relative;
  font-family:var(--serif); font-size:clamp(20px,2.6vw,23px); line-height:1.25; color:var(--ink);
}
.qa summary::-webkit-details-marker{ display:none; }
.qa summary::after{
  content:""; position:absolute; right:8px; top:50%; width:10px; height:10px; margin-top:-7px;
  border-right:2px solid var(--accent); border-bottom:2px solid var(--accent); transform:rotate(45deg);
  transition:transform .2s ease;
}
.qa[open] summary::after{ transform:rotate(-135deg); margin-top:-2px; }
.qa .answer{ padding:0 0 18px; max-width:40em; }

/* Prose pages: privacy and support */
.prose{ padding-top:28px; padding-bottom:64px; }
.prose .page-head{ margin-bottom:28px; }
.prose h1{ font-size:clamp(40px,7vw,60px); }
.prose h2{ font-size:clamp(26px,3.6vw,32px); margin:44px 0 12px; }
.prose p,.prose li{ max-width:40em; }
.prose ul,.prose ol{ padding-left:22px; margin:0 0 14px; }
.prose li{ margin:0 0 8px; }
.prose .updated{ margin-top:12px; color:var(--ink-faint); font-size:15px; }
.summary-card{ padding:20px 22px; margin:0 0 8px; max-width:40em; }
.summary-card p{ margin:0; color:var(--ink); }
.facts{ list-style:none; padding:0 !important; }

/* The dunes along the foot of every page */
.horizon{ position:relative; height:clamp(90px,14vw,170px); margin-top:40px; }
.horizon svg{ position:absolute; inset:0; width:100%; height:100%; }

/* Footer */
.site-foot{ background:var(--dune-3); color:rgba(243,236,220,.62); font-size:15px; padding:6px 0 40px; }
.foot-row{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px 24px; }
.foot-links{ display:flex; flex-wrap:wrap; gap:8px 20px; }
.foot-links a,.foot-links button{
  color:rgba(243,236,220,.8); text-decoration:none; font:inherit; font-weight:600;
  background:none; border:0; padding:0; cursor:pointer;
}
.foot-links a:hover,.foot-links button:hover{ color:var(--ink); text-decoration:underline; }
.copyright{ margin:0; }

/* The opt-out bar of the implied consent model (consent.js) */
.implied-consent-banner{
  position:fixed; left:12px; right:12px; bottom:12px; z-index:900;
  max-width:720px; margin:0 auto; padding:14px 16px;
  background:rgba(22,27,58,.94); color:var(--ink); border:1px solid var(--glass-rim); border-radius:20px;
  box-shadow:0 12px 40px rgba(0,0,0,.45);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
}
.implied-consent-banner[hidden]{ display:none; }
.implied-consent-inner{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; }
.implied-consent-copy{ flex:1 1 260px; margin:0; font-size:15px; line-height:1.45; color:var(--ink-soft); }
.implied-consent-actions{ display:flex; gap:8px; }
.implied-consent-button{
  font:inherit; font-weight:700; font-size:15px; padding:8px 16px; border-radius:999px; cursor:pointer;
  background:transparent; color:var(--ink); border:1.5px solid rgba(243,236,220,.5);
}
.implied-consent-button.primary{ background:var(--accent); color:var(--coral-ink); border-color:var(--accent); }
#privacy-choice-status{ display:block; margin-top:8px; color:var(--ink); }

@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; animation:none !important; }
}
