/* =========================================================================
   Pass the Note — marketing site
   Aesthetic: tactile "paper & notes." Cream canvas + navy ink, coral as the
   bold accent. Distinctiveness via texture, rotation, doodles, and staggered
   motion — font stays Poppins per the brand spec (docs/brand/passthenote-brand.md).
   ========================================================================= */

:root {
  /* Brand palette (from the brand spec) */
  --cream:       #FFF9F2;
  --navy:        #18314F;
  --coral:       #FF7A59;
  --coral-fold:  #FFAB91;
  --coral-soft:  #FFE7DE;
  --sky:         #5DA9E9;
  --mint:        #6FCF97;
  --mint-ink:    #2F8A5F;  /* deepened mint for AA text */
  --yellow:      #FFD166;
  --mist:        #EEF5FA;

  --ink-soft:    #54637A;
  --paper-line:  #EDE3D5;

  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --maxw: 1140px;

  --shadow-card: 0 18px 40px -22px rgba(24, 49, 79, .35);
  --shadow-soft: 0 8px 24px -16px rgba(24, 49, 79, .45);
  --radius: 18px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}
/* subtle paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: .04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.visually-hidden, .skip-link:not(:focus):not(:focus-within) {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 600;
}

:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

/* ---------- layout helpers ---------- */
.section { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 9vw, 110px) 22px; }
.section__head { max-width: 640px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section__head h2 { font-size: clamp(1.7rem, 4.2vw, 2.7rem); font-weight: 800; }
.kicker {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral); margin-bottom: 10px;
}
.kicker--light { color: var(--yellow); }
.ink-coral {
  color: var(--navy);
  background-image: linear-gradient(var(--coral), var(--coral));
  background-repeat: no-repeat; background-position: 0 92%; background-size: 100% .34em;
  border-radius: 2px; padding: 0 .04em;
}

/* ---------- buttons ---------- */
.btn {
  font: inherit; font-weight: 700; cursor: pointer; border: 0;
  border-radius: 999px; padding: 14px 26px; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn--coral { background: var(--coral); color: var(--navy); box-shadow: var(--shadow-soft); }  /* navy label = WCAG AA on coral */
.btn--coral:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(255,122,89,.7); }
.btn--coral:active { transform: translateY(0); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px clamp(16px, 4vw, 34px);
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--navy) 8%, transparent);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { filter: drop-shadow(0 4px 8px rgba(255,122,89,.28)); }
.brand__word { font-weight: 800; font-size: 1.32rem; letter-spacing: -.02em; color: var(--navy); }
.brand__word-accent { color: var(--coral); }
.brand__word--light { color: #fff; font-size: 1.5rem; }

.site-nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 26px; }
.nav-menu a { text-decoration: none; font-weight: 600; color: var(--navy); transition: color .15s; }
.nav-menu a:hover { color: var(--coral); }
.nav-cta {
  background: var(--navy); color: #fff !important; padding: 9px 18px; border-radius: 999px;
}
.nav-cta:hover { background: #0f2438; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(44px, 7vw, 92px) 22px clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--paper-line);
  padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow-soft);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 30%, transparent); }
.hero__title { font-size: clamp(2.4rem, 6.4vw, 4.1rem); font-weight: 800; margin: 18px 0 16px; }
.hero__lede { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 30em; }

.reassure { font-size: .82rem; color: var(--ink-soft); margin-top: 10px; }

/* waitlist form */
.waitlist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; max-width: 460px; }
.waitlist__input {
  flex: 1 1 220px; min-width: 0; font: inherit; color: var(--navy);
  padding: 13px 18px; border-radius: 999px; border: 1.5px solid var(--paper-line);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.waitlist__input::placeholder { color: #9aa6b5; }
.waitlist__input:focus-visible { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.waitlist__note { flex-basis: 100%; min-height: 1.1em; font-size: .86rem; font-weight: 600; margin-top: 2px; }
.waitlist__note.is-ok { color: var(--mint-ink); }
.waitlist__note.is-err { color: #C0392B; }
.waitlist--lg { margin-inline: auto; }

/* hero art */
.hero__art { position: relative; min-height: 340px; }
/* Soft "stage" behind the bubbles so the airy negative space reads as
   intentional rather than blank (esp. the upper-left). */
.hero__art::before {
  content: "";
  position: absolute; inset: 2% -3%; z-index: 0; border-radius: 32px;
  background:
    radial-gradient(70% 60% at 30% 28%, color-mix(in srgb, var(--sky) 16%, transparent), transparent 72%),
    radial-gradient(85% 75% at 72% 68%, var(--mist), transparent 75%);
}
.hero__art > .bubble, .hero__art > .note-card { z-index: 1; }
.bubble {
  position: relative; max-width: 250px; padding: 13px 16px; border-radius: 18px;
  font-weight: 500; font-size: .96rem; box-shadow: var(--shadow-card);
}
.bubble__name { display: block; font-size: .72rem; font-weight: 700; color: var(--sky); margin-bottom: 2px; }
.bubble--in { background: #fff; border-bottom-left-radius: 5px; }
.bubble--out {
  background: var(--navy); color: #fff; margin-left: auto; margin-top: 18px;
  border-bottom-right-radius: 5px; display: inline-flex; align-items: flex-end; gap: 8px;
}
.bubble--out { position: absolute; right: 0; bottom: 8px; }
.bubble--in { position: absolute; left: 0; top: 6px; }
.bubble__check { background: var(--mint); border-radius: 50%; padding: 3px; display: inline-grid; place-items: center; }

.note-card {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%,-50%) rotate(-7deg);
  width: 168px; background: #fff; border-radius: 16px; padding: 22px 18px 16px;
  text-align: center; box-shadow: var(--shadow-card);
  animation: floaty 6s ease-in-out infinite;
}
.note-card svg { margin: 0 auto; }
.note-card__label {
  margin-top: 8px; font-size: .76rem; font-weight: 700; color: var(--mint-ink);
  text-transform: uppercase; letter-spacing: .06em;
}
.note-card__tape {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: 64px; height: 20px; background: color-mix(in srgb, var(--yellow) 75%, transparent);
  border-radius: 3px;
}
.doodle { position: absolute; z-index: 2; }
.doodle--star { top: -6px; right: 18%; animation: floaty 5s ease-in-out infinite; }
.doodle--heart { bottom: 2%; left: 6%; animation: floaty 7s ease-in-out infinite .4s; }
.doodle--squiggle { bottom: 30%; right: 2%; }

@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-7deg); } 50% { transform: translateY(-9px) rotate(-7deg); } }
.doodle--star, .doodle--heart { animation-name: floaty2; }
@keyframes floaty2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- how it works ---------- */
.how { padding-top: clamp(20px, 3vw, 40px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative; background: #fff; border-radius: var(--radius);
  padding: 34px 24px 26px; box-shadow: var(--shadow-card);
  border: 1px solid color-mix(in srgb, var(--navy) 6%, transparent);
}
.step:nth-child(1) { transform: rotate(-1.2deg); }
.step:nth-child(2) { transform: rotate(.6deg); }
.step:nth-child(3) { transform: rotate(-.6deg); }
.step:hover { transform: rotate(0) translateY(-4px); transition: transform .25s ease; }
.step__tape {
  position: absolute; top: -11px; left: 28px; width: 58px; height: 22px;
  background: color-mix(in srgb, var(--coral) 60%, transparent); border-radius: 3px; transform: rotate(-4deg);
}
.step__num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--coral-soft); color: var(--coral); font-weight: 800; margin-bottom: 14px;
}
.step h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--ink-soft); }

/* ---------- value quartet ---------- */
.values { background: linear-gradient(180deg, transparent, var(--mist) 40%, var(--mist) 60%, transparent); border-radius: 40px; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value {
  background: #fff; border-radius: var(--radius); padding: 28px 22px;
  box-shadow: var(--shadow-card); transition: transform .2s ease;
}
.value:hover { transform: translateY(-5px); }
.value__icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 15px;
  color: var(--c); background: var(--cs); margin-bottom: 14px;
}
.value h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 6px; }
.value p { color: var(--ink-soft); font-size: .96rem; }

/* ---------- split: parents / kids ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  align-items: stretch;
}
.split__panel { border-radius: 26px; padding: clamp(30px, 4vw, 52px); }
.split__panel h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; margin-bottom: 16px; }
.split__panel--parents { background: #fff; box-shadow: var(--shadow-card); border: 1px solid var(--paper-line); }
.ticks { display: grid; gap: 14px; margin-top: 6px; }
.ticks li { position: relative; padding-left: 36px; color: var(--ink-soft); font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ticks li em { color: var(--navy); font-style: italic; font-weight: 600; }
.split__panel--kids {
  background: radial-gradient(120% 120% at 80% 10%, #21456b, var(--navy));
  color: #fff; position: relative; overflow: hidden;
}
.split__panel--kids .split__lede { color: rgba(255,255,255,.82); margin-bottom: 22px; }
.sticker-row { display: flex; gap: 12px; flex-wrap: wrap; }
.sticker {
  width: 50px; height: 50px; display: grid; place-items: center; font-size: 1.5rem;
  background: rgba(255,255,255,.1); border-radius: 14px; backdrop-filter: blur(4px);
}

/* ---------- trust strip ---------- */
.trust { position: relative; z-index: 1; background: var(--navy); color: #fff; }
.trust__grid {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(36px, 5vw, 56px) 22px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
}
.trust__grid li { display: grid; gap: 4px; padding-left: 16px; border-left: 3px solid var(--coral); }
.trust__grid strong { font-size: 1.04rem; font-weight: 700; }
.trust__grid span { color: rgba(255,255,255,.72); font-size: .9rem; }

/* ---------- waitlist CTA ---------- */
.cta__card {
  position: relative; max-width: 720px; margin: 0 auto; text-align: center;
  background: linear-gradient(160deg, #fff, var(--coral-soft));
  border-radius: 28px; padding: clamp(36px, 5vw, 60px) clamp(24px, 4vw, 56px);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.cta__card h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; }
.cta__card p { color: var(--ink-soft); margin: 10px auto 4px; max-width: 36em; }
.cta__doodle { margin: 0 auto 8px; }

/* ---------- footer ---------- */
.site-footer {
  position: relative; z-index: 1; background: #0f2438; color: #fff;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 22px; max-width: 100%; padding: clamp(34px, 5vw, 52px) clamp(22px, 6vw, 60px);
}
.tagline { color: rgba(255,255,255,.6); font-size: .9rem; margin-top: 4px; }
.site-footer__social { display: flex; gap: 22px; }
.site-footer__social a { text-decoration: none; font-weight: 600; color: rgba(255,255,255,.85); transition: color .15s; }
.site-footer__social a:hover { color: var(--coral); }
.site-footer__legal { display: flex; align-items: center; gap: 18px; color: rgba(255,255,255,.55); font-size: .85rem; }
.site-footer__legal a { color: rgba(255,255,255,.7); text-decoration: none; }
.site-footer__legal a:hover { text-decoration: underline; }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0s);
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  /* Mobile: the desktop scatter is absolutely-positioned and overlaps in the
     narrow box — switch to a tidy stacked conversation instead. */
  .hero__art {
    order: -1; min-height: 0; max-width: 340px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 12px;
  }
  .hero__art .doodle { display: none; }
  .bubble--in, .bubble--out { position: static; max-width: 90%; margin: 0; }
  .bubble--in { align-self: flex-start; }
  .bubble--out { align-self: flex-end; }
  .note-card { position: static; transform: rotate(-3deg); margin: 2px auto; animation: none; }
  .steps, .value-grid, .trust__grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }

  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0;
    padding: 8px; cursor: pointer;
  }
  .nav-toggle span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav-menu {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--cream); border-bottom: 1px solid var(--paper-line);
    padding: 12px 22px 20px; box-shadow: var(--shadow-soft);
    clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none; transition: .22s ease;
  }
  .nav-menu.is-open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: 10px 4px; }
  .nav-cta { text-align: center; margin-top: 6px; }
}
@media (max-width: 520px) {
  .steps, .value-grid, .trust__grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .note-card, .doodle { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- honeypot (spam trap; hidden from humans) ---------- */
.hp {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; opacity: 0; overflow: hidden;
}

/* ---------- legal pages (privacy / terms) ---------- */
.legal-bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(20px, 5vw, 48px);
  background: color-mix(in srgb, var(--cream) 85%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--paper-line);
}
.legal-bar__back { text-decoration: none; font-weight: 600; color: var(--ink-soft); }
.legal-bar__back:hover { color: var(--coral); }
.legal { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) 22px 70px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 8px; }
.legal h2 { font-size: 1.2rem; font-weight: 700; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--navy); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 8px 0; padding-left: 22px; list-style: disc; display: grid; gap: 6px; }
.legal a { color: var(--coral); }
.legal-meta { color: var(--ink-soft); font-size: .92rem; margin-bottom: 22px; }
.legal-draft {
  background: #FFF3D6; border: 1px solid #F2D483; color: #7A5A12;
  border-radius: 12px; padding: 14px 16px; margin-bottom: 26px;
}
.legal-draft code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.legal-foot {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  max-width: 760px; margin: 0 auto; padding: 20px 22px; border-top: 1px solid var(--paper-line);
  color: var(--ink-soft); font-size: .86rem;
}
.legal-foot a { color: var(--ink-soft); text-decoration: none; }
.legal-foot a:hover { color: var(--coral); }

/* ---------- safe-message-process infographic (How it works) ---------- */
.steps--process .step {
  transform: none; border-top: 3px solid var(--c); padding-top: 26px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.steps--process .step:hover { transform: translateY(-4px); }
.step--sky   { --c: #5DA9E9; --cs: #E7F2FB; --cd: #2C79B6; }
.step--mint  { --c: #6FCF97; --cs: #E6F6ED; --cd: #2F8A5F; }
.step--coral { --c: #FF7A59; --cs: #FFE7DE; --cd: #C24A2C; }
.steps--process .step__num {
  position: absolute; top: 14px; right: 14px; margin: 0;
  width: 26px; height: 26px; font-size: .8rem; background: var(--cs); color: var(--cd);
}
.steps--process .step__icon {
  width: 54px; height: 54px; border-radius: 16px; margin-bottom: 14px;
  display: grid; place-items: center; background: var(--cs); color: var(--cd);
}
.steps--process .step h3 { font-size: 1.14rem; margin-bottom: 6px; }
.steps--process .step p { color: var(--ink-soft); margin-bottom: 16px; }
.step__chip {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  background: var(--cs); color: var(--cd);
  font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px;
}
.steps--process .step:not(:last-child)::after {
  content: "\2192"; position: absolute; top: 50%; right: -15px; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 700; color: #C7CFDA; z-index: 2;
}

.priority {
  width: fit-content; max-width: 100%; margin: 34px auto 0;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
  background: #fff; border: 1px solid var(--paper-line); border-radius: 999px;
  padding: 12px 24px; box-shadow: var(--shadow-card);
  font-size: .92rem; color: var(--ink-soft); text-align: center;
}
.priority strong { color: var(--navy); }
.priority__lock { color: var(--coral); display: inline-grid; place-items: center; }

@media (max-width: 860px) { .steps--process .step:not(:last-child)::after { display: none; } }
@media (max-width: 520px) { .priority { border-radius: 18px; } }
