/* Lootsy marketing site — tokens mirror src/styles.css so the site and the
   app read as one product. Generated into public/site/site.css by
   scripts/build-site.mjs; edit this file, not the copy. */
:root {
  --page: #FFF7EC; --sand: #FFF0DA; --card: #FFFFFF;
  --text: #4A3728; --muted: #8C7864; --line: rgba(122, 88, 54, 0.14); --line-strong: rgba(122, 88, 54, 0.26);
  --primary: #F5842A; --primary-dark: #D96A12; --primary-soft: #FFE7CC;
  --gold: #F2B32E; --gold-dark: #C98A0C; --gold-soft: #FFF0CE;
  --teal: #12A0BC; --teal-soft: #D6F1F7; --mint: #3FBF87;
  --ink: #1D1712;
  --radius: 22px; --gutter: 16px; --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
html:not([data-theme="light"]) {
    --page: #1C1714; --sand: #2A221C; --card: #261F1A;
    --text: #F5E8D8; --muted: #BCA890; --line: rgba(255, 238, 210, 0.10); --line-strong: rgba(255, 238, 210, 0.2);
    --primary-soft: rgba(245, 132, 42, 0.16); --gold-soft: rgba(242, 179, 46, 0.14); --teal-soft: rgba(18, 160, 188, 0.16);
    --gold-dark: #FFD27A; --ink: #000;
    color-scheme: dark;
  }
}
html[data-theme="dark"] {
    --page: #1C1714; --sand: #2A221C; --card: #261F1A;
    --text: #F5E8D8; --muted: #BCA890; --line: rgba(255, 238, 210, 0.10); --line-strong: rgba(255, 238, 210, 0.2);
    --primary-soft: rgba(245, 132, 42, 0.16); --gold-soft: rgba(242, 179, 46, 0.14); --teal-soft: rgba(18, 160, 188, 0.16);
    --gold-dark: #FFD27A; --ink: #000;
    color-scheme: dark;
  }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--text);
  font: 500 17px/1.6 Nunito, ui-rounded, system-ui, sans-serif;
}
img, svg { max-width: 100%; }
a { color: var(--primary-dark); font-weight: 800; text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) {
html:not([data-theme="light"]) a { color: var(--primary); }
}
html[data-theme="dark"] a { color: var(--primary); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 900; }
h3 { font-size: 1.15rem; font-weight: 900; }
p { margin: 0 0 12px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.muted { color: var(--muted); }
.fine { font-size: 0.86rem; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

/* buttons — same chunky press as the app */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 900 1rem/1 Nunito, system-ui, sans-serif; text-decoration: none; cursor: pointer;
  color: #fff; background: var(--primary); border: none; border-radius: 18px; padding: 16px 24px;
  box-shadow: 0 5px 0 var(--primary-dark); transition: transform 0.07s ease, box-shadow 0.07s ease;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--primary-dark); }
.btn.small { padding: 10px 16px; font-size: 0.9rem; border-radius: 14px; box-shadow: 0 3px 0 var(--primary-dark); }
.btn.ghost { background: var(--card); color: var(--text); border: 2px solid var(--line-strong); box-shadow: 0 3px 0 var(--line-strong); }
.btn.ghost.light { background: rgba(255, 255, 255, 0.14); color: inherit; border-color: currentColor; box-shadow: none; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px 10px 16px; border-radius: 14px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; line-height: 1.1;
  border: 1.5px solid #8c8c8c;
}
.store-badge svg { width: 28px; height: 28px; }
.store-badge span { display: flex; flex-direction: column; font-size: 1.35rem; font-family: -apple-system, system-ui, sans-serif; letter-spacing: -0.01em; }
.store-badge small { font-size: 0.7rem; font-weight: 500; }
.store-badge-official { display: inline-block; line-height: 0; border-radius: 12px; }
.store-badge-official img { height: 54px; width: auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 24px 0 18px; }

/* header */
.top {
  max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.35rem; color: var(--text); text-decoration: none; }
.brand img { border-radius: 10px; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--text); text-decoration: none; font-weight: 800; font-size: 0.95rem; }
.top nav a:hover { color: var(--primary-dark); }
@media (max-width: 760px) { .top nav { display: none; } .top .btn { margin-left: auto; } }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 36px; padding-bottom: 56px; }
.eyebrow { font-size: 0.8rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary-dark); margin-bottom: 14px; }
.eyebrow.light { color: #FFE8C7; }
.hero h1 { isolation: isolate; }
.hero h1 em { font-style: normal; color: var(--primary); position: relative; white-space: nowrap; }
/* "asks": a hand-drawn marker squiggle (an uneven stroke plus a lighter second pass, like a Sharpie) */
.hero h1 em .scribble { position: absolute; left: -0.04em; right: -0.06em; bottom: -0.2em; width: calc(100% + 0.1em); height: 0.34em; z-index: -1; overflow: visible; }
.hero h1 em .scribble path { fill: none; stroke: var(--gold); stroke-width: 6px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hero h1 em .scribble .pass { stroke-width: 3.5px; opacity: 0.45; }
.lede { font-size: 1.18rem; max-width: 34em; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 800; font-size: 0.92rem; color: var(--muted); }
.trust li::before { content: '✓'; color: var(--mint); margin-right: 6px; font-weight: 900; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 12px; } }

/* signature: the openable loot chest (same ceremony as the app) */
.chest-demo { margin: 0; }
.chest-demo figcaption { text-align: center; font-weight: 800; color: var(--muted); font-size: 0.92rem; margin-top: 12px; }
.stage {
  position: relative; overflow: hidden; height: 460px; border-radius: 30px; color: #fff; text-align: center;
  background: radial-gradient(520px 520px at 50% 40%, #FFD9A0 0%, #F5842A 45%, #C9530A 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 26px 20px;
  box-shadow: 0 24px 50px rgba(201, 83, 10, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.stage-label { font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.78rem; opacity: 0.9; }
.chest { position: relative; background: none; border: 0; padding: 0; cursor: pointer; width: 200px; animation: wiggle 2.6s ease-in-out infinite; }
.chest svg { width: 200px; height: auto; display: block; overflow: visible; filter: drop-shadow(0 12px 14px rgba(90, 30, 0, 0.3)); }
.chest .lid { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.stage.open .chest { animation: none; cursor: default; }
.stage.open .lid { transform: translateY(-38%) rotate(-14deg); }
.burst { position: absolute; left: 50%; top: 40%; width: 0; height: 0; }
.burst i {
  position: absolute; width: var(--s, 14px); height: var(--s, 14px); margin: calc(var(--s, 14px) / -2); border-radius: 3px; opacity: 0;
  background: linear-gradient(135deg, #DFFAFF, #12A0BC); box-shadow: 0 0 6px rgba(191, 243, 252, 0.8);
}
.burst i.coin { border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFF3B0, #F2B32E 60%, #C98A0C); box-shadow: 0 0 6px rgba(255, 220, 120, 0.8); }
/* each piece flies up and out, then falls a little with gravity */
.stage.open .burst i { animation: spill 1.7s cubic-bezier(0.2, 0.75, 0.35, 1) var(--t, 0s) forwards; }
.burst { z-index: 3; }
@keyframes spill {
  0% { opacity: 1; transform: rotate(var(--a)) translateY(0) rotate(45deg) scale(0.4); }
  45% { opacity: 1; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) rotate(225deg) scale(1.1); }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -0.55)) translateX(calc(var(--d) * 0.15)) rotate(405deg) scale(0.9); }
}
@keyframes wiggle { 0%, 84%, 100% { transform: rotate(0); } 88% { transform: rotate(-4deg); } 92% { transform: rotate(4deg); } 96% { transform: rotate(-2deg); } }
.amount { font-size: 3rem; font-weight: 900; margin: 10px 0 0; min-height: 1.2em; text-shadow: 0 3px 0 rgba(150, 60, 0, 0.3); }
.tap { position: absolute; left: 0; right: 0; bottom: 70px; font-weight: 900; margin: 0; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }
.note {
  position: absolute; left: 50%; bottom: 58px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 40px);
  background: rgba(255, 255, 255, 0.94); color: #4A3728; border-radius: 18px; padding: 12px 18px;
  font-weight: 900; font-size: 1.1rem; box-shadow: 0 6px 18px rgba(120, 50, 0, 0.2); animation: noteIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.note span { display: block; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: #D96A12; }
@keyframes noteIn { from { opacity: 0; transform: translate(-50%, 10px) scale(0.92); } to { opacity: 1; transform: translateX(-50%); } }
.again { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; background: none; border: 0; color: #fff; font: 800 0.9rem Nunito, sans-serif; text-decoration: underline; cursor: pointer; }

/* sections */
.band { padding-top: 64px; padding-bottom: 8px; }
.section-lede { font-size: 1.1rem; color: var(--muted); max-width: 40em; margin-bottom: 28px; }
.more { margin-top: 20px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { counter-increment: s; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-dark); font-weight: 900; margin-bottom: 14px;
}
@media (prefers-color-scheme: dark) {
html:not([data-theme="light"]) .steps li::before { color: var(--primary); }
}
html[data-theme="dark"] .steps li::before { color: var(--primary); }
.steps p, .card p { color: var(--muted); font-size: 0.97rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.card.highlight { border-color: var(--primary); box-shadow: 0 6px 0 var(--primary-soft); }
.card h2 { font-size: 1.3rem; }

/* kids band — the app's loot-stage orange, full bleed */
.kids {
  margin-top: 72px; color: #fff;
  background: radial-gradient(900px 500px at 20% 30%, #FFB25C 0%, #F5842A 45%, #D2600F 100%);
}
.kids-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.kids-louie { display: grid; place-items: center; }
.kids-louie svg { width: min(260px, 70vw); height: auto; filter: drop-shadow(0 16px 20px rgba(120, 40, 0, 0.3)); }
.kids h2 { color: #fff; }
.kids-lede { font-size: 1.15rem; max-width: 32em; }
.kid-perks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kid-perks li { background: rgba(255, 255, 255, 0.16); border: 2px solid rgba(255, 255, 255, 0.35); border-radius: 18px; padding: 14px 16px; font-size: 0.95rem; }
.kid-perks b { display: block; font-size: 1.05rem; font-weight: 900; }
@media (max-width: 860px) { .kids-inner { grid-template-columns: 1fr; gap: 12px; } .kid-perks { grid-template-columns: 1fr; } .kids-louie svg { width: 170px; } }

.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 32px; align-items: start; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 8px; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 12px 16px 12px 44px; position: relative; font-weight: 700; }
.checks li::before { content: '✓'; position: absolute; left: 16px; top: 11px; color: var(--mint); font-weight: 900; }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; }
.plan.plus { border-color: var(--gold); background: linear-gradient(160deg, var(--gold-soft), var(--card) 70%); }
.plan h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.plan.plus h3 { color: var(--gold-dark); }
.price { font-size: 2.4rem; font-weight: 900; margin: 0; }
.price small { font-size: 1rem; color: var(--muted); }
.alt { color: var(--muted); font-weight: 700; }
.plan ul { padding-left: 20px; margin: 12px 0 0; }
.plan li { margin: 4px 0; font-weight: 700; }

/* faq */
.faq details { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 900; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.faq.open section { border-bottom: 2px solid var(--line); padding: 18px 0; }
.faq.open h2 { font-size: 1.25rem; }
.faq.open p { color: var(--muted); margin: 0; max-width: 46em; }

/* download */
.download { margin-top: 72px; background: var(--sand); padding: 56px 0 40px; }
.download-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.download-louie svg { width: 130px; height: auto; }
.qr { background: #fff; border-radius: 18px; padding: 12px; text-align: center; width: 170px; }
.qr svg { width: 146px; height: 146px; display: block; }
.qr p { margin: 6px 0 0; font-size: 0.75rem; font-weight: 800; color: #4A3728; }
@media (max-width: 860px) { .download-inner { grid-template-columns: 1fr; text-align: center; } .download-inner .cta-row { justify-content: center; } .download-louie { justify-self: center; } .qr { display: none; } }
.waitlist { margin-top: 28px; }
.waitlist label { display: block; font-weight: 800; margin-bottom: 8px; }
.waitlist .row { display: flex; gap: 10px; max-width: 460px; }
.waitlist input {
  flex: 1; min-width: 0; font: 700 1rem Nunito, sans-serif; padding: 12px 14px; border-radius: 14px;
  border: 2px solid var(--line-strong); background: var(--card); color: var(--text);
}
@media (max-width: 860px) { .waitlist { text-align: center; } .waitlist .row { margin: 0 auto; } }

/* content pages */
.page { padding-top: 24px; padding-bottom: 40px; }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.jump a { background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; color: var(--text); }
.age-band { padding: 28px 0; border-bottom: 2px solid var(--line); }
.age-band > p { color: var(--muted); max-width: 44em; }
.chore-list { list-style: none; padding: 0; margin: 0; }
.chore-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line-strong); font-weight: 700; }
.val { color: var(--teal); font-weight: 900; white-space: nowrap; }
.val small { color: var(--muted); font-weight: 700; }
.cta-card { margin-top: 32px; }
.table-wrap { overflow-x: auto; margin: 28px 0 8px; }
table.compare { border-collapse: collapse; width: 100%; min-width: 620px; background: var(--card); border-radius: 16px; overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 0.95rem; vertical-align: top; }
.compare thead th { background: var(--sand); font-weight: 900; }
.compare td:nth-child(2) { font-weight: 800; }
.nf-louie svg { width: 140px; height: auto; }

/* footer */
.foot { margin-top: 0; padding: 40px var(--gutter) 28px; border-top: 2px solid var(--line); background: var(--page); }
.foot-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.foot h3 { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.foot a:not(.brand) { display: block; color: var(--text); font-weight: 700; text-decoration: none; margin: 4px 0; font-size: 0.95rem; }
.foot p { color: var(--muted); font-size: 0.92rem; }
.foot .fine { max-width: var(--max); margin: 24px auto 0; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ── hero buttons side by side (they used to stack and fill the screen) ── */
.hero-ctas { flex-wrap: nowrap; gap: 10px; margin: 20px 0 14px; }
.hero-ctas .store-badge { flex: none; }
.btn.start-free { flex-direction: column; gap: 0; line-height: 1.1; padding: 10px 16px; white-space: nowrap; }
.btn.start-free small { font-size: 0.72rem; font-weight: 700; color: var(--muted); }
@media (max-width: 380px) { .hero-ctas .store-badge { padding: 8px 12px; } .hero-ctas .store-badge span { font-size: 1.15rem; } .btn.start-free { padding: 9px 12px; } }

/* ── how it works: a small drawn diagram (same style as the app's login page) ── */
.flow { display: flex; align-items: flex-start; justify-content: center; gap: 2px; margin: 18px 0 6px; }
.flow-step { width: 84px; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; font-weight: 900; font-size: 0.86rem; line-height: 1.15; }
.flow-step i { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #F6EAD6; border: 1.5px solid var(--line); color: var(--text); font-style: normal; }
.flow-step i svg { width: 30px; height: 30px; }
.flow-step.hot i { background: var(--primary-soft); border-color: var(--primary); }
.flow-arrow { flex: none; width: 34px; height: 20px; margin-top: 20px; color: var(--muted); }
.flow-after { text-align: center; color: var(--muted); font-weight: 700; margin: 12px 0 0; }
@media (min-width: 900px) { .flow { gap: 18px; } .flow-step { width: 140px; font-size: 1.05rem; } .flow-step i { width: 84px; height: 84px; } .flow-step i svg { width: 42px; height: 42px; } .flow-arrow { width: 60px; height: 30px; margin-top: 28px; } }
@media (max-width: 360px) { .flow-step { width: 68px; font-size: 0.78rem; } .flow-step i { width: 48px; height: 48px; } .flow-arrow { width: 22px; } }
@media (prefers-color-scheme: dark) {
html:not([data-theme="light"]) .flow-step i { background: rgba(255, 238, 210, 0.08); }
}
html[data-theme="dark"] .flow-step i { background: rgba(255, 238, 210, 0.08); }

/* ── short pills up front, the full text one tap away (still in the page for search) ── */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.pills span { background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 7px 13px; font-weight: 900; font-size: 0.92rem; }
.pills.light span { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.pills.big { gap: 10px; }
.pills.big span { font-size: 1.08rem; padding: 12px 18px; border-radius: 16px; }
.more-d { margin-top: 10px; }
.more-d > summary { cursor: pointer; font-weight: 900; color: var(--primary-dark); display: inline-block; }
.more-d.light > summary { color: #fff; opacity: 0.9; }
.more-d.center { text-align: center; }
.more-d .kid-perks, .more-d .checks, .more-d .steps { margin-top: 12px; }
.more-d ul.plain { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; color: var(--muted); }
#how-detail { padding-top: 16px; }
@media (prefers-color-scheme: dark) {
html:not([data-theme="light"]) .more-d > summary { color: var(--primary); }
}
html[data-theme="dark"] .more-d > summary { color: var(--primary); }

/* ── phones: plans side by side ── */
@media (max-width: 640px) {
  .plans { grid-template-columns: 1fr 1fr; gap: 10px; }
  .plan { padding: 14px; }
  .plan ul { padding-left: 16px; font-size: 0.82rem; }
  .plan .price { font-size: 1.6rem; }
  .download { padding: 36px 0 28px; margin-top: 40px; }
  .download-louie svg { width: 90px; }
}

/* ── round 2 polish ── */
/* less gap between the chest and How it works on phones */
@media (max-width: 860px) { .hero { padding-bottom: 8px; } #how { padding-top: 28px; } }
/* hero buttons centered on phones; Start free a little wider */
.btn.start-free { min-width: 168px; }
@media (max-width: 860px) { .hero-ctas { justify-content: center; } .trust { justify-content: center; } }
/* How it works: bigger circles, orange line drawings */
.flow-step i { width: 68px; height: 68px; background: #FFF1DD; border: 2px solid rgba(245, 132, 42, 0.35); color: var(--primary-dark); }
.flow-step i svg { width: 34px; height: 34px; }
.flow-step.hot i { background: var(--primary); border-color: var(--primary-dark); color: #fff; }
.flow-step.hot i svg rect[fill] { fill: #FFE08A; }
@media (min-width: 900px) { .flow-step i { width: 96px; height: 96px; } .flow-step i svg { width: 46px; height: 46px; } }
@media (max-width: 360px) { .flow-step i { width: 54px; height: 54px; } .flow-step i svg { width: 28px; height: 28px; } }
@media (prefers-color-scheme: dark) {
html:not([data-theme="light"]) .flow-step i { background: rgba(245, 132, 42, 0.14); color: var(--primary); }
}
html[data-theme="dark"] .flow-step i { background: rgba(245, 132, 42, 0.14); color: var(--primary); }
/* the kids band: Louie on the left (bigger, alive, tap him), words on the right, on phones too */
.kids-inner { grid-template-columns: 0.85fr 1.15fr; }
.kids-louie { position: relative; background: none; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.louie-moods { display: grid; animation: louieBob 3s ease-in-out infinite; }
.louie-mood { grid-area: 1 / 1; opacity: 0; transition: opacity 0.12s; }
.louie-mood.on { opacity: 1; }
.louie-mood svg { width: min(300px, 100%); height: auto; filter: drop-shadow(0 16px 20px rgba(120, 40, 0, 0.3)); }
@keyframes louieBob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1.5deg); } }
.kids-louie.em-jump .louie-moods { animation: emJump 0.9s cubic-bezier(.3, 1.4, .5, 1); }
.kids-louie.em-spin .louie-moods { animation: emSpin 0.9s ease-in-out; }
.kids-louie.em-wiggle .louie-moods { animation: emWiggle 0.9s ease-in-out; }
.kids-louie.em-tilt .louie-moods { animation: emTilt 1.4s ease-in-out; }
.kids-louie.em-bounce .louie-moods { animation: emBounce 0.9s ease-out; }
.kids-louie.em-shake .louie-moods { animation: emShake 0.7s ease-in-out; }
@keyframes emJump { 20% { transform: scale(1.1, 0.88); } 45% { transform: translateY(-40px) scale(0.95, 1.08); } 70% { transform: scale(1.08, 0.92); } }
@keyframes emSpin { 50% { transform: translateY(-16px) rotateY(180deg); } 100% { transform: rotateY(360deg); } }
@keyframes emWiggle { 20% { transform: rotate(-8deg); } 40% { transform: rotate(8deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(5deg); } }
@keyframes emTilt { 30%, 70% { transform: rotate(-10deg) translateX(-4px); } }
@keyframes emBounce { 25% { transform: translateY(-20px); } 50% { transform: none; } 70% { transform: translateY(-8px); } }
@keyframes emShake { 15%, 45%, 75% { transform: translateX(-6px) rotate(-3deg); } 30%, 60%, 90% { transform: translateX(6px) rotate(3deg); } }
.louie-say { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); z-index: 2; white-space: nowrap; background: #fff; color: #4A3728;
  font-weight: 900; font-size: 0.9rem; padding: 6px 12px; border-radius: 16px; box-shadow: 0 4px 0 rgba(122, 88, 54, 0.15); }
.louie-say[hidden] { display: none; }
@media (max-width: 860px) {
  .kids-inner { grid-template-columns: 0.8fr 1.2fr; gap: 14px; align-items: center; padding-top: 34px; padding-bottom: 34px; }
  .kids h2 { font-size: 1.35rem; }
  .kids-lede { font-size: 0.95rem; }
  .kids .eyebrow { font-size: 0.68rem; margin-bottom: 6px; }
  .kids .pills span { font-size: 0.78rem; padding: 5px 10px; }
}
@media (prefers-reduced-motion: reduce) { .louie-moods, .kids-louie[class*="em-"] .louie-moods { animation: none; } }
/* collapsibles: a small triangle that turns when open */
.more-d > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.more-d > summary::-webkit-details-marker { display: none; }
.more-d > summary::after { content: ''; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid currentColor; transition: transform 0.2s; }
.more-d[open] > summary::after { transform: rotate(180deg); }
/* What Louie teaches: centered */
.center-band { text-align: center; }
.center-band .pills { justify-content: center; }
.center-band .more-d ul.plain { text-align: left; max-width: 44em; margin-left: auto; margin-right: auto; }
/* step-by-step inside the FAQ */
.faq .steps-plain { margin: 10px 0 0; padding-left: 20px; color: var(--muted); display: grid; gap: 8px; }
/* Safe by design: one soft card, drawn in the same style as How it works */
.safe-card { background: #E6F6EE; border-radius: 30px; padding: 30px 20px 22px; text-align: center; }
.safe-card h2 { margin: 0; }
.safe-sub { color: var(--muted); font-weight: 700; margin: 4px 0 18px; }
.safe-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 760px; margin: 0 auto; }
.safe-item { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 900; font-size: 0.85rem; line-height: 1.15; }
.safe-item i { width: 62px; height: 62px; border-radius: 50%; background: #fff; border: 2px solid rgba(47, 163, 122, 0.3); display: flex; align-items: center; justify-content: center; color: #23845F; font-style: normal; }
.safe-item i svg { width: 30px; height: 30px; }
.safe-card .more-d { margin-top: 16px; }
.safe-card .more-d > summary { color: #23845F; }
.safe-card .checks { text-align: left; max-width: 640px; margin: 12px auto 0; }
@media (min-width: 900px) { .safe-card { padding: 44px 40px 30px; } .safe-item { font-size: 1rem; } .safe-item i { width: 84px; height: 84px; } .safe-item i svg { width: 40px; height: 40px; } }
@media (max-width: 360px) { .safe-item i { width: 52px; height: 52px; } .safe-item { font-size: 0.76rem; } }
@media (prefers-color-scheme: dark) {
html:not([data-theme="light"]) .safe-card { background: rgba(63, 191, 135, 0.1); }
html:not([data-theme="light"]) .safe-item i { background: rgba(255, 255, 255, 0.06); color: var(--mint); }
html:not([data-theme="light"]) .safe-card .more-d > summary { color: var(--mint); }
}
html[data-theme="dark"] .safe-card { background: rgba(63, 191, 135, 0.1); }
html[data-theme="dark"] .safe-item i { background: rgba(255, 255, 255, 0.06); color: var(--mint); }
html[data-theme="dark"] .safe-card .more-d > summary { color: var(--mint); }
/* pricing fine print: always visible, small */
.small-print { font-size: 0.74rem; max-width: 46em; margin-left: auto; margin-right: auto; }
@media (max-width: 480px) {
  .flow-step { width: 72px; font-size: 0.8rem; }
  .flow-step i { width: 62px; height: 62px; }
  .flow-step i svg { width: 30px; height: 30px; }
  .flow-arrow { width: 22px; height: 16px; margin-top: 22px; }
  .kids-inner { grid-template-columns: 1fr 1.1fr; gap: 10px; }
  .louie-mood svg { width: 100%; max-width: 190px; }
}
@media (max-width: 480px) {
  .stage { height: 480px; }
  .chest, .chest svg { width: 170px; }
  .amount { font-size: 2.6rem; margin-top: 6px; }
  .note { bottom: 52px; }
}

/* faint divider between sections (centered, well short of full width) */
.soft-rule { border: 0; height: 2px; width: min(60%, 520px); margin: 36px auto 0; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.soft-rule + .band { padding-top: 32px; }
/* Safe by design: warm, like the rest of the page */
.safe-card { background: #FFF1DD; }
.safe-item i { background: #fff; border-color: rgba(245, 132, 42, 0.3); color: var(--primary-dark); }
.safe-card .more-d > summary { color: var(--primary-dark); }
@media (prefers-color-scheme: dark) {
html:not([data-theme="light"]) .safe-card { background: rgba(245, 132, 42, 0.1); }
html:not([data-theme="light"]) .safe-item i { color: var(--primary); }
html:not([data-theme="light"]) .safe-card .more-d > summary { color: var(--primary); }
}
html[data-theme="dark"] .safe-card { background: rgba(245, 132, 42, 0.1); }
html[data-theme="dark"] .safe-item i { color: var(--primary); }
html[data-theme="dark"] .safe-card .more-d > summary { color: var(--primary); }
/* "always free" banner on the Free plan */
.plan.free { position: relative; }
.plan-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--mint); color: #fff;
  font-weight: 900; font-size: 0.75rem; padding: 4px 12px; border-radius: 999px; box-shadow: 0 3px 0 #2E9A6B; }
.plans { padding-top: 10px; }
@media (max-width: 640px) { .plan-flag { font-size: 0.66rem; padding: 3px 9px; } }
/* Why it works: opens into a box */
.center-band .more-d ul.plain { background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 18px 20px; gap: 12px; box-shadow: 0 4px 0 var(--line); }
.center-band .more-d ul.plain li b { color: var(--text); }
/* header logo: bigger (the footer one stays as is) */
.top .brand { font-size: 1.75rem; gap: 12px; }
.top .brand img { width: 46px; height: 46px; border-radius: 12px; }
@media (max-width: 380px) { .top .brand { font-size: 1.5rem; } .top .brand img { width: 40px; height: 40px; } }
@media (min-width: 860px) { .hero h1 em .scribble path { stroke-width: 8px; } .hero h1 em .scribble .pass { stroke-width: 4.5px; } }
/* hero: both buttons the same width; "Start free" text scaled up to match */
.hero-ctas > .store-badge, .hero-ctas > .btn.start-free { flex: 1 1 0; max-width: 230px; min-width: 0; justify-content: center; box-sizing: border-box; }
.hero-ctas > .store-badge { align-self: stretch; }
.btn.start-free { font-size: 1.22rem; min-height: 60px; }
.btn.start-free small { font-size: 0.78rem; }
.hero-ctas { align-items: stretch; }
.hero-ctas > .store-badge { align-self: stretch; min-height: 60px; padding: 8px 12px; gap: 8px; }
.hero-ctas > .store-badge span { white-space: nowrap; font-size: 1.22rem; }
.hero-ctas > .store-badge svg { width: 24px; height: 24px; flex: none; }
.hero-ctas > .btn.start-free { align-self: stretch; }
@media (max-width: 360px) { .hero-ctas > .store-badge span { font-size: 1.05rem; } .btn.start-free { font-size: 1.05rem; } }
.top .brand { letter-spacing: -0.02em; line-height: 1.12; }

/* How it works: Sharpie-drawn rings (thick, uneven, overshooting where they close), bigger circles */
.flow-step i { position: relative; border: none; background: #FFF1DD; width: 76px; height: 76px; }
.flow-step i::after { content: ''; position: absolute; inset: -4px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 6 C 76 5 95 24 94 50 C 93 77 74 95 48 94 C 22 93 5 74 6 49 C 7 26 24 8 50 6' fill='none' stroke='%23E06A12' stroke-width='5.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.flow-step:nth-of-type(2) i::after { transform: rotate(110deg) scaleX(-1); }
.flow-step:nth-of-type(3) i::after { transform: rotate(-70deg); }
.flow-step:nth-of-type(4) i::after { transform: rotate(200deg) scaleY(-1); }
.flow-step.hot i { background: var(--primary); }
.flow-step.hot i::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 6 C 76 5 95 24 94 50 C 93 77 74 95 48 94 C 22 93 5 74 6 49 C 7 26 24 8 50 6' fill='none' stroke='%23A9490A' stroke-width='5.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.flow-step i svg { width: 38px; height: 38px; }
.flow-step i svg [stroke-width="2.2"], .flow-step i svg [stroke-width="2.4"] { stroke-width: 2.8; }
@media (min-width: 900px) { .flow-step i { width: 112px; height: 112px; } .flow-step i svg { width: 54px; height: 54px; } }
@media (max-width: 480px) {
  .flow-step { width: 78px; }
  .flow-step i { width: 70px; height: 70px; }
  .flow-step i svg { width: 34px; height: 34px; }
  .flow-arrow { width: 16px; margin-top: 26px; }
}
@media (max-width: 360px) { .flow-step i { width: 58px; height: 58px; } .flow-step i svg { width: 28px; height: 28px; } }
/* less space between How it works and Meet Louie */
.kids { margin-top: 40px; }
@media (max-width: 860px) { .kids { margin-top: 28px; } }
@media (max-width: 480px) { .flow { gap: 1px; } .flow-step { width: 74px; } .flow-step i { width: 66px; height: 66px; } .flow-arrow { width: 14px; } }
/* header logo: word tucked close to the icon, centered on it */
.top .brand { gap: 6px; line-height: 1; align-items: center; }
.top .brand img { display: block; flex: none; }
.top .brand { padding-bottom: 0.06em; }
@media (max-width: 480px) { .flow-step { width: 72px; } }
/* arrows between the steps: short marker strokes, same orange as the rings */
.flow { align-items: flex-start; }
.flow-arrow { width: 26px; height: 16px; margin-top: 30px; color: #E06A12; opacity: 0.85; }
@media (min-width: 900px) { .flow-arrow { width: 44px; height: 26px; margin-top: 44px; } }
@media (max-width: 480px) { .flow-step { width: 70px; } .flow-step i { width: 62px; height: 62px; } .flow-arrow { width: 22px; height: 14px; margin-top: 25px; } }
/* dotted wavy arrows again, with room to breathe: circles a touch smaller on phones */
.flow-arrow { width: 40px; height: 22px; margin-top: 30px; color: #E06A12; opacity: 0.75; }
@media (min-width: 900px) { .flow-arrow { width: 64px; height: 34px; margin-top: 40px; } }
@media (max-width: 480px) { .flow-step { width: 64px; font-size: 0.78rem; } .flow-step i { width: 56px; height: 56px; } .flow-step i svg { width: 28px; height: 28px; } .flow-arrow { width: 30px; height: 18px; margin-top: 20px; } }
@media (max-width: 360px) { .flow-step { width: 58px; } .flow-step i { width: 50px; height: 50px; } .flow-arrow { width: 22px; } }
@media (min-width: 481px) { .stage { height: 500px; } .note { bottom: 56px; } }
/* phones: the three promises fit in two rows (text scales down on narrow screens) */
@media (max-width: 480px) { .trust { gap: 4px 12px; font-size: clamp(0.72rem, 3.5vw, 0.92rem); } .trust li { white-space: nowrap; } }

/* ── chest demo, take 3: a big chest centered in the card; tapping lifts it up as it opens,
   leaving room below for the diamond count and the note. The card never changes size. ── */
.stage { --chest: 260px; --lift: -91%; --shrink: 0.7; --amount-top: 49%; height: 500px; display: block; padding: 0; }
.stage-label { position: absolute; left: 0; right: 0; top: 24px; margin: 0; transition: opacity 0.3s; }
.stage.open .stage-label { opacity: 0; }
.chest, .chest svg { width: var(--chest); }
.chest { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); animation: none;
  transition: transform 0.65s cubic-bezier(0.34, 1.3, 0.64, 1); }
.chest svg { animation: wiggle 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
.stage.open .chest { transform: translate(-50%, var(--lift)) scale(var(--shrink)); }
.stage.open .chest svg { animation: none; }
.amount { position: absolute; left: 0; right: 0; top: var(--amount-top); margin: 0; }
.tap { bottom: 34px; }
.note { bottom: 56px; }
@media (max-width: 480px) { .stage { --chest: 220px; --lift: -97%; --shrink: 0.74; --amount-top: 47%; height: 480px; } .chest, .chest svg { width: var(--chest); } .amount { font-size: 2.6rem; } .note { bottom: 52px; } }
@media (max-width: 360px) { .stage { --chest: 190px; --lift: -100%; --shrink: 0.76; --amount-top: 45%; height: 450px; } }
@media (prefers-reduced-motion: reduce) { .chest { transition: none; } .chest svg { animation: none; } }
/* chest lifts less: the count sits just above the note */
.stage { --lift: -73%; --amount-top: 59%; }
@media (max-width: 480px) { .stage { --lift: -76%; --amount-top: 57.5%; } }
@media (max-width: 360px) { .stage { --lift: -73%; --amount-top: 57%; } }

/* header: light/dark button (shows the mode you'd switch to) */
.theme-toggle { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
@media (prefers-color-scheme: dark) {
html:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
html:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
html[data-theme="dark"] .theme-toggle .i-sun { display: block; }
html[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.top nav + .theme-toggle { margin-left: 18px; }
.top .theme-toggle + .btn { margin-left: 10px; }
@media (max-width: 760px) { .top .theme-toggle { margin-left: auto; } .top .theme-toggle + .btn { margin-left: 10px; } }
/* the logo is now the chest alone (transparent), so no rounded tile behind it */
.brand img, .top .brand img { border-radius: 0; object-fit: contain; }

/* pricing: the two plans centered and taller */
.plans { margin-left: auto; margin-right: auto; max-width: 720px; align-items: stretch; }
.plan { min-height: 360px; padding: 30px 26px; display: flex; flex-direction: column; }
@media (max-width: 640px) { .plan { min-height: 0; } }

/* chest demo: bonus diamonds float out in bubbles (like the app); tap to pop and add the +N */
.gem-bubble { position: absolute; z-index: 4; width: 62px; height: 62px; margin: -31px 0 0 -31px; padding: 10px 10px 16px; border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95) 0 9%, rgba(255, 255, 255, 0.35) 22%, rgba(190, 240, 255, 0.28) 60%, rgba(255, 255, 255, 0.55) 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75), 0 6px 14px rgba(120, 50, 0, 0.18);
  animation: bubbleIn 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) both, bubbleBob 2.6s ease-in-out infinite; }
.gem-bubble svg { width: 100%; height: 100%; display: block; }
.gem-bubble b { position: absolute; left: 0; right: 0; bottom: 6px; font: 900 0.8rem/1 Nunito, system-ui, sans-serif; color: #fff; text-shadow: 0 1px 3px rgba(120, 50, 0, 0.6); }
.gem-bubble.popped { animation: bubblePop 0.35s ease-out forwards; pointer-events: none; }
@keyframes bubbleIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes bubbleBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes bubblePop { 0% { transform: scale(1); opacity: 1; } 60% { transform: scale(1.35); opacity: 0.7; } 100% { transform: scale(0.2) translateY(-40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gem-bubble { animation: none; } }
@media (max-width: 480px) { .gem-bubble { width: 54px; height: 54px; margin: -27px 0 0 -27px; } }

/* launch email signup: centered under the download block on every screen size */
.waitlist { text-align: center; }
.waitlist .row { margin: 0 auto; }
.waitlist .wl-fine { margin: 8px auto 0; max-width: 460px; }
/* pricing heading + line, centered over the centered plans */
#pricing > h2, #pricing > .section-lede { text-align: center; margin-left: auto; margin-right: auto; }

/* download: big Louie on the left (as tall as the block), everything else centered on the right */
.download-main { text-align: center; }
.download-main h2 { margin-bottom: 4px; }
.download .cta-row { justify-content: center; align-items: center; gap: 18px; margin: 20px 0 6px; flex-wrap: nowrap; }
.cta-split { width: 2px; height: 44px; border-radius: 2px; background: var(--line-strong); flex: none; }
.cta-note { margin: 0; font-weight: 800; font-size: 1.05rem; text-align: left; max-width: 13em; }
.download .waitlist { margin-top: 26px; }
@media (min-width: 861px) {
  .download-inner { grid-template-columns: clamp(200px, 24vw, 320px) 1fr auto; align-items: stretch; }
  .download-louie { position: relative; min-height: 260px; }
  .download-louie svg { position: absolute; inset: 0; width: 100%; height: 100%; }
}
@media (max-width: 860px) { .download-louie svg { width: 130px; height: auto; } }
/* phones and tablets: the earlier layout (line under the title, badge below it) */
.download .dl-sub { display: none; }
@media (max-width: 860px) {
  .download .dl-sub { display: block; }
  .cta-split, .cta-note { display: none; }
  .download .cta-row { margin: 24px 0 18px; }
  .download .waitlist { margin-top: 28px; }
}
/* the chest art sits low in its box (sparkles above), so the name drops a touch to line up with the chest */
.brand span { position: relative; top: 0.14em; }

/* "What they do" sits on the orange Louie band: stay white in dark mode too */
@media (prefers-color-scheme: dark) {
html:not([data-theme="light"]) .more-d.light > summary { color: #fff; }
}
html[data-theme="dark"] .more-d.light > summary { color: #fff; }

/* orange buttons that are links: keep white text in dark mode (the dark-mode link color made them orange-on-orange) */
@media (prefers-color-scheme: dark) {
html:not([data-theme="light"]) .btn:not(.ghost) { color: #fff; }
}
html[data-theme="dark"] .btn:not(.ghost) { color: #fff; }
@media (prefers-color-scheme: dark) {
html:not([data-theme="light"]) .store-badge { color: #fff; }
}
html[data-theme="dark"] .store-badge { color: #fff; }
