/* Pet Foundry design system. Ported from Grayson's pet-foundry-site-v2 build
 * (projects/hatchery/research/pet-foundry-v2/design.css) and extended for the
 * working pipeline. Paper, ink, moss, coral. Georgia display, system sans UI. */

:root {
  --background: #f8f5ef; --card: #fffdf9; --panel: #f1eee7; --panel-2: #fbf8f2; --stage: #efeae1;
  --foreground: #27302f; --ink: #2d3533;
  --primary: #256b5a; --primary-2: #2a725f; --primary-tint: #dceee7; --primary-pill: #e2efe9; --primary-ring: #68a998;
  --coral: #c06a47; --coral-2: #f16b48;
  --muted: #77736d; --muted-2: #89847c; --muted-3: #9a958c; --muted-4: #aaa49b;
  --border: #ddd8cd; --border-2: #ded9ce; --border-3: #d8d2c8; --input: #d5d0c6;
  --bad: #b5533a; --bad-bg: #fbe9e3; --ok: #2e7b66; --ok-bg: #e3f0eb; --warn: #9a6b1e; --warn-bg: #f7efd9;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: .8rem; --shell-shadow: 0 24px 70px #5b554619;
  --gray-dim: var(--muted-3); /* app.js inline uses var(--gray-dim) + var(--bad) */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--background); color: var(--foreground); font-family: var(--sans); margin: 0; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); }
img, canvas { max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
.mono { font-family: var(--mono); }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); background: #fffdf8cc; border-bottom: 1px solid var(--border-2); display: flex; justify-content: space-between; align-items: center; height: 72px; padding: 0 5vw; gap: 18px; }
.brand { color: var(--foreground); display: flex; align-items: center; gap: 11px; font-weight: 760; text-decoration: none; font-size: 17px; }
.brand > span { color: var(--primary); background: var(--primary-tint); border-radius: 11px; display: grid; place-items: center; width: 36px; height: 36px; transform: rotate(-4deg); }
.brand svg { width: 19px; height: 19px; }
.topnav { display: flex; gap: 22px; align-items: center; font-size: 13px; }
.topnav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.topnav a:hover, .topnav a[aria-current] { color: var(--primary); }
.topright { display: flex; align-items: center; gap: 16px; }
.compatible { color: #706e68; display: flex; align-items: center; gap: 8px; font-size: 12px; white-space: nowrap; }
.compatible i { background: #55a181; border-radius: 50%; width: 7px; height: 7px; box-shadow: 0 0 0 4px #e3f0eb; }
.btn-signin { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); border: 1px solid var(--border-3); border-radius: 999px; padding: 8px 14px; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-signin:hover { border-color: var(--primary-ring); box-shadow: 0 0 0 3px #67a69030; }
.btn-signin svg { width: 16px; height: 16px; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--primary); background: var(--primary-pill); border-radius: 999px; padding: 6px 12px; }

/* ---------- workspace / intro ---------- */
.workspace { max-width: 1320px; margin: auto; padding: 60px 32px 48px; }
.intro { text-align: center; max-width: 700px; margin: 0 auto 38px; }
.eyebrow { color: #2e8068; letter-spacing: .16em; display: flex; justify-content: center; align-items: center; gap: 7px; margin: 0 0 16px; font-size: 12px; font-weight: 800; }
.eyebrow svg { width: 14px; height: 14px; }
.intro h1 { letter-spacing: -.045em; margin: 0; font-family: var(--serif); font-size: clamp(38px, 5vw, 62px); font-weight: 500; line-height: 1.02; }
.intro > p:last-child { color: var(--muted); max-width: 580px; margin: 18px auto 0; font-size: 16px; line-height: 1.6; }

/* ---------- builder shell ---------- */
.builder-shell { background: var(--card); border: 1px solid var(--border); border-radius: 22px; display: grid; grid-template-columns: 225px minmax(440px, 1fr) 300px; min-height: 600px; overflow: hidden; box-shadow: var(--shell-shadow); }
.stepper { background: var(--panel); border-right: 1px solid var(--border-2); display: flex; flex-direction: column; gap: 7px; padding: 30px 22px; }
.stepper > button { text-align: left; color: var(--muted-3); cursor: pointer; background: none; border: 0; border-radius: 12px; display: flex; gap: 12px; padding: 12px 8px; font: inherit; }
.stepper > button > span { border: 1px solid #cec8bd; border-radius: 50%; flex: none; display: grid; place-items: center; width: 28px; height: 28px; font-size: 12px; font-weight: 700; }
.stepper > button svg { width: 13px; height: 13px; }
.stepper b { margin: 2px 0 3px; font-size: 13px; display: block; }
.stepper small { font-size: 10px; line-height: 1.35; display: block; }
.stepper button.active { color: #266c5a; background: #fffdf8; box-shadow: 0 2px 10px #4f48300d; }
.stepper button.active > span, .stepper button.done > span { color: #fff; background: var(--primary-2); border-color: var(--primary-2); }
.stepper button.done { color: #494f4b; }
.stepper button:disabled { cursor: default; }
.format-note { color: #5d625e; border-top: 1px solid #d7d1c6; display: flex; gap: 10px; margin-top: auto; padding: 20px 6px 0; }
.format-note svg { color: #34806b; width: 18px; height: 18px; flex: none; }
.format-note b { font-size: 11px; display: block; }
.format-note span { color: #89847b; font-size: 9px; line-height: 1.55; display: block; }

.form-panel { display: flex; flex-direction: column; padding: 30px 38px; position: relative; min-width: 0; }
.slim-progress { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: #eeeae2; }
.slim-progress i { display: block; height: 100%; background: #63a38d; transition: width .3s; }
.section-heading { display: flex; align-items: flex-start; gap: 14px; margin: 15px 0 27px; }
.section-heading > span { color: var(--coral); font-family: var(--serif); font-size: 20px; font-style: italic; }
.section-heading h2 { letter-spacing: -.025em; margin: 0; font-family: var(--serif); font-size: 27px; font-weight: 500; }
.section-heading p { color: #858078; margin: 5px 0 0; font-size: 12px; }
.step-panel { display: flex; flex-direction: column; flex: 1; }

.option-grid { display: grid; gap: 13px; }
.option-grid > button { text-align: left; color: #4d504c; cursor: pointer; background: #fff; border: 1px solid #ddd8ce; border-radius: 15px; padding: 10px; transition: all .18s; position: relative; font: inherit; }
.option-grid > button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px #473f2512; }
.option-grid > button.selected, .option-grid > button[aria-pressed="true"] { background: #f9fffc; border: 2px solid #31806b; padding: 9px; }
.option-grid b, .option-grid small { margin-left: 4px; display: block; }
.option-grid b { margin-top: 9px; font-size: 12px; }
.option-grid small { color: #8d887f; margin-top: 2px; font-size: 10px; }
.style-grid { grid-template-columns: repeat(2, 1fr); }
.type-grid { grid-template-columns: repeat(4, 1fr); }
.style-swatch { background: #f2eee5; border-radius: 10px; display: grid; place-items: center; height: 95px; overflow: hidden; }
.style-swatch.plush { filter: saturate(.75); background: #efe2df; }
.style-swatch.sticker { background: #e3edf2; }
.style-swatch.clay { background: #e8e0d4; }
.style-swatch .pet { transform: scale(.38); }
.type-grid > button { text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 118px; }
.type-grid > button b, .type-grid > button small { margin-left: 0; }
.type-grid em { font-size: 36px; font-style: normal; line-height: 1; }
.check { color: #fff; background: #2d7c66; border-radius: 50%; display: grid; place-items: center; width: 19px; height: 19px; position: absolute; top: 8px; right: 8px; }
.check svg { width: 11px; height: 11px; }

.field { margin-bottom: 20px; display: block; position: relative; }
.field > span { margin-bottom: 8px; font-size: 11px; font-weight: 700; display: block; }
.field > span small { color: var(--muted-3); font-weight: 400; }
.field input, .field textarea { background: #fff; border: 1px solid var(--border-3); border-radius: 10px; min-height: 42px; padding: 10px 12px; font: inherit; font-size: 13px; width: 100%; color: var(--foreground); outline: none; }
.field textarea { resize: none; height: 100px; }
.field input:focus, .field textarea:focus { border-color: #579580; box-shadow: 0 0 0 3px #67a69030; }
.field > i { color: #9b958d; font-size: 9px; font-style: normal; position: absolute; bottom: 7px; right: 8px; }
.color-row { gap: 12px; display: flex; flex-wrap: wrap; }
.color-row button { color: #fff; cursor: pointer; border: 3px solid #fff; border-radius: 50%; display: grid; place-items: center; width: 34px; height: 34px; box-shadow: 0 0 0 1px #d2cbc0; padding: 0; }
.color-row button.selected { box-shadow: 0 0 0 2px #296e5c; }
.color-row svg { width: 14px; height: 14px; }

.actions { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 24px; gap: 10px; flex-wrap: wrap; }
.actions .spacer { flex: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 13px; font-weight: 700; border-radius: 10px; height: 38px; padding: 0 16px; cursor: pointer; border: 1px solid transparent; text-decoration: none; white-space: nowrap; }
.btn-primary { background: #276e5c; color: #fff; min-width: 112px; }
.btn-primary:hover { background: #2a785f; }
.btn-primary:disabled { opacity: .55; cursor: default; }
.btn-ghost { background: none; color: #5a5f5b; }
.btn-ghost:hover { background: var(--panel); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--border-3); }
.btn-outline:hover { border-color: var(--primary-ring); }
.btn-xs { height: 28px; padding: 0 10px; font-size: 11px; }
.btn svg { width: 14px; height: 14px; }
.spinner { border: 2px solid #fff6; border-top-color: #fff; border-radius: 50%; width: 13px; height: 13px; animation: .7s linear infinite spin; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.quota { color: var(--muted-3); font-size: 11px; }

.review-card { background: var(--panel); border-radius: 16px; display: flex; align-items: center; gap: 28px; padding: 28px; }
.review-card .pet { transform: scale(.8); flex: none; }
.review-card h3 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 500; }
.review-card p { color: #2e7a65; text-transform: capitalize; font-size: 12px; margin: 4px 0; }
.review-card span { color: #807b74; max-width: 300px; font-size: 12px; line-height: 1.5; display: block; }

/* the real hatch: base check, rows, result (ids consumed by app.js) */
.hatch-card { background: var(--panel); border-radius: 16px; padding: 18px 20px; margin-top: 14px; }
.hatch-card h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.hatch-card .note { color: var(--muted-2); font-size: 12px; margin: 0 0 12px; }
.base-stage { display: grid; place-items: center; min-height: 200px; background: var(--stage); background-image: linear-gradient(45deg, #fff6 25%, transparent 25%, transparent 75%, #fff6 75%), linear-gradient(45deg, #fff6 25%, transparent 25%, transparent 75%, #fff6 75%); background-size: 18px 18px; background-position: 0 0, 9px 9px; border: 1px solid #ddd6ca; border-radius: 14px; padding: 12px; }
.base-stage canvas { max-height: 260px; }
.base-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.base-actions small { color: var(--muted-3); font-size: 10px; flex-basis: 100%; }
.status { font-size: 12px; margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--panel-2); color: var(--muted); }
.status.ok { background: var(--ok-bg); color: var(--ok); }
.status.bad { background: var(--bad-bg); color: var(--bad); }
.status.warn { background: var(--warn-bg); color: var(--warn); }
.blink { animation: 1.1s ease-in-out infinite blink; }
@keyframes blink { 50% { opacity: .45; } }
.row-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.row-list li { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border-3); border-radius: 10px; padding: 6px 8px; font-size: 11px; }
.row-list li canvas { width: 38px; height: 41px; background: var(--stage); border-radius: 6px; flex: none; }
.row-list .nm { flex: 1; font-weight: 700; color: var(--ink); }
.row-list .st { color: var(--muted-3); font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.row-list li[data-state="done"] .st { color: var(--ok); }
.row-list li[data-state="error"] .st { color: var(--bad); }
.success-card { text-align: center; background: var(--panel); border-radius: 16px; padding: 18px; margin-top: 14px; }
.success-card > .head { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.success-card .head svg { color: var(--ok); width: 22px; height: 22px; }
.success-card b { font-family: var(--serif); font-size: 19px; font-weight: 500; }
.success-card .sub { color: var(--muted-2); font-size: 9px; letter-spacing: .04em; }
.atlas-thumb { object-fit: contain; background: #fffdf8; border: 1px solid var(--border-3); border-radius: 9px; width: 220px; height: 316px; margin: 10px auto; display: block; background-image: linear-gradient(45deg, #ece8e0 25%, transparent 25%, transparent 75%, #ece8e0 75%), linear-gradient(45deg, #ece8e0 25%, transparent 25%, transparent 75%, #ece8e0 75%); background-size: 14px 14px; background-position: 0 0, 7px 7px; }
.dl-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 12px 0 8px; }
.install-cmds { text-align: left; margin: 12px auto 0; max-width: 520px; }
.install-cmds label { display: block; font-size: 10px; font-weight: 700; color: var(--muted); margin: 8px 0 4px; }
.cmd { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border-3); border-radius: 8px; padding: 6px 8px; }
.cmd code { flex: 1; font-family: var(--mono); font-size: 11px; color: var(--ink); overflow: auto; white-space: nowrap; }
.failed-rows { display: grid; gap: 6px; margin-top: 8px; text-align: left; }

/* ---------- preview panel ---------- */
.preview-panel { text-align: center; background: var(--panel-2); border-left: 1px solid var(--border-2); padding: 30px 24px; }
.preview-label { letter-spacing: .12em; color: #8b867e; display: flex; justify-content: space-between; align-items: center; font-size: 9px; font-weight: 800; }
.preview-label i { letter-spacing: 0; color: #347761; background: var(--primary-pill); border-radius: 8px; padding: 4px 8px; font-style: normal; }
.preview-stage { background: var(--stage); border: 1px solid #ddd6ca; border-radius: 16px; display: grid; place-items: center; height: 270px; margin: 18px 0 15px; position: relative; overflow: hidden; }
.grid-lines { background-image: linear-gradient(#fff9 1px, #0000 1px), linear-gradient(90deg, #fff9 1px, #0000 1px); background-size: 28px 28px; position: absolute; inset: 0; -webkit-mask-image: linear-gradient(#000, #0000); mask-image: linear-gradient(#000, #0000); }
.preview-stage.plush { background: #efe4e1; }
.preview-stage.sticker { background: #e5edf0; }
.preview-stage.clay { background: #e7ded2; }
.preview-stage canvas { position: relative; z-index: 1; width: 192px; height: 208px; }
.preview-panel h3 { margin: 6px 0 2px; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.preview-panel > p { color: var(--muted-2); margin: 0 0 20px; font-size: 11px; }
.preview-panel > small { color: var(--muted-4); font-size: 9px; }
.mini-states { border-block: 1px solid #ddd7cc; display: flex; justify-content: space-around; margin-bottom: 12px; padding: 14px 0; }
.mini-states span { color: #858079; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 8px; }
.mini-states .pet { width: 50px; height: 42px; margin: -25px -20px; transform: scale(.23); }
.mini-states canvas { width: 48px; height: 52px; }
.state-tabs { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin: 0 0 10px; }
.state-tabs button { font: inherit; font-size: 10px; font-weight: 700; color: var(--muted); background: #fff; border: 1px solid var(--border-3); border-radius: 999px; padding: 4px 9px; cursor: pointer; }
.state-tabs button[aria-selected="true"], .state-tabs button.active { color: #fff; background: var(--primary-2); border-color: var(--primary-2); }
.play-toggle { font: inherit; font-size: 10px; color: var(--muted); background: none; border: 1px solid var(--border-3); border-radius: 999px; padding: 3px 9px; cursor: pointer; }

/* ---------- the CSS pet (Grayson's) ---------- */
.pet { z-index: 1; width: 112px; height: 128px; animation: 2.2s ease-in-out infinite float; position: relative; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.pet-body { border: 4px solid var(--ink); border-radius: 48% 48% 44% 44%; width: 80px; height: 82px; position: absolute; top: 24px; left: 16px; box-shadow: inset -9px -8px #00000015; }
.pet-robot .pet-body { border-radius: 20px; }
.pet-ghost .pet-body { border-radius: 48% 48% 18% 18%; height: 90px; }
.pet-ear { z-index: -1; border: 4px solid var(--ink); width: 34px; height: 42px; position: absolute; top: 5px; }
.pet-ear.left { left: 15px; transform: rotate(-12deg); }
.pet-ear.right { right: 15px; transform: scaleX(-1) rotate(-12deg); }
.pet-dog .pet-ear { top: 22px; height: 46px; width: 22px; border-radius: 40% 40% 50% 50%; }
.pet-dog .pet-ear.left { left: 4px; transform: rotate(14deg); }
.pet-dog .pet-ear.right { right: 4px; transform: scaleX(-1) rotate(14deg); }
.pet-blob .pet-ear, .pet-robot .pet-ear, .pet-ghost .pet-ear, .pet-alien .pet-ear { display: none; }
.shine { background: #fff5; border-radius: 50%; width: 16px; height: 8px; position: absolute; top: 12px; left: 16px; transform: rotate(-20deg); }
.eyes { display: flex; justify-content: space-between; position: absolute; top: 35px; left: 20px; right: 20px; }
.eyes i { background: var(--foreground); border-radius: 50%; width: 8px; height: 11px; position: relative; }
.eyes i:after { content: ""; background: #fff; border-radius: 50%; width: 3px; height: 3px; position: absolute; top: 1px; left: 1px; }
.pet-alien .eyes { top: 28px; left: 14px; right: 14px; }
.pet-alien .eyes i { width: 16px; height: 22px; border-radius: 60% 60% 50% 50%; transform: rotate(8deg); }
.pet-alien .eyes i + i { transform: rotate(-8deg); }
.mouth { border: 2px solid var(--foreground); border-top: 0; border-radius: 0 0 12px 12px; width: 12px; height: 7px; position: absolute; top: 53px; left: 34px; }
.pet-alien .mouth { top: 58px; width: 8px; height: 4px; }
.feet { display: flex; justify-content: space-between; position: absolute; bottom: 8px; left: 27px; right: 27px; }
.feet i { border: 4px solid var(--ink); border-radius: 50%; width: 24px; height: 18px; }
.pet-ghost .feet { display: none; }
.horns { color: #f2d391; letter-spacing: 14px; font-size: 10px; position: absolute; top: -13px; left: 20px; }
.antenna { background: var(--ink); width: 4px; height: 23px; position: absolute; top: 4px; left: 52px; }
.antenna span { background: #ef9455; border-radius: 50%; width: 10px; height: 10px; position: absolute; top: -5px; left: -3px; display: block; }
.mood-wave { transform: rotate(-7deg) scale(.95); }
.mood-jump { transform: translateY(-9px) scale(.95); }
.pet-lineup { display: flex; gap: 28px; justify-content: center; align-items: flex-end; margin: 26px auto 0; }
.pet-lineup .pet { transform: scale(.55); margin: -28px -24px; width: 62px; height: 70px; }

/* ---------- sections below the builder ---------- */
.section { max-width: 1320px; margin: 56px auto 0; padding: 0 32px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-title .eyebrow { justify-content: flex-start; margin: 0 0 8px; }
.section-title h2 { font-family: var(--serif); font-size: 32px; font-weight: 500; letter-spacing: -.03em; margin: 0; }
.section-title a { font-size: 12px; font-weight: 700; text-decoration: none; }
.pet-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.pet-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 14px; text-decoration: none; color: inherit; display: block; transition: transform .18s, box-shadow .18s; }
.pet-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px #5b554614; }
.pet-card .art { background: var(--stage); border-radius: 12px; display: grid; place-items: center; height: 190px; overflow: hidden; }
.pet-card .art img { width: 144px; height: 156px; }
.pet-card h3 { font-family: var(--serif); font-size: 20px; font-weight: 500; margin: 12px 0 4px; }
.pet-card p { color: var(--muted); font-size: 12px; margin: 0 0 8px; line-height: 1.45; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: #347761; background: var(--primary-pill); border-radius: 999px; padding: 3px 8px; font-weight: 700; }
.subscribe { background: var(--panel); border: 1px solid var(--border); border-radius: 22px; padding: 34px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
.subscribe h2 { font-family: var(--serif); font-size: 30px; font-weight: 500; margin: 0 0 8px; letter-spacing: -.03em; }
.subscribe p { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.55; }
.sub-form { display: flex; gap: 8px; }
.sub-form input { flex: 1; background: #fff; border: 1px solid var(--border-3); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 13px; }
.faq details { border-bottom: 1px solid var(--border-2); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--coral); font-family: var(--serif); font-size: 18px; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 8px 0 0; max-width: 720px; }
footer.site { color: #8c877f; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1320px; margin: 48px auto 34px; padding: 0 32px; font-size: 10px; }
footer.site b { font-weight: 700; }
footer.site a { color: inherit; }

/* ---------- inner pages ---------- */
.page { max-width: 900px; margin: 0 auto; padding: 48px 32px; }
.page h1 { font-family: var(--serif); font-size: clamp(34px, 4.5vw, 52px); font-weight: 500; letter-spacing: -.04em; margin: 0 0 10px; line-height: 1.05; }
.page .lede { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 640px; margin: 0 0 28px; }
.page h2 { font-family: var(--serif); font-size: 26px; font-weight: 500; margin: 34px 0 10px; letter-spacing: -.02em; }
.page p, .page li { font-size: 14px; line-height: 1.65; color: #4d504c; }
.page pre { background: #fff; border: 1px solid var(--border-3); border-radius: 10px; padding: 12px 14px; font-family: var(--mono); font-size: 12px; overflow: auto; }
.page code { font-family: var(--mono); font-size: .92em; background: #fff; border: 1px solid var(--border-2); border-radius: 5px; padding: 1px 5px; }
.page .card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 22px 24px; margin: 18px 0; }
.page-wide { max-width: 1320px; }

/* ---------- responsive (Grayson's breakpoints) ---------- */
@media (max-width: 1000px) {
  .builder-shell { grid-template-columns: 190px 1fr; }
  .preview-panel { display: none; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .workspace { padding: 38px 16px; }
  .topbar { padding: 0 18px; }
  .compatible, .topnav { display: none; }
  .builder-shell { display: block; }
  .stepper { border: 0; border-bottom: 1px solid var(--border); flex-direction: row; padding: 12px; overflow: auto; }
  .stepper > button { min-width: 50px; padding: 8px; }
  .stepper > button div, .format-note { display: none; }
  .form-panel { min-height: 510px; padding: 25px 20px; }
  .intro h1 { font-size: 40px; }
  .intro h1 br { display: none; }
  .row-list { grid-template-columns: repeat(2, 1fr); }
  .subscribe { grid-template-columns: 1fr; padding: 24px; }
  .section { padding: 0 16px; }
  .review-card { flex-direction: column; text-align: center; }
  .style-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================================
 * APPENDED 2026-09-05 for the inner pages (gallery, pet page, install, submit,
 * landers). Everything above is the front page system. These are the few
 * pieces the inner pages genuinely need and the builder never had: a skip
 * link, a left aligned eyebrow, the gallery filter row, a two column split,
 * a large preview stage, a facts list, numbered steps, and muted note text.
 * ==========================================================================*/
.skip { position: absolute; left: -9999px; top: 0; z-index: 40; background: var(--card); color: var(--primary); border: 1px solid var(--border); border-radius: 0 0 10px; padding: 10px 16px; font-size: 13px; font-weight: 700; text-decoration: none; }
.skip:focus { left: 0; }

.page .eyebrow { justify-content: flex-start; }
.note { color: var(--muted-2); font-size: 12px; line-height: 1.55; margin: 0; }
.crumb { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-3); text-decoration: none; }
.crumb:hover { color: var(--primary); }

/* gallery filter row */
.filter-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 24px; }
.filter-bar .state-tabs { justify-content: flex-start; margin: 0; }
.filter-bar .lab { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-3); }
.filter-bar .quota { margin-left: auto; }

/* two column split: the pet page and the lander heroes */
.split { display: grid; grid-template-columns: 1.02fr .98fr; gap: 28px; align-items: start; }
.split-narrow { grid-template-columns: 1.3fr .7fr; }
/* grid children default to min-width:auto, which lets a long <pre> widen the
   whole track and give the page a horizontal scrollbar on phones. */
.split > *, .split-narrow > * { min-width: 0; }
@media (max-width: 860px) { .split, .split-narrow { grid-template-columns: 1fr; } }

/* the big animated preview on a pet page */
.stage-lg { position: relative; background: var(--stage); border: 1px solid #ddd6ca; border-radius: 16px; display: grid; place-items: center; overflow: hidden; padding: 16px; min-height: 300px; }
.stage-lg canvas, .stage-lg img { position: relative; z-index: 1; height: auto; }

/* facts list */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 20px; margin: 0; font-size: 12px; }
.kv dt { color: var(--muted-3); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 9px; align-self: center; }
.kv dd { margin: 0; color: #4d504c; }

/* numbered steps */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
.steps > li { counter-increment: step; position: relative; padding-left: 44px; font-size: 14px; line-height: 1.6; color: #4d504c; }
.steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -1px; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--coral); }
.steps > li b { color: var(--ink); }

/* button rows and labelled command blocks */
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cmd-block { margin: 16px 0; }
.cmd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.cmd-head span { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-3); }
.cmd-block pre { margin: 0; }

/* the CTA strip that closes every inner page */
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.cta-card h2 { margin: 0 0 4px; }

/* submit form extras */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; line-height: 1.55; color: #4d504c; cursor: pointer; }
.consent input { margin: 3px 0 0; flex: none; width: 16px; height: 16px; accent-color: var(--primary); }
.field input[type="file"] { padding: 9px 12px; cursor: pointer; }
.counter { color: var(--muted-3); font-size: 10px; font-weight: 400; float: right; }

/* ---------- parade (parade.js): real pets walking in a line ---------- */
.parade { position: relative; height: 260px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.parade-track { position: absolute; inset: 0; }
.parade-ground { position: absolute; left: 0; right: 0; bottom: 34px; height: 1px; background: linear-gradient(90deg, transparent, #cfc7b8 12%, #cfc7b8 88%, transparent); }
.parade-pet { position: absolute; bottom: 30px; left: 0; display: block; text-decoration: none; color: var(--foreground); will-change: transform; }
.parade-pet canvas { display: block; filter: drop-shadow(0 10px 6px rgba(60, 52, 40, .18)); transition: filter .2s; }
.parade-pet:hover canvas, .parade-pet:focus-visible canvas { filter: drop-shadow(0 14px 10px rgba(60, 52, 40, .24)); }
.parade-pet:focus-visible { outline: 2px solid var(--primary-ring); outline-offset: 6px; border-radius: 12px; }
.parade-cap, .parade-name { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.parade-cap { top: -26px; background: #fffdf9; border: 1px solid var(--border-3); border-radius: 999px; padding: 4px 10px; color: var(--ink); font-family: var(--serif); font-style: italic; box-shadow: 0 6px 16px #5b554614; }
.parade-name { bottom: -22px; color: var(--muted); font-weight: 700; letter-spacing: .04em; font-size: 10px; text-transform: uppercase; }
.parade-pet:hover .parade-cap, .parade-pet:focus-visible .parade-cap { opacity: 1; transform: translate(-50%, -4px); }
.parade-pet:hover .parade-name, .parade-pet:focus-visible .parade-name { opacity: 1; }
.parade-empty { display: none; }
@media (max-width: 700px) { .parade { height: 190px; } }
@media (prefers-reduced-motion: reduce) { .parade-pet canvas { transition: none; } }

/* ============================================================================
 * APPENDED 2026-09-05 for the landing page (index.html + landing.css).
 * Tokens only, exactly the ones named in the CONCEPTS.md style-guide
 * addendum. Every landing class lives in landing.css, which loads after this
 * file. No new palette, no new font, no new radius scale.
 * ==========================================================================*/
:root {
  --grain: url(assets/art/paper-grain-512.webp);   /* web sized from paper-grain.png: 289 KB -> 13 KB */
  --ground: #e6e0d4;
  --coral-tint: #f7e6dd;
  --sec-y: 120px;
  --sec-y-sm: 72px;
  --content: 1180px;
  --display-1: clamp(40px, 5.4vw, 76px);
  --display-2: clamp(27px, 2.9vw, 38px);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-hatch: cubic-bezier(.2, .8, .3, 1);
}
