/* NudgeUP Landing — Production CSS (Warm Hug theme, Mockup #8) */
:root {
  --cream: #FBF1DE;
  --cream-warm: #F5E2C3;
  --peach: #FFE3C0;
  --peach-soft: #FFEED4;
  --white: #FFFCF5;
  --persimmon: #D4604A;
  --persimmon-soft: rgba(212,96,74,0.10);
  --persimmon-dim: #B04A33;
  --honey: #E5A535;
  --honey-soft: rgba(229,165,53,0.14);
  --rose: #E59883;
  --cocoa: #281408;
  --cocoa-deep: #170A04;
  --ink: #281408;
  --ink-mid: #5A3522;
  --ink-dim: #8F6E52;
  --rule: rgba(40,20,8,0.10);
  --rule-strong: rgba(40,20,8,0.18);
  --shadow-warm: 0 8px 30px rgba(212,96,74,0.10), 0 2px 10px rgba(40,20,8,0.05);
  --shadow-deep: 0 18px 50px rgba(40,20,8,0.18), 0 6px 16px rgba(40,20,8,0.08);
  --max: 1100px;
  --max-prose: 660px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  /* Safety net against any stray fixed-width child (e.g. Turnstile iframe)
     causing horizontal scroll on narrow phones (NudgeUP-kp9f1). */
  overflow-x: hidden;
}
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.hand { font-family: 'Caveat', cursive; font-weight: 500; color: var(--persimmon); font-size: 1.2em; }

/* ACCESSIBILITY */
.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 (NudgeUP-wuc11) — visually hidden until keyboard-focused, then
   pinned to the top-left so it's the first thing a Tab user can act on. */
.skip-link {
  position: absolute; top: 8px; left: 8px; z-index: 1000;
  transform: translateY(-150%);
  background: var(--persimmon); color: #FFFCF5;
  padding: 10px 18px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); outline: 2px solid #FFFCF5; outline-offset: 2px; }
/* Visible focus ring for pill CTAs + interactive buttons that the link rule
   above intentionally skips (NudgeUP-wuc11) — keyboard focus must always show. */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.pwa-cta:focus-visible,
.nav-cta:focus-visible,
.vibe-emoji:focus-visible,
.features-more-btn:focus-visible,
.nav-hamburger:focus-visible,
.sticky-bar-btn:focus-visible,
.sticky-bar-dismiss:focus-visible,
.mobile-cta-bar-btn:focus-visible,
#join-btn:focus-visible {
  outline: 2px solid var(--honey);
  outline-offset: 3px;
  border-radius: 8px;
}
/* Links signal clickability via color, not underline (NudgeUP-f4s9f).
   Keep a visible underline for keyboard users so focus stays detectable.
   Buttons-as-links are excluded so their pill shape is unaffected. */
a:focus-visible:not(.btn-primary):not(.btn-secondary):not(.pwa-cta) {
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: 2px solid var(--persimmon);
  outline-offset: 3px;
  border-radius: 3px;
}

/* NAV */
.site-header {
  background: var(--cocoa);
  position: sticky; top: 0; z-index: 100;
  transition: box-shadow .2s ease, background .2s ease;
}
/* Condensed state once the user scrolls past the hero (NudgeUP-xjr1y) */
.site-header.scrolled {
  background: rgba(40,20,8,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(40,20,8,0.28);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  max-width: var(--max);
  margin: 0 auto;
  transition: padding .2s ease;
}
.site-header.scrolled .nav { padding: 10px 24px; }
.site-header.scrolled .brand-word { font-size: 1.2rem; }
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--cream);
}
.brand-word {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 24, 'SOFT' 80;
}
.brand-v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  color: rgba(251,241,222,0.45);
  background: rgba(251,241,222,0.06);
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.nav-actions { display: flex; align-items: center; gap: 24px; }
.nav-link {
  color: rgba(251,241,222,0.65);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  transition: color .15s;
}
.nav-link:hover { color: var(--rose); }
/* Active-section highlight driven by scrollspy JS (NudgeUP-xjr1y) */
.nav-link { position: relative; }
.nav-link.active { color: var(--cream); }
.nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; border-radius: 2px; background: var(--persimmon);
}
.mm-link.active { color: var(--rose); }
.btn-cta {
  /* persimmon-dim lifts white-text contrast to AA (was borderline on --persimmon) (NudgeUP-s8he) */
  background: var(--persimmon-dim);
  color: var(--white);
  /* 44px min tap target (NudgeUP-bk29t) — inline-flex centers the label in a guaranteed-tall hit area */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: background .15s, transform .15s;
}
.btn-cta:hover { background: #8F3826; transform: translateY(-1px); }

/* HAMBURGER */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  /* 44px min tap target (NudgeUP-bk29t) — was 36px */
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.hb-line {
  width: 22px; height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
  display: block;
}

/* MOBILE MENU */
.mobile-menu {
  display: none;
  background: var(--cocoa-deep);
  border-top: 1px solid rgba(251,241,222,0.08);
  padding: 16px 24px 20px;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mm-link {
  color: rgba(251,241,222,0.75);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid rgba(251,241,222,0.06);
  transition: color .15s;
}
.mm-link:last-of-type { border-bottom: none; }
.mm-link:hover { color: var(--rose); }
.mm-cta {
  margin-top: 12px;
  display: block;
  text-align: center;
  background: var(--persimmon);
  color: var(--white);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background .15s;
}
.mm-cta:hover { background: var(--persimmon-dim); }

/* HERO */
.hero {
  background:
    radial-gradient(ellipse at 80% 40%, rgba(229,165,53,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(212,96,74,0.08) 0%, transparent 55%),
    var(--cocoa);
  color: var(--cream);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
  animation: fadeUp .55s ease both;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-left { position: relative; z-index: 2; }
.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.8rem, 6.5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.0;
  margin-bottom: 18px;
  color: var(--cream);
  font-variation-settings: 'opsz' 96, 'SOFT' 100;
}
.hero-descriptor {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  color: rgba(251,241,222,0.75);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
  line-height: 1.5;
}
.hero-sub {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  font-weight: 400;
  font-style: italic;
  color: var(--rose);
  margin-bottom: 26px;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 32, 'SOFT' 100;
}
.hero .lede {
  font-size: 1.18rem;
  color: rgba(251,241,222,0.82);
  margin-bottom: 36px;
  line-height: 1.65;
  max-width: 520px;
}
.hero .lede em { color: var(--rose); font-style: italic; }

/* NudgeUP-axsel — trimmed hero supporting copy + relocated founder line */
#hero-heading .accent { color: var(--persimmon); }
.hero-who {
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  color: rgba(251,241,222,0.62);
  margin-bottom: 26px;
  line-height: 1.5;
  max-width: 520px;
}
.hero-mark {
  font-size: 0.95rem;
  color: rgba(251,241,222,0.62);
  margin-top: 14px;
  line-height: 1.5;
  max-width: 520px;
}
.hero-mark a { color: var(--rose); text-decoration: none; }
.story-more { margin-top: 10px; }
.story-more a { color: var(--persimmon); font-weight: 600; text-decoration: none; }
.story-more a:hover { color: var(--persimmon-dim); }

/* FORM */
.form { display: flex; gap: 8px; max-width: 460px; margin-bottom: 12px; }
.form-lg { max-width: 540px; margin: 28px auto 8px; }
.form input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid rgba(251,241,222,0.18);
  background: rgba(251,241,222,0.06);
  border-radius: 999px;
  font-family: inherit;
  /* 16px (not 0.95rem/15.2px) so iOS Safari does NOT zoom on focus (NudgeUP-kp9f1) */
  font-size: 16px;
  color: var(--cream);
  outline: none;
  transition: border-color .2s, background .2s;
}
.form input::placeholder { color: rgba(251,241,222,0.40); }
.form input:focus {
  border-color: var(--persimmon);
  background: rgba(251,241,222,0.10);
}
.form button {
  background: var(--persimmon);
  color: var(--white);
  border: none;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form button:hover {
  background: var(--persimmon-dim);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,96,74,0.40);
}
.hero .form-note { font-size: 0.9rem; color: rgba(251,241,222,0.55); }
.hero-no-download { margin-top: 6px; font-size: 0.78rem; color: rgba(251,241,222,0.62); letter-spacing: 0.01em; }

/* SPINNER */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* SUCCESS STATE */
.success-state {
  display: none;
  background: rgba(251,241,222,0.10);
  border: 1px solid rgba(251,241,222,0.18);
  border-radius: 18px;
  padding: 24px 28px;
  margin-top: 12px;
  max-width: 460px;
}
.success-state.visible { display: block; }
.success-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 6px;
}
.success-body { font-size: 0.95rem; color: rgba(251,241,222,0.72); line-height: 1.55; }

/* ERROR MSG */
.error-msg { color: #f87171; font-size: 0.9rem; margin-top: 6px; display: none; }
.error-msg.visible { display: block; }

/* SOCIAL PROOF */
.social-proof-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.sp-avatars { display: flex; }
.sp-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--cocoa);
  margin-left: -8px;
  background: var(--persimmon-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--persimmon);
  overflow: hidden;
}
.sp-avatar:first-child { margin-left: 0; }
.sp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.social-proof { font-size: 0.9rem; color: rgba(251,241,222,0.60); line-height: 1.4; }
.social-proof strong { color: rgba(251,241,222,0.85); font-weight: 600; }

/* PHONE */
.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-wrap {
  position: relative;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.45)) drop-shadow(0 12px 24px rgba(212,96,74,0.18));
  animation: phoneFloat 7s ease-in-out infinite;
}
.phone-svg { width: 260px; height: auto; display: block; }
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.phone-annotation {
  position: absolute;
  top: 30%; left: -20px;
  transform: rotate(-8deg);
  font-family: 'Caveat', cursive;
  font-weight: 600;
  color: var(--rose);
  font-size: 1.2rem;
  line-height: 1.1;
  text-align: right;
  width: 110px;
  pointer-events: none;
}
.phone-annotation svg { display: block; margin: 4px auto 0; }

/* SECTION COMMON */
section.story, section.how, section.working, section.pricing, section.join {
  padding: 90px 0;
}
.section-eyebrow {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.3rem;
  /* persimmon-dim (#B04A33) clears WCAG AA on cream where --persimmon did not (NudgeUP-s8he) */
  color: var(--persimmon-dim);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
  display: inline-block;
  transform: rotate(-1deg);
}
.version-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ink-dim);
  background: rgba(40,20,8,0.06);
  padding: 3px 7px;
  border-radius: 5px;
  letter-spacing: 0.04em;
  vertical-align: middle;
  transform: rotate(1deg);
  display: inline-block;
  margin-left: 6px;
}
section h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 22px;
  max-width: 780px;
  font-variation-settings: 'opsz' 48, 'SOFT' 100;
}
.section-lead {
  font-size: 1.15rem;
  color: var(--ink-mid);
  margin-bottom: 40px;
  max-width: 640px;
  line-height: 1.65;
}

/* STORY */
.story { background: var(--cream); }
.story-inner { max-width: var(--max-prose); }
.story h2 { margin-bottom: 30px; }
.prose { font-family: 'Fraunces', Georgia, serif; font-variation-settings: 'opsz' 14, 'SOFT' 100; }
.prose .lead { font-size: 1.35rem; line-height: 1.55; margin-bottom: 26px; color: var(--ink); font-weight: 400; }
.prose p { font-size: 1.13rem; line-height: 1.75; margin-bottom: 22px; color: var(--ink); }
.prose em { font-style: italic; color: var(--persimmon); }
.prose .pull {
  font-size: 1.45rem; font-style: italic; color: var(--ink); line-height: 1.4;
  margin: 36px -20px; padding: 24px 28px;
  background: var(--peach-soft);
  border-left: 4px solid var(--persimmon);
  border-radius: 0 12px 12px 0;
}
.prose hr { border: none; height: 1px; background: var(--rule); margin: 36px auto; width: 80px; }
.prose .sign {
  margin-top: 40px;
  font-family: 'Caveat', cursive;
  font-size: 2.4rem; font-weight: 600; font-style: normal;
  color: var(--ink); transform: rotate(-2deg);
  display: inline-block; line-height: 1;
}
.prose .sign-meta { margin-top: 10px; font-family: 'DM Sans', sans-serif; font-size: 0.95rem; color: var(--ink-dim); font-style: normal; }
/* NudgeUP-76s2i: mid-page CTA after story signature */
.story-cta-wrap { margin-top: 36px; }
.story-cta { font-family: 'DM Sans', sans-serif; font-size: 1.05rem; padding: 14px 32px; display: inline-block; }

/* FEATURES SECTION */
.features-section { background: var(--cream-warm); padding: 90px 0; }
.features-section h2 { margin-bottom: 16px; }
.features-section .section-lead { margin-bottom: 40px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 18px;
}
/* Bento density (NudgeUP-j6v6g): the two highest-value cards (NudgeBuds, AI
   energy-read) span two columns so the section reads as a designed bento grid
   instead of a flat 10-tile stack — fewer perceived rows, more visual rhythm. */
.features-grid .feature-card:nth-child(1),
.features-grid .feature-card:nth-child(2) { grid-column: span 2; }
.feature-card {
  background: var(--white);
  border-radius: 18px;
  padding: 26px 24px 28px;
  border: 1px solid rgba(40,20,8,0.06);
  box-shadow: var(--shadow-warm);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s, transform .5s, box-shadow .2s;
}
.feature-card.visible { opacity: 1; transform: translateY(0); }
.feature-card.visible:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(212,96,74,0.14), 0 4px 14px rgba(40,20,8,0.06);
}
.feature-icon { display: flex; color: var(--persimmon); margin-bottom: 14px; }
.feature-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem; font-weight: 600;
  letter-spacing: -0.015em; margin-bottom: 8px;
  color: var(--ink);
  font-variation-settings: 'opsz' 24, 'SOFT' 100;
}
.feature-desc { font-size: 0.95rem; color: var(--ink-mid); line-height: 1.65; }
.features-more-wrap { margin-top: 28px; text-align: center; }
.features-more-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--persimmon); color: var(--persimmon);
  background: none; padding: 10px 22px; border-radius: 999px;
  font-family: inherit; font-size: 0.93rem; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.features-more-btn:hover { background: var(--persimmon-soft); }
.features-extra { display: none; margin-top: 20px; }
.features-extra.open { display: block; }
.features-extra-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.features-extra-col {
  background: var(--white); border-radius: 16px; padding: 22px 20px;
  border: 1px solid rgba(40,20,8,0.06); box-shadow: var(--shadow-warm);
}
.features-extra-col .feature-title { font-size: 1rem; }

/* HOW */
.how { background: var(--cream-warm); }
.how-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px; max-width: 880px; margin-top: 12px;
}
.how-card {
  background: var(--white); border-radius: 18px; padding: 28px 28px 30px;
  box-shadow: var(--shadow-warm); border: 1px solid rgba(40,20,8,0.06);
  position: relative;
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s, transform .5s, box-shadow .2s;
}
.how-card.visible { opacity: 1; transform: translateY(0); }
.how-card.visible:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(212,96,74,0.16), 0 4px 14px rgba(40,20,8,0.06);
}
.how-card-num {
  display: inline-block; width: 32px; height: 32px;
  background: var(--persimmon-soft); color: var(--persimmon);
  border-radius: 50%; text-align: center; line-height: 32px;
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 700;
  font-size: 1.1rem; margin-bottom: 14px;
}
.how-card h3 {
  font-family: 'Fraunces', Georgia, serif; font-size: 1.35rem; font-weight: 600;
  margin-bottom: 10px; letter-spacing: -0.015em; line-height: 1.2; color: var(--ink);
  font-variation-settings: 'opsz' 24, 'SOFT' 100;
}
.how-card p { font-size: 1rem; color: var(--ink-mid); line-height: 1.65; }

/* WORKING ON */
.working { background: var(--peach-soft); }
.working-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-top: 10px; }
.working-col {
  background: var(--white); border-radius: 16px; padding: 24px;
  box-shadow: var(--shadow-warm); border: 1px solid rgba(40,20,8,0.06);
}
.working-col-label { font-family: 'Caveat', cursive; font-size: 1.3rem; color: var(--persimmon); margin-bottom: 14px; display: block; transform: rotate(-0.5deg); }
.working-col ul { list-style: none; }
.working-col li { padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 0.96rem; color: var(--ink); line-height: 1.55; }
.working-col li:last-child { border-bottom: none; }
.working-col li strong { display: inline-block; margin-right: 4px; font-weight: 700; color: var(--persimmon); }
.working-col li em { font-style: italic; color: var(--honey); font-weight: 600; font-size: 0.85rem; display: inline-block; margin-right: 4px; }

/* PRICING */
.pricing { background: var(--cream); }
/* Compact 2-col Free vs Pro comparison (NudgeUP-j6v6g): strict 2 columns so the
   two tiers sit side-by-side for direct comparison — only collapses to 1 col on
   mobile (≤720px below). max-width keeps the pair tight rather than sprawling. */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 760px; }
.price-card {
  padding: 32px 30px 30px;
  background: var(--white); border: 1px solid var(--rule); border-radius: 18px;
  box-shadow: var(--shadow-warm);
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s, transform .5s, box-shadow .2s;
}
.price-card.visible { opacity: 1; transform: translateY(0); }
.price-card.visible:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(40,20,8,0.10); }
.price-card.featured {
  border: 2px solid var(--persimmon); position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0%, #FFFAF0 100%);
}
.price-card.featured::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(to right, var(--persimmon), var(--honey));
}
.price-tier { font-family: 'Fraunces', Georgia, serif; font-size: 1.1rem; font-weight: 600; color: var(--persimmon); margin-bottom: 10px; font-style: italic; font-variation-settings: 'opsz' 24, 'SOFT' 100; }
.badge {
  /* dark-ink text on solid persimmon-dim clears AA; old cream-on-gradient was ~1.09 (NudgeUP-s8he) */
  background: var(--persimmon-dim);
  color: var(--white); padding: 4px 9px; border-radius: 999px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.06em; margin-right: 8px; font-style: normal; text-transform: uppercase; vertical-align: 2px;
}
.price-amount { font-family: 'Fraunces', Georgia, serif; font-size: 2.8rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 4px; color: var(--ink); font-variation-settings: 'opsz' 96, 'SOFT' 100; }
.price-amount span { font-size: 1rem; font-weight: 400; color: var(--ink-mid); font-style: italic; font-family: 'Fraunces', serif; }
.price-meta { font-size: 0.96rem; color: var(--ink-mid); margin-bottom: 22px; font-style: italic; }
.price-card ul { list-style: none; margin-bottom: 26px; }
.price-card li { padding: 8px 0; font-size: 0.94rem; color: var(--ink-mid); border-bottom: 1px solid var(--rule); display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.price-card li:last-child { border: none; }
.price-card li::before { content: "✓"; color: var(--persimmon); font-weight: 700; flex-shrink: 0; }
.btn-primary, .btn-secondary {
  display: block; text-align: center; padding: 14px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .2s;
}
.btn-primary { background: var(--persimmon); color: var(--white); }
.btn-primary:hover { background: var(--persimmon-dim); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(212,96,74,0.35); }
.btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--rule-strong); }
.btn-secondary:hover { border-color: var(--persimmon); color: var(--persimmon); }
.price-note { margin-top: 28px; font-size: 1rem; color: var(--ink-mid); max-width: 660px; line-height: 1.6; font-style: italic; }

/* PWA INSTALL BLOCK */
.pwa-install-block { margin-top: 36px; border: 1.5px solid var(--rule-strong); border-radius: 16px; overflow: hidden; }
.pwa-install-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: var(--peach-soft); flex-wrap: wrap; }
.pwa-install-badge-group { display: flex; flex-direction: column; gap: 4px; }
.pwa-sync-note { font-size: 0.75rem; color: var(--ink-mid); max-width: 360px; line-height: 1.4; }
.pwa-install-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.pwa-web-link { font-size: 0.88rem; font-weight: 600; color: var(--persimmon-dim); text-decoration: none; white-space: nowrap; transition: opacity .15s; }
.pwa-web-link:hover { opacity: 0.75; }
.pwa-live-badge { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.pwa-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.20); flex-shrink: 0; }
.pwa-cta { padding: 10px 22px; font-size: 0.95rem; }
.pwa-how { border-top: 1px solid var(--rule); }
.pwa-how-toggle { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; cursor: pointer; font-size: 0.88rem; font-weight: 600; color: var(--ink-mid); user-select: none; }
.pwa-how-toggle::-webkit-details-marker { display: none; }
.pwa-how-toggle:hover { color: var(--persimmon); }
.pwa-how-arrow { transition: transform .2s; font-size: 0.8rem; }
details[open] .pwa-how-arrow { transform: rotate(180deg); }
.pwa-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0 24px 20px; }
.pwa-step { padding: 12px 16px 12px 0; }
.pwa-step + .pwa-step { border-left: 1px solid var(--rule); padding-left: 16px; }
.pwa-step-label { font-size: 0.85rem; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.pwa-step-list { margin: 0; padding-left: 18px; color: var(--ink-mid); font-size: 0.83rem; line-height: 1.65; }
.pwa-step-list li { margin-bottom: 4px; }
.app-store-row { display: flex; align-items: center; gap: 16px; padding: 14px 24px; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.app-store-label { font-size: 0.82rem; font-weight: 600; color: var(--ink-dim); }
.app-store-badges { display: flex; gap: 10px; }
.app-badge { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; color: var(--ink-dim); background: rgba(40,20,8,0.05); border-radius: 6px; padding: 5px 10px; }
.app-badge-sub { font-size: 0.72rem; color: var(--ink-dim); opacity: 0.65; }
@media (max-width: 640px) {
  .pwa-steps-grid { grid-template-columns: 1fr; }
  .pwa-step + .pwa-step { border-left: none; border-top: 1px solid var(--rule); padding-left: 0; padding-top: 12px; }
  .pwa-install-top { flex-direction: column; align-items: flex-start; }
}

/* ORIGIN TIMELINE (NudgeUP-m1a2) */
.origin-section { background: var(--white); padding: 72px 0 56px; }
.origin-section h2 { max-width: 520px; margin-bottom: 48px; }
.tl-track { display: flex; flex-direction: column; gap: 0; max-width: 560px; }
.tl-node { display: grid; grid-template-columns: 52px 1fr; gap: 0 16px; position: relative; }
.tl-node:not(:last-child) { padding-bottom: 32px; }
.tl-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--peach-soft); border: 1.5px solid var(--rule-strong); display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1; color: var(--ink-mid); }
.tl-icon svg { display: block; }
.tl-node:last-child .tl-icon { background: var(--persimmon-soft); border-color: var(--persimmon); color: var(--persimmon); }
.tl-content { padding-top: 8px; }
.tl-label { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 1rem; color: var(--ink); margin: 0 0 4px; font-variation-settings: 'opsz' 24, 'SOFT' 100; }
.tl-verdict { font-size: 0.92rem; color: var(--ink-mid); margin: 0; font-style: italic; }
.tl-node:last-child .tl-label { color: var(--persimmon); }
.tl-node:last-child .tl-verdict { color: var(--ink); font-style: normal; font-weight: 500; }
.tl-connector { position: absolute; left: 23px; top: 52px; bottom: 0; width: 2px; background: var(--rule); }
@media (min-width: 641px) {
  .tl-track { flex-direction: row; align-items: flex-start; max-width: 100%; gap: 0; }
  .tl-node { grid-template-columns: 1fr; grid-template-rows: 52px auto; gap: 12px 0; justify-items: center; text-align: center; flex: 1; position: relative; padding-bottom: 0; }
  .tl-node:not(:last-child) { padding-bottom: 0; }
  .tl-content { padding-top: 0; }
  .tl-connector { left: 52px; right: 0; top: 23px; bottom: auto; width: auto; height: 2px; }
}

/* WHAT IT ISN'T (NudgeUP-ba5n) */
.not-section { background: var(--peach-soft); padding: 72px 0; }
.not-section h2 { max-width: 480px; margin-bottom: 40px; }
.not-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.not-item { background: var(--white); border-radius: 16px; padding: 28px 24px; border: 1.5px solid var(--rule); }
.not-title { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 1.05rem; color: var(--persimmon); margin: 0 0 12px; font-variation-settings: 'opsz' 24, 'SOFT' 100; }
.not-body { font-size: 0.92rem; color: var(--ink-mid); line-height: 1.7; margin: 0; }
@media (max-width: 900px) {
  .not-grid { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-section { background: var(--white); padding: 90px 0; }
.faq-section h2 { margin-bottom: 36px; }
.faq-list { max-width: 740px; }
.faq-item {
  border-bottom: 1px solid var(--rule);
  opacity: 0; transform: translateY(16px);
  transition: opacity .4s, transform .4s;
}
.faq-item.visible { opacity: 1; transform: translateY(0); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; cursor: pointer;
  font-family: 'Fraunces', Georgia, serif; font-size: 1.1rem; font-weight: 600;
  color: var(--ink); font-variation-settings: 'opsz' 24, 'SOFT' 100;
  background: none; border: none; width: 100%; text-align: left;
}
.faq-question:hover { color: var(--persimmon); }
/* Keyboard focus ring for the accordion buttons (NudgeUP-j6v6g) */
.faq-question:focus-visible { outline: 2px solid var(--persimmon); outline-offset: 3px; border-radius: 4px; }
.faq-toggle { width: 28px; height: 28px; flex-shrink: 0; color: var(--persimmon); transition: transform .2s; }
.faq-question[aria-expanded="true"] .faq-toggle { transform: rotate(45deg); }
.faq-answer { display: none; padding-bottom: 22px; font-size: 1rem; color: var(--ink-mid); line-height: 1.7; }
.faq-question[aria-expanded="true"] + .faq-answer { display: block; }

/* JOIN HONEST NOTE (NudgeUP-ccldc: replaced standalone social-section) */
.join-honest-note { max-width: 480px; margin: 28px auto 0; font-size: 0.9rem; line-height: 1.6; color: rgba(251,241,222,0.50); font-style: italic; }

/* JOIN */
.join {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(229,165,53,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(212,96,74,0.10) 0%, transparent 50%),
    var(--cocoa);
  color: var(--cream);
  padding: 90px 0;
}
.join-inner { text-align: center; }
.join h2 { color: var(--cream); margin: 0 auto 18px; max-width: 620px; }
.join .lede { color: rgba(251,241,222,0.85); max-width: 540px; margin: 0 auto 6px; font-size: 1.1rem; line-height: 1.65; }
.join .lede strong { color: var(--rose); font-weight: 500; }
/* brand color on inline join link — was unstyled default blue (NudgeUP-s8he) */
.join .lede a { color: var(--rose); font-weight: 600; text-decoration: none; transition: color .15s; }
.join .lede a:hover { color: var(--cream); }
.join .form input { background: rgba(251,241,222,0.10); border-color: rgba(251,241,222,0.22); color: var(--cream); }
.join .form input::placeholder { color: rgba(251,241,222,0.45); }
/* First-name field (NudgeUP-izkr2): sits on its own row above email + button */
.join .form { flex-wrap: wrap; max-width: 100%; }
.join .form .join-name-input { flex-basis: 100%; }
/* email input must shrink, never force horizontal scroll on narrow phones (NudgeUP-kp9f1) */
.join .form input[type="email"] { min-width: 0; }
.join .form button { background: var(--persimmon); color: var(--white); }
.join .form button:hover { background: var(--persimmon-dim); }
/* Turnstile widget renders a ~300px FIXED-WIDTH iframe — give it its own
   full-width row and cap its width so it can't overflow the viewport
   (was the ~300px unclassed element causing horizontal scroll, NudgeUP-kp9f1) */
#waitlist-captcha { flex-basis: 100%; max-width: 100%; overflow: hidden; }
#waitlist-captcha iframe { max-width: 100% !important; }
#join-container { display: flex; justify-content: center; max-width: 100%; }
.join .success-state { max-width: 500px; margin: 12px auto 0; }
.join-email-label { color: rgba(251,241,222,0.60); max-width: 480px; margin: 16px auto 0; font-size: 0.95rem; line-height: 1.55; }

/* FOOTER */
.footer { padding: 56px 0 32px; background: var(--cocoa-deep); color: rgba(251,241,222,0.50); }
.footer-inner {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px;
  align-items: start; font-size: 0.9rem;
  padding-bottom: 26px; border-bottom: 1px solid rgba(251,241,222,0.08);
}
.foot-brand { font-family: 'Fraunces', Georgia, serif; font-size: 1.2rem; font-weight: 700; color: var(--cream); margin-bottom: 6px; font-variation-settings: 'opsz' 24, 'SOFT' 100; }
.foot-v { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: rgba(251,241,222,0.32); font-weight: 400; }
.foot-tag { color: rgba(251,241,222,0.65); font-size: 0.9rem; line-height: 1.5; }
/* brand color on footer mailto — was unstyled default blue (NudgeUP-s8he) */
.foot-tag a { color: var(--rose); text-decoration: none; transition: color .15s; }
.foot-tag a:hover { color: var(--cream); }
.foot-mid { text-align: center; }
.foot-status { font-size: 0.9rem; color: rgba(251,241,222,0.65); }
.foot-status a { color: var(--rose); text-decoration: none; transition: color .15s; }
.foot-status a:hover { color: var(--cream); }
.foot-status em { color: var(--honey); font-style: italic; font-weight: 500; }
.foot-end { text-align: right; }
.foot-end a { color: rgba(251,241,222,0.50); text-decoration: none; transition: color .15s; }
.foot-end a:hover { color: var(--rose); }
.foot-credit { font-size: 0.78rem; color: rgba(251,241,222,0.32); margin-top: 8px; }
.foot-ps { margin-top: 22px; font-size: 1rem; color: rgba(251,241,222,0.55); text-align: center; font-family: 'Fraunces', Georgia, serif; font-style: italic; line-height: 1.5; }
.foot-ps .hand { color: var(--rose); }
/* footer faint text raised to clear WCAG AA on cocoa-deep bg (NudgeUP-s8he) */
.foot-ai-note { margin-top: 14px; font-size: 0.72rem; color: rgba(251,241,222,0.60); text-align: center; letter-spacing: 0.02em; }
.foot-stack { margin-top: 6px; font-size: 0.70rem; color: rgba(251,241,222,0.55); text-align: center; }
.foot-stack a { color: rgba(251,241,222,0.70); text-decoration: none; transition: color .15s; }
.foot-stack a:hover { color: rgba(251,241,222,0.95); }

@keyframes nudge-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.page-fade-in { animation: nudge-fade-in 0.45s ease both; }

/* APP STORE BADGES */
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(251,241,222,0.08); border: 1px solid rgba(251,241,222,0.14);
  color: var(--cream); text-decoration: none; padding: 8px 14px; border-radius: 10px;
  font-size: 0.82rem; line-height: 1.25; transition: background .15s;
}
.store-badge:hover { background: rgba(251,241,222,0.13); }
.store-badge span { display: block; }
.store-badge .store-sub { font-size: 0.72rem; opacity: 0.65; }
.store-badge .store-name { font-weight: 600; font-size: 0.9rem; }

/* STICKY BAR */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(23,10,4,0.96);
  border-top: 1px solid rgba(212,96,74,0.25);
  padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  z-index: 200; backdrop-filter: blur(8px);
  transform: translateY(100%); transition: transform .3s ease;
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-bar-text { font-size: 0.9rem; color: rgba(251,241,222,0.72); line-height: 1.4; }
.sticky-bar-text strong { color: var(--cream); }
.sticky-bar-btn {
  background: var(--persimmon); color: var(--white); border: none;
  padding: 10px 20px; border-radius: 999px;
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: background .15s;
}
.sticky-bar-btn:hover { background: var(--persimmon-dim); }
.sticky-bar-dismiss {
  background: none; border: none; color: rgba(251,241,222,0.40);
  cursor: pointer; font-size: 1.2rem; line-height: 1; padding: 4px 6px;
  flex-shrink: 0; transition: color .15s;
}
.sticky-bar-dismiss:hover { color: var(--rose); }

/* MID-PAGE CTAs (NudgeUP-xjr1y) — keep the action reachable at each stopping point */
.midpage-cta {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}
.midpage-cta-btn { white-space: nowrap; }

/* MOBILE STICKY BOTTOM CTA BAR (NudgeUP-xjr1y) — persistent action on phones */
.mobile-cta-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(23,10,4,0.96);
  border-top: 1px solid rgba(212,96,74,0.28);
  backdrop-filter: blur(8px);
  z-index: 210;
  transform: translateY(100%);
  transition: transform .3s ease;
}
.mobile-cta-bar.visible { transform: translateY(0); }
.mobile-cta-bar-btn {
  display: block;
  text-align: center;
  background: var(--persimmon);
  color: var(--white);
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: background .15s;
}
.mobile-cta-bar-btn:active,
.mobile-cta-bar-btn:hover { background: var(--persimmon-dim); }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .feature-card, .how-card, .price-card, .faq-item {
    opacity: 1;
    transform: none;
  }
  /* Hero stack (NudgeUP-wuc11): kill the floating loop + the pulsing tap-ring,
     and suppress the smoke/sparkle burst entirely so no flash for motion-sensitive
     users. The phone still sits still and the screen swap is effectively instant. */
  .stack-scene .phone-pos { animation: none !important; }
  .stack-scene .tap-prompt { animation: none !important; }
  .stack-scene .smoke,
  .stack-scene .spark { animation: none !important; opacity: 0 !important; }
}

/* RESPONSIVE — tablet (shared scale: ≤900px tablet / ≤640px mobile — NudgeUP-bk29t) */
@media (max-width: 900px) {
  .hero { padding: 70px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-right { order: -1; }
  .phone-annotation { display: none; }
  .how-cards { grid-template-columns: 1fr; }
  .working-grid { grid-template-columns: 1fr; }
  .features-extra-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 2-col features band sits between mobile and tablet (NudgeUP-bk29t: was 721–960, overlapped the old 920 tablet) */
@media (min-width: 641px) and (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  /* On 2-col, only the first card spans full width (1 bento accent, not 2) */
  .features-grid .feature-card:nth-child(2) { grid-column: auto; }
}

/* RESPONSIVE — mobile (shared scale ≤640px — NudgeUP-bk29t) */
@media (max-width: 640px) {
  .nav-link { display: none; }
  /* Keep the persistent CTA visible on mobile, just smaller (NudgeUP-xjr1y) */
  /* keep ≥44px tap target on mobile (NudgeUP-bk29t) — inherits inline-flex/min-height from .btn-cta */
  .nav-cta { padding: 8px 16px; font-size: 0.82rem; }
  .nav-hamburger { display: flex; }
  .nav-actions { gap: 12px; }

  /* Desktop sticky bar gives way to the dedicated mobile bottom bar (NudgeUP-xjr1y) */
  .sticky-bar { display: none; }
  .mobile-cta-bar { display: block; }
  /* Lift the mobile bottom bar clear of the footer P.S. content */
  body { padding-bottom: 0; }
  .form { flex-direction: column; }
  .form input, .form button { border-radius: 12px; }
  .form button { justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
  /* Reset bento spans on single-column mobile so no card overflows the grid */
  .features-grid .feature-card:nth-child(1),
  .features-grid .feature-card:nth-child(2) { grid-column: auto; }
  .features-extra-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .foot-mid, .foot-end { text-align: center; }
  .prose .pull { margin: 30px 0; }
  .sticky-bar { flex-wrap: wrap; }
  .sticky-bar-text { flex: 1 1 100%; }
  .price-grid { grid-template-columns: 1fr; }

  /* ── Mobile hero fix (NudgeUP-p91ta): show CTA above fold ── */
  /* Reverse the tablet order:-1 so hero text + CTA renders first on mobile */
  .hero { padding: 36px 0 48px; }
  .hero-grid { gap: 28px; }
  .hero-right { order: 0; }
  /* Trim lede text so CTA button fits above fold on a 390px screen */
  .hero .lede { margin-bottom: 20px; font-size: 1rem; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-descriptor { font-size: 0.95rem; }
  .hero-sub { font-size: clamp(1.1rem, 3.5vw, 1.3rem); }
}

/* ═══════════════════════════════════════════════════════
   HERO PHONE-ON-PAPER-STACK — Interactive demo (NudgeUP-f2hw)
   Replaces the simple floating phone in the hero right column.
   Auto-plays on scroll into view, tap to replay.
   ═══════════════════════════════════════════════════════ */

.stack-scene {
  position: relative;
  width: 620px;
  height: 620px;
  margin: 0 auto;
  overflow: visible;
}

/* ── PAPER WRAPPERS ── */
.stack-scene .paper-pos {
  position: absolute;
  transform-origin: center center;
  transition: transform .3s;
}
.stack-scene .paper {
  border-radius: 3px 3px 1px 1px;
  overflow: hidden;
  box-shadow:
    0 4px 8px rgba(0,0,0,0.30),
    0 14px 32px rgba(0,0,0,0.45),
    0 1px 0 rgba(255,255,255,0.08) inset;
  will-change: transform, opacity, filter;
}

/* ── YELLOW LEGAL PAD ── */
.stack-scene .legal-pad-pos {
  left: 50%; top: 50%;
  transform: translate(-50%, -45%) translate(-110px, 80px) rotate(-22deg);
  z-index: 1;
}
.stack-scene .legal-pad { width: 290px; }
.stack-scene .legal-pad .pad-header {
  background: #F5E642;
  padding: 11px 14px 8px 18px;
  border-bottom: 3px solid #C8B000;
  position: relative;
}
.stack-scene .legal-pad .pad-header::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, #C8B000 0 4px, #B89E00 4px 8px);
}
.stack-scene .legal-pad .pad-title {
  font-family: 'Permanent Marker', 'Caveat', cursive;
  font-size: 1.3rem; color: #2A2200;
  line-height: 1; letter-spacing: 0.01em;
}
.stack-scene .legal-pad .pad-body {
  background-color: #FEFBE0;
  background-image:
    linear-gradient(90deg, transparent 42px, rgba(210,50,50,0.35) 42px, rgba(210,50,50,0.35) 44px, transparent 44px),
    repeating-linear-gradient(transparent, transparent 25px, rgba(100,140,200,0.25) 25px, rgba(100,140,200,0.25) 26px);
  background-size: 100% 26px;
  background-position: 0 38px;
  padding: 12px 14px 26px 56px;
  min-height: 220px;
}
.stack-scene .legal-pad .pad-item {
  font-family: 'Kalam', 'Caveat', cursive;
  color: #2A2200; font-size: 0.95rem;
  line-height: 26px;
  display: flex; align-items: center; gap: 8px;
}

/* ── CREAM MEMO ── */
.stack-scene .memo-pos {
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) translate(0, 30px) rotate(-3deg);
  z-index: 2;
}
.stack-scene .memo { width: 280px; }
.stack-scene .memo .pad-header { background: #FBF1DE; padding: 11px 14px 8px; border-bottom: 2px solid #D4604A; }
.stack-scene .memo .pad-title { font-family: 'Caveat', cursive; font-size: 1.45rem; font-weight: 700; color: #281408; line-height: 1; }
.stack-scene .memo .pad-body {
  background-color: #FFFCF5;
  background-image: repeating-linear-gradient(transparent, transparent 24px, rgba(40,20,8,0.10) 24px, rgba(40,20,8,0.10) 25px);
  background-size: 100% 25px;
  background-position: 0 36px;
  padding: 11px 14px 26px;
  min-height: 200px;
}
.stack-scene .memo .pad-item {
  font-family: 'Caveat', cursive;
  color: #281408; font-size: 1.05rem;
  line-height: 25px;
  display: flex; align-items: center; gap: 8px;
}

/* ── SPIRAL NOTEBOOK ── */
.stack-scene .notebook-pos {
  left: 50%; top: 50%;
  transform: translate(-50%, -45%) translate(140px, 50px) rotate(24deg);
  z-index: 3;
}
.stack-scene .notebook { width: 270px; padding-left: 18px; position: relative; background: #F8FBFF; }
.stack-scene .notebook::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 18px;
  background:
    radial-gradient(circle at center, #281408 3px, transparent 3.5px) center / 12px 26px repeat-y,
    linear-gradient(90deg, rgba(40,20,8,0.10), transparent);
}
.stack-scene .notebook .pad-header { background: #DDE6F5; padding: 11px 14px 8px; border-bottom: 3px solid #A8BCE8; }
.stack-scene .notebook .pad-title { font-family: 'Indie Flower', 'Caveat', cursive; font-size: 1.3rem; font-weight: 700; color: #1A2A4A; line-height: 1.1; }
.stack-scene .notebook .pad-body {
  background-color: #F8FBFF;
  background-image: repeating-linear-gradient(transparent, transparent 24px, rgba(80,120,200,0.22) 24px, rgba(80,120,200,0.22) 25px);
  background-size: 100% 25px;
  background-position: 0 38px;
  padding: 12px 14px 26px;
  min-height: 200px;
}
.stack-scene .notebook .pad-item {
  font-family: 'Indie Flower', cursive;
  color: #1A2A4A; font-size: 0.98rem;
  line-height: 25px;
  display: flex; align-items: center; gap: 8px;
}

/* ── STICKY NOTE ── */
.stack-scene .sticky-pos {
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) translate(-200px, -180px) rotate(-12deg);
  z-index: 4;
}
.stack-scene .sticky {
  width: 140px; height: 140px;
  background: linear-gradient(135deg, #FFEC5C 0%, #FCD440 100%);
  padding: 16px 14px;
  box-shadow: 0 2px 4px rgba(180,140,0,0.4), 0 12px 24px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.4) inset;
  position: relative;
}
.stack-scene .sticky::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 20px; height: 20px;
  background: linear-gradient(225deg, rgba(0,0,0,0.18) 0%, transparent 50%);
}
.stack-scene .sticky .pad-title {
  font-family: 'Permanent Marker', cursive;
  color: #5A4500; font-size: 0.95rem;
  line-height: 1.1; margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.stack-scene .sticky .pad-body { font-family: 'Kalam', cursive; color: #5A4500; font-size: 0.95rem; line-height: 1.25; }

/* ── INDEX CARD ── */
.stack-scene .index-pos {
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) translate(190px, -180px) rotate(8deg);
  z-index: 5;
}
.stack-scene .index { width: 200px; background: #FFFFFF; }
.stack-scene .index .pad-header { background: #FFFFFF; padding: 8px 12px 4px; border-bottom: 2px solid #C8485A; }
.stack-scene .index .pad-title { font-family: 'Caveat', cursive; font-weight: 700; color: #C8485A; font-size: 1.15rem; line-height: 1; }
.stack-scene .index .pad-body {
  background-color: #FFFFFF;
  background-image: repeating-linear-gradient(transparent, transparent 22px, rgba(180,160,140,0.4) 22px, rgba(180,160,140,0.4) 23px);
  background-size: 100% 23px;
  background-position: 0 30px;
  padding: 9px 12px 18px;
  min-height: 110px;
}
.stack-scene .index .pad-item { font-family: 'Kalam', cursive; color: #4A3520; font-size: 0.9rem; line-height: 23px; }

/* ── NAPKIN ── */
.stack-scene .napkin-pos {
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) translate(180px, 200px) rotate(18deg);
  z-index: 1;
}
.stack-scene .napkin {
  width: 170px; height: 170px;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.4) 0%, transparent 30%), #FAFAF5;
  padding: 18px 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.18), 0 10px 24px rgba(0,0,0,0.30), 0 1px 0 rgba(255,255,255,0.6) inset;
  position: relative;
  clip-path: polygon(0% 4%, 4% 0%, 96% 0%, 100% 4%, 100% 96%, 96% 100%, 4% 100%, 0% 96%);
}
.stack-scene .napkin::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(120,100,80,0.15);
  pointer-events: none;
}
.stack-scene .napkin .pad-title { font-family: 'Caveat', cursive; font-weight: 700; color: #4A3520; font-size: 1.05rem; line-height: 1.2; margin-bottom: 6px; }
.stack-scene .napkin .pad-body { font-family: 'Caveat', cursive; color: #5A4530; font-size: 0.95rem; line-height: 1.3; }

/* ── CHECKBOXES & items shared ── */
.stack-scene .cb {
  width: 14px; height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; line-height: 1;
}
.stack-scene .legal-pad .cb { border: 1.5px solid #8A7400; }
.stack-scene .memo .cb      { border: 1.5px solid #8F6E52; }
.stack-scene .notebook .cb  { border: 1.5px solid #4A6AAA; }
.stack-scene .cb.done { color: #fff; }
.stack-scene .legal-pad .cb.done { background: #8A7400; border-color: #8A7400; }
.stack-scene .memo .cb.done      { background: #D4604A; border-color: #D4604A; }
.stack-scene .notebook .cb.done  { background: #4A6AAA; border-color: #4A6AAA; }
.stack-scene .strike { text-decoration: line-through; opacity: 0.45; }

/* ── PHONE — sits on top, tappable ── */
.stack-scene .phone-pos {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) translateY(0);
  z-index: 100;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  filter:
    drop-shadow(0 24px 50px rgba(0,0,0,0.65))
    drop-shadow(0 10px 22px rgba(212,96,74,0.25))
    drop-shadow(0 -4px 12px rgba(0,0,0,0.30));
  transition: transform .35s ease, filter .35s ease;
}
.stack-scene .phone-pos svg { width: 220px; height: auto; display: block; }
.stack-scene .phone-pos:focus { outline: none; }
.stack-scene .phone-pos:focus-visible {
  outline: 2px solid var(--honey);
  outline-offset: 4px;
}

/* Hover-lift (only when not opened) */
body:not(.opened) .stack-scene .phone-pos:hover {
  transform: translate(-50%, -50%) translateY(-8px);
  filter:
    drop-shadow(0 32px 60px rgba(0,0,0,0.70))
    drop-shadow(0 14px 28px rgba(212,96,74,0.45))
    drop-shadow(0 0 24px rgba(229,165,53,0.30));
}
body:not(.opened) .stack-scene .phone-pos:hover #open-btn rect:first-child {
  fill: #FF7858;
}

/* Phone screen state swap */
.stack-scene .screen { transition: opacity .45s ease; }
.stack-scene .screen.fading-out { opacity: 0; pointer-events: none; }
.stack-scene .screen.fading-in  { opacity: 1; }
.stack-scene .screen.hidden     { opacity: 0; pointer-events: none; }

/* ── TAP PROMPT — pulsing dashed border ── */
.stack-scene .tap-prompt {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 110;
  pointer-events: none;
  width: 260px; height: 460px;
  border: 3px dashed rgba(229,165,53,0.9);
  border-radius: 56px;
  animation: stackPulseRing 1.4s ease-in-out infinite;
}
.stack-scene .tap-prompt::after {
  content: 'tap to open NudgeUP ↓';
  position: absolute;
  top: -42px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  font-family: 'Caveat', cursive;
  font-size: 1.4rem; font-weight: 700;
  color: #E5A535;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(229,165,53,0.4);
}
@keyframes stackPulseRing {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.04); }
}

/* ── POOF — papers vanish on body.opened ── */
body.opened .stack-scene .paper-pos .paper {
  animation: stackPoof 0.7s ease-out forwards;
}
body.opened .stack-scene .legal-pad-pos .paper { animation-delay: 0.00s; }
body.opened .stack-scene .sticky-pos .paper    { animation-delay: 0.05s; }
body.opened .stack-scene .notebook-pos .paper  { animation-delay: 0.10s; }
body.opened .stack-scene .index-pos .paper     { animation-delay: 0.15s; }
body.opened .stack-scene .napkin-pos .paper    { animation-delay: 0.20s; }
body.opened .stack-scene .memo-pos .paper      { animation-delay: 0.25s; }

@keyframes stackPoof {
  0%   { transform: scale(1)   translateY(0)     rotate(0); opacity: 1; filter: blur(0); }
  40%  { transform: scale(1.2) translateY(-10px) rotate(2deg); opacity: 0.7; filter: blur(3px); }
  100% { transform: scale(1.8) translateY(-60px) rotate(8deg); opacity: 0; filter: blur(16px); }
}

body.opened .stack-scene .tap-prompt { animation: stackFadePrompt .25s forwards; }
@keyframes stackFadePrompt { to { opacity: 0; transform: translate(-50%, -50%) scale(0.9); } }

/* ── SMOKE PUFFS ── */
.stack-scene .smoke {
  position: absolute;
  left: 50%; top: 50%;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.25) 35%, transparent 70%);
  opacity: 0;
  z-index: 50;
  pointer-events: none;
}
body.opened .stack-scene .smoke.s1 { animation: stackSmoke1 1s ease-out 0.10s forwards; }
body.opened .stack-scene .smoke.s2 { animation: stackSmoke2 1s ease-out 0.15s forwards; }
body.opened .stack-scene .smoke.s3 { animation: stackSmoke3 1s ease-out 0.20s forwards; }
body.opened .stack-scene .smoke.s4 { animation: stackSmoke4 1s ease-out 0.25s forwards; }
body.opened .stack-scene .smoke.s5 { animation: stackSmoke5 1s ease-out 0.30s forwards; }
@keyframes stackSmoke1 { 0%{opacity:0;transform:translate(-50%,-50%) translate(-200px,-120px) scale(0.3)} 35%{opacity:0.7;transform:translate(-50%,-50%) translate(-220px,-160px) scale(1.0)} 100%{opacity:0;transform:translate(-50%,-50%) translate(-260px,-240px) scale(1.8);filter:blur(8px)} }
@keyframes stackSmoke2 { 0%{opacity:0;transform:translate(-50%,-50%) translate(180px,-100px) scale(0.3)} 35%{opacity:0.7;transform:translate(-50%,-50%) translate(210px,-140px) scale(1.1)} 100%{opacity:0;transform:translate(-50%,-50%) translate(260px,-220px) scale(1.9);filter:blur(8px)} }
@keyframes stackSmoke3 { 0%{opacity:0;transform:translate(-50%,-50%) translate(-150px,140px) scale(0.3)} 35%{opacity:0.7;transform:translate(-50%,-50%) translate(-180px,180px) scale(1.0)} 100%{opacity:0;transform:translate(-50%,-50%) translate(-220px,250px) scale(1.8);filter:blur(8px)} }
@keyframes stackSmoke4 { 0%{opacity:0;transform:translate(-50%,-50%) translate(160px,160px) scale(0.3)} 35%{opacity:0.7;transform:translate(-50%,-50%) translate(200px,200px) scale(1.0)} 100%{opacity:0;transform:translate(-50%,-50%) translate(250px,270px) scale(1.8);filter:blur(8px)} }
@keyframes stackSmoke5 { 0%{opacity:0;transform:translate(-50%,-50%) translate(0,100px) scale(0.3)} 35%{opacity:0.6;transform:translate(-50%,-50%) translate(0,140px) scale(1.2)} 100%{opacity:0;transform:translate(-50%,-50%) translate(0,220px) scale(2.0);filter:blur(8px)} }

/* ── SPARKLES ── */
.stack-scene .spark {
  position: absolute;
  left: 50%; top: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  opacity: 0;
  z-index: 60;
  pointer-events: none;
  box-shadow: 0 0 6px currentColor, 0 0 12px currentColor;
}
.stack-scene .spark.c-persimmon { color: #D4604A; background: #D4604A; }
.stack-scene .spark.c-honey     { color: #E5A535; background: #E5A535; }
.stack-scene .spark.c-rose      { color: #E59883; background: #E59883; }
.stack-scene .spark.c-cream     { color: #FBF1DE; background: #FFFCF5; }
body.opened .stack-scene .spark { animation: stackSparkBurst 1.1s ease-out forwards; }
body.opened .stack-scene .spark:nth-of-type(1)  { --tx:-220px; --ty:-160px; animation-delay: 0.05s; }
body.opened .stack-scene .spark:nth-of-type(2)  { --tx:-180px; --ty:-220px; animation-delay: 0.08s; }
body.opened .stack-scene .spark:nth-of-type(3)  { --tx: 200px; --ty:-180px; animation-delay: 0.10s; }
body.opened .stack-scene .spark:nth-of-type(4)  { --tx: 240px; --ty:-130px; animation-delay: 0.12s; }
body.opened .stack-scene .spark:nth-of-type(5)  { --tx:-260px; --ty: -60px; animation-delay: 0.15s; }
body.opened .stack-scene .spark:nth-of-type(6)  { --tx: 260px; --ty: -40px; animation-delay: 0.18s; }
body.opened .stack-scene .spark:nth-of-type(7)  { --tx:-180px; --ty: 180px; animation-delay: 0.20s; }
body.opened .stack-scene .spark:nth-of-type(8)  { --tx: 200px; --ty: 200px; animation-delay: 0.22s; }
body.opened .stack-scene .spark:nth-of-type(9)  { --tx: -90px; --ty: 240px; animation-delay: 0.25s; }
body.opened .stack-scene .spark:nth-of-type(10) { --tx: 110px; --ty: 240px; animation-delay: 0.27s; }
body.opened .stack-scene .spark:nth-of-type(11) { --tx:-140px; --ty:-100px; animation-delay: 0.30s; }
body.opened .stack-scene .spark:nth-of-type(12) { --tx: 160px; --ty: -90px; animation-delay: 0.32s; }
body.opened .stack-scene .spark:nth-of-type(13) { --tx: -40px; --ty:-260px; animation-delay: 0.35s; }
body.opened .stack-scene .spark:nth-of-type(14) { --tx:  60px; --ty: 260px; animation-delay: 0.38s; }
@keyframes stackSparkBurst {
  0%   { opacity: 0; transform: translate(-50%, -50%) translate(0,0) scale(0.2); }
  20%  { opacity: 1; transform: translate(-50%, -50%) translate(calc(var(--tx) * 0.3), calc(var(--ty) * 0.3)) scale(1.2); }
  100% { opacity: 0; transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(0.4); }
}

body.replaying .stack-scene .paper-pos .paper { animation: none; opacity: 1; transform: none; filter: none; }
body.replaying .stack-scene .smoke { animation: none; opacity: 0; }
body.replaying .stack-scene .spark { animation: none; opacity: 0; }

/* ── RESPONSIVE — TABLET (≤900px) ── */
@media (max-width: 900px) {
  .stack-scene { width: 500px; height: 580px; }
  .stack-scene .index-pos, .stack-scene .napkin-pos { display: none; }
  .stack-scene .legal-pad { width: 250px; }
  .stack-scene .memo      { width: 240px; }
  .stack-scene .notebook  { width: 230px; }
  .stack-scene .legal-pad-pos { transform: translate(-50%, -45%) translate(-80px, 70px) rotate(-20deg); }
  .stack-scene .memo-pos      { transform: translate(-50%, -50%) translate(0, 30px)    rotate(-3deg); }
  .stack-scene .notebook-pos  { transform: translate(-50%, -45%) translate(110px, 45px) rotate(22deg); }
  .stack-scene .sticky-pos    { transform: translate(-50%, -50%) translate(-160px,-150px) rotate(-10deg); }
  .stack-scene .phone-pos svg { width: 200px; }
  .stack-scene .tap-prompt { width: 240px; height: 420px; border-radius: 52px; }
}

/* ── RESPONSIVE — MOBILE (≤640px) ── */
@media (max-width: 640px) {
  .stack-scene { width: 340px; height: 400px; }
  .stack-scene .sticky-pos, .stack-scene .index-pos, .stack-scene .napkin-pos { display: none; }
  /* On mobile, hide the scattered paper stacks — show only the phone */
  .stack-scene .legal-pad-pos, .stack-scene .memo-pos, .stack-scene .notebook-pos { display: none; }
  .stack-scene .legal-pad { width: 210px; }
  .stack-scene .memo      { width: 200px; }
  .stack-scene .notebook  { width: 195px; padding-left: 16px; }
  .stack-scene .notebook::before { width: 16px; background-size: 11px 22px; }
  .stack-scene .legal-pad .pad-title { font-size: 1.05rem; }
  .stack-scene .memo .pad-title      { font-size: 1.2rem; }
  .stack-scene .notebook .pad-title  { font-size: 1.1rem; }
  .stack-scene .legal-pad .pad-item, .stack-scene .memo .pad-item, .stack-scene .notebook .pad-item { font-size: 0.85rem; line-height: 24px; }
  .stack-scene .legal-pad .pad-body { min-height: 165px; padding: 10px 12px 20px 46px; }
  .stack-scene .memo .pad-body      { min-height: 150px; padding: 10px 12px 20px; }
  .stack-scene .notebook .pad-body  { min-height: 150px; padding: 10px 12px 20px; }
  .stack-scene .legal-pad-pos { transform: translate(-50%, -45%) translate(-55px, 55px) rotate(-17deg); }
  .stack-scene .memo-pos      { transform: translate(-50%, -50%) translate(0, 25px)    rotate(-3deg); }
  .stack-scene .notebook-pos  { transform: translate(-50%, -45%) translate(75px, 40px) rotate(18deg); }
  /* Phone: bright glow so it reads clearly on dark cocoa hero */
  .stack-scene .phone-pos {
    filter:
      drop-shadow(0 0 40px rgba(229,165,53,0.65))
      drop-shadow(0 0 20px rgba(229,165,53,0.40))
      drop-shadow(0 20px 40px rgba(0,0,0,0.75));
  }
  .stack-scene .phone-pos svg { width: 170px; }
  /* Hide tap-prompt on mobile — scene is decorative after order swap */
  .stack-scene .tap-prompt { display: none; }
  /* Add a warm-glow background behind the phone so dark screen contrasts cleanly */
  .stack-scene {
    background: radial-gradient(ellipse at center, rgba(229,165,53,0.12) 0%, transparent 70%);
    border-radius: 50%;
  }
}

/* ── Interactive vibe-check demo (NudgeUP-85do) ───────────────────────────── */
.vibe-demo {
  max-width: 560px;
  margin: 40px auto 0;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: var(--shadow-warm);
}
.vibe-demo-label {
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  color: var(--persimmon);
  margin: 0 0 14px;
}
.vibe-demo-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.vibe-emoji {
  font-size: 1.7rem;
  line-height: 1;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid var(--rule);
  background: var(--cream);
  cursor: pointer;
  transition: transform .15s, border-color .15s, box-shadow .15s, background .15s;
}
.vibe-emoji:hover { transform: translateY(-2px); background: var(--peach-soft); }
.vibe-emoji.selected {
  border-color: var(--persimmon);
  box-shadow: 0 0 0 3px var(--persimmon-soft);
  background: var(--peach-soft);
}
.vibe-demo-response {
  font-size: 1.05rem;
  color: var(--ink-mid);
  line-height: 1.5;
  margin: 0;
  min-height: 1.6em;
}

/* ── Hero CTA block (NudgeUP-zks8) ── */
.hero-cta-block {
  margin: 1.5rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.hero-primary-cta {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  width: fit-content;
  transition: transform 0.15s, box-shadow 0.15s;
}
.hero-primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,96,74,0.30);
}
.hero-signin-link {
  font-size: 0.9rem;
  color: var(--ink-mid);
}
.hero-signin-link a {
  color: var(--persimmon);
  font-weight: 600;
  text-decoration: none;
}
.hero-signin-link a:hover {
  color: var(--persimmon-dim);
}

/* ── What's New section (NudgeUP-xtloe) ── */
.whats-new {
  background: var(--cocoa);
  padding: 72px 0 80px;
  color: var(--cream);
}
.whats-new .section-eyebrow {
  color: var(--honey);
  opacity: 1;
}
.whats-new h2 {
  color: var(--cream);
}
.whats-new .section-lead {
  color: rgba(251,241,222,0.65);
}
.wn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.wn-card {
  background: rgba(255,252,245,0.06);
  border: 1px solid rgba(251,241,222,0.10);
  border-radius: 16px;
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s, background 0.15s;
}
.wn-card:hover {
  background: rgba(255,252,245,0.10);
  border-color: rgba(251,241,222,0.20);
}
.wn-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.wn-badge-version {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(251,241,222,0.12);
  color: var(--cream);
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.wn-badge-new {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--persimmon);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  animation: wn-pulse 2.5s ease-in-out infinite;
}
@keyframes wn-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.70; }
}
.wn-card-date {
  font-size: 0.78rem;
  color: rgba(251,241,222,0.40);
  margin-left: auto;
  white-space: nowrap;
}
.wn-card-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.3;
  font-variation-settings: 'opsz' 18;
}
.wn-card-body {
  font-size: 0.88rem;
  color: rgba(251,241,222,0.60);
  line-height: 1.6;
}
.wn-footer {
  margin-top: 32px;
  text-align: center;
}
.wn-more-link {
  color: var(--honey);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.wn-more-link:hover {
  color: #fff;
}
.wn-loading {
  grid-column: 1/-1;
  text-align: center;
  padding: 32px 0;
  color: rgba(251,241,222,0.40);
  font-size: 0.9rem;
}
@media (max-width: 900px) {
  .wn-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wn-grid { grid-template-columns: 1fr; }
  .whats-new { padding: 56px 0 64px; }
}

/* ───────────────────────────────────────────────────────────────────────────
   PERFORMANCE — Core Web Vitals (NudgeUP-bkygg)
   Skip rendering/layout work for tall below-the-fold sections until they
   scroll near the viewport. This shrinks the initial render cost (faster LCP,
   lower main-thread blocking → better INP) without changing any visuals.
   The hero (#waitlist) is intentionally excluded so the LCP element always
   paints immediately. contain-intrinsic-size reserves an approximate height so
   the scrollbar stays stable (no CLS) and anchor jumps land correctly.
   @supports gates it to browsers that implement it; others render as before.
   ─────────────────────────────────────────────────────────────────────────── */
@supports (content-visibility: auto) {
  .story,
  .how,
  .features-section,
  .pricing,
  .faq-section,
  .whats-new {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE ACCORDION CARD STACK (NudgeUP-xjr1y)
   On desktop (>640px) the accordion wrappers are layout-transparent
   (display:contents / display:none) so the desktop DOM renders byte-for-byte
   identical to before this feature. The visible accordion chrome only appears
   at the mobile breakpoint (≤640px), matching the rest of the landing's mobile
   rules. The hero stack-scene is OUTSIDE every .acc-section, so it is untouched.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Desktop pass-through: wrappers vanish from the box tree, head/dots/hint hide.
   display:contents promotes the section's real content up to .container so all
   existing descendant selectors keep matching exactly as before. */
.acc-shell { display: contents; }
.acc-head { display: none; }
.acc-panel { display: contents; }
.acc-panel-inner { display: contents; }
.m-dots { display: none; }
.m-carousel-hint { display: none; }

@media (max-width: 640px) {
  /* The accordion cards are short and collapse to ~75px when closed, so the
     desktop content-visibility:auto reservation (600px each) would otherwise
     leave huge blank bands before paint. Opt these sections out on mobile so
     the card stack flows tightly with no reserved empty space. */
  section.acc-section {
    content-visibility: visible !important;
    contain-intrinsic-size: auto !important;
  }
  /* The section's own vertical padding collapses; the card supplies the chrome. */
  section.acc-section { padding: 0; }
  section.acc-section > .container { padding: 12px 16px; }
  /* keep the story prose container from re-constraining width inside the card */
  section.acc-section.story > .container.story-inner { max-width: var(--max); }

  .acc-shell {
    display: block;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 16px;
    margin: 10px 0;
    overflow: hidden;
    box-shadow: var(--shadow-warm);
  }
  /* dark sections (pricing) get a dark card on a dark band */
  .pricing .acc-shell {
    background: rgba(251,241,222,0.04);
    border: 1px solid rgba(251,241,222,0.12);
  }
  section.acc-section.pricing { background: var(--cocoa); }
  section.acc-section.story,
  section.acc-section.faq { background: var(--cream); }
  section.acc-section.how,
  section.acc-section.features { background: var(--cream-warm); }
  section.acc-section.features-section { background: var(--cream-warm); }

  .acc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    padding: 18px 18px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink);
    font-variation-settings: 'opsz' 24, 'SOFT' 100;
  }
  .pricing .acc-head { color: var(--cream); }
  .acc-head .acc-eyebrow {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--persimmon-dim); margin-bottom: 5px;
  }
  .pricing .acc-head .acc-eyebrow { color: var(--rose); }
  .acc-head:focus-visible {
    outline: 2px solid var(--persimmon);
    outline-offset: -3px;
    border-radius: 12px;
  }
  .pricing .acc-head:focus-visible { outline-color: var(--honey); }
  .acc-chev {
    flex-shrink: 0; width: 24px; height: 24px; color: var(--persimmon);
    transform: rotate(0deg);
  }
  .pricing .acc-chev { color: var(--rose); }
  .acc-head[aria-expanded="true"] .acc-chev { transform: rotate(180deg); }

  /* panel: collapsed by default via grid-rows 0fr → smooth height to 1fr */
  .acc-panel {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
  }
  .acc-panel.open { grid-template-rows: 1fr; }
  .acc-panel-inner {
    display: block;
    min-height: 0;
    overflow: hidden;
    padding: 0 18px;
    opacity: 0;
  }
  .acc-panel.open .acc-panel-inner { padding: 0 18px 20px; opacity: 1; }

  /* Inside a panel, neutralize the desktop eyebrow/heading — the title is
     surfaced in the head row instead — and left-align everything tightly. */
  .acc-panel-inner > .section-eyebrow,
  .acc-panel-inner > h2,
  .acc-panel-inner > #features-heading,
  .acc-panel-inner > #faq-heading { display: none; }
  .acc-panel-inner > .section-lead {
    margin: 4px 0 18px; font-size: 1rem;
  }
  /* the story prose keeps its own type scale; just trim top spacing */
  .acc-panel-inner .prose .lead { font-size: 1.15rem; }

  /* ── HOW: 4 steps as 2×2 tight grid ── */
  .acc-panel-inner .how-cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px; max-width: none; margin-top: 4px;
  }
  .acc-panel-inner .how-card {
    padding: 14px 13px; border-radius: 14px;
    /* IO-driven reveal classes don't run inside the accordion; force visible */
    opacity: 1; transform: none;
  }
  .acc-panel-inner .how-card-num { width: 30px; height: 30px; line-height: 30px; margin-bottom: 9px; font-size: 0.95rem; }
  .acc-panel-inner .how-card h3 { font-size: 1rem; margin-bottom: 5px; }
  .acc-panel-inner .how-card p { font-size: 0.85rem; line-height: 1.45; }

  /* ── FEATURES: horizontal scroll-snap carousel ── */
  .acc-panel-inner .features-grid {
    display: flex;
    grid-template-columns: none;
    grid-auto-flow: row;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -18px;
    padding: 4px 18px 6px;
  }
  .acc-panel-inner .features-grid::-webkit-scrollbar { display: none; }
  .acc-panel-inner .feature-card,
  .acc-panel-inner .features-grid .feature-card:nth-child(1),
  .acc-panel-inner .features-grid .feature-card:nth-child(2) {
    grid-column: auto;
    flex: 0 0 82%;
    scroll-snap-align: center;
    border-radius: 16px;
    /* keep cards visible regardless of the IO reveal observer */
    opacity: 1; transform: none;
  }
  .m-carousel-hint {
    display: block; font-size: 0.78rem; color: var(--ink-dim); margin: 2px 0 8px;
  }
  .m-dots { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
  .m-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--rule-strong); transition: background .2s, transform .2s;
  }
  .m-dot.active { background: var(--persimmon); transform: scale(1.25); }

  /* pricing inside accordion */
  .acc-panel-inner .price-grid { grid-template-columns: 1fr; gap: 14px; max-width: none; }
  .acc-panel-inner .price-card { padding: 22px 20px; opacity: 1; transform: none; }
  /* dark band: lift price-card text/contrast on cocoa */
  .pricing .acc-panel-inner .price-card { background: rgba(255,252,245,0.05); border-color: rgba(251,241,222,0.12); }
  .pricing .acc-panel-inner .price-card.featured { background: linear-gradient(180deg, rgba(255,252,245,0.08), rgba(255,252,245,0.03)); }
  .pricing .acc-panel-inner .price-tier { color: var(--rose); }
  .pricing .acc-panel-inner .price-amount,
  .pricing .acc-panel-inner .price-card li { color: var(--cream); }
  .pricing .acc-panel-inner .price-amount span,
  .pricing .acc-panel-inner .price-meta,
  .pricing .acc-panel-inner .price-note { color: rgba(251,241,222,0.65); }
  .pricing .acc-panel-inner .btn-secondary { color: var(--cream); border-color: rgba(251,241,222,0.3); }

  /* FAQ nested list fills the card */
  .acc-panel-inner .faq-list { max-width: none; }
  .acc-panel-inner .faq-item { opacity: 1; transform: none; }
}

/* ── ACCORDION ANIMATIONS: motion-safe only ── */
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .acc-panel { transition: grid-template-rows .28s ease; }
  .acc-panel-inner { transition: opacity .26s ease .02s; }
  .acc-chev { transition: transform .26s ease; }
  .acc-head { transition: transform .12s ease, background .15s ease; }
  .acc-head:active { transform: scale(0.98); }

  /* Entrance fade-up as each card scrolls into view. Shells are ALWAYS visible
     at rest (no base opacity:0). JS adds .anim+.in-view to replay a self-
     resolving keyframe that ENDS fully visible, so a card can never get stuck
     invisible even if JS / IntersectionObserver never runs. */
  @keyframes accFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .acc-shell.anim.in-view { animation: accFadeUp .42s ease both; }
}

/* reduced-motion fallback: cards visible, instant expand, no entrance anim */
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .acc-shell { opacity: 1; transform: none; }
  .acc-panel, .acc-panel-inner, .acc-chev { transition: none; }
}
