/* Family Chore Buddy — landing page. No framework, no web fonts: the rounded system face on Apple devices, a clean sans elsewhere. */
:root {
  --ink: #16241c; --muted: #55635b; --green: #14532d; --green-2: #1a7a43; --leaf: #2fb565; --mint: #dff7e6; --mint-2: #f0fbf3;
  --cream: #fff9ef; --sand: #fdeecb; --gold: #f5b72e; --amber: #b45309; --coral: #ff7a59; --sky: #dceeff; --line: #e9e4d6; --card: #fff;
  --round: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(22, 36, 28, .05), 0 12px 32px -12px rgba(22, 36, 28, .18);
}
/* The rounded system face, where it is known to carry bold weights (iPhone and iPad Safari). Elsewhere a heavy sans. */
@supports (-webkit-touch-callout: none) { :root { --round: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 18px/1.6 var(--sans); color: var(--ink); background: var(--cream); }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
h1, h2, h3, .logo, .btn, .eyebrow, .chip, .num { font-family: var(--round); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-2); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 249, 239, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.stuck { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--green); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.top nav { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; }
.top nav a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.top nav a:hover { background: rgba(20, 83, 45, .08); }
.top nav .btn { color: #fff; padding: 10px 18px; margin-left: 6px; }
.top nav .btn:hover { background: var(--green); }

.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--green-2); color: #fff; font-weight: 700; text-decoration: none; padding: 16px 28px; border-radius: 999px; font-size: 18px;
  box-shadow: 0 2px 0 #0f4a27, 0 10px 24px -10px rgba(20, 83, 45, .6); transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { background: var(--green); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #0f4a27; }
.btn.light { background: #fff; color: var(--green); box-shadow: 0 2px 0 rgba(0, 0, 0, .12), 0 10px 24px -10px rgba(0, 0, 0, .4); }
.btn.ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 2px rgba(20, 83, 45, .25); }
.btn.ghost:hover { background: rgba(20, 83, 45, .06); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 88px; overflow: hidden; overflow: clip; }
.hero::before { content: ""; position: absolute; inset: -120px -20% auto auto; width: 760px; height: 760px; border-radius: 50%;
  background: radial-gradient(closest-side, #c9f3d6 0%, rgba(201, 243, 214, 0) 70%); z-index: -1; }
.hero::after { content: ""; position: absolute; left: -180px; bottom: -80px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(closest-side, #ffe9b8 0%, rgba(255, 233, 184, 0) 70%); z-index: -1; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--green); font-weight: 700; font-size: 15px; padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
h1 { font-size: clamp(42px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; margin: 20px 0 20px; color: var(--ink); }
h1 em { font-style: normal; color: var(--green-2); background: linear-gradient(transparent 62%, #ffe08a 62%, #ffe08a 92%, transparent 92%); padding: 0 .06em; }
.lead { font-size: clamp(19px, 2.2vw, 22px); color: var(--muted); max-width: 34em; }
.cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.fine { font-size: 15px; color: var(--muted); margin-top: 18px; display: flex; gap: 18px; flex-wrap: wrap; }
.fine span::before { content: "✓"; color: var(--leaf); font-weight: 800; margin-right: 6px; }

.stage { position: relative; justify-self: center; width: min(100%, 360px); }
.phone { position: relative; border-radius: 44px; border: 11px solid #17251d; overflow: hidden; background: #fff; box-shadow: 0 40px 70px -30px rgba(20, 83, 45, .55), 0 0 0 1px rgba(0, 0, 0, .06); transform: rotate(2.5deg); }
.phone.flat { transform: none; }
.phone.left { transform: rotate(-2.5deg); }
.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 18px; padding: 12px 16px; font-weight: 700; font-size: 16px; line-height: 1.2; box-shadow: var(--shadow); white-space: nowrap; animation: bob 6s ease-in-out infinite; }
.chip small { display: block; font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--muted); }
.chip .ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-size: 20px; background: var(--mint); }
.chip.c1 { top: 9%; left: -22%; }
.chip.c2 { top: 46%; right: -24%; animation-delay: -2s; }
.chip.c2 .ico { background: var(--sand); }
.chip.c3 { bottom: 8%; left: -16%; animation-delay: -4s; }
.chip.c3 .ico { background: #ffe1d8; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- shared section bits ---------- */
section { padding: 88px 0; }
.kicker { font-family: var(--round); text-transform: uppercase; letter-spacing: .1em; font-size: 14px; font-weight: 800; color: var(--green-2); margin-bottom: 10px; }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -.025em; font-weight: 800; margin-bottom: 16px; }
h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 6px; }
.sub { font-size: 20px; color: var(--muted); max-width: 36em; }
.center { text-align: center; }
.center .sub { margin: 0 auto; }
p + p { margin-top: 12px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; counter-reset: step; list-style: none; padding: 0; }
.steps li { position: relative; background: var(--card); border-radius: 28px; padding: 30px 28px 28px; box-shadow: var(--shadow); counter-increment: step; }
.steps li::before { content: counter(step); font-family: var(--round); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--green-2); color: #fff; font-weight: 800; font-size: 22px; margin-bottom: 18px; transform: rotate(-4deg); }
.steps li:nth-child(2)::before { background: var(--gold); color: #3b2a00; transform: rotate(3deg); }
.steps li:nth-child(3)::before { background: var(--coral); transform: rotate(-2deg); }
.steps p { color: var(--muted); }

/* chores + bank halves */
.band { border-radius: 48px; margin: 0 16px; padding: 88px 0; }
.band.chores { background: linear-gradient(180deg, #e3f8e9, #f1fbf3); }
.band.bank { background: linear-gradient(180deg, #fff1cf, #fff8e6); }
.band.bank .kicker { color: var(--amber); }
.split { display: grid; grid-template-columns: 1fr .8fr; gap: 56px; align-items: center; }
.split.flip { grid-template-columns: .8fr 1fr; }
.split .stage { width: min(100%, 320px); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.tile { background: rgba(255, 255, 255, .86); border-radius: 22px; padding: 20px; box-shadow: 0 1px 2px rgba(22, 36, 28, .05); transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-size: 22px; background: var(--mint); margin-bottom: 12px; }
.bank .tile .ico { background: var(--sand); }
.tile h3 { font-size: 18px; }
.tile p { font-size: 16px; color: var(--muted); line-height: 1.5; }

.quote { font-family: var(--round); font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; margin-bottom: 14px; }
.quote span { color: var(--amber); }

/* what-if */
.whatif { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.shotcard { background: #fff; border-radius: 28px; padding: 14px; box-shadow: var(--shadow); transform: rotate(-2deg); max-width: 380px; justify-self: center; }
.shotcard img { border-radius: 18px; }

/* for real families */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.facts div { background: var(--card); border-radius: 22px; padding: 22px; box-shadow: 0 1px 2px rgba(22, 36, 28, .05); }
.facts .ico { font-size: 26px; margin-bottom: 8px; }
.facts h3 { font-size: 17px; }
.facts p { font-size: 15.5px; color: var(--muted); line-height: 1.5; }

/* faq */
.faq { max-width: 780px; margin: 40px auto 0; }
.faq details { background: var(--card); border-radius: 20px; padding: 4px 22px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(22, 36, 28, .05); }
.faq summary { font-family: var(--round); font-weight: 800; font-size: 18px; padding: 16px 28px 16px 0; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 500; color: var(--green-2); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 18px; }

/* closing */
.close { background: var(--green); color: #fff; border-radius: 48px; margin: 0 16px 24px; padding: 88px 24px; text-align: center; position: relative; overflow: hidden; }
.close::before, .close::after { content: ""; position: absolute; border-radius: 50%; }
.close::before { width: 420px; height: 420px; left: -140px; top: -160px; background: rgba(47, 181, 101, .35); }
.close::after { width: 360px; height: 360px; right: -120px; bottom: -180px; background: rgba(245, 183, 46, .28); }
.close > * { position: relative; z-index: 1; }
.close h2 { color: #fff; }
.close p { color: rgba(255, 255, 255, .86); font-size: 20px; max-width: 30em; margin: 0 auto 28px; }
.close .small { font-size: 15px; margin: 22px auto 0; color: rgba(255, 255, 255, .7); }

footer { padding: 28px 24px 44px; text-align: center; font-size: 15px; color: var(--muted); }
footer a { color: var(--muted); }
footer nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; font-weight: 600; }

/* reveal on scroll (only when the script says the browser can do it) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .tile { transition: none; }
}

/* ---------- iPad and smaller ---------- */
@media (max-width: 1100px) {
  .chip.c1 { left: -8%; } .chip.c2 { right: -8%; } .chip.c3 { left: -6%; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  section, .band, .close { padding-top: 64px; padding-bottom: 64px; }
  .hero { padding: 32px 0 64px; }
  .hero .wrap, .split, .split.flip, .whatif { grid-template-columns: 1fr; gap: 44px; }
  .split.flip .stage, .whatif .shotcard { order: 2; }
  .steps { grid-template-columns: 1fr; }
  .band, .close { border-radius: 32px; margin-left: 8px; margin-right: 8px; }
  .top nav a.hide-s { display: none; }
  .stage { width: min(78%, 320px); }
  .chip { font-size: 14px; padding: 10px 12px; }
  .chip .ico { width: 32px; height: 32px; font-size: 17px; }
  .chip.c1 { left: -14%; } .chip.c2 { right: -16%; } .chip.c3 { left: -12%; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .wrap { padding: 0 18px; }
  .logo span { display: none; }
  .tiles, .facts { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .top nav .btn { width: auto; }
  .cta { gap: 10px; }
}
