:root {
  --paper: #faf7ea;
  --paper-2: #f3eed6;
  --surface: #ffffff;
  --ink: #17261e;
  --muted: #56655c;
  --line: rgba(23, 38, 30, 0.12);
  --accent: #1f6340;
  --accent-ink: #ffffff;
  --deep: #1a4f38;
  --deeper: #123a29;
  --cream: #f0ebcf;
  --leaf: #91d180;
  --leaf-2: #b8e69c;
  --tint: #e3efd9;
  --bezel: #1c211e;
  --shadow: 0 30px 60px -30px rgba(18, 58, 41, 0.45), 0 12px 24px -16px rgba(18, 58, 41, 0.3);
  --radius: 22px;
  --display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1a14;
    --paper-2: #132219;
    --surface: #18271f;
    --ink: #eef3ec;
    --muted: #a8b6ad;
    --line: rgba(238, 243, 236, 0.12);
    --accent: #6bd99c;
    --accent-ink: #0d2a1c;
    --tint: #1d3326;
    --bezel: #050806;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 12px 24px -16px rgba(0, 0, 0, 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 12px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}

/* Header */
.site-header { padding: 18px 0; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.brand img { border-radius: 9px; }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.site-header nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .site-header nav { display: none; } }

/* Hero */
.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { margin-top: 22px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 34em; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.button {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px;
  background: var(--accent); color: var(--accent-ink); border-radius: 999px;
  text-decoration: none; font-weight: 650; font-size: 1rem;
  box-shadow: 0 8px 20px -10px rgba(31, 99, 64, 0.7);
  transition: transform 0.15s ease;
}
.button:hover { transform: translateY(-1px); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #d6a73a; box-shadow: 0 0 0 4px rgba(214, 167, 58, 0.2); }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Device illustration: sizes use container units so the mockups scale as one piece. */
.devices { position: relative; container-type: inline-size; padding: 0 0 20% 0; }
.devices svg { width: 1em; height: 1em; flex: none; }

.ipad {
  margin-left: 21%;
  aspect-ratio: 4 / 3;
  background: var(--bezel);
  border-radius: 5cqw;
  padding: 2.4cqw;
  box-shadow: var(--shadow);
}
.ipad .screen {
  height: 100%; border-radius: 2.8cqw; overflow: hidden;
  background: #fbfcfa; color: #17261e;
  padding: 2.6cqw 3.4cqw;
  font-size: 1.7cqw;
  display: flex; flex-direction: column; gap: 1.8cqw;
}
.bar { display: flex; justify-content: space-between; color: #1f6340; font-weight: 600; }
.bar-btn { display: inline-flex; align-items: center; gap: 0.5em; }
.lib-title { display: flex; align-items: center; gap: 0.45em; font: 800 3.9cqw/1 var(--display); letter-spacing: -0.02em; }
.avatar {
  --leaf-vein: #e3efd9;
  display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; border-radius: 50%;
  background: #e3efd9; color: #1f6340; font-size: 0.8em;
}
.avatar svg { width: 0.7em; height: 0.7em; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); background: #ecefe9; border-radius: 1.1cqw; padding: 0.35cqw; text-align: center; font-weight: 600; }
.segmented span { padding: 0.6cqw 0; border-radius: 0.8cqw; }
.segmented .on { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.row-link { display: flex; align-items: center; gap: 0.55em; font-weight: 700; font-size: 1.9cqw; }
.row-link .chev { margin-left: auto; width: 0.8em; height: 0.8em; color: #9aa59e; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.card b { display: block; margin-top: 0.8cqw; font-size: 1.75cqw; line-height: 1.2; }
.card small { color: #6b7770; font-size: 1.5cqw; }
.thumb { aspect-ratio: 16 / 10; border-radius: 1.6cqw; display: grid; place-items: center; color: rgba(255, 255, 255, 0.92); font-size: 3.6cqw; }
.t1 { background: linear-gradient(135deg, #7cc4e8, #f2c46b 55%, #ef8a7a); }
.t2 { background: radial-gradient(circle at 70% 35%, #f5f0d6 0 16%, transparent 17%), linear-gradient(160deg, #203a5c, #3f5f8a); }
.t3 { background: linear-gradient(135deg, #f0a35e, #d86a4b); }

.iphone {
  position: absolute; left: 0; bottom: 0;
  width: 27%; aspect-ratio: 9 / 19.5;
  background: var(--bezel); border-radius: 5cqw; padding: 1.1cqw;
  box-shadow: var(--shadow);
}
.iphone .screen {
  position: relative; height: 100%; border-radius: 4cqw; overflow: hidden;
  background: #2a2f2c; font-size: 1.5cqw; color: #17261e;
}
.island { position: absolute; top: 1.6cqw; left: 50%; transform: translateX(-50%); width: 30%; height: 2.6cqw; border-radius: 99px; background: #050605; z-index: 2; }
.behind { padding: 6.5cqw 2cqw 0; opacity: 0.55; }
.behind-video { aspect-ratio: 16 / 9; border-radius: 1.2cqw; background: linear-gradient(135deg, #7cc4e8, #f2c46b 55%, #ef8a7a); display: grid; place-items: center; color: #fff; font-size: 4cqw; }
.behind-line { height: 1.2cqw; margin-top: 1.6cqw; border-radius: 99px; background: rgba(255, 255, 255, 0.35); }
.behind-line.short { width: 60%; }
.sheet {
  position: absolute; inset: auto 0 0 0; height: 60%;
  background: #f2f3f0; border-radius: 3.4cqw 3.4cqw 0 0; padding: 2.2cqw 1.8cqw;
}
.sheet-bar { display: grid; grid-template-columns: auto 1fr auto; row-gap: 1.2cqw; align-items: baseline; margin-bottom: 2cqw; }
.sheet-bar span { color: #1f6340; }
.sheet-bar b { grid-row: 2; grid-column: 1 / -1; text-align: center; font-size: 1.1em; white-space: nowrap; }
.sheet-bar .add { grid-column: 3; font-weight: 700; }
.sheet-group { background: #fff; border-radius: 1.8cqw; }
.sheet-row { display: flex; justify-content: space-between; padding: 1.6cqw 1.8cqw; }
.sheet-row + .sheet-row { border-top: 1px solid #e3e6e1; }
.sheet-row .val { color: #6b7770; }

/* Sections */
section { scroll-margin-top: 16px; }
.section-head { max-width: 640px; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
.section-head p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }

/* How it works */
.how { padding: clamp(64px, 9vw, 112px) 0; background: var(--paper-2); }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.step {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius); padding: 28px 26px 26px;
  border: 1px solid var(--line);
}
.num {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font: 800 1.05rem/1 var(--display);
  margin-bottom: 18px;
}
.step h3 { font-size: 1.35rem; font-weight: 750; }
.step p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
.mini {
  margin-top: auto; padding-top: 22px;
  display: flex; align-items: center; gap: 14px;
}
.mini svg { width: 1em; height: 1em; }
.mini-child .avatar.lg { font-size: 2.6rem; }
.mini-child b { font-family: var(--display); font-size: 1.1rem; }
.sym-row { display: flex; gap: 6px; margin-top: 6px; }
.sym-row span {
  --leaf-vein: var(--surface);
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--tint); color: var(--accent); font-size: 16px;
}
.sym-row .on { background: var(--accent); color: var(--accent-ink); --leaf-vein: var(--accent); }
.mini-pair .qr { width: 84px; height: 84px; padding: 7px; background: #fff; color: #17261e; border-radius: 12px; border: 1px solid var(--line); flex: none; }
.code-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.code { font: 700 1.05rem/1.35 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.06em; }
.confirm { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--accent); }
.mini-share { flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px;
  background: var(--tint); font-size: 0.88rem; font-weight: 600; white-space: nowrap;
}
.chip img { width: 20px; height: 20px; border-radius: 5px; }
.avatar.xs { font-size: 1.05rem; }
.to { color: var(--muted); width: 14px !important; height: 14px !important; }
.aside { margin-top: 28px; color: var(--muted); font-size: 0.95rem; max-width: 640px; }

@media (min-width: 981px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 45px; right: -20px; width: 20px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 8px); opacity: 0.6;
  }
}
@media (max-width: 980px) { .steps { grid-template-columns: 1fr; max-width: 560px; } }

/* Library */
.library { padding: clamp(64px, 9vw, 112px) 0; }
.shelf { margin-top: 48px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  grid-column: span 2;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.tile:nth-child(4) { grid-column: span 2; }
.tile-ask { grid-column: span 4; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start; }
.tile-ask .tile-icon { grid-row: span 3; }
.tile-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--tint); color: var(--accent); margin-bottom: 16px;
}
.tile-icon svg { width: 24px; height: 24px; }
.tile h3 { font-size: 1.25rem; font-weight: 750; }
.tile p { margin-top: 8px; color: var(--muted); font-size: 0.98rem; }
.tile .ask-bubble {
  justify-self: start; margin-top: 16px; padding: 10px 16px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  border-radius: 18px 18px 18px 6px;
}
.symbols { margin-top: 36px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--muted); }
.sym-row.big { margin: 0; gap: 8px; }
.sym-row.big span { width: 42px; height: 42px; font-size: 22px; }
.symbols svg { width: 1em; height: 1em; }

@media (max-width: 980px) {
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile:nth-child(4) { grid-column: span 1; }
  .tile-ask { grid-column: span 2; }
}
@media (max-width: 560px) {
  .shelf { gap: 12px; }
  .tile { padding: 18px; }
  .tile h3 { font-size: 1.1rem; }
  .tile p { font-size: 0.92rem; }
  .tile-ask { display: block; }
}
@media (max-width: 340px) {
  .shelf { grid-template-columns: 1fr; }
  .tile, .tile:nth-child(4), .tile-ask { grid-column: span 1; }
}

/* Staying on the chosen item */
.stay { padding: clamp(64px, 9vw, 112px) 0; background: var(--deeper); color: #eef3ec; }
.stay .eyebrow { color: var(--leaf); }
.stay-grid { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius); padding: 22px 22px 28px; }
.panel h3 { margin-top: 24px; font-size: 1.35rem; font-weight: 750; }
.panel p { margin-top: 10px; color: #bfcdc4; }
.view { background: #fbfcfa; color: #17261e; border-radius: 16px; overflow: hidden; font-size: 0.85rem; }
.view svg { width: 1em; height: 1em; }
.view-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #e6e9e4; }
.view-bar .x { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #ecefe9; color: #1f6340; }
.view-bar b { font-weight: 650; }
.player { aspect-ratio: 16 / 7; margin: 14px 14px 0; border-radius: 12px; background: #101412; position: relative; overflow: hidden; }
.player-bands { position: absolute; inset: 18% 20%; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: radial-gradient(ellipse at 50% 100%, transparent 0 38%, #8b6fd6 39% 46%, #5aa2e0 47% 54%, #6cc27a 55% 62%, #f2c46b 63% 70%, #ef8a7a 71% 78%, transparent 79%); opacity: 0.85; }
.view-actions { display: flex; gap: 10px; padding: 14px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #ecefe9; color: #1f6340; font-weight: 600; }
.pill.solid { background: #1f6340; color: #fff; }
.page { position: relative; padding: 14px 14px 64px; }
.page-hero { aspect-ratio: 16 / 7; border-radius: 12px; background: linear-gradient(160deg, #203a5c, #3f5f8a); display: grid; place-items: center; }
.moon { width: 18%; aspect-ratio: 1; border-radius: 50%; background: #f5f0d6; box-shadow: inset -12px 0 0 #c9c2a1; }
.line { height: 9px; margin-top: 10px; border-radius: 99px; background: #e2e6df; }
.line.short { width: 55%; }
.toast {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 28px);
  padding: 9px 14px; border-radius: 12px; background: rgba(23, 38, 30, 0.92); color: #fff;
  font-size: 0.82rem; font-weight: 600; text-align: center;
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.5);
}
.stay-foot { margin-top: 28px; display: flex; gap: 12px; align-items: flex-start; color: #bfcdc4; max-width: 720px; }
.stay-foot svg { width: 22px; height: 22px; flex: none; margin-top: 2px; padding: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: var(--leaf); }

@media (max-width: 820px) { .stay-grid { grid-template-columns: 1fr; } }

/* Parents */
.parents { padding: clamp(56px, 8vw, 96px) 0; }
.parents-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.parents .section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.facts li { display: flex; gap: 14px; }
.facts svg { width: 26px; height: 26px; flex: none; color: var(--accent); margin-top: 1px; }
.facts h3 { font-size: 1.08rem; font-weight: 750; }
.facts p { margin-top: 5px; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 880px) { .parents-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* What it is */
.what { padding: clamp(56px, 8vw, 96px) 0; background: var(--deep); color: var(--cream); text-align: center; }
.what-inner { max-width: 720px; display: flex; flex-direction: column; align-items: center; }
.what img { border-radius: 18px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 18px 30px -16px rgba(0, 0, 0, 0.6); }
.what h2 { margin-top: 24px; font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; }
.what p { margin-top: 16px; color: #d3dccf; font-size: 1.08rem; }

/* Footer */
.site-footer { padding: 32px 0 40px; color: var(--muted); font-size: 0.92rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.footer-row .brand { color: var(--ink); font-size: 1rem; margin-right: auto; }
.footer-row .brand img { border-radius: 7px; }
