/* Ninna — shared site styles for all non-home pages.
   Loaded alongside style.css. Brings the homepage's polish (eyebrow tags,
   brand line-icons, page-header bands, card treatments) to the content,
   legal, support and waitlist pages. Built only on style.css color tokens,
   so Light (Family Room) and Dark (Quiet Nursery) both work automatically. */

/* ---------- shared primitives (mirrors the homepage) ---------- */
.eyebrow-tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 650; letter-spacing: 0.2px;
  color: var(--primary-dim);
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 36%, transparent);
  border-radius: 999px; padding: 7px 15px;
}
.eyebrow-tag.peach {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.eyebrow-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); animation: ninna-pulse 2.4s ease-in-out infinite; }
@keyframes ninna-pulse { 0%,100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }
@media (prefers-reduced-motion: reduce) { .eyebrow-tag .dot { animation: none; } }

.eyebrow-up { font-size: 13px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--primary-dim); margin: 0 0 14px; }

/* brand line-icon tile, two accents */
.ic-tile { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); flex: none; }
.ic-tile svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic-tile.sage { background: color-mix(in srgb, var(--primary) 16%, transparent); }
.ic-tile.sage svg { stroke: var(--primary-dim); }

/* ---------- page-header band (replaces bare doc <h1>) ---------- */
.page-head {
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 360px at 50% -160px, var(--bg-soft) 0%, transparent 70%),
    var(--bg-soft);
}
.page-head .wrap { padding-top: 56px; padding-bottom: 40px; max-width: 860px; }
.page-head h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.08; letter-spacing: -0.6px; margin: 18px 0 0; text-wrap: balance; }
.page-head .lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); line-height: 1.6; margin: 16px 0 0; max-width: 60ch; }
.page-head .stamp { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
/* article header reuses .eyebrow (breadcrumb) + .lede inside the band */
.page-head .eyebrow { color: var(--primary-dim); font-size: 13px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; margin: 0; }
.page-head .eyebrow a { color: inherit; }
.page-head .lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); line-height: 1.6; margin: 16px 0 0; max-width: 62ch; }
.page-head.center { text-align: center; }
.page-head.center .wrap { display: flex; flex-direction: column; align-items: center; }

/* legal/support body keeps the comfortable reading measure */
.doc.wrap, .article.wrap { max-width: 760px; }
/* the doc's own h1/updated are now in the band; hide if a band precedes */
.page-head + .doc > h1:first-child, .page-head + .article > h1:first-child { display: none; }

/* ---------- FAQ cards (support) ---------- */
.faq { display: grid; gap: 12px; margin: 8px 0 8px; }
.faq-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.faq-card h3 { margin: 0 0 8px; font-size: 16.5px; display: flex; align-items: flex-start; gap: 10px; }
.faq-card h3::before { content: ""; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--primary); flex: none; }
.faq-card p { margin: 0; color: var(--muted); font-size: 15px; }
.faq-card p a, .doc a { color: var(--primary-dim); }

/* contact / address card */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
@media (max-width: 640px) { .info-grid { grid-template-columns: 1fr; } }
.info-card { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.info-card h3 { margin: 0 0 4px; font-size: 16px; }
.info-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* perk cards with icon tile (waitlist) */
.perk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 8px; padding-bottom: 60px; }
@media (max-width: 700px) { .perk-grid { grid-template-columns: 1fr; } }
.perk { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.perk .ic-tile { margin-bottom: 14px; }
.perk h3 { margin: 0 0 6px; font-size: 17px; }
.perk p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---------- waitlist two-column hero ---------- */
.wl-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.wl-hero h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.05; letter-spacing: -0.6px; margin: 18px 0 0; text-wrap: balance; }
.wl-hero .lead { margin: 18px 0 26px; }
.wl-phone { display: flex; justify-content: center; position: relative; }
.wl-phone::before { content: ""; position: absolute; inset: -6% -2%; background: radial-gradient(58% 52% at 55% 35%, color-mix(in srgb, var(--primary) 30%, transparent), transparent 70%); border-radius: 50%; }
.wl-phone .frame { position: relative; z-index: 1; width: min(300px, 80vw); background: #2b2f2b; padding: 9px; border-radius: 40px; box-shadow: 0 34px 70px -34px rgba(20,24,20,.7); }
.wl-phone .frame img { display: block; width: 100%; border-radius: 32px; }
@media (max-width: 820px) {
  .wl-hero { grid-template-columns: 1fr; gap: 30px; }
  .wl-phone { order: -1; }
}

/* ---------- upgraded callouts & safety notice ---------- */
.callout, .doc .notice { position: relative; }
.notice-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.notice-head .badge { width: 34px; height: 34px; border-radius: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--warn-soft); }
.notice-head .badge svg { width: 20px; height: 20px; stroke: var(--warn); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notice-head strong { color: var(--warn); font-size: 16px; }

/* ---------- guide cards: bigger icon tiles (sleep) ---------- */
.guide-card .ic-tile { margin-bottom: 12px; }

/* ---------- in-page CTA strip ---------- */
.cta-strip { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 34px; padding-bottom: 34px; max-width: 860px; }
.cta-strip h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -0.3px; }
.cta-strip p { margin: 0; color: var(--muted); max-width: 48ch; }

/* 404 centered */
.center-stage { text-align: center; padding-top: 90px; padding-bottom: 110px; }
.center-stage .ic-tile { width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 20px; }
.center-stage .ic-tile svg { width: 30px; height: 30px; }
.center-stage h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 10px; letter-spacing: -0.5px; }
.center-stage p { color: var(--muted); margin: 0 auto 26px; max-width: 44ch; }
