/* ----------------------------------------------------
   KidKindly — marketing landing page
   Brand tokens mirror /mobile/styles.css so the web and
   mobile experiences feel like the same product.
----------------------------------------------------- */

:root {
  --coral:  #ff5136;
  --coral-ink: #cc3a24;
  --aqua:   #00e4e4;
  --aqua-ink: #00a3a3;
  --mint:   #00ffe1;
  --sun:    #ffe521;
  --sun-ink: #b59a00;
  --ink:    #0b2c4c;
  --ink-2:  #244a6f;
  --paper:  #fff9f4;
  --cream:  #ffeadb;
  --shadow: 0 20px 60px -20px rgba(11, 44, 76, .25);
  --radius: 20px;
  --radius-sm: 12px;
  --serif: "Fraunces", Georgia, serif;
  --sans:  "Nunito", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 229, 33, .28), transparent 60%),
    radial-gradient(1000px 700px at -10% 10%, rgba(0, 228, 228, .25), transparent 55%),
    radial-gradient(1200px 800px at 50% 110%, rgba(255, 81, 54, .18), transparent 60%),
    var(--paper);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--coral-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------------- NAV ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(255, 249, 244, .72);
  border-bottom: 1px solid rgba(11, 44, 76, .06);
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark.small { font-size: 18px; }
.wm-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-block;
  object-fit: contain;
  box-shadow: 0 4px 12px -6px rgba(255, 81, 54, .35);
}
.wordmark.small .wm-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: var(--ink-2);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
}
.nav-links a:hover { color: var(--coral-ink); text-decoration: none; }

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .01em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(255, 81, 54, .6);
}
.btn-primary:hover {
  transform: translateY(-1px);
  text-decoration: none;
  background: var(--coral-ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(11, 44, 76, .18);
}
.btn-ghost:hover {
  border-color: var(--ink);
  text-decoration: none;
}

/* ---------------- HERO ---------------- */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 40px 40px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--coral-ink);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.hero h1 em {
  font-style: italic;
  color: var(--coral);
}
.lede {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 48ch;
  margin: 0 0 28px;
}
.lede strong { color: var(--ink); font-weight: 800; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.micro {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-2);
  opacity: .85;
}

/* hero art — playful phone glimpse with brand blobs */
.hero-art {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .65;
  pointer-events: none;
}
.blob-coral { width: 260px; height: 260px; background: var(--coral); top: 8%; left: 4%; }
.blob-aqua  { width: 280px; height: 280px; background: var(--aqua);  bottom: 6%; right: 2%; }
.blob-sun   { width: 200px; height: 200px; background: var(--sun);   top: 40%; right: 28%; opacity: .8; }

.phone {
  position: relative;
  width: 260px;
  height: 520px;
  background: linear-gradient(180deg, #0b2c4c, #173e63);
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(0,0,0,.15);
}
.phone-screen {
  background: var(--paper);
  border-radius: 32px;
  height: 100%;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}
.phone-status {
  display: flex; justify-content: space-between;
  font-family: var(--sans); font-weight: 800; font-size: 12px;
  color: var(--ink);
}
.phone-dots i {
  display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--ink); margin-left: 3px;
}
.phone-title {
  font-family: var(--serif); font-weight: 600; font-size: 22px;
  letter-spacing: -0.01em;
}
.phone-card {
  background: linear-gradient(135deg, #ffd4cc, #ffeadb);
  border-radius: 22px;
  padding: 22px;
  flex: 1;
  display: flex; flex-direction: column;
  gap: 12px;
  position: relative;
}
.phone-mood {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--coral-ink);
}
.phone-ritual {
  font-family: var(--serif); font-size: 36px; font-weight: 600;
  color: var(--ink); line-height: 1;
}
.phone-wave {
  display: flex; gap: 3px; align-items: flex-end; height: 54px;
  margin-top: auto;
}
.phone-wave i {
  flex: 1; background: var(--coral); border-radius: 3px;
  animation: wavebar 1.3s ease-in-out infinite;
}
.phone-wave i:nth-child(2n) { background: var(--aqua); animation-delay: .1s; }
.phone-wave i:nth-child(3n) { background: var(--sun);  animation-delay: .25s; }
.phone-wave i:nth-child(1)  { height: 30%; }
.phone-wave i:nth-child(2)  { height: 70%; }
.phone-wave i:nth-child(3)  { height: 45%; }
.phone-wave i:nth-child(4)  { height: 85%; }
.phone-wave i:nth-child(5)  { height: 55%; }
.phone-wave i:nth-child(6)  { height: 35%; }
.phone-wave i:nth-child(7)  { height: 90%; }
.phone-wave i:nth-child(8)  { height: 50%; }
.phone-wave i:nth-child(9)  { height: 65%; }
.phone-wave i:nth-child(10) { height: 40%; }
.phone-wave i:nth-child(11) { height: 75%; }
.phone-wave i:nth-child(12) { height: 45%; }
@keyframes wavebar {
  0%, 100% { transform: scaleY(.6); }
  50%      { transform: scaleY(1.2); }
}
.phone-play {
  position: absolute;
  right: 18px; bottom: 18px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  font-size: 18px;
  padding-left: 3px;
  box-shadow: 0 10px 20px -8px rgba(11, 44, 76, .4);
}

/* ---------------- SECTION SHARED ---------------- */
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.section-lede {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0 0 40px;
}

/* ---------------- WHAT IT IS ---------------- */
.what {
  max-width: 1200px;
  margin: 40px auto;
  padding: 64px 40px;
}
.what-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11, 44, 76, .05);
}
.feature h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  margin: 16px 0 8px;
}
.feature p { margin: 0; color: var(--ink-2); }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}
.icon-coral { background: var(--coral); }
.icon-aqua  { background: var(--aqua-ink); }
.icon-sun   { background: var(--sun); color: var(--ink); }

/* ---------------- RITUALS ---------------- */
.rituals {
  max-width: 1200px;
  margin: 40px auto;
  padding: 64px 40px;
}
.ritual-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ritual-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(11, 44, 76, .06);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform .15s ease;
}
.ritual-card:hover { transform: translateY(-3px); }
.ritual-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--accent, var(--coral));
}
.ritual-mood {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent-ink, var(--coral-ink));
  margin-bottom: 12px;
}
.ritual-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.15;
}
.ritual-desc {
  color: var(--ink-2);
  font-size: 14px;
  margin-bottom: 16px;
  min-height: 2.8em;
}
.ritual-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 700;
  padding-top: 12px;
  border-top: 1px dashed rgba(11, 44, 76, .15);
}

/* accent-specific ritual cards */
.ritual-card.coral { --accent: var(--coral); --accent-ink: var(--coral-ink); }
.ritual-card.aqua  { --accent: var(--aqua-ink); --accent-ink: var(--aqua-ink); }
.ritual-card.sun   { --accent: var(--sun); --accent-ink: var(--sun-ink); }
.ritual-card.ink   { --accent: var(--ink); --accent-ink: var(--ink-2); }

/* ---------------- HOW ---------------- */
.how {
  max-width: 1200px;
  margin: 40px auto;
  padding: 64px 40px;
}
.how-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.how-steps li {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid rgba(11, 44, 76, .05);
  box-shadow: var(--shadow);
  position: relative;
}
.how-num {
  position: absolute;
  top: -18px;
  left: 24px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
}
.how-steps h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 12px 0 8px;
}
.how-steps p { margin: 0; color: var(--ink-2); }

/* ---------------- AGES ---------------- */
.ages {
  max-width: 1200px;
  margin: 40px auto;
  padding: 64px 40px;
}
.age-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.age-card {
  padding: 32px;
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.age-coral { background: linear-gradient(135deg, #ffd4cc, #ffeadb); }
.age-aqua  { background: linear-gradient(135deg, #b8f5f5, #e5fbfb); }
.age-sun   { background: linear-gradient(135deg, #fff2a8, #fff9d4); }
.age-num {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.age-card p { margin: 0; color: var(--ink); }
.age-card strong { font-weight: 800; }

/* ---------------- GET / CTA ---------------- */
.get {
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 40px;
}
.get-card {
  background: linear-gradient(135deg, var(--ink), var(--ink-2));
  color: #fff;
  border-radius: 28px;
  padding: 64px 48px;
  text-align: center;
  box-shadow: 0 30px 80px -30px rgba(11, 44, 76, .6);
}
.get-card .section-title { color: #fff; }
.get-card .section-lede  { color: rgba(255, 255, 255, .82); margin-left: auto; margin-right: auto; }

.cta-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.cta-form input {
  flex: 1 1 240px;
  font: 600 15px/1 var(--sans);
  color: var(--ink);
  padding: 14px 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .15);
  background: #fff;
  outline: none;
}
.cta-form input:focus { border-color: var(--sun); }
.get-card .micro { color: rgba(255, 255, 255, .7); }

/* ---------------- FOOTER ---------------- */
.footer {
  border-top: 1px solid rgba(11, 44, 76, .08);
  padding: 28px 40px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
}
.footer-fine {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--ink-2);
  opacity: .7;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
    gap: 24px;
  }
  .hero-art { min-height: 380px; }
  .what-grid, .how-steps, .age-row {
    grid-template-columns: 1fr;
  }
  .ritual-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .nav { padding: 14px 20px; }
  .hero, .what, .rituals, .how, .ages, .get, .pricing { padding-left: 20px; padding-right: 20px; }
  .get-card { padding: 44px 24px; }
  .ritual-grid { grid-template-columns: 1fr; }
  .footer { padding: 24px 20px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .phone-wave i { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- PRICING ---------------- */
.pricing {
  max-width: 1200px;
  margin: 40px auto;
  padding: 64px 40px;
}
.price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}
.price-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1.5px solid rgba(11, 44, 76, .08);
  box-shadow: var(--shadow);
  position: relative;
}
.price-founder {
  background: linear-gradient(160deg, var(--ink), var(--ink-2));
  color: #fff;
  border-color: transparent;
}
.price-founder .price-eyebrow,
.price-founder .price-amount,
.price-founder .price-sub,
.price-founder .price-features li,
.price-founder .price-fine { color: #fff; }
.price-founder .price-features li::before { color: var(--sun); }

.price-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coral-ink);
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--cream);
}
.price-founder .price-eyebrow {
  background: rgba(255, 229, 33, .2);
  color: var(--sun);
}
.price-amount {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.price-amount span {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-2);
  margin-left: 4px;
}
.price-sub {
  margin: 8px 0 24px;
  color: var(--ink-2);
  font-size: 15px;
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.price-features li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
  border-top: 1px solid rgba(11, 44, 76, .06);
}
.price-founder .price-features li {
  border-top-color: rgba(255, 255, 255, .12);
}
.price-features li:first-child { border-top: 0; }
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  font-weight: 800;
  color: var(--coral);
}
.price-fine {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--ink-2);
  text-align: center;
}

/* App Store coming-soon badge */
.store-row {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .9);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, .18);
}
.store-badge svg { opacity: .9; }

@media (max-width: 720px) {
  .price-row { grid-template-columns: 1fr; }
}
