/* WhoseNight homepage — premium layer on top of style.css tokens.
   Scoped under body.home so schedule/support/privacy pages are untouched. */

.home {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.home h1, .home h2, .home h3, .home .wordmark {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.home .wrap { max-width: 1080px; }
.home .wrap.narrow { max-width: 760px; }

/* Header refinements */
.home .site-header { padding: 22px 0 4px; }
.home .wordmark { font-size: 1.4rem; display: inline-flex; align-items: center; gap: 10px; }
.home .wordmark::before {
  content: "";
  width: 22px; height: 22px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 5px, transparent 6px),
    linear-gradient(90deg, var(--teal) 0 50%, var(--coral) 50% 100%);
  box-shadow: 0 2px 6px rgba(30,27,51,.2);
}
.home .header-nav { align-items: center; gap: 22px; }
.home .nav-cta {
  background: var(--ink); color: var(--cream);
  padding: 9px 18px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: .9rem;
}
@media (prefers-color-scheme: dark) { .home .nav-cta { background: var(--cream); color: var(--ink); } }

/* ---------- Hero ---------- */
.hero2 { position: relative; overflow: hidden; padding: 30px 0 20px; }
.hero2-grid {
  display: grid; grid-template-columns: 1fr; gap: 34px; align-items: center;
}
@media (min-width: 860px) {
  .hero2-grid { grid-template-columns: 1.1fr 0.9fr; gap: 36px; padding: 24px 0 40px; }
}
.hero2-copy .eyebrow {
  display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--teal-text);
  background: rgba(14,165,160,.12); padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
@media (prefers-color-scheme: dark){ .hero2-copy .eyebrow { color: var(--teal); background: rgba(14,165,160,.2);} }
.hero2-copy h1 { font-size: clamp(2.3rem, 5.4vw, 3.5rem); font-weight: 900; margin: 0 0 18px; }
.hero2-copy h1 .accent {
  background: linear-gradient(90deg, var(--coral-deep), var(--coral));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero2-copy .lede { font-size: 1.18rem; color: var(--text-soft); max-width: 30ch; margin: 0 0 26px; line-height: 1.5; }
.hero2-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.btn-store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--cream); border-radius: 14px;
  padding: 11px 18px; text-decoration: none; border: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-store:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(30,27,51,.18); }
/* Desktop: the two store buttons always share one row (the copy column is wide enough once the buttons are compact). */
@media (min-width: 860px) { .hero2-actions { flex-wrap: nowrap; } }
/* Phones: full-width, stacked, thumb-friendly. */
@media (max-width: 560px) {
  .hero2-actions .btn-store, .cta-stores .btn-store { width: 100%; justify-content: center; }
  .cta-stores { flex-direction: column; }
}
@media (prefers-color-scheme: dark){ .btn-store { background: var(--cream); color: var(--ink);} }
.btn-store svg { width: 24px; height: 24px; flex: 0 0 auto; }
.btn-store .b-sm { font-size: .7rem; opacity: .85; line-height: 1; display: block; }
.btn-store .b-lg { display: block; }
.btn-store .b-lg { font-size: 1.08rem; font-weight: 800; line-height: 1.15; }
.hero2-actions .soon { font-size: .86rem; color: var(--text-soft); max-width: 16ch; }
.btn-store.play .b-sm { opacity: .8; }
.store-note { font-size: .9rem; color: var(--text-soft); margin: 0 0 20px; max-width: 46ch; line-height: 1.5; }
.store-note a { color: var(--teal-text); font-weight: 700; text-decoration: none; }
.store-note a:hover { text-decoration: underline; }
.cta-stores { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; color: var(--text-soft); font-weight: 600; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

/* Device / phone frame */
.hero2-visual { position: relative; display: flex; justify-content: center; }
.device {
  position: relative; width: 288px; border-radius: 44px; padding: 10px;
  background: linear-gradient(160deg, #2a2540, #16131f);
  box-shadow: 0 30px 70px rgba(30,27,51,.28), 0 4px 12px rgba(30,27,51,.16);
}
.device img { width: 100%; height: auto; display: block; border-radius: 34px; }
.device::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; background: #16131f; border-radius: 0 0 16px 16px; z-index: 2;
}
.device.sm { width: 220px; border-radius: 36px; }
.device.sm img { border-radius: 27px; }
.device.sm::before { width: 74px; height: 20px; top: 16px; }

/* Floating widget card in the hero */
.widget-float {
  position: absolute; bottom: -18px; left: -6px; width: 250px;
  background: var(--card-bg); border-radius: 22px; padding: 16px 18px;
  box-shadow: 0 20px 44px rgba(30,27,51,.22); border: 1px solid var(--border);
}
@media (max-width: 520px){ .widget-float { width: 210px; left: 0; bottom: -10px; } }
.widget-float .wf-top { display: flex; align-items: flex-start; justify-content: space-between; }
.widget-float .wf-title { font-weight: 800; font-size: 1.02rem; }
.widget-float .wf-sub { color: var(--text-soft); font-size: .82rem; margin-top: 2px; }
.widget-float .wf-home { color: var(--coral); font-size: 1.2rem; }
.rhythm-strip { display: flex; gap: 5px; margin-top: 12px; }
.rhythm-strip i { flex: 1; height: 26px; border-radius: 7px; display: block; }
.rhythm-strip i.a { background: var(--coral); }
.rhythm-strip i.b { background: var(--teal); }

/* ---------- Rhythm divider ---------- */
.rhythm-divide { display: flex; gap: 6px; max-width: 1080px; margin: 0 auto; padding: 0 20px; opacity: .8; }
.rhythm-divide i { flex: 1; height: 10px; border-radius: 4px; }
.rhythm-divide i:nth-child(7n+1), .rhythm-divide i:nth-child(7n+2), .rhythm-divide i:nth-child(7n+5) { background: rgba(255,122,89,.5); }
.rhythm-divide i:nth-child(7n+3), .rhythm-divide i:nth-child(7n+4), .rhythm-divide i:nth-child(7n+6), .rhythm-divide i:nth-child(7n) { background: rgba(14,165,160,.42); }

/* ---------- Section scaffolding ---------- */
.home section { padding: 56px 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.kicker, .sec-head .kicker { font-weight: 800; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--coral-text); }
.sec-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); margin: 8px 0 12px; }
.sec-head p { color: var(--text-soft); font-size: 1.08rem; margin: 0; }

/* Problem band */
.problem { background: var(--bg-soft); }
.problem .wrap { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; }
@media (min-width: 820px){ .problem .wrap { grid-template-columns: 1fr 1fr; gap: 48px; } }
.problem h2 { font-size: clamp(1.6rem, 3.4vw, 2.15rem); margin: 0 0 14px; }
.problem p { color: var(--text-soft); font-size: 1.08rem; margin: 0 0 14px; }
.pain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pain-list li { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; font-weight: 600; display: flex; gap: 12px; align-items: center; }
.pain-list li .x { color: var(--coral-text); font-weight: 800; }

/* Steps */
.steps { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 820px){ .steps { grid-template-columns: repeat(3,1fr); gap: 30px; } }
.step { text-align: center; }
.step .step-visual { display: flex; justify-content: center; margin-bottom: 22px; }
.step .num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--coral-text); color: #fff; font-weight: 800; margin-bottom: 12px; }
.step h3 { font-size: 1.25rem; margin: 0 0 8px; }
.step p { color: var(--text-soft); margin: 0 auto; max-width: 34ch; }

/* Feature grid */
.feat-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px){ .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px){ .feat-grid { grid-template-columns: repeat(3,1fr); } }
.feat {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 20px;
  padding: 26px 24px; transition: transform .18s ease, box-shadow .18s ease;
}
.feat:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(30,27,51,.1); }
.feat .fi { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; color: #fff; }
.feat .fi svg { width: 24px; height: 24px; }
.fi.teal { background: var(--teal); } .fi.coral { background: var(--coral); }
.fi.split { background: linear-gradient(135deg, var(--teal) 50%, var(--coral) 50%); }
.feat h3 { font-size: 1.16rem; margin: 0 0 7px; }
.feat p { color: var(--text-soft); margin: 0; font-size: .98rem; }

/* Story (two homes) */
.story .wrap { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: center; }
@media (min-width: 860px){ .story .wrap { grid-template-columns: 0.9fr 1.1fr; gap: 48px; } }
.story.flip .story-visual { order: -1; }
.story h2 { font-size: clamp(1.7rem,3.6vw,2.3rem); margin: 0 0 16px; }
.story p { color: var(--text-soft); font-size: 1.08rem; margin: 0 0 14px; }
.story .story-visual { display: flex; justify-content: center; }
.story ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.story ul li { display: flex; gap: 11px; align-items: flex-start; font-weight: 600; }
.story ul li .ck { color: var(--teal-text); font-weight: 800; margin-top: 1px; }
@media (prefers-color-scheme: dark){ .story ul li .ck { color: var(--teal);} }

/* Schedules teaser */
.sched { background: var(--bg-soft); }
.sched-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 30px; }
@media (min-width: 720px){ .sched-cards { grid-template-columns: repeat(4,1fr); } }
.sched-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 18px; text-decoration: none; color: var(--text); transition: transform .16s ease; }
.sched-card:hover { transform: translateY(-3px); }
.sched-card .mini { display: flex; gap: 3px; margin-bottom: 12px; }
.sched-card .mini i { flex: 1; height: 22px; border-radius: 5px; }
.sched-card .mini i.a { background: var(--coral); } .sched-card .mini i.b { background: var(--teal); }
.sched-card strong { font-weight: 800; font-size: 1rem; display: block; }
.sched-card span { color: var(--text-soft); font-size: .85rem; }
.sched-all { text-align: center; margin-top: 26px; }
.sched-all a { font-weight: 800; }

/* Family band */
.family { text-align: center; }
.family .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.family .chips span { background: var(--card-bg); border: 1px solid var(--border); border-radius: 999px; padding: 11px 20px; font-weight: 700; }

/* Pricing (reuse tokens, refined) */
.pricing2 .pgrid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 760px; margin: 0 auto; }
@media (min-width: 700px){ .pricing2 .pgrid { grid-template-columns: 1fr 1fr; } }
.pcard { background: var(--card-bg); border: 1px solid var(--border); border-radius: 22px; padding: 30px 28px; }
.pcard.feat-card { border: 2px solid var(--coral); position: relative; box-shadow: 0 18px 40px rgba(255,122,89,.14); }
.pcard.feat-card .tag { position: absolute; top: -13px; left: 28px; background: var(--coral-text); color: #fff; font-weight: 800; font-size: .74rem; letter-spacing: .03em; padding: 5px 13px; border-radius: 999px; text-transform: uppercase; }
.pcard h3 { font-size: 1.2rem; margin: 0 0 8px; }
.pcard .amt { font-size: 2.3rem; font-weight: 900; letter-spacing: -.02em; }
.pcard .amt span { font-size: 1rem; font-weight: 700; color: var(--text-soft); }
.pcard > p { color: var(--text-soft); margin: 8px 0 16px; }
.pcard ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pcard ul li { display: flex; gap: 10px; font-weight: 600; }
.pcard ul li .ck { color: var(--teal-text); font-weight: 800; }
@media (prefers-color-scheme: dark){ .pcard ul li .ck { color: var(--teal);} }
.pnote { text-align: center; color: var(--text-soft); margin-top: 22px; font-weight: 600; }

/* Final CTA band */
.cta-band { background: linear-gradient(135deg, var(--teal-deep), var(--teal)); color: #fff; border-radius: 28px; }
.cta-band .wrap { text-align: center; padding: 8px 20px; }
.cta-inner { padding: 52px 20px; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 10px; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 1.12rem; margin: 0 0 26px; }
.cta-band .btn-store { background: #fff; color: var(--ink); }
.cta-note { margin-top: 14px; font-size: .85rem; color: rgba(255,255,255,.82); }

/* Footer polish */
.home .site-footer { margin-top: 20px; }

/* Mobile header: keep only wordmark + Get the app (other links live in footer) */
@media (max-width: 640px) {
  .home .header-nav a:not(.nav-cta) { display: none; }
  .home .header-nav { gap: 0; }
  .hero2 { padding-top: 12px; }
  .widget-float { position: static; width: 100%; margin: 18px auto 0; left: auto; bottom: auto; }
  .hero2-visual { flex-direction: column; }
}
