:root {
  --bg: #0e1130;
  --bg-2: #161a40;
  --panel: #1d2150;
  --ink: #eef0ff;
  --muted: #aab0e0;
  --accent: #8b7bff;
  --accent-2: #ffd479;
  --line: rgba(255, 255, 255, 0.1);
  --radius: 16px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 80% -10%, #2a2f6b 0%, var(--bg) 55%) no-repeat, var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
h1, h2, h3 { line-height: 1.2; }
a { color: inherit; text-decoration: none; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: #ffffff;
  color: #101437;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  z-index: 50;
}
.skip-link:focus-visible { left: 12px; }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; max-width: 1100px; margin: 0 auto;
}
.brand { font-weight: 700; font-size: 1.15rem; display: inline-flex; align-items: center; gap: 9px; letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 0 10px rgba(255,212,121,.35)); }
.brand-word { line-height: 1; }
.moon { margin-right: 4px; }
.nav nav a { margin-left: 22px; color: var(--muted); font-size: .95rem; }
.nav nav a:hover { color: var(--ink); }
.nav-cta { color: var(--ink) !important; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; }

.hero { padding: 64px 24px 40px; }
.hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.eyebrow { color: var(--accent-2); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; margin: 0 0 14px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 18px; letter-spacing: -.02em; }
.lede { color: var(--muted); font-size: 1.15rem; max-width: 620px; margin: 0 auto 28px; }

/* Split hero: copy left, calm-nursery visual right; stacks on mobile. */
.hero-split {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  max-width: 1100px; margin: 0 auto;
}
.hero-split .hero-inner { text-align: left; margin: 0; }
.hero-split .lede { margin: 0 0 28px; }
.hero-split .hero-actions { justify-content: flex-start; }
.hero-split .trust-list { margin-left: 0; }
.hero-visual { min-width: 0; }
.hero-visual img {
  display: block; width: 100%; height: auto; border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.hero-evidence-teaser { color: var(--muted); font-size: .9rem; margin-top: 16px; }
.hero-evidence-teaser a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.reassure { color: var(--muted); margin-top: 18px; font-size: .92rem; }
.trust-list {
  list-style: none;
  margin: 16px auto 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-width: 520px;
  text-align: left;
}
.trust-list li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  padding: 10px 12px 10px 34px;
  position: relative;
}
.trust-list li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 10px;
  color: var(--accent-2);
  font-weight: 700;
}

.btn { display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  padding: 13px 22px; border-radius: 999px; transition: transform .06s ease, opacity .2s ease; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(135deg, var(--accent), #6c5cff); color: white; box-shadow: 0 10px 30px rgba(108,92,255,.35); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.big { width: 100%; padding: 16px; font-size: 1.05rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn:focus-visible,
.nav a:focus-visible,
.plan-form input:focus-visible,
.plan-form select:focus-visible,
.plan-form textarea:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

section { max-width: 1100px; margin: 0 auto; padding: 64px 24px; }
section h2 { text-align: center; font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin: 0 0 36px; letter-spacing: -.015em; line-height: 1.15; }
section:not(.hero) { content-visibility: auto; contain-intrinsic-size: 1px 800px; }
.section-intro { text-align: center; color: var(--muted); max-width: 640px; margin: -18px auto 28px; font-size: 1.02rem; line-height: 1.65; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(139,123,255,.18); color: var(--accent-2); font-weight: 700; margin-bottom: 12px; }
.step h3 { margin: 0 0 8px; font-size: 1.1rem; }
.step p { color: var(--muted); margin: 0; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tiers-two { grid-template-columns: 1fr 1.3fr; max-width: 860px; margin: 0 auto; }
.price-note { font-size: 1rem; font-weight: 600; color: var(--muted); }

/* ---- time-boxed sale (honest scarcity: countdown = real config window) ---- */
.sale-bar { background: linear-gradient(90deg, #2b2a55, #4a3f7a); text-align: center; font-size: .95rem; }
.sale-bar a { display: block; padding: 10px 16px; color: #fff; text-decoration: none; }
.sale-bar strong { color: #fff; font-weight: 600; }
.sale-bar strong s { color: rgba(255,255,255,.55); margin-left: 2px; }
.sale-bar-pct { color: #ffd479; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.sale-bar-timer { margin-left: 8px; opacity: .92; }
.sale-bar .sale-countdown { font-variant-numeric: tabular-nums; font-weight: 700; }

/* discount % pill — the anchor + saving, unmissable next to the price */
.sale-pill { display: inline-block; vertical-align: middle; background: #ffd479; color: #221f3f; font-size: .78rem; font-weight: 800; letter-spacing: .03em; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.sale-pill-sm { font-size: .62rem; padding: 2px 7px; }

/* pricing-card sale row: struck regular · big sale price · pill, one line */
.sale-price-row { display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sale-price-row .price-strike { font-size: 1.35rem; color: var(--muted); font-weight: 700; text-decoration: line-through; text-decoration-thickness: 2.5px; text-decoration-color: #e2574c; }
.sale-price-row .sale-price-now { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--accent-2); }
.sale-price-row .sale-pill { transform: translateY(-6px); }

.hero-price-strike { color: var(--muted); font-weight: 600; font-size: .85em; text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: #e2574c; margin: 0 2px; }
.cta-strike { opacity: .65; font-weight: 500; font-size: .88em; margin-left: 6px; }
.tier-card-price s { color: var(--muted); font-weight: 600; text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: #e2574c; margin-right: 4px; font-size: .72em; }
.sale-note { margin: -4px 0 14px; font-size: .92rem; color: var(--accent-2); font-weight: 600; }
.sale-note .sale-countdown { font-variant-numeric: tabular-nums; }

/* ---- email-capture wizard step ---- */
.plan-form label.optin-label, label.optin-label { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 4px; font-size: .95rem; color: var(--muted); cursor: pointer; font-weight: 500; }
.plan-form label.optin-label input, .optin-label input { margin-top: 3px; width: 18px; min-width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--accent); }
.optin-label span { flex: 1 1 auto; }
.wizard-email-error { min-height: 1.2em; color: #e2574c; font-weight: 600; font-size: .95rem; margin: 6px 0 2px; }
#wizard-email .btn.big { margin-top: 8px; }
.billing-toggle {
  display: inline-flex; gap: 4px; margin: 4px 0 10px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px;
}
.toggle-opt {
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
  border: 0; background: transparent; color: var(--muted);
  padding: 7px 14px; border-radius: 999px; transition: background .15s ease, color .15s ease;
}
.toggle-opt.active { background: var(--accent); color: #fff; }
.toggle-opt:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.save-pill {
  font-size: .68rem; font-weight: 700; margin-left: 4px;
  background: var(--accent-2); color: #2a2200; padding: 2px 7px; border-radius: 999px;
}
.tier { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; }
.tier.featured { border-color: rgba(139,123,255,.6); box-shadow: 0 16px 50px rgba(108,92,255,.25); }
.tier .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent-2); color: #2a2200; font-weight: 700; font-size: .72rem; padding: 5px 12px; border-radius: 999px; }
.tier h3 { margin: 0 0 6px; font-size: 1.2rem; letter-spacing: -.01em; }
.tier .price { font-size: 2.4rem; font-weight: 800; margin: 4px 0 14px; letter-spacing: -.02em; }
.tier.featured .price { color: var(--accent-2); }
.tier ul { list-style: none; padding: 0; margin: 0 0 20px; color: var(--muted); flex: 1; }
.tier ul li { padding: 6px 0 6px 24px; position: relative; }
.tier ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }

.start { max-width: 640px; }
.form-intro { text-align: center; color: var(--muted); margin-top: -22px; margin-bottom: 28px; }
.plan-form { display: grid; gap: 16px; }
/* min-width:0 lets grid items shrink below their min-content width; without it
   the tier select's longest option forces every control ~60px past a 390px
   viewport (right edges + chevrons clipped on phones — P5.28 walkthrough). */
.plan-form label { display: grid; gap: 7px; font-size: .92rem; color: var(--muted); font-weight: 600; min-width: 0; }
.plan-form input, .plan-form select, .plan-form textarea {
  font: inherit; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; outline: none; width: 100%; min-width: 0; }
.plan-form input:focus, .plan-form select:focus, .plan-form textarea:focus { border-color: var(--accent); }
.plan-form textarea { resize: vertical; }
.form-error { color: #ff9aa2; min-height: 1.2em; margin: 4px 0 0; text-align: center; }
.min-data-note { margin: -2px 0 0; color: var(--muted); font-size: .84rem; }

.why-gift { max-width: 760px; }
.why-lede { color: var(--muted); text-align: center; margin: -20px auto 24px; max-width: 620px; }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.why-list li {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; color: var(--muted);
}
.why-list strong { color: var(--ink); }

/* --- Evidence / trust section (P5.31, operator-approved quote package) --- */
.trust-evidence { max-width: 1020px; }

/* Source strip: the institutions behind the quotes, at a glance */
.evidence-sources-label {
  text-align: center; margin: 0 0 12px; color: var(--muted);
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.evidence-sources {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 30px;
}
.evidence-sources span {
  font-size: .88rem; font-weight: 700; letter-spacing: .02em; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px;
}
.evidence-sources em { font-style: normal; font-weight: 400; color: var(--muted); font-size: .78rem; }

.evidence-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
/* Gift landing cites two sources — balance them instead of leaving a gap. */
.evidence-list-two { grid-template-columns: 1fr 1fr; max-width: 860px; margin: 0 auto; }
.evidence-quote {
  margin: 0; min-width: 0; position: relative; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px 20px;
  transition: border-color .15s ease, transform .15s ease;
}
.evidence-quote:hover { border-color: var(--accent); transform: translateY(-2px); }
.eq-badge {
  align-self: flex-start; margin-bottom: 14px;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-2); background: rgba(255, 212, 121, .1);
  border: 1px solid rgba(255, 212, 121, .35); border-radius: 999px; padding: 4px 10px;
}
.eq-mark {
  position: absolute; top: 46px; right: 18px; font-size: 3rem; line-height: 1;
  color: var(--accent); opacity: .18; pointer-events: none;
}
.evidence-quote blockquote { margin: 0; flex: 1; }
.evidence-quote blockquote p {
  margin: 0; font-size: 1rem; line-height: 1.6; color: var(--ink);
  font-style: italic;
}
.evidence-quote figcaption {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--muted); line-height: 1.5;
}
.evidence-quote figcaption a {
  display: inline-block; margin-top: 4px;
  color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px;
}
.evidence-quote cite { font-style: normal; font-weight: 600; }

/* Consensus sleep-hours: quoted lines + a small visual scale (9h–17h) */
.evidence-hours {
  margin-top: 20px; background: rgba(139, 123, 255, .08);
  border: 1px solid rgba(139, 123, 255, .3); border-radius: var(--radius); padding: 24px 26px;
}
.evidence-hours h3 { margin: 0 0 8px; font-size: 1.05rem; }
.evidence-hours-head p { color: var(--muted); margin: 0 0 18px; font-size: .95rem; }
.hours-rows { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 16px; }
.hours-rows li { display: grid; gap: 8px; }
.hours-quote { color: var(--ink); font-size: .93rem; line-height: 1.5; font-style: italic; }
.hours-viz { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.hours-range { font-weight: 800; font-size: .92rem; color: var(--accent-2); letter-spacing: -.01em; }
.hours-track {
  position: relative; height: 10px; border-radius: 999px; background: rgba(139, 123, 255, .14);
  overflow: hidden;
}
.hours-bar {
  position: absolute; top: 0; bottom: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.hours-scale {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px; margin: 4px 0 16px;
  color: var(--muted); font-size: .72rem;
}
.hours-scale-labels { display: flex; justify-content: space-between; }
.evidence-cite { font-size: .84rem !important; color: var(--muted); margin: 0; }
.evidence-cite a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.evidence-note { margin: 20px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.6; text-align: center; }

@media (max-width: 900px) {
  .evidence-list { grid-template-columns: 1fr; }
}

/* --- Low-friction intake wizard --- */
.start .plan-form {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; min-height: 380px;
}
.wizard-progress {
  height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; margin-bottom: 10px;
}
.wizard-progress-bar {
  height: 100%; width: 14%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .3s ease;
}
.wizard-count { color: var(--muted); font-size: .82rem; margin: 0 0 18px; }
.wizard-step { animation: wizard-in .24s ease; }
@keyframes wizard-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.wizard-question { font-size: 1.3rem; margin: 0 0 18px; letter-spacing: -.01em; outline: none; }
.chip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.chip {
  font: inherit; font-size: .98rem; font-weight: 600; cursor: pointer; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 14px; text-align: left; min-height: 56px;
  transition: border-color .15s ease, background .15s ease, transform .06s ease;
}
.chip:hover { border-color: var(--accent); }
.chip:active { transform: scale(.985); }
.chip.selected {
  border-color: var(--accent); background: rgba(139, 123, 255, .16);
  box-shadow: 0 0 0 1px var(--accent);
}
.chip:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
/* Struggle (Q2): denser chips so ~12 options fit without a tall scroll wall */
.wizard-step[data-wizard-field="struggle"] .wizard-question {
  font-size: 1.15rem; margin: 0 0 12px;
}
.chip-grid-compact {
  grid-template-columns: 1fr;
  gap: 6px;
}
.chip-grid-compact .chip {
  min-height: 0;
  padding: 9px 12px;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.3;
  border-radius: 10px;
}
@media (min-width: 560px) {
  .chip-grid-compact {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
}
/* Multi-select steps (pick up to N, priority order): numbered badges show
   the selection order; the step advances via its own Continue button. */
.wizard-hint { margin: -10px 0 14px; font-size: .9rem; color: var(--muted); }
.chip { position: relative; }
.chip[data-order] { padding-right: 40px; }
.chip[data-order]::after {
  content: attr(data-order);
  position: absolute; top: 50%; right: 10px; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center;
}
.wizard-step > .chip-continue { margin-top: 14px; }
.chip-other { margin-top: 14px; display: grid; gap: 10px; }
/* [hidden] must always win over the display:grid above (same class of bug as
   .tier-card[hidden]) — without this, the "Something else…" box and its
   Continue button render on every struggle step. */
.chip-other[hidden] { display: none !important; }
.chip-other textarea {
  font: inherit; color: var(--ink); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; resize: vertical;
}
.chip-continue { justify-self: start; padding: 11px 26px; }
.wizard-nav { margin-top: 18px; }
.wizard-back {
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  background: transparent; border: 0; color: var(--muted); padding: 6px 2px;
}
.wizard-back:hover { color: var(--ink); }

/* Final step: plan cards + email */
.tier-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.tier-card {
  position: relative; font: inherit; cursor: pointer; text-align: left; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; display: grid; gap: 3px; min-width: 0;
  transition: border-color .15s ease, background .15s ease;
}
.tier-card[hidden] { display: none !important; }
.tier-card:hover { border-color: var(--accent); }
.tier-card.selected {
  border-color: var(--accent); background: rgba(139, 123, 255, .16);
  box-shadow: 0 0 0 1px var(--accent);
}
.tier-card:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.tier-card-name { font-size: .82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tier-card-hook { font-size: .84rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.tier-card-price { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.tier-card-price small { font-size: .85rem; font-weight: 600; color: var(--muted); }
.tier-card-note { font-size: .78rem; color: var(--muted); line-height: 1.4; }
.tier-card-tag {
  position: absolute; top: -9px; right: 10px; background: var(--accent-2); color: #2a2200;
  font-size: .64rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
}
.upsell-card {
  margin: 22px 0 0; padding: 18px 20px; text-align: left;
  border: 1px solid var(--line); border-radius: 16px; background: var(--panel);
}
.upsell-card h2 { margin: 0 0 8px; font-size: 1.15rem; }
.upsell-card p { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
.upsell-card .btn { width: 100%; }
.wizard-email-label { display: grid; gap: 7px; font-size: .92rem; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.wizard-notes { margin: 0 0 14px; }
.wizard-notes summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.wizard-notes summary:hover { color: var(--ink); }
.wizard-notes textarea {
  margin-top: 10px; width: 100%; font: inherit; color: var(--ink); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; resize: vertical;
}

/* --- Gift banner in the pricing section --- */
.gift-banner {
  margin-top: 28px; padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: center;
}
.gift-banner-copy h3 { margin: 0 0 8px; font-size: 1.15rem; letter-spacing: -.01em; }
.gift-banner-copy p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.gift-banner-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gift-option {
  display: grid; gap: 3px; padding: 14px; border-radius: 14px; min-width: 0;
  border: 1px solid var(--line); background: var(--bg-2); text-decoration: none; color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.gift-option:hover { border-color: var(--accent); }
.gift-option-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.gift-option-name { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.gift-option-price { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.gift-option-note { font-size: .78rem; color: var(--muted); line-height: 1.4; }

/* Two-card gift chooser on the gift landing page */
.gift-tier-cards { grid-template-columns: 1fr 1fr; margin-bottom: 0; }
.gift-tier-cards-three { grid-template-columns: repeat(3, 1fr); }
.gift-pick-lede {
  margin: 0 0 12px; color: var(--muted); font-size: .88rem; line-height: 1.45;
}
.gift-tier-cards .tier-card {
  display: grid; gap: 3px; text-align: left; align-content: start;
}
.gift-tier-cards .tier-card-price { order: -1; font-size: 1.35rem; }
.gift-tier-cards .tier-card-name { text-transform: none; letter-spacing: -.01em; font-size: .78rem; }
.gift-tier-cards .tier-card-hook { font-size: .8rem; }
.gift-tier-cards .tier-card-note { font-size: .72rem; line-height: 1.35; }

/* --- Gift form: two-column card-editor layout --- */
.start-wide { max-width: 980px; }
.gift-form-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: start;
}
.gift-form-fields { display: grid; gap: 16px; min-width: 0; }
.gift-form-preview { position: sticky; top: 24px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.label-soft { font-weight: 400; color: var(--muted); }
/* Keep "(optional)" hints on the same line as the label text: labels are
   grids, so text nodes and the hint span would otherwise stack as rows. */
.gift-form-fields label { display: block; }
.gift-form-fields label input,
.gift-form-fields label textarea { margin-top: 7px; }

/* Delivery timing as a segmented control (matches the chip/tier language) */
.deliver-seg { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.deliver-seg legend {
  padding: 0; margin: 0 0 2px; font-size: .92rem; font-weight: 600; color: var(--muted);
}
.deliver-seg-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg-opt { position: relative; display: block; cursor: pointer; min-width: 0; }
.seg-opt input {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.seg-opt span {
  display: grid; gap: 2px; padding: 12px 14px; text-align: left;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2);
  transition: border-color .15s ease, background .15s ease;
}
.seg-opt span strong { font-size: .95rem; color: var(--ink); }
.seg-opt span small { font-size: .78rem; color: var(--muted); line-height: 1.35; }
.seg-opt:hover span { border-color: var(--accent); }
.seg-opt input:checked + span {
  border-color: var(--accent); background: rgba(139, 123, 255, .16);
  box-shadow: 0 0 0 1px var(--accent);
}
.seg-opt input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.deliver-date { margin: 0; }
.deliver-date input { color-scheme: dark; }

/* Live preview of the printable gift card (cream, like the real card) */
.cp-caption { color: var(--muted); font-size: .85rem; margin: 0 0 10px; }
.cp-card {
  background: #fdf9f0; color: #1c2350; border-radius: 14px;
  padding: 26px 22px 20px; position: relative; text-align: center;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .35);
}
.cp-card::before {
  content: ""; position: absolute; inset: 7px;
  border: 1px solid #d8c48a; border-radius: 9px; pointer-events: none;
}
.cp-moon { width: 34px; height: 34px; margin: 0 auto 4px; display: block; }
.cp-brand {
  font-size: .62rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: #8a7a4e; margin: 0 0 10px;
}
.cp-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 4px; }
.cp-for { font-size: .9rem; color: #55588a; margin: 0 0 10px; }
.cp-message {
  font-family: "Snell Roundhand", "Savoye LET", "Segoe Script", "Bradley Hand", "Comic Sans MS", cursive;
  font-size: 1.05rem; line-height: 1.55; color: #2c3167;
  margin: 0 auto 10px; max-width: 30em; white-space: pre-wrap;
}
.cp-note { font-size: .78rem; color: #8a7a4e; margin: 0; }

@media (max-width: 860px) {
  .gift-form-grid { grid-template-columns: 1fr; gap: 20px; }
  .gift-form-preview { position: static; }
}
@media (max-width: 720px) {
  .gift-banner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .gift-banner-options, .gift-tier-cards { grid-template-columns: 1fr; }
  .field-row, .deliver-seg-options { grid-template-columns: 1fr; }
}

/* --- Full-screen form modal (CTAs open the experience; no more anchor jumps) --- */
.start-modal {
  border: 0; padding: 0; margin: 0;
  width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh;
  background: var(--bg, #0e1130); color: var(--ink);
  display: none; flex-direction: column;
}
.start-modal[open] { display: flex; animation: modal-in .28s ease; }
.start-modal::backdrop { background: rgba(8, 10, 32, .7); backdrop-filter: blur(4px); }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .start-modal[open] { animation: none; }
}
.start-modal-head {
  display: flex; align-items: center; gap: 14px;
  padding: max(14px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 14px max(20px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
  background: var(--panel); flex: 0 0 auto;
}
.start-modal-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; letter-spacing: -.01em;
}
.start-modal-brand svg { width: 26px; height: 26px; }
.start-modal-secure {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  color: var(--muted); font-size: .82rem;
}
.start-modal-secure svg { width: 14px; height: 14px; opacity: .8; }
.start-modal-close {
  font: inherit; font-size: 1.05rem; line-height: 1; cursor: pointer;
  color: var(--muted); background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 999px; width: 38px; height: 38px; flex: 0 0 auto;
  transition: color .15s ease, border-color .15s ease;
}
.start-modal-close:hover { color: var(--ink); border-color: var(--accent); }
.start-modal-close:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.start-modal-body { overflow-y: auto; flex: 1 1 auto; min-height: 0; -webkit-overflow-scrolling: touch; }
/* The hoisted section keeps its own layout; just balance the padding. */
.start-modal-body .start { margin: 0 auto; padding: 36px 20px 56px; }
.start-modal-foot {
  flex: 0 0 auto;
  padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.start-modal-foot .btn { width: 100%; min-height: 52px; margin: 0; }
.start-modal-foot .form-error { margin: 8px 0 0; }
.start-modal-title {
  font-weight: 800; font-size: 1rem; letter-spacing: -.01em;
  margin-right: auto; white-space: nowrap;
}
.start-modal-gift .start-modal-brand { display: none; }
.start-modal-gift .start-modal-title { flex: 1; min-width: 0; }
.start-modal-gift .start-modal-secure { margin-left: 0; flex: none; }
.start-modal-gift .start-modal-body .start { max-width: 100%; padding: 12px 16px 20px; }
.start-modal-gift .start-modal-body .plan-form {
  min-height: 0; padding: 0; border: 0; background: transparent; gap: 12px;
}
.start-modal-gift .gift-form-grid { display: block; }
.start-modal-gift .gift-form-fields { gap: 12px; }
.start-modal-gift .gift-tier-cards {
  grid-template-columns: repeat(3, 1fr) !important; gap: 6px; margin-bottom: 4px;
}
.start-modal-gift .gift-pick-lede { font-size: .82rem; margin-bottom: 10px; line-height: 1.4; }
.start-modal-gift .tier-card {
  padding: 10px 8px; min-height: 0; text-align: left;
  display: grid; gap: 2px; align-content: start;
}
.start-modal-gift .tier-card-price { order: -1; font-size: 1.05rem; }
.start-modal-gift .tier-card-name,
.start-modal-gift .tier-card-tag { display: none; }
.start-modal-gift .tier-card-hook { display: block; font-size: .68rem; line-height: 1.25; }
.start-modal-gift .tier-card-note {
  display: block; font-size: .62rem; line-height: 1.25; color: var(--muted);
}
.start-modal-gift .gift-field-full { display: block; }
.start-modal-gift .min-data-note { display: none; }
.start-modal-gift .gift-form-preview { display: none; }
.gift-extras {
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2);
}
.gift-extras > summary {
  list-style: none; cursor: pointer; padding: 12px 14px;
  font-size: .92rem; font-weight: 600; color: var(--muted);
}
.gift-extras > summary::-webkit-details-marker { display: none; }
.gift-extras > summary::after {
  content: "+"; float: right; color: var(--accent-2); font-weight: 700;
}
.gift-extras[open] > summary::after { content: "\2212"; }
.gift-extras-body { display: grid; gap: 12px; padding: 0 14px 14px; border-top: 1px solid var(--line); }
body.modal-open { overflow: hidden; }
body.modal-open .sticky-cta { display: none !important; }

/* Slim in-page banner that replaces the hoisted form section */
.start-cta-banner {
  max-width: 640px; text-align: center;
}
.start-cta-banner h2 { margin: 0 0 10px; }
.start-cta-banner p { color: var(--muted); margin: 0 0 22px; }
.start-cta-banner .btn { max-width: 380px; margin: 0 auto; display: block; }

/* --- Secure-checkout reassurance under the submit button ---
   Block flow, NOT flex: with flex, a bare text node + the privacy-policy <a>
   become two side-by-side flex items and the line breaks into a broken
   two-column wrap on narrow screens. */
.secure-note {
  display: block; text-align: center;
  margin: 10px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.45;
}
.secure-note svg {
  width: 14px; height: 14px; color: var(--accent-2);
  display: inline-block; vertical-align: -2px; margin-right: 5px;
}

/* --- Sticky mobile CTA (hidden while hero/form/footer are on screen) --- */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(14, 17, 48, .92); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: none;
}
.sticky-cta .btn { width: 100%; text-align: center; }
.sticky-cta[hidden] { display: none !important; }

.disclaimer-block { background: rgba(255, 212, 121, 0.06); border: 1px solid rgba(255,212,121,.25); border-radius: var(--radius); max-width: 820px; }
.disclaimer-block h2 { text-align: left; font-size: 1.25rem; margin-bottom: 12px; color: var(--accent-2); }
.disclaimer-block p { color: var(--muted); margin: 0; }

.foot { border-top: 1px solid var(--line); margin-top: 30px; background: rgba(0, 0, 0, .18); }
.foot-grid {
  max-width: 1100px; margin: 0 auto; padding: 40px 24px 8px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
}
.foot-brand p { color: var(--muted); font-size: .9rem; line-height: 1.6; margin: 12px 0 0; max-width: 40ch; }
.foot-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.foot-col h4 {
  margin: 0 0 6px; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--accent-2);
}
.foot-col a { color: var(--muted); font-size: .92rem; }
.foot-col a:hover { color: var(--ink); }
.foot-inner { max-width: 1100px; margin: 0 auto; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); border-top: 1px solid var(--line); font-size: .88rem; }
.foot-inner nav a { margin-left: 18px; }
.foot-stripe { display: inline-flex; align-items: center; gap: 6px; }
.foot-stripe svg { width: 13px; height: 13px; color: var(--accent-2); }
.foot-note { text-align: center; color: var(--muted); font-size: .82rem; padding: 0 24px 28px; margin: 0; opacity: .8; }

/* --- "What you'll receive": benefit rail + rich email mockup --- */
.sample { max-width: 1020px; }
.sample-grid {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: start;
}
.sample-points { display: grid; gap: 22px; }
.sample-point { display: flex; gap: 14px; align-items: flex-start; }
.sp-icon {
  flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px; background: var(--panel); border: 1px solid var(--line);
  color: var(--accent-2); font-size: 1.05rem;
}
.sample-point h3 { margin: 0 0 4px; font-size: 1.02rem; letter-spacing: -.01em; }
.sample-point p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.6; }
.sample-stats {
  margin: 4px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .85rem;
}

.email-mockup {
  background: #f8fafc; color: #0f172a; border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}
.email-chrome {
  display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #e2e8f0;
}
.email-dot { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.email-chrome-label {
  margin-left: 10px; font-size: .74rem; font-weight: 600; color: #94a3b8;
  letter-spacing: .06em; text-transform: uppercase;
}
.email-head {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 22px 12px; border-bottom: 1px solid #e2e8f0;
}
.email-avatar {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #2b2f66, #4c4a9e);
  display: grid; place-items: center;
}
.email-avatar svg { width: 20px; height: 20px; }
.email-head-text { min-width: 0; }
.email-sender { margin: 0; font-weight: 700; font-size: .92rem; }
.email-time { font-weight: 400; color: #94a3b8; font-size: .8rem; margin-left: 6px; }
.email-subject { margin: 1px 0 0; font-weight: 700; font-size: 1rem; }
.email-from { margin: 2px 0 0; color: #64748b; font-size: .8rem; }
.email-body { padding: 18px 22px 22px; position: relative; font-size: .95rem; line-height: 1.6; }
.email-body h3 { margin: 0 0 6px; font-size: 1rem; }
.email-body p { margin: 0 0 10px; color: #334155; }
.email-meta {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem; color: #64748b !important;
  background: #eef2f7; border-radius: 8px; padding: 6px 10px; display: inline-block;
}
.email-day {
  border: 1px solid #e2e8f0; border-left: 3px solid #6d5bd0;
  border-radius: 12px; padding: 14px 16px 8px; margin: 12px 0 0;
  background: #fff;
}
.email-script {
  background: #f5f3ff; border-radius: 10px; padding: 10px 12px;
  font-size: .88rem; color: #4c3d99 !important;
}
.email-script strong { color: #3b2f80; }
.email-fade { height: 34px; margin: -20px -22px 0; background: linear-gradient(180deg, rgba(248,250,252,0), #f8fafc 85%); position: relative; }
.email-days-label { color: #64748b !important; font-size: .85rem; margin: 0 0 8px !important; }
.email-days { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.email-days span {
  font-size: .76rem; font-weight: 600; color: #475569;
  background: #eef2f7; border: 1px solid #e2e8f0; border-radius: 999px;
  padding: 5px 11px; white-space: nowrap;
}
.email-member-links {
  border-top: 1px dashed #e2e8f0; padding-top: 14px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.email-member-links p {
  width: 100%; margin: 0 0 2px !important; color: #64748b !important; font-size: .82rem;
}
.eml-btn {
  font-size: .82rem; font-weight: 700; padding: 8px 16px; border-radius: 999px;
  background: #eef2f7; color: #334155; border: 1px solid #e2e8f0;
}
.eml-btn-primary { background: #2b2f66; color: #fff; border-color: #2b2f66; }

/* Gift landing: single centered mockup of the recipient's gift email */
.gift-sample { max-width: 760px; }
.gift-sample .email-mockup { max-width: 680px; margin: 0 auto; }
.email-example-tag {
  display: inline-block; margin-left: 8px; vertical-align: middle;
  font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #94a3b8; background: #eef2f7; border: 1px solid #e2e8f0;
  border-radius: 999px; padding: 2px 8px; font-style: normal;
}

@media (max-width: 860px) {
  .sample-grid { grid-template-columns: 1fr; gap: 26px; }
  .sample-points { gap: 16px; }
}

/* --- FAQ --- */
.faq { max-width: 720px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 0; overflow: hidden;
}
.faq-list summary {
  cursor: pointer; font-weight: 600; padding: 16px 20px; list-style: none;
  position: relative; padding-right: 44px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: var(--accent-2); font-size: 1.3rem; font-weight: 700;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
.faq-list details a { color: var(--accent-2); }
.faq-list summary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; }

.legal { max-width: 760px; }
.legal h1 { font-size: 2rem; margin-bottom: 8px; }
.legal p, .legal li { color: var(--muted); }
.legal .back { color: var(--accent-2); display: inline-block; margin-bottom: 24px; }

.center-card { max-width: 560px; text-align: center; }
.center-card .big-emoji { font-size: 3rem; }
.center-card .next-step { color: var(--muted); margin-top: 16px; }

.seo-page {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.page-guide .guide-main {
  padding: 28px 24px 72px;
  display: flex;
  justify-content: center;
}
.page-guide .seo-page {
  padding: 0;
}
.seo-page h1 { font-size: clamp(1.8rem, 4vw, 2.55rem); margin: 0 0 16px; letter-spacing: -.02em; line-height: 1.15; }
.seo-lede { color: var(--muted); font-size: 1.08rem; margin: 0 0 28px; line-height: 1.65; }
.seo-crumbs {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 0 0 18px; font-size: .88rem; color: var(--muted);
}
.seo-crumbs a { color: var(--accent-2); }
.seo-crumbs a:hover { color: var(--ink); }
.seo-body h2 { text-align: left; font-size: 1.35rem; margin: 28px 0 12px; }
.seo-body p, .seo-body li { color: var(--muted); line-height: 1.65; }
.seo-body ul { padding-left: 1.2rem; }
.seo-cta {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; margin: 32px 0; text-align: center;
}
.seo-cta h2 { text-align: center; font-size: 1.35rem; margin: 0 0 10px; }
.seo-cta p { color: var(--muted); margin: 0 0 18px; }
.seo-cta .trust-list { margin-top: 18px; }
.seo-cta-mid {
  padding: 22px 20px;
  margin: 28px 0;
  display: grid;
  gap: 8px;
  justify-items: center;
}
.seo-cta-mid-label {
  margin: 0;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.seo-cta-mid .btn { width: auto; min-width: min(100%, 280px); }
.seo-cta-soft {
  text-align: center;
  margin: 22px 0 8px;
  font-size: .98rem;
}
.seo-cta-soft a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.seo-cta-soft a:hover { color: var(--ink); }
.seo-faq { margin: 40px 0 28px; }
.seo-faq h2 { text-align: left; font-size: 1.35rem; margin: 0 0 14px; }
.seo-faq-list { display: grid; gap: 10px; }
.seo-faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}
.seo-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
.seo-faq-item summary::-webkit-details-marker { display: none; }
.seo-faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent-2);
  font-weight: 700;
}
.seo-faq-item[open] summary::after { content: "–"; }
.seo-faq-item p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
  line-height: 1.6;
  font-size: .96rem;
}
.seo-related { padding: 0; margin: 0 0 36px; }
.seo-related h2 { text-align: left; font-size: 1.35rem; margin: 0 0 12px; }
.seo-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.seo-related li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.seo-related a { display: block; padding: 12px 16px; color: var(--muted); }
.seo-related a:hover { color: var(--ink); }
.guides-hub .guides-age { margin: 0 0 28px; }
.guides-hub .guides-age h2 { text-align: left; font-size: 1.25rem; margin: 0 0 12px; }
.guides-hub .guides-age h2 a { color: var(--ink); }
.guides-hub .guides-age ul,
.guides-list {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 10px;
}
.guides-hub .guides-age li,
.guides-list li {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
}
.guides-hub .guides-age a,
.guides-list a {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 16px; color: var(--muted);
}
.guides-hub .guides-age a:hover,
.guides-list a:hover { color: var(--ink); }
.guides-list a strong { color: var(--ink); font-weight: 600; }
.guides-list a span { font-size: .92rem; }
.page-guide .disclaimer-block { margin-top: 8px; }

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 28px; }
  .hero-split .hero-inner { text-align: center; }
  .hero-split .hero-actions { justify-content: center; }
  .hero-split .trust-list { margin-left: auto; margin-right: auto; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 760px) {
  .steps, .tiers, .tiers-two { grid-template-columns: 1fr; }
  .nav nav a:not(.nav-cta) { display: none; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .lede { font-size: 1rem; }
  section { padding: 48px 20px; }
  .sticky-cta { display: block; }
  .start .plan-form { padding: 20px 16px; }
  .chip-grid { grid-template-columns: 1fr; }
  .chip { min-height: 52px; }
  .chip-grid-compact .chip { min-height: 0; padding: 8px 12px; font-size: .88rem; }
  .tier-cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: opacity .2s ease; }
}

/* --- Gift landing: $49-first hero + paid social / in-app browser --- */
html { -webkit-text-size-adjust: 100%; }
body.page-gift .hero.gift-hero { padding: 28px 20px 32px; }
body.page-gift .gift-hero-lede {
  font-size: 1.05rem; max-width: 36ch; margin: 0 auto 20px;
}
.gift-hero-price {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin: 0 auto 20px;
}
.gift-hero-price-main {
  font-size: clamp(2.4rem, 12vw, 3rem); font-weight: 800;
  letter-spacing: -.03em; color: var(--accent-2); line-height: 1;
}
.gift-hero-price-sub { font-size: .92rem; color: var(--muted); }
.gift-hero-price-line {
  margin: 0 auto 18px; max-width: 34ch; text-align: center;
  font-size: .92rem; color: var(--muted); line-height: 1.45;
}
.gift-hero-price-line-subtle { font-size: .85rem; opacity: .92; }
.gift-hero-urgency {
  margin: -8px auto 16px; text-align: center; font-size: .82rem;
  color: var(--accent-2); font-weight: 600;
}
body.page-gift .gift-hero-trust { max-width: 28rem; margin: 0 auto 24px; font-size: .9rem; }

.gift-social-proof {
  max-width: 820px !important; text-align: center; padding-top: 8px !important;
}
.gift-proof-label {
  margin: 0 0 14px; font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.gift-proof-quotes {
  display: grid; gap: 10px; margin-bottom: 18px;
}
.gift-proof-quotes blockquote {
  margin: 0; padding: 14px 16px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--muted); font-size: .9rem; font-style: italic; line-height: 1.45;
}
.gift-proof-badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.gift-proof-badges span {
  font-size: .78rem; font-weight: 600; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 12px;
}

.gift-tier-detail-grid-three { grid-template-columns: repeat(3, 1fr); max-width: 1020px; }

html.is-paid-traffic body.page-gift .hero.gift-hero { padding-bottom: 20px; }
html.is-paid-traffic body.page-gift .nav { padding-top: max(12px, env(safe-area-inset-top)); }

/* Pay-first funnel experiment (funnel_order_v1) */
.pay-first-bridge {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--bg-2);
  border-radius: 12px;
  font-size: .92rem;
  line-height: 1.45;
  color: var(--muted);
}
.pay-first-trust {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: .82rem;
  color: var(--muted);
}
.pay-first-trust li::before {
  content: "✓ ";
  color: var(--accent-2);
  font-weight: 700;
}
html.is-pay-first .wizard-progress,
html.is-pay-first #wizard-count { display: none; }
html.is-pay-first #pay-first-notes,
html.is-pay-first #pay-first-min-data { display: none; }
html.is-pay-first.is-paid-traffic .tier-cards {
  grid-template-columns: 1fr;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.start-modal[open] {
  min-height: -webkit-fill-available;
}
.btn, .tier-card, .seg-opt { touch-action: manipulation; }

/* --- Compact modal wizard: every step fits a small in-app viewport ---------
   Instagram/Facebook in-app browsers on iPhone leave roughly 600–660px of
   height at 390px width. Inside the modal the header already brands the
   surface, so the hoisted section's h2 + intro are redundant; dropping them
   and tightening spacing lets every step — including the 8-option struggle
   step and the 3-card pricing step — fit fully with no scrolling. */
@media (max-width: 560px), (max-height: 760px) {
  .start-modal .start > h2,
  .start-modal .start > .form-intro { display: none; }
  .start-modal-body .start { padding: 12px 12px 16px; }
  .start-modal .start .plan-form { padding: 14px 14px 16px; min-height: 0; }
  .start-modal .wizard-progress { margin-bottom: 8px; }
  .start-modal .wizard-count { margin: 0 0 10px; }
  .start-modal .wizard-question { font-size: 1.12rem; margin: 0 0 12px; }
  .start-modal .wizard-hint { margin: -8px 0 10px; font-size: .85rem; }
  .start-modal .chip-grid { gap: 8px; }
  .start-modal .chip { min-height: 48px; padding: 12px; font-size: .95rem; }
  .start-modal .chip-grid-compact { gap: 6px; }
  .start-modal .chip-grid-compact .chip { min-height: 44px; padding: 10px 12px; }
  .start-modal .chip-other { margin-top: 10px; gap: 8px; }
  .start-modal .chip-other textarea { padding: 10px 12px; }
  .start-modal .wizard-step > .chip-continue { margin-top: 10px; }
  .start-modal .wizard-nav { margin-top: 10px; }
  .start-modal .btn.big { padding: 13px; font-size: 1rem; }
  .start-modal .wizard-email-label { margin-bottom: 8px; }
  .start-modal .optin-label { margin: 8px 0 0; font-size: .88rem; }
  .start-modal .wizard-email-error { margin: 4px 0 0; min-height: 0; }
  .start-modal .secure-note { margin-top: 8px; font-size: .78rem; }
  /* Struggle step: 8 dense options + hint + Continue is the tallest step —
     single-line chips and a one-line question keep it inside the viewport. */
  .start-modal .wizard-step[data-wizard-field="struggle"] .wizard-question { font-size: .98rem; margin: 0 0 10px; }
  .start-modal .wizard-hint { margin: -6px 0 8px; font-size: .8rem; }
  .start-modal .chip-grid-compact { gap: 5px; }
  .start-modal .chip-grid-compact .chip { min-height: 0; padding: 7px 11px; font-size: .84rem; line-height: 1.25; }
  .start-modal .chip-other { margin-top: 8px; gap: 6px; }
  .start-modal .chip-other textarea { min-height: 0; height: 48px; padding: 8px 11px; font-size: .9rem; }
  /* When "Something else…" opens its textarea the step grows ~60px — squeeze
     the chips and drop the hint so the expanded state still fits. */
  .start-modal .wizard-step:has(.chip-other:not([hidden])) .chip-grid-compact .chip { padding: 5px 11px; }
  .start-modal .wizard-step:has(.chip-other:not([hidden])) .wizard-hint { display: none; }

  /* Pricing step: tier cards become slim rows (name + price on one line,
     note beneath) — three stacked 105px cards cannot fit a 600px viewport.
     Scoped away from the gift modal, which has its own card layout. */
  .start-modal .tier-cards { gap: 7px; margin-bottom: 10px; }
  .start-modal:not(.start-modal-gift) .tier-card {
    display: flex; flex-wrap: wrap; align-items: baseline;
    column-gap: 10px; row-gap: 1px; padding: 9px 12px;
  }
  .start-modal:not(.start-modal-gift) .tier-card-name { font-size: .7rem; }
  .start-modal:not(.start-modal-gift) .tier-card-price { margin-left: auto; font-size: 1.05rem; }
  .start-modal:not(.start-modal-gift) .tier-card-note { flex-basis: 100%; font-size: .68rem; line-height: 1.35; }
  .start-modal .wizard-notes { margin-bottom: 10px; }
  /* Structured questionnaire answers already carry the useful context. On a
     phone this optional free-text control plus its privacy note costs an
     entire viewport row and invites unnecessary child data. Keep it available
     on larger screens, but remove it from the compact checkout path. */
  .start-modal:not(.start-modal-gift) #pay-first-notes,
  .start-modal:not(.start-modal-gift) #pay-first-min-data {
    display: none;
  }
  /* The COPPA data-minimization note belongs to the optional notes textarea —
     show it only when that textarea is actually open. */
  .start-modal #pay-first-notes:not([open]) ~ .min-data-note { display: none; }
  .start-modal .min-data-note { font-size: .7rem; line-height: 1.45; margin: 0 0 8px; }
  .start-modal .wizard-back { padding: 4px 2px; }
  /* The fixed modal header already says "Secure checkout by Stripe"; repeating
     it below the CTA creates another wrapped line and no additional trust. */
  .start-modal:not(.start-modal-gift) #wizard-final .secure-note { display: none; }
}

/* Very short in-app viewports (smaller phones, expanded browser chrome):
   squeeze further and drop the count line — the progress bar carries it. */
@media (max-height: 620px) {
  .start-modal-body .start { padding: 8px 12px; }
  .start-modal .start .plan-form { padding: 10px 14px 9px; }
  .start-modal .wizard-count { display: none; }
  .start-modal .wizard-question { font-size: 1.02rem; margin: 0 0 10px; }
  .start-modal .chip { min-height: 44px; padding: 10px 12px; font-size: .92rem; }
  /* Eight struggle choices cannot remain a one-column wall in a 568px-tall
     in-app viewport. A deliberate 2×4 grid keeps every choice and Continue
     visible; labels wrap inside equal-height cards by design. */
  .start-modal .chip-grid-compact {
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }
  .start-modal .chip-grid-compact .chip {
    min-height: 46px; padding: 6px 8px;
    font-size: .72rem; line-height: 1.2;
  }
  .start-modal .chip-grid-compact .chip[data-order] { padding-right: 28px; }
  .start-modal .chip-grid-compact .chip[data-order]::after {
    width: 18px; height: 18px; right: 6px; line-height: 18px;
  }
  .start-modal .wizard-step:has(.chip-other:not([hidden])) .chip-grid-compact .chip {
    padding-top: 5px; padding-bottom: 5px;
  }
  .start-modal .tier-card { padding: 8px 12px; }
  .start-modal .tier-card-price { font-size: 1.3rem; }
  .start-modal .min-data-note { display: none; }
}

/* Keep the modal header on ONE intentional line at phone widths — at the
   default sizes "Secure checkout by Stripe" wraps into a ragged two-liner. */
@media (max-width: 480px) {
  .start-modal-head { gap: 10px; padding: max(10px, env(safe-area-inset-top)) 12px 10px; }
  .start-modal-brand { font-size: .95rem; gap: 7px; }
  .start-modal-brand svg { width: 22px; height: 22px; }
  .start-modal-secure { font-size: .72rem; gap: 5px; white-space: nowrap; }
  .start-modal-close { width: 34px; height: 34px; font-size: .95rem; }
}

@media (max-width: 760px) {
  .start-modal-gift .start-modal-title { font-size: .95rem; }
  .start-modal-gift .start-modal-head { gap: 10px; padding-bottom: 10px; }
  body.page-gift .gift-form-fields input,
  body.page-gift .gift-form-fields textarea { font-size: 16px; }
  body.page-gift .seg-opt span { min-height: 48px; }
  body.page-gift .hero h1 { font-size: clamp(1.65rem, 7.5vw, 2.2rem); }
  body.page-gift .hero.gift-hero { padding-top: max(24px, env(safe-area-inset-top)); }
  .sticky-cta-gift .btn { min-height: 48px; }
}

/* --- Gift landing: long-form trust scroll --- */
body.page-gift main section { max-width: 1020px; margin-left: auto; margin-right: auto; }
.gift-value-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.gift-value-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; min-width: 0;
}
.gift-value-icon {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line);
  color: var(--accent-2); font-size: 1rem; margin-bottom: 10px;
}
.gift-value-card h3 { margin: 0 0 8px; font-size: 1.02rem; letter-spacing: -.01em; }
.gift-value-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }

.gift-sample-grid { align-items: stretch; }
.gift-plan-preview {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; min-width: 0;
}
.gift-plan-day-label {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 10px;
}
.gift-plan-day h3 { margin: 0 0 10px; font-size: 1.05rem; letter-spacing: -.01em; }
.gift-plan-day p { margin: 0 0 10px; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.gift-plan-script { color: var(--ink) !important; }
.gift-plan-note { font-size: .82rem !important; font-style: italic; }

.gift-vs-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 820px; margin: 0 auto;
}
.gift-vs-col {
  border-radius: var(--radius); padding: 22px 20px; min-width: 0;
}
.gift-vs-col h3 { margin: 0 0 14px; font-size: 1rem; }
.gift-vs-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.gift-vs-col li {
  padding-left: 1.35em; position: relative; color: var(--muted); font-size: .9rem; line-height: 1.45;
}
.gift-vs-col li::before {
  position: absolute; left: 0; font-weight: 700;
}
.gift-vs-muted { background: var(--bg-2); border: 1px solid var(--line); }
.gift-vs-muted li::before { content: "–"; color: var(--muted); }
.gift-vs-highlight { background: rgba(139, 123, 255, .12); border: 1px solid var(--accent); }
.gift-vs-highlight h3 { color: var(--ink); }
.gift-vs-highlight li::before { content: "✓"; color: var(--accent-2); }

.gift-tier-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 880px; margin: 0 auto;
}
.gift-tier-detail-card {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px; display: grid; gap: 10px; min-width: 0;
}
.gift-tier-detail-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.gift-tier-detail-badge {
  position: absolute; top: 14px; right: 14px; font-size: .68rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2);
  background: rgba(255, 212, 121, .12); border: 1px solid rgba(255, 212, 121, .35);
  border-radius: 999px; padding: 4px 10px;
}
.gift-tier-detail-price { margin: 0; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--accent-2); line-height: 1; }
.gift-tier-detail-card h3 { margin: 0; font-size: 1.1rem; }
.gift-tier-detail-hook { margin: 0; color: var(--muted); font-size: .92rem; }
.gift-tier-detail-card ul {
  margin: 4px 0 8px; padding: 0; list-style: none; display: grid; gap: 8px;
}
.gift-tier-detail-card li {
  padding-left: 1.35em; position: relative; color: var(--muted); font-size: .88rem; line-height: 1.4;
}
.gift-tier-detail-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }
.gift-tier-detail-card .btn { margin-top: 4px; width: 100%; }

.gift-cta-band {
  text-align: center; max-width: 640px !important;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 24px; margin-bottom: 8px;
}
.gift-cta-band h2 { margin: 0 0 10px; }
.gift-cta-band > p { color: var(--muted); margin: 0 0 20px; }
.gift-cta-band .btn { max-width: 360px; margin: 0 auto; display: block; }
.gift-cta-note { margin: 14px 0 0 !important; font-size: .82rem; color: var(--muted); }

body.page-gift .hero-actions { flex-direction: column; align-items: center; }
body.page-gift .hero-actions .btn.ghost { font-size: .92rem; }

@media (max-width: 760px) {
  .gift-value-grid, .gift-vs-grid, .gift-tier-detail-grid, .gift-tier-detail-grid-three { grid-template-columns: 1fr; }
  .gift-tier-cards-three { grid-template-columns: 1fr; }
  .start-modal-gift .gift-tier-cards { grid-template-columns: 1fr !important; }
  .gift-sample-grid { grid-template-columns: 1fr; }
  .gift-tier-detail-badge { position: static; justify-self: start; margin-bottom: 4px; }
}
