/* Germ Chase website. Warm cream pages, soft clay cards, the app's DynaPuff for headings. */

@font-face {
  font-family: "DynaPuff";
  src: url("/fonts/DynaPuff.woff2") format("woff2"), url("/fonts/DynaPuff.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --cream: #fff6ea;
  --cream-2: #fbeedc;
  --paper: #fffdf8;
  --ink: #2a4672;
  --navy: #31527f;
  --muted: #61739a;
  --coral: #ef6f6c;
  --coral-deep: #d9524f;
  --sun: #ffc93c;
  --leaf: #4fb488;
  --butter: #fff1c7;
  --mint: #d8f2e6;
  --sky: #dfe7ff;
  --night: #1e3359;
  --night-2: #283f6b;
  --shadow: 0 18px 40px -18px rgba(49, 82, 127, 0.35), 0 4px 10px -4px rgba(49, 82, 127, 0.15);
  --radius: 32px;
  --max: 1160px;
  --head: "DynaPuff", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 650;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0;
}
h1 em, h2 em { font-style: normal; color: var(--coral); }
h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.05; }
h3 { font-size: 26px; line-height: 1.15; }
p { margin: 0; }

.section-lede { font-size: 20px; color: var(--muted); max-width: 620px; margin-top: 18px; }
.fine { font-size: 15px; color: var(--muted); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--max), calc(100% - 28px));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 12px 10px 22px;
  border-radius: 999px;
  background: rgba(255, 252, 245, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 10px 30px -14px rgba(49, 82, 127, 0.35);
}
.nav-logo img { height: 40px; display: block; }
.nav-links { display: flex; gap: 28px; margin: 0 auto; font-weight: 650; font-size: 16px; }
.nav-links a { text-decoration: none; color: var(--navy); opacity: 0.85; }
.nav-links a:hover { opacity: 1; }

/* The App Store button (a "coming soon" pill until the app is live). */
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: 16px;
  background: #101418;
  color: #fff;
  text-decoration: none;
  line-height: 1.05;
  font-weight: 650;
  font-size: 22px;
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.5);
}
.store svg { width: 26px; height: 26px; fill: currentColor; }
.store span { display: flex; flex-direction: column; }
.store small { font-size: 12px; font-weight: 500; opacity: 0.8; }
.store.small { padding: 9px 16px; font-size: 15px; border-radius: 999px; gap: 8px; }
.store.small svg { width: 16px; height: 16px; }

.text-link { font-weight: 700; color: var(--navy); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 15px; font-weight: 600; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before {
  content: "";
  width: 18px; height: 18px; flex: none;
  border-radius: 50%;
  background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Phones ---------- */
.phone {
  width: 300px;
  border-radius: 46px;
  padding: 9px;
  background: linear-gradient(160deg, #ffffff, #efe6da);
  box-shadow: 0 40px 60px -30px rgba(30, 51, 89, 0.55), 0 8px 18px -8px rgba(30, 51, 89, 0.3), inset 0 2px 0 #fff;
}
.phone img { display: block; width: 100%; height: auto; border-radius: 38px; }
.phone.small { width: 250px; border-radius: 40px; }
.phone.small img { border-radius: 32px; }
.tilt-left { transform: rotate(-4deg); }
.tilt-right { transform: rotate(4deg); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 150px 24px 70px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}
.hero h1 { font-size: clamp(48px, 6.6vw, 88px); line-height: 0.98; }
.lede { font-size: 21px; color: var(--muted); margin-top: 24px; max-width: 520px; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 34px; flex-wrap: wrap; }

.hero-stage { position: relative; height: 660px; display: grid; place-items: center; }
.blob {
  position: absolute; inset: 40px 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #cfe0ff 0%, #e2dcff 45%, rgba(255, 246, 234, 0) 72%);
}
.hero-stage .phone { position: relative; z-index: 2; }
.float { position: absolute; z-index: 3; animation: bob 4.6s ease-in-out infinite; filter: drop-shadow(0 12px 14px rgba(49, 82, 127, 0.25)); }
.germ { width: 92px; }
.g1 { top: 70px; left: 16px; animation-delay: -1s; }
.g2 { top: 300px; right: -6px; width: 84px; animation-delay: -2.4s; }
.g3 { bottom: 120px; left: 0; width: 76px; animation-delay: -3.3s; }
.sticker { width: 64px; }
.s1 { top: 30px; right: 70px; animation-delay: -0.6s; }
.s2 { bottom: 60px; right: 40px; animation-delay: -1.8s; }
.mascot { width: 150px; bottom: 10px; left: 50px; z-index: 4; animation-duration: 5.4s; }
.chip {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
  font-size: 13px; color: var(--muted); font-weight: 600;
  animation: bob 5s ease-in-out infinite;
}
.chip b { font-family: var(--head); font-size: 26px; color: var(--navy); font-weight: 650; }
.chip img { width: 30px; }
.c1 { top: 150px; left: -10px; flex-direction: column; align-items: flex-start; gap: 0; animation-delay: -2s; }
.c2 { bottom: 190px; right: -18px; animation-delay: -3.5s; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

/* ---------- Stats ---------- */
.stats {
  max-width: var(--max);
  margin: 0 auto 90px;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.stats div {
  background: var(--paper);
  border-radius: 26px;
  padding: 24px 24px 22px;
  box-shadow: 0 10px 24px -18px rgba(49, 82, 127, 0.35);
}
.stats b { display: block; font-family: var(--head); font-size: 44px; font-weight: 650; color: var(--coral); line-height: 1; }
.stats span { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; font-weight: 600; }

/* ---------- Story (how it works) ---------- */
.story { position: relative; background: var(--night); color: #e8eeff; }
.story h2, .story h3 { color: #fff; }
.story h2 em { color: var(--sun); }
.wave { height: 70px; background: var(--cream); }
.wave.top { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v28c-120 26-240 40-360 30S840 18 720 22 480 64 360 64 120 40 0 28z'/%3E%3C/svg%3E") top / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v28c-120 26-240 40-360 30S840 18 720 22 480 64 360 64 120 40 0 28z'/%3E%3C/svg%3E") top / 100% 100% no-repeat; }
.wave.bottom { transform: scaleY(-1); }
.story-inner { max-width: var(--max); margin: 0 auto; padding: 60px 24px 80px; }
.story-inner > h2 { max-width: 760px; }
.steps { margin-top: 70px; display: grid; gap: 110px; }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.step:nth-child(even) .step-copy { order: 2; }
.step h3 { font-size: clamp(32px, 3.6vw, 46px); margin: 12px 0 18px; }
.step p { color: #c7d3f2; font-size: 19px; max-width: 470px; }
.step .step-fact { margin-top: 26px; font-weight: 700; color: #e8eeff; display: flex; align-items: center; gap: 14px; }
.step-fact b { font-family: var(--head); font-size: 38px; color: var(--sun); font-weight: 650; }
.step-shot { display: grid; place-items: center; }
.step-shot .phone { background: linear-gradient(160deg, #3b5687, #22385f); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.6); }

/* ---------- Features (bento) ---------- */
.features { max-width: var(--max); margin: 0 auto; padding: 110px 24px 40px; }
.features > h2 { max-width: 760px; }
.bento { margin-top: 50px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 16px 34px -24px rgba(49, 82, 127, 0.45);
  display: flex; flex-direction: column; gap: 12px;
  overflow: hidden;
}
.card p { color: var(--muted); font-size: 17px; }
.card.big { grid-column: span 2; grid-row: span 2; flex-direction: row; gap: 30px; align-items: center; background: linear-gradient(150deg, #fffdf8, #f6eedf); }
.card.big .card-copy { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.card.big h3 { font-size: 34px; }
.card.big .ticks { flex-direction: column; margin-top: 10px; font-size: 16px; }
.card-art { flex: none; }
.card.butter { background: var(--butter); }
.card.mint { background: var(--mint); }
.card.sky { background: var(--sky); }
.cast { display: flex; gap: 4px; margin-top: auto; padding-top: 8px; align-items: flex-end; }
.cast img { width: 25%; filter: drop-shadow(0 8px 8px rgba(49, 82, 127, 0.2)); }
.row-art { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin-top: auto; padding-top: 8px; }
.row-art img { width: 30%; filter: drop-shadow(0 8px 10px rgba(49, 82, 127, 0.2)); }
.row-art img.wide { width: 46%; }

/* ---------- Worlds ---------- */
.worlds {
  margin-top: 90px;
  padding: 100px 0 120px;
  background: linear-gradient(180deg, var(--cream) 0%, #dbe6ff 18%, #e4dcff 82%, var(--cream) 100%);
  overflow: hidden;
}
.worlds-head { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.worlds-head h2 em { color: var(--coral); }
.island-belt { margin-top: 60px; }
.belt-track { display: flex; gap: 26px; width: max-content; animation: drift 80s linear infinite; padding: 20px 0; }
.belt-track img { width: 220px; filter: drop-shadow(0 22px 20px rgba(49, 82, 127, 0.22)); }
.belt-track img:nth-child(odd) { transform: translateY(26px); }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Parents ---------- */
.parents { max-width: var(--max); margin: 0 auto; padding: 110px 24px 40px; }
.parents-head h2 { max-width: 780px; }
.parent-grid { margin-top: 50px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pcard { background: var(--paper); border-radius: 28px; padding: 28px 24px; box-shadow: 0 16px 34px -24px rgba(49, 82, 127, 0.45); }
.pcard img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(49, 82, 127, 0.2)); }
.pcard h3 { font-size: 21px; margin: 14px 0 10px; }
.pcard p { color: var(--muted); font-size: 16px; }
.split {
  margin-top: 26px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 30px;
  background: linear-gradient(140deg, #ffe9df, #fff3d6);
  border-radius: 40px;
  padding: 50px 56px;
  overflow: hidden;
}
.split h3 { font-size: 36px; }
.split p { margin-top: 16px; color: var(--muted); font-size: 18px; }
.split .fine { margin-top: 18px; }
.split-art { position: relative; height: 420px; }
.split-art .phone { position: absolute; width: 210px; }
.split-art .phone img { border-radius: 30px; }
.split-art .phone:first-child { right: 10px; top: 0; z-index: 2; }
.split-art .phone.back { left: 10px; top: 50px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; padding: 110px 24px 40px; }
.faq h2 { text-align: center; }
.faq-list { margin-top: 40px; display: grid; gap: 12px; }
.faq details { background: var(--paper); border-radius: 24px; padding: 4px 26px; box-shadow: 0 12px 26px -22px rgba(49, 82, 127, 0.5); }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--head); font-weight: 600; font-size: 20px; color: var(--navy);
  padding: 20px 40px 20px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: var(--cream-2);
  display: grid; place-items: center; font-size: 22px; line-height: 32px; text-align: center; color: var(--navy);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* ---------- Call to action ---------- */
.cta { padding: 90px 24px 110px; }
.cta-card {
  max-width: 900px; margin: 0 auto; text-align: center;
  background: linear-gradient(160deg, #cfe0ff, #e6dcff);
  border-radius: 44px;
  padding: 70px 30px 56px;
  position: relative;
}
.cta-mascot { width: 140px; margin-top: -130px; filter: drop-shadow(0 16px 16px rgba(49, 82, 127, 0.3)); animation: bob 5s ease-in-out infinite; }
.cta-card h2 { margin-top: 10px; }
.cta-card > p { color: var(--muted); font-size: 20px; max-width: 520px; margin: 16px auto 28px; }
.cta-card .fine { margin-top: 18px; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 40px 24px 60px; color: var(--muted); font-size: 15px; }
.footer-logo { height: 54px; }
.footer nav { display: flex; justify-content: center; gap: 26px; margin: 18px 0; font-weight: 700; }
.footer nav a { text-decoration: none; color: var(--navy); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float, .chip, .belt-track, .cta-mascot { animation: none; }
  .js .reveal { transform: none; transition: opacity 0.3s ease; }
}

/* ---------- Small screens ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav { justify-content: space-between; }
  .hero { grid-template-columns: 1fr; padding-top: 120px; text-align: left; }
  .hero-stage { height: 600px; }
  .step, .split { grid-template-columns: 1fr; }
  .step:nth-child(even) .step-copy { order: 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card.big { grid-column: span 2; grid-row: auto; flex-direction: column; }
  .parent-grid { grid-template-columns: 1fr 1fr; }
  .split { padding: 40px 28px; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .hero-stage { height: 540px; }
  .phone { width: 250px; }
  .germ { width: 70px; }
  .mascot { width: 110px; left: 4px; }
  .c1 { left: -4px; top: 120px; }
  .c2 { right: -4px; }
  .stats { grid-template-columns: 1fr; }
  .stats b { font-size: 36px; }
  .bento, .parent-grid { grid-template-columns: 1fr; }
  .card.big { grid-column: auto; }
  .belt-track img { width: 160px; }
  .split-art { height: 360px; }
  .split-art .phone { width: 170px; }
  .cta-card { padding: 60px 22px 46px; }
}

/* ---------- Text pages (privacy, terms, support) ---------- */
.page { max-width: 780px; margin: 0 auto; padding: 150px 24px 40px; }
.page-head { text-align: left; }
.page-head img { width: 110px; filter: drop-shadow(0 12px 14px rgba(49, 82, 127, 0.25)); }
.page-head h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.02; margin-top: 10px; }
.page-head p { color: var(--muted); font-size: 19px; margin-top: 16px; }
.page-body { margin-top: 40px; background: var(--paper); border-radius: 32px; padding: 40px 44px; box-shadow: 0 16px 34px -24px rgba(49, 82, 127, 0.45); }
.page-body h2 { font-size: 26px; margin: 34px 0 12px; }
.page-body h2:first-child { margin-top: 0; }
.page-body p, .page-body li { color: #46597d; font-size: 17px; }
.page-body p + p { margin-top: 12px; }
.page-body ul { padding-left: 22px; margin: 10px 0 0; }
.page-body li { margin: 6px 0; }
.page-body a { color: var(--coral-deep); font-weight: 650; }
.page-body .note { background: var(--butter); border-radius: 18px; padding: 16px 20px; margin-top: 18px; }
.updated { color: var(--muted); font-size: 15px; margin-top: 18px; }
@media (max-width: 620px) { .page-body { padding: 28px 22px; } }
