/* W.I.L. Cloudflare Pages preview — cream/teal craft mockup */
:root {
  --teal: #009C9C;
  --deep: #0E5A63;
  --wash: #EAF6F5;
  --line: #BFE3E1;
  --cream: #FBF5EA;
  --gold: #C8A55A;
  --ink: #1a1a1a;
  --muted: #4a5555;
  --white: #ffffff;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(14, 90, 99, 0.08);
  --shadow-lg: 0 18px 48px rgba(14, 90, 99, 0.12);
  --max: 1100px;
  --font: "Nunito Sans", "Nunito", system-ui, sans-serif;
  --font-display: "Nunito", "Nunito Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
img { max-width: 100%; height: auto; display: block; }
video, iframe, svg, table { max-width: 100%; }
a { color: var(--deep); }
a:hover { color: var(--teal); }

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}
.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--deep);
  font-weight: 700;
  font-family: var(--font-display);
}
.site-nav .brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 2px solid var(--teal);
  background: var(--teal);
  color: var(--white);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--deep); border-color: var(--deep); color: var(--white); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}
.btn-deep {
  background: var(--deep);
  border-color: var(--deep);
}
.btn-ghost-white {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-ghost-white:hover {
  background: var(--white);
  color: var(--deep);
  border-color: var(--white);
}

/* —— Sections —— */
.section {
  padding: 4.5rem 0;
  position: relative;
}
.section-cream {
  background: linear-gradient(180deg, #fffaf0 0%, var(--cream) 45%, #f7efe0 100%);
}
.section-wash {
  background: linear-gradient(165deg, #f7fcfb 0%, var(--wash) 40%, #dff0ee 100%);
}
.section-white {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfb 100%);
}
.section-cream-teal {
  background: linear-gradient(180deg, var(--cream) 0%, #f3f8f4 35%, var(--wash) 100%);
}
.section-wall {
  background: radial-gradient(ellipse at 50% 20%, #fff8ea 0%, var(--cream) 45%, #f0e6d4 100%);
}

.gold-rule {
  width: 42px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0 auto 0.85rem;
}
.gold-rule.left { margin-left: 0; }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  color: var(--ink);
  text-align: center;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}
.section-title.left { text-align: left; }
.lead {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.lead.left { text-align: left; margin-left: 0; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.4rem;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 0.55rem;
  color: var(--deep);
}
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* —— Hero —— */
.hero {
  padding: 3.25rem 0 4rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.25rem;
  align-items: center;
}
.hero-copy .eyebrow {
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.04em;
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 800;
  color: var(--deep);
  margin: 0 0 0.85rem;
  letter-spacing: 0.04em;
  line-height: 1.05;
}
.hero-logo-inline {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.hero-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 28rem;
  margin: 0 0 1.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.video-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  aspect-ratio: 9 / 14;
  max-height: 520px;
  margin-inline: auto;
  width: min(100%, 340px);
  display: flex;
  flex-direction: column;
}
.video-card .stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(160deg, #f8fcfb 0%, var(--wash) 55%, #d5ebe9 100%);
  position: relative;
}
.video-card .play-label {
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--deep);
  font-size: 0.85rem;
}
.play-btn {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--teal);
  border: 6px solid rgba(255,255,255,0.85);
  box-shadow: 0 8px 24px rgba(0,156,156,0.35);
  display: grid;
  place-items: center;
  color: white;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.play-btn:hover { transform: scale(1.05); background: var(--deep); }
.play-btn svg { margin-left: 4px; }
.video-card .caption {
  padding: 0.85rem 1rem;
  background: #2a2a2a;
  color: #eee;
  font-size: 0.82rem;
  text-align: center;
}

/* —— About —— */
.about-intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.25rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.about-intro strong { color: var(--ink); }
.kindness {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--deep);
  background: linear-gradient(transparent 60%, #CDEEEC 60%);
  padding: 0 0.15rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

.promise {
  background: linear-gradient(145deg, #0f6670 0%, var(--deep) 55%, #0a454c 100%);
  color: var(--white);
  border-radius: 24px;
  padding: 2rem 2.1rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.75rem;
}
.promise .label {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #bfe3e1;
  margin: 0 0 0.85rem;
}
.promise p {
  margin: 0 0 0.9rem;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.95);
}
.promise .sig {
  margin: 1rem 0 0;
  font-style: italic;
  opacity: 0.9;
  font-size: 0.98rem;
}
.foundation-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}
.foundation-note a { font-weight: 700; }

/* —— Where next —— */
.next-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}
.next-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 1.4rem 1rem 1.25rem;
  min-height: 100%;
}
.next-card p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.social-row {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
}
.social-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.social-dot:hover { background: var(--deep); transform: translateY(-2px); }
.social-dot svg { width: 18px; height: 18px; fill: currentColor; }

/* —— Free kit —— */
.kit-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}
.kit-visual .sample {
  margin-top: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.kit-visual .sample img {
  border-radius: 12px;
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
}
.form-shell {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 1.4rem 1.6rem;
}
.form-shell h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--deep);
  font-size: 1.15rem;
}
.form-placeholder {
  border: 2px dashed var(--line);
  border-radius: 14px;
  padding: 1.25rem;
  background: #fafdfd;
  color: var(--muted);
  font-size: 0.92rem;
}
.form-placeholder code {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--deep);
  word-break: break-all;
}
.fake-fields {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
  opacity: 0.85;
  pointer-events: none;
}
.fake-fields label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.fake-fields .field {
  height: 42px;
  border: 1px solid #d7e4e3;
  border-radius: 10px;
  background: #fff;
}

/* —— Download cards —— */
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.75rem;
  max-width: 720px;
  margin-inline: auto;
}
.pair .card {
  text-align: center;
  padding: 1.25rem;
}
.pair .tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.pair img {
  border-radius: 12px;
  margin-inline: auto  ;
  max-width: 240px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.pair .btn { margin-top: 1rem; width: 100%; max-width: 200px; }

/* —— Refill —— */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.side-note {
  margin-top: 1.25rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
.side-note p { margin: 0 0 0.85rem; color: var(--muted); font-size: 0.95rem; }

.print-panel {
  margin: 2rem 0;
  background: linear-gradient(135deg, #f2faf9 0%, var(--wash) 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.75rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: center;
}
.print-panel h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  color: var(--deep);
}
.print-panel p { margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; }
.print-actions { display: flex; flex-direction: column; gap: 0.65rem; align-items: stretch; }
.print-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.75rem; }

/* —— Newsletter / Contact —— */
.narrow {
  max-width: 520px;
  margin-inline: auto;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.callout {
  border-left: 4px solid var(--gold);
  padding: 0.85rem 1rem;
  background: rgba(200,165,90,0.08);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 1.25rem;
}

/* —— Wall —— */
.wall-inner { text-align: center; max-width: 40rem; margin-inline: auto; }
.wall-inner p { color: var(--muted); }
.coming {
  margin-top: 1.75rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.1rem 2.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.coming .t1 { color: var(--teal); font-weight: 800; font-size: 1.15rem; }
.coming .t2 { color: var(--gold); font-weight: 800; letter-spacing: 0.16em; font-size: 0.78rem; }
.email-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-weight: 700;
  color: var(--deep);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
}
.email-chip:hover { border-color: var(--teal); }

/* —— Footer —— */
.site-footer {
  background: var(--deep);
  color: rgba(255,255,255,0.9);
  padding: 2.5rem 0 2rem;
  text-align: center;
}
.site-footer img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 1.1rem;
  background: white;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.45);
  display: grid;
  place-items: center;
  color: white;
  text-decoration: none;
}
.footer-social a:hover { background: rgba(255,255,255,0.12); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.site-footer .fine {
  font-size: 0.8rem;
  opacity: 0.7;
  margin: 0;
}

/* —— QR pages —— */
.qr-page {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--wash) 0%, var(--cream) 100%);
  padding: 2rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.qr-page .logo { width: 88px; height: 88px; border-radius: 50%; margin-bottom: 1.5rem; }
.qr-page .video-card { width: min(100%, 300px); margin-bottom: 1.5rem; }
.qr-page .body {
  max-width: 360px;
  text-align: center;
}
.qr-page .body p { color: var(--muted); }
.qr-page .actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.25rem;
  width: 100%;
}
.qr-page .actions .btn { width: 100%; }

/* —— Responsive —— */
@media (max-width: 900px) {
  .wrap,
  .site-nav .inner { width: min(100% - 2rem, var(--max)); }
  .hero-grid,
  .kit-grid,
  .split,
  .print-panel,
  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .kit-grid { gap: 1.35rem; }
  .next-grid { grid-template-columns: 1fr 1fr; }
  .video-card { max-height: none; aspect-ratio: 3/4; width: min(100%, 320px); }
  .hero { padding: 2.5rem 0 3rem; }
  .hero-copy h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  .section { padding: 3.5rem 0; }
}

@media (max-width: 640px) {
  .wrap,
  .site-nav .inner { width: min(100% - 1.5rem, var(--max)); }

  /* Nav: brand row + compact 2×2 touch targets */
  .site-nav .inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.65rem 0 0.85rem;
  }
  .site-nav .brand img { width: 40px; height: 40px; }
  .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
  }
  .nav-links .btn {
    width: 100%;
    min-height: 44px;
    font-size: 0.65rem;
    padding: 0.55rem 0.4rem;
    letter-spacing: 0.03em;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }

  .about-grid,
  .pair,
  .next-grid { grid-template-columns: 1fr; gap: 0.9rem; }

  .section { padding: 2.75rem 0; }
  .hero { padding: 1.75rem 0 2.25rem; }
  .hero-logo-inline { width: 64px; height: 64px; }
  .hero-copy p { font-size: 1rem; margin-bottom: 1.15rem; }
  .hero-actions { gap: 0.6rem; }
  .hero-actions .btn { min-height: 44px; }

  .section-title { font-size: clamp(1.4rem, 5.5vw, 1.85rem); }
  .lead { font-size: 1rem; margin-bottom: 1.5rem; }
  .about-intro { font-size: 1rem; margin-bottom: 1.5rem; }

  .card { padding: 1.2rem 1.1rem; }
  .promise {
    padding: 1.35rem 1.2rem;
    border-radius: 18px;
    margin-bottom: 1.35rem;
  }
  .promise p { font-size: 1rem; line-height: 1.65; }

  .form-shell { padding: 1.2rem 1.05rem 1.35rem; }
  .form-placeholder { padding: 1rem; }
  .fake-fields .field { height: 44px; }

  .kit-visual .sample { padding: 0.85rem; }
  .kit-visual .sample img { max-width: 100%; }
  .pair .btn,
  .next-card .btn,
  .print-actions .btn,
  .form-shell .btn,
  .hero-actions .btn { max-width: none; }
  .pair .btn { width: 100%; max-width: none; }
  .next-card { padding: 1.2rem 1rem 1.15rem; }
  .next-card .btn {
    width: 100%;
    white-space: normal;
    min-height: 44px;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }

  .print-panel { padding: 1.25rem; gap: 1.1rem; }
  .side-note { padding: 1rem; }

  .btn {
    white-space: normal;
    min-height: 44px;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    padding: 0.65rem 1rem;
  }

  .video-card { width: min(100%, 300px); }
  .play-btn { width: 72px; height: 72px; }

  /* QR landings: comfortable phone margins, full-width CTAs */
  .qr-page { padding: 1.5rem 1rem max(2.5rem, env(safe-area-inset-bottom)); }
  body.page-mode main > .section.is-active.qr-landing {
    padding: 1.5rem 1rem max(2.5rem, env(safe-area-inset-bottom));
  }
  .qr-landing .qr-inner { width: min(100%, 100%); padding: 0; }
  .qr-landing .qr-inner .logo { width: 76px; height: 76px; margin-bottom: 1.15rem; }
  .qr-landing .qr-inner .video-card { width: min(100%, 280px); }
  .qr-landing .qr-inner .actions { gap: 0.55rem; margin-top: 1.1rem; }
  .qr-landing .qr-inner .actions .btn {
    width: 100%;
    min-height: 44px;
    white-space: normal;
  }

  .coming { padding: 1rem 1.5rem; width: 100%; max-width: 20rem; }
  .site-footer { padding: 2rem 0 max(1.75rem, env(safe-area-inset-bottom)); }
}

@media (max-width: 480px) {
  .wrap,
  .site-nav .inner { width: min(100% - 1.25rem, var(--max)); }
  .nav-links .btn {
    font-size: 0.6rem;
    padding: 0.5rem 0.3rem;
    letter-spacing: 0.02em;
  }
  .hero-copy h1 { font-size: 2.15rem; }
  .section { padding: 2.35rem 0; }
  .promise { padding: 1.2rem 1rem; }
  .promise p { font-size: 0.95rem; }
  .card { padding: 1.05rem 0.95rem; }
  .form-shell { padding: 1.05rem 0.9rem 1.2rem; }
  .btn { font-size: 0.68rem; padding: 0.6rem 0.85rem; }
}


/* —— Page mode (Carrd-like hash sections) —— */
/* Nav hide is toggled in JS for QR hashes only */
body.page-mode.hide-footer .site-footer { display: none !important; }
body.page-mode main > .section { display: none !important; }
body.page-mode main > .section.is-active {
  display: block !important;
  min-height: calc(100vh - 0px);
}
body.page-mode main > .section.is-active.qr-landing {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, var(--wash) 0%, var(--cream) 100%);
  padding: 2rem 1.25rem 3rem;
}
body.page-mode:not(.hide-footer) main > .section.is-active.qr-landing {
  min-height: calc(100vh - 180px);
}
.qr-landing .qr-inner {
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.qr-landing .qr-inner .logo {
  width: 88px; height: 88px; border-radius: 50%; margin-bottom: 1.5rem;
}
.qr-landing .qr-inner .video-card { width: min(100%, 300px); margin-bottom: 1.5rem; }
.qr-landing .qr-inner .body { max-width: 360px; }
.qr-landing .qr-inner .body p { color: var(--muted); }
.qr-landing .qr-inner .actions {
  display: flex; flex-direction: column; gap: 0.65rem;
  margin-top: 1.25rem; width: 100%;
}
.qr-landing .qr-inner .actions .btn { width: 100%; }
.qr-heading {
  margin: 0.15rem 0;
  font-weight: 700;
  color: var(--deep);
  font-size: 1.15rem;
  font-family: var(--font-display);
  line-height: 1.35;
}
