/* Night Off website — shared stylesheet. Tokens mirror nightoff-parents/src/theme.jsx. Mobile first. */
:root {
  --iris: #5D4FD6; --iris-deep: #453BB0; --lilac: #EEEBFF; --lilac-2: #DDD8FA;
  --moon: #F2C15A; --moon-ink: #6B4A00; --ink: #1E1B3A; --ink-2: #3C3960; --muted: #6B6889; --faint: #9A97B5;
  --line: #E4E1F0; --ground: #F7F6FB; --surface: #FFFFFF; --sage: #3F9B6E; --sage-soft: #E3F3EA; --sage-ink: #2C7A55;
  --amber: #B36B12; --amber-soft: #FBF0D5; --rose: #D9486B; --rose-soft: #FBE6EC;
  --display: Fraunces, Georgia, 'Times New Roman', serif;
  --body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 24px); --radius: 18px; --header-h: 64px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--iris); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible { outline-color: var(--moon); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 16px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }

/* Type */
h1, h2, h3, .display { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
h1 { font-size: clamp(36px, 8vw, 68px); }
h2 { font-size: clamp(28px, 5vw, 44px); }
h3 { font-size: clamp(20px, 3vw, 26px); line-height: 1.2; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--iris); margin: 0 0 12px; }
.lede { font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 580px; margin: 16px 0 0; }
p { margin: 0; color: var(--ink-2); }
.small { font-size: 14px; line-height: 1.55; color: var(--muted); }
.text-link { font-weight: 600; color: var(--iris-deep); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-thickness: 2.5px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 14px 22px; border-radius: 14px; font-family: var(--body); font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .12s ease, background .12s ease, filter .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--iris); color: #fff; }
.btn-primary:hover { filter: brightness(0.94); }
.btn-quiet { background: transparent; color: var(--iris-deep); border-color: var(--lilac-2); }
.btn-quiet:hover { background: var(--lilac); }
.btn-light { background: #fff; color: var(--iris-deep); }
.btn-light:hover { background: var(--lilac); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 519px) { .btn-row .btn { flex: 1 1 100%; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,246,251,0.88); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 21px; color: var(--ink); }
.primary-nav { display: none; align-items: center; gap: 2px; }
.nav-link { padding: 8px 13px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.nav-link:hover { background: var(--lilac); color: var(--iris-deep); }
.nav-link[aria-current="page"] { background: var(--lilac); color: var(--iris-deep); font-weight: 600; }
.header-cta { display: none; }
.menu { position: relative; }
.menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--lilac-2); background: var(--surface); font-weight: 600; font-size: 15px; cursor: pointer; user-select: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::marker { content: ''; }
.menu[open] > summary { background: var(--lilac); color: var(--iris-deep); }
.menu .sheet { position: absolute; right: 0; top: calc(100% + 10px); width: min(92vw, 360px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px rgba(30,27,58,0.18); padding: 10px; display: grid; gap: 2px; }
.menu .sheet a { display: block; padding: 13px 14px; border-radius: 12px; font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; }
.menu .sheet a:hover { background: var(--ground); }
.menu .sheet a[aria-current="page"] { background: var(--lilac); color: var(--iris-deep); }
.menu .sheet .btn { margin-top: 8px; width: 100%; }
@media (min-width: 900px) {
  .primary-nav { display: flex; }
  .header-cta { display: inline-flex; min-height: 42px; padding: 10px 18px; }
  .menu { display: none; }
}

/* Sections */
.section { padding-block: clamp(52px, 8vw, 96px); }
.section-tight { padding-block: clamp(36px, 5vw, 64px); }
.surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tint { background: var(--lilac); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); }
.grid-2 > *, .grid-3 > *, .hero-inner > * { min-width: 0; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-2.flip > :first-child { order: 1; } }
.stack > * + * { margin-top: 16px; }

/* Hero */
.hero { background: var(--iris); color: #fff; padding-block: clamp(48px, 9vw, 112px) 0; overflow: hidden; position: relative; }
.hero .eyebrow { color: var(--moon); }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--moon); }
.hero .lede { color: rgba(255,255,255,0.86); }
.hero .small { color: rgba(255,255,255,0.72); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.hero-figure { margin: 0; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: end; gap: 56px; } .hero-figure { padding-top: 24px; } }
.crescent-bg { position: absolute; right: -12vw; top: -14vw; width: 46vw; height: 46vw; max-width: 560px; max-height: 560px; pointer-events: none; opacity: 0.16; }

/* Screens */
.phone { width: 100%; border-radius: 26px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 18px 44px rgba(30,27,58,0.18); }
.screens { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 18px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.screens::-webkit-scrollbar { display: none; }
.screens > figure { margin: 0; flex: 0 0 min(66vw, 240px); scroll-snap-align: center; }
.screens figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.hero .screens figcaption { color: rgba(255,255,255,0.78); }
@media (min-width: 720px) { .screens { overflow: visible; margin-inline: 0; padding-inline: 0; justify-content: center; gap: clamp(14px, 3vw, 28px); } .screens > figure { flex: 0 1 240px; } .screens.stagger > figure:nth-child(even) { margin-top: 48px; } }

/* Cards, lists, chips */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 28px); }
.card.link { display: block; text-decoration: none; color: inherit; transition: transform .12s ease, box-shadow .12s ease; }
.card.link:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(30,27,58,0.10); }
.tinted { background: var(--lilac); border-color: var(--lilac-2); }
.sage-note { background: var(--sage-soft); border-radius: 16px; padding: 16px 18px; color: var(--sage-ink); }
.rows { list-style: none; padding: 0; margin: 24px 0 0; border-bottom: 1px solid var(--line); }
.rows > li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.rows .ico { color: var(--iris); flex-shrink: 0; padding-top: 2px; }
.rows h3 { font-family: var(--body); font-size: 16px; font-weight: 700; margin: 0 0 4px; letter-spacing: 0; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: clamp(40px, 6vw, 80px); }
.step-n { font-family: var(--display); font-weight: 600; font-size: 56px; line-height: 1; color: var(--lilac-2); display: block; }
.step-n.on-iris { color: rgba(255,255,255,0.35); }
.chip { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.chip-posted { background: var(--lilac); color: var(--iris-deep); } .chip-pending { background: var(--amber-soft); color: var(--amber); }
.chip-accepted, .chip-confirmed { background: var(--sage-soft); color: var(--sage-ink); } .chip-free { background: var(--moon); color: var(--moon-ink); }
.trail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.trail .arrow { color: var(--faint); }
.quote { font-family: var(--display); font-weight: 500; font-style: italic; font-size: clamp(24px, 4vw, 38px); line-height: 1.2; color: var(--iris); letter-spacing: -0.01em; }
.before { font-family: var(--display); font-style: italic; font-size: 19px; line-height: 1.4; color: var(--ink); }
.faq { margin: 28px 0 0; display: grid; grid-template-columns: 1fr; gap: 0 clamp(28px, 4vw, 56px); }
@media (min-width: 720px) { .faq { grid-template-columns: 1fr 1fr; } }
.faq > div { padding: 18px 0; border-top: 1px solid var(--line); }
.faq dt { font-weight: 700; color: var(--ink); }
.faq dt a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--lilac-2); }
.faq dd { margin: 6px 0 0; }
.price { font-family: var(--display); font-weight: 600; font-size: 52px; line-height: 1; letter-spacing: -0.02em; }
.prices { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 28px; }
.store-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1.5px dashed var(--lilac-2); color: var(--muted); font-size: 15px; }
.store-row strong { color: var(--ink-2); }
.store-row .ico { color: var(--iris); }

/* Footer */
.site-footer { background: var(--ink); color: #fff; padding-block: 44px 36px; margin-top: 0; }
.site-footer p { color: #CBC5DB; }
.site-footer .small { color: #9A97B5; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-col h3 { font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #9A97B5; margin: 0 0 12px; }
.footer-col a { display: block; color: #fff; text-decoration: none; padding: 6px 0; font-size: 15px; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.preview-banner { background: var(--ink); color: #fff; padding: 10px var(--gutter); font-size: 13px; line-height: 1.5; text-align: center; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .site-header, .site-footer, .menu { display: none !important; } }
