/* Landing page only. Tokens come from style.css. */
:root {
  --sun-soft: #fff1c9;  --sun-ink: #8a5b00;
  --coral-soft: #ffe2df; --coral-ink: #b8312b;
  --sky-soft: #daf3ff;  --sky-ink: #0a6890;
  --leaf-soft: #e0f2e1; --leaf-ink: #2b7a30;
  --shadow: 0 1px 2px rgba(40,30,10,.10), 0 10px 30px rgba(40,30,10,.12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --sun-soft: #3a2f12;  --sun-ink: #ffd666;
    --coral-soft: #3b1f1d; --coral-ink: #ff9a8f;
    --sky-soft: #12303d;  --sky-ink: #7dd8ff;
    --leaf-soft: #1a3320; --leaf-ink: #86d68a;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.45);
  }
}

.home main { max-width: none; padding: 0; }
.home { overflow-x: hidden; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.home header { margin: 0; flex: none; }
.home header img { width: 38px; height: 38px; }
.nav nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav nav a:hover { color: var(--text); }
.nav nav .button { color: var(--on-brand); padding: 8px 16px; }
@media (max-width: 860px) { .nav nav a:not(.button):not(.login) { display: none; } }
.nav nav a.login { color: var(--text); font-weight: 600; }
@media (max-width: 380px) { .home header a { font-size: 18px; } .nav nav .button { padding: 7px 13px; font-size: 14px; } }

/* Hero */
.hero { padding: 72px 0 64px; overflow: hidden; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--sun-soft); color: var(--sun-ink);
  font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -.02em; margin: 20px 0 18px; font-weight: 900; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .26em; z-index: -1;
  background: var(--sun); border-radius: 6px; transform: rotate(-1deg); opacity: .85; }
@media (prefers-color-scheme: dark) { .hero h1 .hl::after { opacity: .45; } }
.hero h1 .hl { z-index: 0; }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button.big { padding: 13px 24px; font-size: 16px; }
.button.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.platforms { margin-top: 18px; font-size: 14px; color: var(--muted); }
.crayons { display: flex; gap: 6px; margin-top: 26px; }
.crayons i { width: 28px; height: 6px; border-radius: 6px; }

/* Phone mockup: the black wall */
.phone { justify-self: center; width: 300px; max-width: 100%; aspect-ratio: 9 / 19; border-radius: 44px; padding: 10px;
  background: #1f1d1a; box-shadow: var(--shadow), 0 30px 80px rgba(255,201,60,.22); position: relative; }
.screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: var(--wall); }
.screen svg.wall { position: absolute; inset: 0; width: 100%; height: 100%; }
.topbar { position: absolute; top: 16px; left: 12px; right: 12px; display: flex; gap: 6px; align-items: center; }
.topbar .search { flex: 1; min-width: 0; background: rgba(255,255,255,.1); color: rgba(255,255,255,.6); border-radius: 999px;
  padding: 7px 12px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .dot { width: 28px; height: 28px; flex: none; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff;
  display: grid; place-items: center; font-size: 13px; line-height: 1; }
.dock { position: absolute; left: 12px; right: 12px; bottom: 16px; display: flex; gap: 8px; justify-content: center; }
.dock span { border-radius: 999px; padding: 9px 14px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.dock .add { background: var(--sun); color: #16130e; }
.dock .book { background: rgba(255,255,255,.12); color: #fff; }
.namecard { position: absolute; left: 18px; top: 210px; background: #fffaf0; color: #16130e; border-radius: 12px;
  padding: 6px 10px 7px; font-size: 11px; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.namecard small { display: block; color: #7a705e; font-size: 9.5px; }
.namecard b { font-size: 12.5px; }
@media (prefers-reduced-motion: no-preference) {
  .float { animation: bob 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .float.d2 { animation-delay: -2s; } .float.d3 { animation-delay: -4s; }
  @keyframes bob { 50% { transform: translateY(-4px) rotate(1.5deg); } }
}

@media (max-width: 860px) {
  .hero { padding-top: 44px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { width: 270px; }
}

/* Sections */
section.band { padding: 80px 0; scroll-margin-top: 40px; }
section.alt { background: var(--soft); }
.kicker { color: var(--accent); font-weight: 800; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; margin: 0; }
.home h2 { border: 0; padding: 0; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -.015em; margin: 8px 0 14px; font-weight: 900; }
.sub { color: var(--muted); font-size: 18px; max-width: 40em; margin: 0 0 40px; }
@media (max-width: 600px) { section.band { padding: 60px 0; } .sub { font-size: 17px; } }

/* How it works */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
@media (max-width: 820px) { .how { grid-template-columns: 1fr; } }
.how li { counter-increment: step; margin: 0; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.how .art { display: block; aspect-ratio: 16 / 10; background: var(--soft); }
.how .art svg { display: block; width: 100%; height: 100%; }
.how .art.dark { background: var(--wall); }
.how .txt { padding: 20px 22px 24px; }
.how .txt::before { content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: 15px; margin-bottom: 10px; font-family: var(--head); }
.how b { display: block; font-family: var(--head); font-size: 19px; margin-bottom: 4px; }
.how span { color: var(--muted); font-size: 15.5px; }
.how-note { color: var(--muted); font-size: 14.5px; margin: 22px 0 0; }

/* Story Book */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.picks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.picks li { display: flex; align-items: flex-start; gap: 14px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; margin: 0; }
.picks b { display: block; font-size: 15.5px; }
.picks span { color: var(--muted); font-size: 14.5px; }
.picks .n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  font-family: var(--head); color: #16130e; font-size: 14px; }
.book { width: 100%; max-width: 520px; justify-self: center; filter: drop-shadow(0 18px 30px rgba(40,30,10,.18)); }
@media (prefers-color-scheme: dark) { .book { filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); } }
.book svg { display: block; width: 100%; height: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { margin: 0; font-size: 13.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--bg);
  border: 1px solid var(--line); color: var(--text); }
.small-note { color: var(--muted); font-size: 14.5px; margin: 18px 0 0; }

/* Features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.alt .card { border-color: transparent; box-shadow: 0 1px 2px rgba(40,30,10,.07); }
.card h3 { margin: 14px 0 6px; font-size: 18.5px; font-weight: 800; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--sun-soft); color: var(--sun-ink); }
.ico.coral { background: var(--coral-soft); color: var(--coral-ink); }
.ico.sky { background: var(--sky-soft); color: var(--sky-ink); }
.ico.leaf { background: var(--leaf-soft); color: var(--leaf-ink); }
.ico svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Families and privacy */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; margin: 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat; }
.ai-box { margin-top: 26px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.ai-box b { display: block; font-family: var(--head); font-size: 16.5px; margin-bottom: 4px; }
.ai-box p { margin: 0; color: var(--muted); font-size: 15px; }

/* FAQ */
.faq details, .faq h2 { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* CTA: a little black wall */
.cta { position: relative; overflow: hidden; text-align: center; background: var(--wall); color: #fff; border-radius: 28px; padding: 64px 24px; }
.cta > *:not(svg) { position: relative; }
.cta svg.confetti { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.cta h2 { color: #fff; margin-top: 0; }
.cta p { color: rgba(255,255,255,.8); font-size: 18px; margin: 0 auto 28px; max-width: 32em; }
.cta .ctas { justify-content: center; }
.cta .button { background: var(--sun); color: #16130e; }
.cta .button.outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
@media (prefers-color-scheme: dark) { .cta { box-shadow: inset 0 0 0 1px var(--line); } }

.home footer { max-width: 1120px; margin: 0 auto; padding: 24px 20px 48px; }
