:root {
  --bg: #0F1311;
  --panel: #141916;
  --card: #1A201C;
  --raised: #1F2622;
  --line: #222A26;
  --line-2: #2C3530;
  --line-3: #3A4540;
  --text: #EEF2EC;
  --text-2: #DCE3DE;
  --text-3: #C9D2CC;
  --muted: #9AA69F;
  --lime: #C6F432;
  --lime-hi: #E2FF8A;
  --orange: #FF9B57;
  --orange-ink: #1A0E05;
  --red: #FF7A7A;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 var(--body); }
a { color: var(--lime); }
a:hover { color: var(--lime-hi); }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
[hidden] { display: none !important; }

.top {
  max-width: 1280px; margin: 0 auto; padding: 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand svg { color: var(--lime); }
.brand span { font: 700 20px var(--display); letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.family-head { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.family-head strong { font-size: 15px; font-weight: 600; }
.family-head span { color: var(--muted); font-size: 12px; }
#new-family { margin-left: auto; }

.view { max-width: 1280px; margin: 0 auto; padding: 0 20px 140px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0;
  font-weight: 700; text-decoration: none;
}
.btn-lime { background: var(--lime); color: var(--bg); }
.btn-lime:hover { background: var(--lime-hi); color: var(--bg); }
.btn-orange { background: var(--orange); color: var(--orange-ink); }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--line-3); font-weight: 600; }
.mono-label { font: 500 12px var(--mono); letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }

/* Home: ask for an app */
.ask { max-width: 560px; margin: 24px auto 0; display: flex; flex-direction: column; gap: 22px; }
.ask h1 { margin: 0; font: 700 clamp(32px, 6vw, 48px)/1.05 var(--display); letter-spacing: -0.02em; }
.ask label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.ask textarea {
  width: 100%; padding: 14px; border: 1.5px solid var(--lime); border-radius: 14px;
  background: var(--panel); color: var(--text); font: 16px/1.45 var(--body); resize: vertical; min-height: 120px;
}
.ask .row { display: flex; gap: 10px; }
.ask .row .btn { flex: 1; height: 56px; font-size: 16px; border-radius: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; color: var(--text-2); font-size: 13px;
}
.chip:hover { border-color: var(--lime); color: var(--lime); }
.error { color: var(--red); font-size: 13px; margin: 0; }

.families { display: flex; flex-direction: column; gap: 10px; }
.fam {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.fam:hover { border-color: var(--line-3); color: var(--text); }
.fam-badge {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 10px; background: var(--card);
  display: grid; place-items: center; font: 700 16px var(--display); color: var(--lime);
}
.fam-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fam-text strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fam-text span { font-size: 12px; color: var(--muted); }

.pill { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.pill-live { background: var(--lime); color: var(--bg); }
.pill-busy { color: var(--lime); border-color: var(--lime); }
.pill-fail { color: var(--red); border-color: var(--red); }
.pill-quiet { color: var(--muted); border-color: var(--line-3); }

/* Family: litters of three */
.litter { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.litter-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.litter-head h2 { margin: 0; font: 700 22px/1.1 var(--display); letter-spacing: -0.01em; }
.litter-head .from { color: var(--muted); font-size: 13px; }
.litter-head .from b { font-family: var(--mono); color: var(--lime); }
.litter-head .from b.x { color: var(--orange); }
.litter-head .note { color: var(--text-3); font-size: 13px; font-style: italic; }
.kids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.kid {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 8px 8px 12px;
  background: var(--panel); border-radius: 18px; box-shadow: 0 0 0 1px var(--line);
}
.kid.picked { box-shadow: 0 0 0 2px var(--lime); }
.kid.picked.second { box-shadow: 0 0 0 2px var(--orange); }
.kid-pick {
  position: absolute; inset: 0; width: 100%; border: 0; background: transparent; border-radius: 18px; z-index: 1;
}
.kid-pick:disabled { cursor: default; opacity: 1; }
.shot {
  position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--card);
  display: grid; place-items: center;
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.growing { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; text-align: center; color: var(--muted); font-size: 12px; }
.growing .act { font-family: var(--mono); font-size: 11px; color: var(--text-3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seed { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--lime); animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .seed { animation: none; } }

.kid-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px; }
.kid-name { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.kid-name b { font: 700 13px var(--mono); color: var(--lime); }
.kid-name span { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 13px; border: 2px solid var(--line-3);
  display: grid; place-items: center; color: var(--bg); font-weight: 800; font-size: 14px;
}
.kid.picked .check { background: var(--lime); border-color: var(--lime); }
.kid.picked.second .check { background: var(--orange); border-color: var(--orange); }
.brief { margin: 0; padding: 0 4px; color: var(--text-3); font-size: 13px; line-height: 1.45; }
.kid-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px; }
.kid-foot a { position: relative; z-index: 2; font-size: 13px; font-weight: 600; text-decoration: none; }
.kid-foot .meta { color: var(--muted); font-size: 12px; white-space: nowrap; }
.kid-foot a { white-space: nowrap; }

.actionbar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 10;
  width: min(640px, calc(100% - 24px)); padding: 14px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line-2); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column; gap: 10px;
}
.actionbar p { margin: 0; text-align: center; color: var(--text-3); font-size: 13px; }
.actionbar .row { display: flex; gap: 8px; }
.actionbar input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font: 15px var(--body);
}
.actionbar .btn { min-height: 48px; }

.empty { color: var(--muted); text-align: center; padding: 60px 0; }

@media (max-width: 860px) {
  .kids { grid-template-columns: 1fr; }
  .kid { display: grid; grid-template-columns: 140px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 12px; row-gap: 6px; }
  .kid .shot { grid-row: 1 / span 3; }
  .kid-row, .brief, .kid-foot { padding: 0; }
  .brief { font-size: 12.5px; }
  .kid-foot { flex-wrap: wrap; row-gap: 2px; }
  #new-family { min-height: 40px; }
}

/* Laptop: the family tree and the selected child */
.treeview { display: flex; gap: 24px; align-items: flex-start; margin-top: 8px; }
.tree-card {
  flex: 1 1 auto; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.tree-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.tree-legend .keys { display: flex; gap: 16px; }
.tree-legend .keys span { display: flex; align-items: center; gap: 6px; }
.tree-legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; }
.k-kept { background: var(--lime); }
.k-cross { background: var(--orange); }
.tree-scroll { overflow: auto; max-height: calc(100vh - 190px); min-height: 420px; }
.tree { position: relative; }
.tlines { position: absolute; inset: 0; pointer-events: none; }
.tlines path { fill: none; stroke-width: 2; stroke-linecap: round; }
.tlines path.rest { stroke: var(--line-3); }
.tlines path.kept { stroke: var(--lime); stroke-width: 3; }
.tlines path.cross { stroke: var(--orange); stroke-width: 2.5; }
.genmark { position: absolute; left: 0; font: 500 11px var(--mono); color: var(--muted); letter-spacing: 0.08em; }
.request {
  position: absolute; transform: translateX(-50%); max-width: 420px; padding: 10px 18px; border-radius: 22px;
  background: var(--raised); border: 1px solid var(--line-3); color: var(--text-2); font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.xmark {
  position: absolute; width: 30px; height: 30px; border-radius: 15px; background: var(--orange); color: var(--orange-ink);
  display: grid; place-items: center; font-weight: 700; font-size: 17px;
}
.xlabel { position: absolute; font: 500 11px var(--mono); color: var(--orange); white-space: nowrap; }
.tnode {
  position: absolute; padding: 6px; border: 0; border-radius: 14px; background: var(--card); color: var(--text);
  display: flex; flex-direction: column; gap: 6px; text-align: left; box-shadow: 0 0 0 1px var(--line-2);
}
.tnode:hover { box-shadow: 0 0 0 1px var(--line-3), 0 8px 24px rgba(0, 0, 0, 0.35); }
.tnode.kept { box-shadow: 0 0 0 1.5px var(--lime); }
.tnode.selected { box-shadow: 0 0 0 3px var(--lime); }
.tnode.crossing { box-shadow: 0 0 0 3px var(--orange); }
.tshot { flex: 1; min-height: 0; border-radius: 9px; overflow: hidden; background: var(--panel); display: grid; place-items: center; }
.tshot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.seed.small { width: 28px; height: 28px; border-width: 3px; }
.trow { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 3px 2px; }
.tname { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.tname b { font: 700 12px var(--mono); color: var(--lime); }
.tname span { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tnode .pill { font-size: 10px; padding: 2px 7px; }

.side { flex: 0 0 340px; position: sticky; top: 16px; }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.panel-top .mono-label { margin: 0; }
.bigshot { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--card); }
.bigshot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.panel-title { margin: 0 0 2px; font: 700 22px/1.15 var(--display); }
.panel-title span { color: var(--lime); }
.muted { margin: 0; color: var(--muted); font-size: 13px; }
.mono { font-family: var(--mono); font-size: 12px; }
.told { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: var(--card); border-radius: 12px; }
.told .mono-label { margin: 0; font-size: 11px; }
.told p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.urlrow { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; }
.urlrow .mono { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); }
.urlrow a { font-size: 12px; font-weight: 600; text-decoration: none; }
.panel-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-outline-x { background: transparent; color: var(--orange); border: 1.5px solid var(--orange); }
.btn-outline-x:hover { background: rgba(255, 155, 87, 0.1); }
.hint-x { margin: 0; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--orange); color: #F1DCCB; font-size: 13px; }
.hint-x b { color: var(--orange); font-family: var(--mono); }
.linkish { background: none; border: 0; padding: 0; color: var(--orange); text-decoration: underline; font-size: 13px; }
.view:has(.treeview) { max-width: 1560px; }
body:has(.treeview) .top { max-width: 1560px; }

/* Taste card */
.side { display: flex; flex-direction: column; gap: 16px; }
.taste { gap: 12px; }
.view > .taste { margin-top: 28px; }
.taste-title { margin: 0; font: 700 17px var(--display); }
.tchips { display: flex; flex-wrap: wrap; gap: 6px; }
.tchip { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.tchip.like { border: 1px solid var(--lime); color: var(--lime); }
.tchip.avoid { border: 1px solid var(--line-2); color: var(--muted); text-decoration: line-through; font-weight: 500; }
.learned { margin: 0; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--orange); color: #F1DCCB; font-size: 13px; line-height: 1.45; }
.muted.small { font-size: 12px; }

/* Adopt */
.adopted { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; border-top: 1px solid var(--line); }
.adopted .mono-label { margin: 6px 0 0; font-size: 11px; }
.urlrow .linkish.lime { color: var(--lime); text-decoration: none; font-weight: 600; font-size: 12px; }
.adopt-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.adopt-links a { font-size: 13px; font-weight: 600; text-decoration: none; }
.familyline { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--card); }
.fl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 13px var(--mono); }
.fl-req { color: var(--text-3); }
.fl-sep { color: var(--muted); }
.fl { color: var(--lime); font-weight: 700; }
.fl-x { color: var(--orange); font-weight: 700; }
.fl-me { padding: 2px 8px; border-radius: 999px; background: var(--lime); color: var(--bg); font-weight: 700; }
.adopting { display: flex; align-items: center; gap: 10px; }

/* Checkpoints */
.checkpoint {
  position: relative; margin-left: auto; display: flex; align-items: center; gap: 10px;
  padding: 4px 4px 4px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-3); font-size: 12px;
}
.checkpoint:not([hidden]) + #new-family { margin-left: 0; }
.cp-btn {
  display: flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px;
  background: var(--raised); color: var(--text); font-weight: 600; font-size: 12px;
}
.cp-btn:hover { background: var(--line-2); }
.cp-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(380px, 90vw); padding: 12px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column; gap: 4px;
}
.cp-menu .mono-label { margin: 0 0 4px 4px; font-size: 11px; }
.cp-item {
  display: flex; justify-content: space-between; gap: 12px; padding: 10px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text-2); text-align: left; font-size: 13px;
}
.cp-item:hover { background: var(--raised); color: var(--text); }
.cp-item .muted { white-space: nowrap; font-size: 12px; }
.rewind {
  position: fixed; inset: 0; z-index: 50; background: rgba(15, 19, 17, 0.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
}
.rewind p { margin: 0; font: 700 24px var(--display); }

/* Visitors */
.lede { margin: 0; font-size: 17px; line-height: 1.5; color: var(--text-2); }
.install { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line-2); }
.install .mono-label { margin: 0; }
.install-row { display: flex; gap: 8px; align-items: stretch; }
.install-row code {
  flex: 1; min-width: 0; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line);
  font: 12.5px/1.5 var(--mono); color: var(--lime); overflow-x: auto; white-space: nowrap;
}
.install .muted a { color: var(--text-2); }
.visitor-note { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 1px dashed var(--line-3); color: var(--text-3); font-size: 13px; }

/* Phone adopted screen */
.adopted-screen { max-width: 440px; margin: 8px auto 0; display: flex; flex-direction: column; gap: 16px; }
.ad-head { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.ad-head .muted { font-size: 12px; }
.ad-head h1 { margin: 0; font: 700 28px/1.1 var(--display); letter-spacing: -0.02em; }
.ad-head h1 span { color: var(--lime); }
.ad-shot {
  position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden;
  background: var(--card); box-shadow: 0 0 0 1px var(--line-2);
}
.ad-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ad-name {
  position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px;
  background: rgba(15, 19, 17, 0.85); color: var(--text); font-weight: 700; font-size: 14px;
}
.ad-link { display: flex; flex-direction: column; gap: 8px; }
.ad-link > .muted { font-size: 12px; }
.ad-url { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); }
.ad-url .mono { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.ad-url .btn { min-height: 44px; padding: 0 16px; border-radius: 10px; }
.ad-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ad-buttons .btn { min-height: 48px; }
.ad-hint { font-size: 12px; }
.ad-line { gap: 8px; }
.ad-line .muted.small a { color: var(--lime); text-decoration: none; }
.fl-x { color: var(--orange); font-weight: 700; }
.ad-learned {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px;
  border: 1px dashed var(--orange); color: #F1DCCB; font-size: 13px; line-height: 1.45;
}
.ad-learned svg { flex: 0 0 auto; color: var(--orange); margin-top: 1px; }
.ad-back { align-self: center; }
.adopting-big { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 16px; text-align: center; }
.adopting-big p { margin: 0; font: 700 20px var(--display); }
.actionbar .btn-ghost { width: 100%; text-decoration: none; }

@media (max-width: 860px) {
  .top { gap: 10px 12px; }
  .family-head { order: 3; flex-basis: 100%; }
  .checkpoint { order: 4; margin-left: 0; }
  .checkpoint .cp-text { font-size: 11px; }
  #new-family { order: 2; margin-left: auto; min-height: 40px; padding: 0 14px; }
  .checkpoint:not([hidden]) + #new-family { margin-left: auto; }
}

/* Laptop: the page stays put; the tree and the side column scroll on their own. */
@media (min-width: 1000px) {
  body:has(.treeview) { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
  body:has(.treeview) .top { flex: 0 0 auto; width: 100%; }
  .view:has(.treeview) { flex: 1 1 auto; min-height: 0; width: 100%; padding-bottom: 16px; display: flex; flex-direction: column; }
  .treeview { flex: 1 1 auto; min-height: 0; align-items: stretch; }
  .tree-card { min-height: 0; }
  .tree-scroll { flex: 1 1 auto; min-height: 0; max-height: none; }
  .side { position: static; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
  .tree-scroll { overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
}

/* Design kit */
.kit { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.kit .mono-label { margin: 0; font-size: 11px; }
.kit-summary { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.45; }
.kit .urlrow .mono { white-space: normal; overflow: visible; font-size: 11.5px; line-height: 1.4; }
.ad-kit .kit { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.share-card { color: var(--lime); text-decoration: none; font-weight: 600; }

/* Landing (visitors) */
body:has(.landing) { background:
  radial-gradient(60% 50% at 85% 0%, rgba(198, 244, 50, 0.07), transparent 70%),
  radial-gradient(50% 40% at 0% 30%, rgba(255, 155, 87, 0.05), transparent 70%),
  var(--bg); }
body:has(.landing)::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.landing { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 72px; padding-top: 12px; }
.landing > * { animation: lp-rise 0.7s cubic-bezier(.2, .7, .2, 1) both; }
.landing > :nth-child(2) { animation-delay: 0.12s; }
.landing > :nth-child(3) { animation-delay: 0.22s; }
.landing > :nth-child(n + 4) { animation-delay: 0.3s; }
@keyframes lp-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .landing > * { animation: none; } }

.lp-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-ctas .btn { min-height: 52px; padding: 0 22px; font-size: 16px; border-radius: 14px; }

.lp-section { display: flex; flex-direction: column; gap: 24px; }
.lp-section h2 { margin: 0; font: 700 32px/1.1 var(--display); letter-spacing: -0.02em; }
.lp-section h3 { margin: 0; font: 700 18px/1.2 var(--display); }
.lp-section p { margin: 0; color: var(--text-3); line-height: 1.55; }

/* The steps hang off one lime line, like the tree; step 3 is a cross, so its joint is orange. */

#install { padding: 28px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line-2); }
.lp-lede { font-size: 16px; color: var(--text-2) !important; }
.lp-install { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 14px; color: var(--text-2); line-height: 1.6; }
.lp-install code { font: 13px var(--mono); color: var(--lime); }
.lp-install .install-row { margin-top: 8px; }
.lp-foot { padding: 8px 0 24px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-top: 24px; }
.lp-foot a { color: var(--text-2); }

@media (max-width: 860px) {
  .landing { gap: 52px; }
  
  
  
  
  
  
  
  #install { padding: 20px; }
}
.about-link { color: var(--text-3); text-decoration: none; font-size: 13px; font-weight: 600; }
.about-link:hover { color: var(--lime); }
#new-family[hidden] ~ .about-link { margin-left: auto; }
body:has(.lp2) #new-family[hidden] ~ .about-link { margin-left: 0; }
@media (max-width: 860px) { .about-link { order: 1; } #new-family[hidden] ~ .about-link, body:has(.lp2) #new-family[hidden] ~ .about-link { margin-left: auto; } }

/* Critique fixes: the glow no longer ends in a hard seam, and the hero shows only the tree half of the card. */
body:has(.landing) { background: var(--bg); }
.landing::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(198, 244, 50, 0.07), transparent 70%),
    radial-gradient(50% 40% at 0% 30%, rgba(255, 155, 87, 0.05), transparent 70%);
}

/* Families list with pictures */
.fam.has-shots { flex-direction: column; align-items: stretch; gap: 12px; }
.fam-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fam-shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fam-shot { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line-2); }
.fam-shot.adopted { box-shadow: 0 0 0 2px var(--lime); }
.fam-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.fam-shot span {
  position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 2px 7px; border-radius: 999px;
  background: rgba(15, 19, 17, 0.85); color: var(--text); font: 600 10.5px var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fam:hover .fam-shot img { transform: scale(1.03); transition: transform 0.3s ease; }
@media (max-width: 860px) { .fam-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Crowd vote */
.pill-x { color: var(--orange); border-color: var(--orange); }
.crowd-check { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--text-3); font-size: 13px; cursor: pointer; }
.crowd-check input { width: 18px; height: 18px; accent-color: var(--lime); }
.crowd-note { border-color: var(--orange); color: #F1DCCB; }
.vote-panel { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 18px; background: var(--panel); border: 1.5px solid rgba(255, 155, 87, 0.45); margin-bottom: 16px; }
.vote-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.vote-head .mono-label { margin: 0; color: var(--orange); }
.vote-total { font: 600 12px var(--mono); color: var(--text-3); }
.vote-status { margin: 0; font: 600 15px/1.35 var(--display); color: var(--text); }
.vote-options { display: flex; flex-direction: column; gap: 8px; }
.vo { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.vo.mine { border-color: var(--lime); }
.vo-shot { width: 64px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--panel); display: grid; place-items: center; }
.vo-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.vo-x { font: 700 22px var(--display); color: var(--orange); }
.vo-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.vo-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vo-name b { font-family: var(--mono); color: var(--lime); }
.vo.cross .vo-name b { color: var(--orange); }
.vo-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.vo-bar span { display: block; height: 100%; background: var(--lime); border-radius: 3px; transition: width 0.4s ease; }
.vo.cross .vo-bar span { background: var(--orange); }
.vo-count { font: 500 11px var(--mono); color: var(--muted); }
.vo-open { font-size: 12px; font-weight: 600; text-decoration: none; }
.vo-btn { min-height: 40px; padding: 0 16px; }
.vote-rule { margin: 0; }
.vote-panel .linkish { align-self: flex-start; color: var(--text-3); }

@media (max-width: 860px) {
  
  
  .vo { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .vo-open { display: none; }
}

.retry-btn { position: relative; z-index: 2; font-weight: 600; font-size: 13px; }
.vo-pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 100%; height: 100%; }
.vo-pair > span { overflow: hidden; }
.vo-pair img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.vo-pair b {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 11px;
  display: grid; place-items: center; background: var(--orange); color: var(--orange-ink); font: 700 13px var(--display);
}
.vo-sub { color: var(--orange); font: 500 11px var(--mono); margin-left: 4px; }
.vo-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
.vo-sub { display: block; margin: 2px 0 0; }
.vote-owner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

