/* Ninna homepage — A/B/C experiment styles.
   Built strictly on the tokens in style.css so Light (Family Room) and
   Dark (Quiet Nursery) both work with no duplicated color rules.
   Only the homepage uses these classes; the rest of the site is untouched. */

/* ---- experiment plumbing: show only the assigned variant ---- */
.variant { display: none; }
html[data-variant="a"] .variant[data-v="a"],
html[data-variant="b"] .variant[data-v="b"],
html[data-variant="c"] .variant[data-v="c"] { display: block; }
/* until JS assigns, show A so no-JS / crawlers still get a full page */
html:not([data-variant]) .variant[data-v="a"] { display: block; }

/* wider canvas than the doc pages for these richer layouts */
.variant .wrap { max-width: 1080px; }

/* ===================== shared building blocks ===================== */

.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 .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;
}

.section { padding-top: 64px; padding-bottom: 64px; }
.section-tight { padding-top: 40px; padding-bottom: 40px; }

/* split hero: copy + phone */
.v-hero {
  display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 44px; align-items: center;
  padding-top: 60px; padding-bottom: 64px;
}
.v-hero h1 {
  font-size: clamp(34px, 5.2vw, 56px); line-height: 1.04; letter-spacing: -0.7px;
  margin: 20px 0 0; text-wrap: balance;
}
.v-hero .lead {
  font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); line-height: 1.6;
  margin: 20px 0 0; max-width: 32em;
}
.v-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.v-actions .muted-note { font-size: 14px; color: var(--muted); }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 550; color: var(--muted);
  background: var(--card); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 14px;
}

/* phone mockups */
.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone-glow::before {
  content: ""; position: absolute; inset: -8% -4% -4% -4%;
  background: radial-gradient(58% 52% at 60% 32%, color-mix(in srgb, var(--primary) 34%, transparent), transparent 70%);
  border-radius: 50%; z-index: 0;
}
.phone {
  position: relative; z-index: 1; width: min(290px, 78vw);
  background: #2b2f2b; padding: 9px; border-radius: 40px;
  box-shadow: 0 34px 70px -34px rgba(20,24,20,.7);
}
.phone img { display: block; width: 100%; border-radius: 32px; }
.shot {
  position: relative; z-index: 1; width: min(330px, 82vw);
  border-radius: 26px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 28px 64px -34px rgba(20,24,20,.55);
}
.shot img { display: block; width: 100%; }
.shot-card {
  background: var(--card); padding: 13px; border-radius: 26px; border: 1px solid var(--border);
  box-shadow: 0 28px 64px -34px rgba(20,24,20,.5); width: min(330px, 82vw); position: relative; z-index: 1;
}
.shot-card img { display: block; width: 100%; border-radius: 15px; }

/* soft band (uses bg-soft) */
.band { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.band-grid h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.14; letter-spacing: -0.4px; margin: 12px 0 0; }
.band-grid p { color: var(--muted); margin: 16px 0 0; line-height: 1.62; }

/* small media-row cards */
.row-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px;
}
.row-card + .row-card { margin-top: 12px; }
.row-card .ic {
  width: 46px; height: 46px; flex: none; border-radius: 13px;
  background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
}
.row-card .ic svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.row-card .ic.sage { background: color-mix(in srgb, var(--primary) 16%, transparent); }
.row-card .ic.sage svg { stroke: var(--primary-dim); }
.row-card h4 { margin: 0; font-size: 16px; }
.row-card p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px;
}
.step .n { font-weight: 700; color: var(--primary-dim); font-size: 15px; }
.step h3 { margin: 12px 0 8px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* feature grid (3-up) */
.feat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat3 .feature .ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 14px; background: var(--accent-soft); border-radius: 13px; }
.feat3 .feature .ic svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feat3 .feature .ic.sage { background: color-mix(in srgb, var(--primary) 16%, transparent); }
.feat3 .feature .ic.sage svg { stroke: var(--primary-dim); }

/* centered section heading */
.head-center { text-align: center; max-width: 36em; margin: 0 auto 40px; }
.head-center h2 { font-size: clamp(26px, 3vw, 33px); letter-spacing: -0.4px; margin: 0; }
.head-center p { color: var(--muted); margin: 12px 0 0; }

/* closing CTA */
.closing { text-align: center; padding-top: 24px; padding-bottom: 84px; }
.closing h2 { font-size: clamp(30px, 4.4vw, 42px); letter-spacing: -0.6px; margin: 0 0 24px; }

/* ---- Variant B: night hero panel (intentionally dark in both themes) ---- */
.night {
  --text: #f0e8d6; --muted: #abb09e; --border: rgba(240,232,214,.12);
  --card: #20251f; --accent-soft: #34302a;
  background: linear-gradient(160deg, #1c211d, #0f120f);
  border-radius: 28px; padding: 56px; color: var(--text);
  position: relative; overflow: hidden;
}
.night::before {
  content: ""; position: absolute; top: -40px; left: -30px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 30%, transparent), transparent 70%);
}
.night .v-hero { padding: 0; }
.night h1 { color: var(--text); }

/* receipts grid (B) */
.receipts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.receipt { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.receipt .tick { width: 30px; height: 30px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--primary) 16%, transparent); display: flex; align-items: center; justify-content: center; }
.receipt .tick svg { width: 17px; height: 17px; stroke: var(--primary-dim); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.receipt h4 { margin: 0 0 4px; font-size: 16.5px; }
.receipt p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* mini steps inline (B) */
.mini-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mini-steps .n { font-weight: 700; color: var(--primary-dim); font-size: 15px; }
.mini-steps h3 { margin: 10px 0 6px; font-size: 18px; }
.mini-steps p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* tick list */
.tick-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.tick-list span { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); }
.tick-list .d { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* ---- Variant C: comparison table ---- */
.compare {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.compare-row {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; align-items: center;
  padding: 16px 22px; font-size: 15px;
}
.compare-row + .compare-row { border-top: 1px solid var(--border); }
.compare-head { font-size: 12.5px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: var(--muted); }
.compare-row .lbl { font-weight: 650; }
.compare-row .c { text-align: center; color: var(--muted); }
.compare-row .win {
  text-align: center; font-weight: 700; color: var(--cta);
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  border-radius: 10px; padding: 7px 6px;
}
.compare-head .win { background: none; color: var(--primary-dim); padding: 0; }

/* ===================== responsive ===================== */
@media (max-width: 860px) {
  .v-hero { grid-template-columns: 1fr; gap: 32px; }
  .phone-wrap { order: -1; }
  .band-grid { grid-template-columns: 1fr; gap: 28px; }
  .steps, .feat3, .mini-steps { grid-template-columns: 1fr; }
  .receipts { grid-template-columns: 1fr; }
  .night { padding: 34px 24px; }
}
@media (max-width: 680px) {
  .compare { overflow-x: auto; }
  .compare-inner { min-width: 560px; }
}
