/* Chore Coach — chorecoach.com */
:root {
  --ink: #1d2142;
  --ink-2: #4a4f6e;
  --muted: #6b7090;
  --line: #e8e6f0;
  --bg: #ffffff;
  --bg-soft: #f8f7fc;
  --cream: #fffbea;
  --star: #ffd60a;
  --star-deep: #f5b800;
  --sky: #7fe3f0;
  --lilac: #c3b4ff;
  --pink: #ff9bd2;
  --mint: #b8f5d8;
  --brand-grad: linear-gradient(120deg, #9ff0f7 0%, #c9bcff 38%, #ffb3dd 70%, #ffe39a 100%);
  --radius: 22px;
  --shadow: 0 1px 2px rgba(29, 33, 66, .04), 0 12px 32px -12px rgba(29, 33, 66, .14);
  --max: 1160px;
  --head: "Nunito", ui-rounded, system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--head); font-weight: 900; font-size: 20px; letter-spacing: -.02em; }
.brand img { width: 36px; height: 36px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 700 16px var(--body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -8px rgba(29, 33, 66, .5); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(29, 33, 66, .55); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cfcbe0; }
.btn-star { background: var(--star); color: var(--ink); }
.btn-star:hover { background: #ffdf3d; transform: translateY(-1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%;
  background: radial-gradient(closest-side, rgba(195, 180, 255, .35), transparent 70%),
              radial-gradient(closest-side at 30% 70%, rgba(127, 227, 240, .28), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; gap: 48px; } .hero { padding: 32px 0 72px; } }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--cream); border: 1px solid #f6e7a6;
  font-weight: 700; font-size: 14px; color: #7a5a00;
}
.pill img { width: 22px; height: 22px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 64px); font-weight: 900; margin: 22px 0 22px; }
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: .06em; height: .36em;
  background: var(--star); border-radius: 6px; z-index: -1; transform: rotate(-1deg);
}
.hl-2::after { background: var(--brand-grad); opacity: .85; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 540px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.byline { margin-top: 24px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.byline::before { content: ""; width: 24px; height: 2px; background: var(--star); border-radius: 2px; }

.hero-art { position: relative; }
.hero-photo {
  position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3.3;
  box-shadow: 0 30px 60px -24px rgba(29, 33, 66, .35);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-art::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 30px;
  background: var(--brand-grad); z-index: -1;
}
.task-card {
  position: absolute; left: -28px; bottom: 28px; width: min(300px, 80%);
  background: #fff; border-radius: 18px; padding: 14px 16px;
  box-shadow: 0 18px 40px -14px rgba(29, 33, 66, .35);
  display: flex; align-items: center; gap: 12px;
}
.task-card .check { width: 40px; height: 40px; border-radius: 50%; background: #e8fbf1; color: #16a36a; display: grid; place-items: center; flex: none; }
.task-card .check svg { width: 22px; height: 22px; }
.task-card b { display: block; font-family: var(--head); font-weight: 800; font-size: 16px; }
.task-card small { color: var(--muted); font-size: 13px; }
.task-card .stars { margin-left: auto; display: flex; align-items: center; gap: 2px; font: 800 15px var(--head); }
.task-card .stars img { width: 26px; height: 26px; }
.float-star { position: absolute; width: 74px; top: -30px; right: -14px; animation: bob 4s ease-in-out infinite; filter: drop-shadow(0 10px 14px rgba(245, 184, 0, .35)); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(8deg); } }
@media (max-width: 600px) { .task-card { left: 12px; bottom: 12px; } .float-star { width: 56px; right: 8px; } .hero-art::before { inset: 12px -8px -12px 12px; } }

/* ---------- Sections ---------- */
section { padding: 104px 0; }
@media (max-width: 600px) { section { padding: 72px 0; } }
.soft { background: var(--bg-soft); }
.eyebrow { display: inline-block; font: 800 13px var(--body); letter-spacing: .14em; text-transform: uppercase; color: #8a63ff; margin-bottom: 14px; }
.sec-head { max-width: 680px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; }
.sec-head p { margin-top: 16px; color: var(--ink-2); font-size: 18px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 32px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step .num {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font: 900 20px var(--head); margin-bottom: 20px;
}
.step:nth-child(1) .num { background: #dff8fb; color: #0e8a99; }
.step:nth-child(2) .num { background: #eee9ff; color: #6a46e8; }
.step:nth-child(3) .num { background: #fff3c4; color: #9a6b00; }
.step h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--ink-2); }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow); transition: transform .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); }
.icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px;
}
.icon svg { width: 26px; height: 26px; }
.i-sky { background: #dff8fb; color: #0e8a99; }
.i-lilac { background: #eee9ff; color: #6a46e8; }
.i-pink { background: #ffe8f4; color: #d23c8c; }
.i-star { background: #fff3c4; color: #9a6b00; }
.i-mint { background: #e3faef; color: #16a36a; }
.card h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.card p { color: var(--ink-2); }
.card .demo { margin-top: auto; padding-top: 24px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.chip {
  flex: none; width: 76px; padding: 12px 6px; border-radius: 16px; text-align: center;
  background: var(--bg-soft); border: 1px solid var(--line); font-size: 12px; font-weight: 700; line-height: 1.25;
}
.chip span { display: block; font-size: 26px; margin-bottom: 4px; }
.chip.done { background: #e8fbf1; border-color: #bdeed4; }

.listen { width: 100%; }
.wave { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 28px; margin-top: 14px; opacity: 0; transition: opacity .2s; }
.wave.on { opacity: 1; }
.wave i { width: 5px; height: 6px; border-radius: 4px; background: #8a63ff; }
.wave.on i { animation: wave .7s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: .1s; background: #ff7cc0; }
.wave i:nth-child(3n) { animation-delay: .2s; background: #2ec7d6; }
@keyframes wave { 0%, 100% { height: 6px; } 50% { height: 26px; } }

.star-row { display: flex; gap: 6px; }
.star-row img { width: 48px; height: 48px; animation: pop 1.6s ease-in-out infinite; }
.star-row img:nth-child(2) { animation-delay: .25s; }
.star-row img:nth-child(3) { animation-delay: .5s; }
.star-row img.dim { filter: grayscale(1); opacity: .3; animation: none; }
@keyframes pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

.wide-photo { margin-top: 32px; border-radius: 28px; overflow: hidden; aspect-ratio: 21 / 9; box-shadow: var(--shadow); }
.wide-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
@media (max-width: 600px) { .wide-photo { aspect-ratio: 4 / 3; } }

/* Principles */
.principle .tag {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto;
  padding: 8px 14px; border-radius: 12px; background: var(--cream);
  font-size: 14px; font-weight: 700; color: #6b4e00;
}
.principle p { margin-bottom: 20px; }

/* Life skills */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.grid-4 .card { padding: 28px 24px; }
.grid-4 h3 { font-size: 19px; }
.grid-4 p { font-size: 16px; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split-photo { border-radius: 28px; overflow: hidden; aspect-ratio: 1 / 1; box-shadow: var(--shadow); position: relative; }
.split-photo img { width: 100%; height: 100%; object-fit: cover; }
.pillars { display: grid; gap: 22px; margin-top: 32px; }
.pillar { display: flex; gap: 16px; }
.pillar .icon { margin: 0; flex: none; width: 48px; height: 48px; border-radius: 14px; }
.pillar h3 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.pillar p { color: var(--ink-2); font-size: 16px; }

/* CTA */
.cta { padding: 0 0 104px; }
.cta-box {
  position: relative; overflow: hidden; border-radius: 36px; padding: 80px 32px; text-align: center;
  background: var(--brand-grad);
}
.cta-box::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .55), transparent 60%);
}
.cta-box > * { position: relative; }
.cta-box .logo { width: 96px; margin: 0 auto 24px; filter: drop-shadow(0 12px 18px rgba(200, 140, 0, .35)); animation: bob 4s ease-in-out infinite; }
.cta-box h2 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 900; max-width: 760px; margin: 0 auto; }
.cta-box p { margin: 18px auto 0; max-width: 560px; font-size: 18px; color: var(--ink-2); }
.cta-box .cta-row { justify-content: center; }
@media (max-width: 600px) { .cta-box { padding: 56px 20px; border-radius: 28px; } }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 15px; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.foot .brand { color: var(--ink); margin-bottom: 10px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.foot nav a { text-decoration: none; font-weight: 600; color: var(--ink-2); }
.foot nav a:hover { color: var(--ink); }
.legal { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 900; }
.doc .updated { color: var(--muted); margin: 10px 0 40px; font-size: 15px; }
.doc h2 { font-size: 22px; font-weight: 800; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 22px; margin: 10px 0 0; }
.doc li { margin: 4px 0; }
.doc a { color: #6a46e8; }
.notfound { text-align: center; padding: 120px 24px; }
.notfound img { width: 120px; margin: 0 auto 24px; }
.notfound h1 { font-size: 40px; font-weight: 900; }
.notfound p { color: var(--ink-2); margin: 12px 0 28px; }
