/* Larlebee's public website. Plain pages, no app code. Colours and fonts follow public/styles.css. */
:root {
  --bg: #f7f2e7; --bg-2: #efe6d4; --surface: #fffcf5; --surface-2: #fbf5e9;
  --ink: #241d14; --ink-2: #4a3f31; --muted: #76695a; --line: #e7dcc7; --line-2: #d8cab0;
  --accent: #94560a; --accent-2: #2f6b4f; --accent-soft: #f6e8cc; --on-accent: #fff8ea;
  --honey: #f2b53c; --gold: #b9820f; --green-soft: #e3efe7;
  --deep: #1f3a2d; --on-deep: #f3ecdc;
  --shadow: 0 1px 2px rgb(60 40 10 / .06), 0 6px 20px -8px rgb(60 40 10 / .16);
  --shadow-lg: 0 24px 60px -18px rgb(50 30 5 / .35);
  --radius: 18px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16120c; --bg-2: #1c170f; --surface: #221c13; --surface-2: #2a2318; --ink: #f2eadb; --ink-2: #d8cdb9;
    --muted: #a59a8a; --line: #362d20; --line-2: #483b29; --accent: #f0b44c; --accent-2: #7cc29a; --accent-soft: #3a2c14;
    --on-accent: #241703; --gold: #f2c45c; --honey: #f7cf6a; --green-soft: #1d2b22; --deep: #12241b; --on-deep: #efe7d6;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -10px rgb(0 0 0 / .5); --shadow-lg: 0 24px 60px -18px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16120c; --bg-2: #1c170f; --surface: #221c13; --surface-2: #2a2318; --ink: #f2eadb; --ink-2: #d8cdb9;
  --muted: #a59a8a; --line: #362d20; --line-2: #483b29; --accent: #f0b44c; --accent-2: #7cc29a; --accent-soft: #3a2c14;
  --on-accent: #241703; --gold: #f2c45c; --honey: #f7cf6a; --green-soft: #1d2b22; --deep: #12241b; --on-deep: #efe7d6;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -10px rgb(0 0 0 / .5); --shadow-lg: 0 24px 60px -18px rgb(0 0 0 / .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 7.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2.5px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.eyebrow { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--ink-2); max-width: 40em; }
.muted { color: var(--muted); }
.stack > * + * { margin-top: 14px; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; font-weight: 600; text-decoration: none; background: var(--accent); color: var(--on-accent);
  border: 1px solid transparent; transition: transform .12s, box-shadow .15s; white-space: nowrap;
}
.btn:hover { box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn.on-deep { background: var(--honey); color: #241703; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; }
.brand svg { flex-shrink: 0; }
.nav { display: none; gap: 22px; margin-left: 12px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.signin { color: var(--ink); font-weight: 600; text-decoration: none; padding: 8px 4px; }
.top-actions > .btn { display: none; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: 52px; width: min(280px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; display: grid; }
.menu nav a { padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.menu nav a:hover { background: var(--surface-2); }
.menu nav .btn { margin-top: 6px; color: var(--on-accent); }
@media (min-width: 900px) {
  .nav { display: flex; }
  .menu { display: none; }
  .top-actions > .btn { display: inline-flex; }
}

/* ---------- hero */
.hero { position: relative; padding: 48px 0 64px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  /* Fades out before the section ends, so there is no edge where the next one begins. */
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent);
  background: radial-gradient(60% 60% at 85% 20%, color-mix(in srgb, var(--honey) 35%, transparent), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { margin-top: 18px; }
.hero .actions { margin-top: 28px; }
.hero-note { margin-top: 16px; font-size: .9rem; color: var(--muted); }
@media (min-width: 900px) {
  .hero { padding: 80px 0 96px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
}

/* a phone with the family tree */
.phone {
  width: min(320px, 82vw); margin-inline: auto; aspect-ratio: 9 / 18.5; border-radius: 40px; padding: 12px;
  background: #1d1810; box-shadow: var(--shadow-lg); position: relative;
}
.phone-screen { height: 100%; border-radius: 30px; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.phone-bar { display: flex; align-items: center; gap: 8px; padding: 18px 16px 10px; font-family: var(--serif); font-weight: 700; }
.phone-bar small { margin-left: auto; font-family: var(--sans); font-weight: 600; font-size: .7rem; color: var(--muted); }
.phone-tree { flex: 1; padding: 4px 8px; }
.phone-tree svg { width: 100%; height: 100%; }
.phone-tabs { display: flex; justify-content: space-around; padding: 10px 6px 16px; border-top: 1px solid var(--line); font-size: .62rem; color: var(--muted); font-weight: 600; }
.phone-tabs span { display: grid; justify-items: center; gap: 3px; }
.phone-tabs i { width: 18px; height: 18px; border-radius: 6px; background: var(--line-2); }
.phone-tabs .on { color: var(--accent); }
.phone-tabs .on i { background: var(--accent); }
.float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 10px 12px; font-size: .78rem; line-height: 1.35; width: 190px;
}
.float-card b { display: block; font-size: .82rem; }
.float-card.a { left: -64px; top: 15%; width: 170px; }
.float-card.b { right: -56px; bottom: 17%; }
@media (max-width: 700px) {
  .float-card.a, .float-card.b { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; max-width: 320px; margin: 12px auto 0; }
}

/* ---------- proof strip */
.strip { border-block: 1px solid var(--line); background: var(--surface-2); }
.strip ul { list-style: none; display: grid; grid-template-columns: 1fr; gap: 16px; padding: 22px 0; }
.strip li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); }
.strip li b { color: var(--ink); display: block; }
.strip .dot { flex-shrink: 0; width: 26px; height: 26px; }
@media (min-width: 600px) { .strip ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .strip ul { grid-template-columns: repeat(4, 1fr); } }

/* ---------- sections */
section.block { padding: 72px 0; }
section.block.tint { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 40px; }
.section-head h2 { margin-top: 8px; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 1.08rem; }
.center { text-align: center; margin-inline: auto; }

/* the name story */
.name-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 8px 0 26px; }
.hex {
  width: 52px; height: 58px; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.5rem;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--accent); color: var(--on-accent);
}
.hex:nth-child(3n+2) { background: var(--honey); color: #241703; }
.hex:nth-child(3n) { background: var(--accent-2); color: #fff; }
@media (min-width: 600px) { .hex { width: 64px; height: 72px; font-size: 1.8rem; } }

/* feature rows */
.feature { display: grid; gap: 28px; align-items: center; padding: 36px 0; }
.feature + .feature { border-top: 1px dashed var(--line-2); }
.feature h3 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); margin-top: 6px; }
.feature p { margin-top: 12px; color: var(--ink-2); }
.ticks { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; color: var(--ink-2); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .3em; width: 16px; height: 18px; background: var(--honey);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; padding: 56px 0; }
  .feature.flip .mock { order: -1; }
}

/* small pictures of the app */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 18px; max-width: 460px; width: 100%; justify-self: center; }
.mock-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; margin-bottom: 12px; }
.mock-head small { margin-left: auto; color: var(--muted); font-weight: 500; font-size: .78rem; }
.mock-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.mock-row:first-of-type { border-top: 0; }
.mock-row .grow { flex: 1; min-width: 0; }
.mock-row small { display: block; color: var(--muted); font-size: .78rem; }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .78rem; color: #fff; background: var(--accent-2); flex-shrink: 0; }
.av.h { background: var(--honey); color: #241703; }
.av.b { background: var(--accent); color: var(--on-accent); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.pill.g { background: var(--green-soft); color: var(--accent-2); }
.bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--honey)); border-radius: inherit; }
.bubble { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: .9rem; margin-top: 10px; }
.bubble.me { background: var(--accent-soft); border-color: transparent; border-radius: 14px 14px 4px 14px; margin-left: 40px; }
.bubble cite { display: block; margin-top: 6px; font-style: normal; font-size: .74rem; color: var(--muted); }
.wave { display: flex; align-items: center; gap: 2px; height: 26px; }
.wave i { width: 3px; border-radius: 3px; background: var(--accent); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photo-grid span { aspect-ratio: 1; border-radius: 10px; background: linear-gradient(135deg, var(--bg-2), var(--line-2)); position: relative; }
.photo-grid span.old { background: linear-gradient(135deg, #cdb894, #8d7550); filter: sepia(.4); }
.photo-grid span.q::after { content: '?'; position: absolute; right: 6px; bottom: 4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--honey); color: #241703; font-weight: 700; font-size: .75rem; }

/* card grid */
.cards { display: grid; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin: 12px 0 8px; }
.card p { color: var(--ink-2); font-size: .95rem; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }

/* the promise band */
.promise { background: var(--deep); color: var(--on-deep); padding: 72px 0; position: relative; overflow: hidden; }
.promise .eyebrow { color: var(--honey); }
.promise h2 { color: #fff8ea; margin-top: 8px; }
.promise p { color: color-mix(in srgb, var(--on-deep) 85%, transparent); }
.promise-list { list-style: none; display: grid; gap: 14px; margin: 32px 0; }
.promise-list li { display: flex; gap: 14px; align-items: flex-start; background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1); border-radius: 16px; padding: 18px; }
.promise-list b { display: block; color: #fff8ea; font-size: 1.08rem; margin-bottom: 4px; }
.promise-list .num { flex-shrink: 0; width: 36px; height: 40px; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; background: var(--honey); color: #241703; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.promise a:not(.btn) { color: var(--honey); }
@media (min-width: 900px) { .promise-list { grid-template-columns: repeat(3, 1fr); } }

/* steps */
.steps { list-style: none; counter-reset: s; display: grid; gap: 18px; }
.steps > li { counter-increment: s; position: relative; padding: 22px 22px 22px 76px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps > li::before {
  content: counter(s); position: absolute; left: 20px; top: 20px; width: 40px; height: 46px; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem; background: var(--accent); color: var(--on-accent);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-2); }

/* pricing */
.plans { display: grid; gap: 20px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan.plus { border: 2px solid var(--accent); position: relative; }
.plan .price { font-family: var(--serif); font-size: 2rem; font-weight: 700; margin: 10px 0 4px; }
.plan .price small { font-family: var(--sans); font-size: .9rem; font-weight: 500; color: var(--muted); }
.plan .ticks { flex: 1; margin: 18px 0 24px; }
.plan .tag { position: absolute; top: -13px; left: 24px; }
.compare { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .95rem; background: var(--surface); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.compare thead th { border-top: 0; background: var(--surface-2); font-size: .85rem; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: right; white-space: nowrap; }
@media (min-width: 800px) { .plans { grid-template-columns: 1fr 1fr; } }

/* prose (safety promise) */
.prose h2 { font-size: clamp(1.4rem, 3.6vw, 1.8rem); margin: 44px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin-top: 10px; display: grid; gap: 8px; }

.page-head { padding: 56px 0 24px; }
.page-head .lead { margin-top: 16px; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style-position: outside; }
.faq details p { padding: 0 0 16px; color: var(--ink-2); }

/* closing call */
.cta { text-align: center; padding: 80px 0; }
.cta .actions { justify-content: center; margin-top: 26px; }
.cta p { margin: 14px auto 0; max-width: 34em; color: var(--ink-2); }

/* ---------- footer */
.foot { background: var(--bg-2); border-top: 1px solid var(--line); padding: 44px 0 32px; font-size: .92rem; }
.foot-grid { display: grid; gap: 28px; }
.foot h4 { margin: 0 0 10px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.foot ul { list-style: none; display: grid; gap: 8px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot .tagline { font-family: var(--serif); font-style: italic; margin-top: 8px; color: var(--ink-2); }
.foot .small { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* ---------- privacy policy: sub-headings and the request form */
.prose h3 { font-size: 1.05rem; margin: 22px 0 6px; font-family: var(--sans, inherit); }
.request-form { display: grid; gap: 14px; margin-top: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.request-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.request-form small { font-weight: 400; color: var(--muted); }
.request-form input, .request-form select, .request-form textarea {
  width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: inherit; font-size: max(16px, 1em); font-weight: 400;
}
.request-form .btn { justify-self: start; }
.form-msg { margin: 0; font-size: .92rem; min-height: 1.2em; }
.form-msg.ok { color: var(--accent-2); }
.form-msg.bad { color: #b3261e; }

/* ---------- the globe (/world, and the home page) */
.globe { display: grid; justify-items: center; gap: 10px; width: 100%; }
.globe[hidden] { display: none; }
.globe canvas { display: block; max-width: 100%; }
.globe-caption { margin: 0; font-size: .88rem; color: var(--muted); text-align: center; min-height: 1.3em; }
.globe-link { font-size: .9rem; font-weight: 600; }
.world-hero { background: #120e08; color: #f2eadb; padding: 56px 0 64px; overflow: hidden; }
.world-hero .eyebrow { color: #f2b53c; }
.world-hero h1 em { font-style: italic; color: #f2b53c; }
.world-hero .lead { color: #d8cdb9; margin-top: 16px; }
.world-hero .globe-caption { color: #a59a8a; }
.world-grid { display: grid; gap: 32px; align-items: center; }
.world-facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; color: #d8cdb9; }
.world-facts li { padding-left: 22px; position: relative; }
.world-facts li::before { content: ''; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: #f2b53c; box-shadow: 0 0 10px #f2b53c; }
.world-facts b { color: #fff8ea; }
@media (min-width: 900px) { .world-grid { grid-template-columns: 1fr 1.15fr; } }

/* ---------- home: a family tree that grows (no photos; drawn and animated here) */
.grow-wrap { display: grid; place-items: center; }
.grow-tree { width: min(100%, 520px); height: auto; overflow: visible; }
.grow-lines path { stroke: color-mix(in srgb, var(--ink-2) 55%, var(--bg)); stroke-dasharray: 1.01; stroke-dashoffset: 1.01; animation: grow-draw .7s ease-out var(--d) forwards; }
.grow-node { opacity: 0; transform-box: fill-box; transform-origin: center; animation: grow-pop .55s cubic-bezier(.2, .8, .2, 1) var(--d) forwards; }
.grow-node polygon { fill: var(--accent); }
.grow-node.married polygon { fill: var(--accent-2); }
.grow-node.new polygon { fill: var(--honey); }
.grow-node .init { fill: var(--on-accent); font: 700 13px var(--sans); text-anchor: middle; }
.grow-node.new .init { fill: #241703; font-size: 11px; }
.grow-node .name { fill: var(--ink-2); font: 500 11.5px var(--sans); text-anchor: middle; }
/* The newest arrival keeps a soft glow once the tree has grown. */
.grow-node.new polygon { animation: grow-glow 1.2s ease-in-out 3.6s 2; transform-box: fill-box; transform-origin: center; }
@keyframes grow-draw { to { stroke-dashoffset: 0; } }
/* Moving pictures settle within about five seconds (WCAG 2.2.2): nothing here moves for ever. */
@keyframes grow-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes grow-glow { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* ---------- home: how it starts, three steps on one line */
.start-steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; position: relative; }
.start-steps li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.start-steps p { color: var(--ink-2); margin-top: 4px; }
.step-hex { width: 52px; height: 52px; display: grid; place-items: center; font: 700 1.2rem var(--serif); color: var(--accent);
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); background: var(--accent-soft);
  animation: step-turn 1.6s ease-in-out calc(var(--n) * 1.4s) 1; }
/* Each step lights up in turn: the order things happen in. */
@keyframes step-turn { 0%, 100% { transform: none; } 40% { transform: scale(1.15); } }
@media (min-width: 860px) {
  .start-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .start-steps::before { content: ''; position: absolute; top: 26px; left: 26px; right: calc(33% - 26px); height: 2px; background: var(--line-2); z-index: -1; }
  .start-steps li { grid-template-columns: 1fr; }
}

/* ---------- home: what families do with it, a plain list with small moving drawings */
.does { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 4px; }
.does li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.does li:last-child { border-bottom: 0; }
.does b { font: 600 1.1rem/1.3 var(--serif); }
.does p { color: var(--ink-2); margin-top: 4px; }
.mini { width: 40px; height: 40px; display: grid; place-items: center; }
.mini svg { width: 36px; height: 36px; stroke: var(--accent); fill: var(--accent); }
.mini svg [fill="none"] { fill: none; }
.m-tree path { stroke-dasharray: 1.01; animation: mini-draw 2s ease-in-out 1; }
.m-wave rect { stroke: none; transform-box: fill-box; transform-origin: center; animation: mini-wave .6s ease-in-out calc(var(--i) * .12s) 6 alternate; }
.m-q { font: 700 12px var(--sans); fill: var(--accent); stroke: none; animation: mini-blink 1.6s ease-in-out 2; }
.m-page { stroke-width: 2.4; animation: mini-blink 1.6s ease-in-out 2; }
.m-dot { stroke: none; animation: mini-pop 1.6s ease-in-out 2; transform-box: fill-box; transform-origin: center; }
.m-coins ellipse { stroke: var(--surface); stroke-width: 1.5; animation: mini-stack 2s ease-out calc(var(--i) * .3s) 1 backwards; }
.m-b1, .m-b2 { stroke: none; animation: mini-blink 1.6s ease-in-out 2; }
.m-b2 { fill: var(--accent-2); animation-delay: .8s; }
.m-ask { stroke: none; }
.m-askq { font: 700 14px var(--sans); fill: var(--on-accent); stroke: none; text-anchor: middle; animation: mini-blink 1.6s ease-in-out 2; }
@keyframes mini-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes mini-wave { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
@keyframes mini-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes mini-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.4); } }
@keyframes mini-stack { 0% { transform: translateY(-14px); opacity: 0; } 40%, 100% { transform: none; opacity: 1; } }

/* ---------- home: the promises, in plain words */
.promises { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 14px; }
.promises li { padding-left: 22px; position: relative; color: var(--ink-2); }
.promises li::before { content: ''; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; background: var(--accent); clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }
.promises b { color: var(--ink); }

/* Someone who asked for less motion sees everything at rest, as it ends. */
@media (prefers-reduced-motion: reduce) {
  .grow-lines path { animation: none; stroke-dashoffset: 0; }
  .grow-node { animation: none; opacity: 1; }
  .grow-node.new polygon, .step-hex, .m-tree path, .m-wave rect, .m-q, .m-page, .m-dot, .m-coins ellipse, .m-b1, .m-b2, .m-askq { animation: none; }
  .m-tree path { stroke-dashoffset: 0; }
}

/* Waiting until each part is on screen (home.js), when scripts run. */
.js .grow-tree:not(.in) *, .js .start-steps:not(.in) *, .js .does li:not(.in) * { animation-play-state: paused; }
.grow-key { margin: 8px 0 0; font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.grow-key span { width: 12px; height: 12px; background: var(--accent-2); clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }
.faq h2 { margin-bottom: 20px; }
@media (max-width: 600px) {
  /* The drawing is scaled down on a phone: its words are drawn bigger to stay readable. */
  .grow-node .name { font-size: 15px; }
  .grow-node .init { font-size: 15px; }
}
