/* ============================================================
   GROW WITH JOY — shared styles
   Mobile-first. Palette + fonts carried over from the Round 1 page.
   Edit the tokens in :root to retheme every page at once.
   ============================================================ */

/* Fonts: Caprasimo (display), DM Sans (body), DM Mono (labels).
   Loaded from Google Fonts in each page's <head>. */

:root {
  /* Confetti palette */
  --c1: #FF6B6B;  /* coral */
  --c2: #F4B942;  /* mustard */
  --c3: #7BB661;  /* leafy green */
  --c4: #5BA9D6;  /* sky */
  --c5: #B26FB8;  /* plum */

  --bg: #FBF7F0;
  --bg-alt: #F4ECDD;
  --ink: #1F1B16;
  --ink-soft: #5A4F42;
  --card: #ffffff;

  --font-display: 'Caprasimo', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, SFMono-Regular, monospace;

  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-lg: 6px 6px 0 var(--ink);
  --gutter: 20px;
  --max: 1100px;
}

/* ── reset / base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button, input { font: inherit; color: inherit; }

/* ── type helpers ─────────────────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--ink); }
.lede { font-size: 18px; line-height: 1.55; color: var(--ink-soft); }
.small { font-size: 14px; color: var(--ink-soft); }

/* Confetti wordmark: each letter a palette color */
.wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  white-space: nowrap;
}
.wordmark .w span:nth-child(5n+1) { color: var(--c1); }
.wordmark .w span:nth-child(5n+2) { color: var(--c2); }
.wordmark .w span:nth-child(5n+3) { color: var(--c3); }
.wordmark .w span:nth-child(5n+4) { color: var(--c4); }
.wordmark .w span:nth-child(5n+5) { color: var(--c5); }
.wordmark .by {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ── layout ───────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
.section { padding: 48px 0; }
.section-alt { background: var(--bg-alt); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.section-headline {
  font-size: clamp(30px, 7vw, 48px);
  margin-bottom: 20px;
}
.center { text-align: center; }

@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .section { padding: 80px 0; }
}

/* ── nav ──────────────────────────────────────────────────── */
.nav {
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px; gap: 12px;
}

/* ── buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--c2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--c2); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--c2); }
.btn.coral { background: var(--c1); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn.coral:hover { box-shadow: 6px 6px 0 var(--ink); }
.btn.coral:active { box-shadow: 0 0 0 var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn.ghost:hover { background: var(--ink); color: var(--bg); transform: none; }
.btn.full { width: 100%; }
.btn.lg { font-size: 18px; padding: 18px 32px; }

/* ── cards, pills, stickers ───────────────────────────────── */
.card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 24px;
}
.pill {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  background: var(--bg);
  white-space: nowrap;
}
.pill.c1 { background: var(--c1); }
.pill.c2 { background: var(--c2); }
.pill.c3 { background: var(--c3); }
.pill.c4 { background: var(--c4); }
.sticker {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--c2);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-3deg);
}

/* ── photo frames ─────────────────────────────────────────── */
.photo {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--c2);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.portrait { aspect-ratio: 4 / 5; }
.photo.square { aspect-ratio: 1 / 1; }
.photo.round { border-radius: 50%; box-shadow: 3px 3px 0 var(--ink); }

/* ── proof strip (numbers) ────────────────────────────────── */
.proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 12px;
  text-align: center;
}
.proof-num {
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.proof-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}
@media (min-width: 768px) {
  .proof-label { font-size: 12px; }
}

/* ── checklist ────────────────────────────────────────────── */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 16px;
  line-height: 1.5;
}
.checklist li::before {
  content: '\2713';
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--c3);
  font-weight: 800;
  font-size: 14px;
  margin-top: 1px;
}
.checklist li strong { font-weight: 700; }

/* ── marquee strip ────────────────────────────────────────── */
.strip {
  background: var(--ink);
  color: var(--bg);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.strip-track {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: strip-scroll 40s linear infinite;
}
.strip-track span { display: inline-flex; align-items: center; gap: 32px; }
.strip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c2); display: inline-block; }
@keyframes strip-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } }

/* ── Kit form wrapper ─────────────────────────────────────── */
/* .kit-embed wraps the Kit <script> embed. These overrides nudge Kit's
   default "minimal" form styling toward the brand. Adjust once the real
   form is in and you can see how Kit renders it. */
.kit-embed { margin-top: 20px; }
.kit-embed .formkit-form[data-uid] {
  border: 2px solid var(--ink) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  background: var(--card) !important;
  font-family: var(--font-body) !important;
}
.kit-embed .formkit-input {
  border: 2px solid var(--ink) !important;
  border-radius: 12px !important;
  font-size: 16px !important;   /* 16px stops iOS zooming on focus */
  padding: 14px 16px !important;
  color: var(--ink) !important;
}
.kit-embed .formkit-submit,
.kit-embed .formkit-submit span {
  background: var(--ink) !important;
  color: var(--bg) !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 17px !important;
}
.kit-embed .formkit-powered-by-convertkit-container { display: none !important; }

/* Placeholder form shown until the Kit embed is pasted in.
   Same visual language, so the page previews correctly. */
.form-placeholder {
  display: grid;
  gap: 12px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.form-placeholder input {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  background: var(--bg);
}
.form-placeholder input::placeholder { color: #9a8f82; }
.form-placeholder input:focus { outline: 3px solid var(--c4); outline-offset: 2px; }
.form-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-align: center;
  margin: 12px 0 0;
}

/* ── footer ───────────────────────────────────────────────── */
.footer {
  border-top: 2px solid var(--ink);
  padding: 28px 0 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.footer-inner { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.footer a { color: var(--ink); text-decoration: none; border-bottom: 2px dotted var(--ink); }
.footer a:hover { border-bottom-style: solid; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ── utilities ────────────────────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
