/* Cozlings website. A pixel-art desk by a window (img/scene-*.png, drawn by tools/make_site_scene.js) stays
   put behind the page; everything else floats over it on frosted panels with stepped "pixel" corners.
   Font: Cozlings Pixel = Pixelify Sans (SIL Open Font License) with an open C and c (tools/patch_site_font.py),
   served from this site. */
@font-face { font-family: 'Cozlings Pixel'; font-weight: 400 700; font-display: swap; src: url('fonts/cozlings-pixel-latin.woff2') format('woff2'); }

:root {
  --ink: #fff8ee;
  --muted: #e6dcf2;
  --sun: #ffd36b;
  --sun-dark: #c98a1f;
  --pink: #ff9fb4;
  --mint: #8fe3bf;
  --violet: #c7a8ff;
  --panel: rgba(23, 17, 52, 0.74);
  --panel-solid: #1d1745;
  --panel-line: rgba(255, 255, 255, 0.16);
  --shadow: rgba(10, 6, 30, 0.55);
  --outline: -2px 0 0 #1a1036, 2px 0 0 #1a1036, 0 -2px 0 #1a1036, 0 2px 0 #1a1036, -2px -2px 0 #1a1036, 2px -2px 0 #1a1036, -2px 2px 0 #1a1036, 2px 2px 0 #1a1036;
  --font: 'Cozlings Pixel', 'Segoe UI', system-ui, sans-serif;
  --notch: polygon(4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px), 0 4px, 4px 4px);
  --notch-s: polygon(3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px), 0 3px, 3px 3px);
}
/* by day the panels turn a deep blue so they still read well against the bright sky */
:root[data-scene="day"] { --panel: rgba(20, 42, 82, 0.72); --panel-solid: #1b3563; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; color: var(--ink); background: var(--panel-solid); font: 400 18px/1.55 var(--font); -webkit-font-smoothing: none; }
img { max-width: 100%; }
a { color: var(--sun); }
p { margin: 0 0 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.narrow { max-width: 780px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-weight: 700; line-height: 1.12; margin: 0 0 12px; text-wrap: balance; }
/* headings float over the scene: a dark pixel outline keeps them readable even in front of the sun */
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--sun); text-shadow: var(--outline), 0 6px 0 var(--shadow); }
h3 { font-size: 1.35rem; }
kbd { font: 700 0.8em var(--font); color: var(--ink); background: rgba(255,255,255,0.12); border: 2px solid rgba(255,255,255,0.3); border-bottom-width: 4px; padding: 0 6px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.muted { color: var(--muted); }

/* the scene behind everything (a fixed layer, which also works on phones): a theme (city, forest, sea, dungeon) by day or night */
.scene { position: fixed; inset: 0; z-index: -1; background: #1a1542 url('img/scene-city-dusk.png') center bottom / cover no-repeat; image-rendering: pixelated; }
:root[data-scene="day"] .scene { background-color: #5aa8e4; background-image: url('img/scene-city-day.png'); }
:root[data-theme="forest"] .scene { background-color: #0b1129; background-image: url('img/scene-forest-dusk.png'); }
:root[data-theme="forest"][data-scene="day"] .scene { background-color: #5aa8e4; background-image: url('img/scene-forest-day.png'); }
:root[data-theme="sea"] .scene { background-color: #0c1430; background-image: url('img/scene-sea-dusk.png'); }
:root[data-theme="sea"][data-scene="day"] .scene { background-color: #4a9de0; background-image: url('img/scene-sea-day.png'); }
:root[data-theme="dungeon"] .scene { background-color: #13101a; background-image: url('img/scene-dungeon-dusk.png'); }
:root[data-theme="dungeon"][data-scene="day"] .scene { background-color: #3a3446; background-image: url('img/scene-dungeon-day.png'); }

/* frosted panels */
.panel { position: relative; background: var(--panel); border: 3px solid var(--panel-line); clip-path: var(--notch); padding: 24px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* buttons: chunky, pixel-cornered, with a pressed-in bottom edge */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 700 1.05rem var(--font); padding: 12px 22px 14px; text-decoration: none; border: 0; cursor: pointer;
  clip-path: var(--notch); box-shadow: inset 0 -5px 0 rgba(0,0,0,0.28), inset 0 3px 0 rgba(255,255,255,0.3); transition: transform 0.08s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 -2px 0 rgba(0,0,0,0.28); }
.btn.primary { background: var(--sun); color: #3a2400; }
.btn.ghost { background: rgba(255,255,255,0.1); color: var(--ink); box-shadow: inset 0 0 0 3px rgba(255,255,255,0.55); }
.btn.small { padding: 7px 14px 9px; font-size: 0.95rem; }
.btn.store { background: #0f0f14; color: #fff; padding: 10px 20px 12px; text-align: left; line-height: 1.1; }
.btn.store small { display: block; font-size: 0.72rem; font-weight: 400; opacity: 0.8; }
.btn[aria-disabled="true"] { cursor: default; opacity: 0.75; }
.btn[aria-disabled="true"]:hover { transform: none; }
/* the four-square Windows mark, drawn with CSS */
.win { display: inline-block; width: 16px; height: 16px; flex: none; vertical-align: -2px;
  background: linear-gradient(currentColor, currentColor) 0 0 / 7px 7px no-repeat, linear-gradient(currentColor, currentColor) 9px 0 / 7px 7px no-repeat,
              linear-gradient(currentColor, currentColor) 0 9px / 7px 7px no-repeat, linear-gradient(currentColor, currentColor) 9px 9px / 7px 7px no-repeat; }
.chip { font: 700 0.85rem var(--font); color: #3a2400; background: var(--ink); border: 0; padding: 4px 12px 5px; cursor: pointer; clip-path: var(--notch-s); }
.chip[aria-pressed="true"] { background: var(--sun); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(18, 13, 42, 0.78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 3px solid var(--panel-line); }
:root[data-scene="day"] .top { background: rgba(18, 38, 76, 0.78); }
.top-row { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { margin-right: auto; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.35rem; color: var(--ink); text-decoration: none; }
.logo img { image-rendering: pixelated; }
nav { display: flex; gap: 22px; }
nav a { color: var(--ink); text-decoration: none; }
nav a:hover { color: var(--sun); }
.top-tools { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.15rem; color: var(--ink); background: rgba(255,255,255,0.1); border: 0; cursor: pointer; clip-path: var(--notch-s); }
.icon-btn:hover, .icon-btn[aria-pressed="true"] { background: rgba(255, 211, 107, 0.3); }
@media (max-width: 760px) { nav { display: none; } }
/* a phone has no room for three tool buttons and Download in the top bar; the hero's big button is right below */
@media (max-width: 460px) { .top-tools .btn.small { display: none; } .top-row { gap: 12px; } }
/* the background picker in the top bar: a small menu with a preview of each theme (in the current day/night) */
.theme-pick { position: relative; }
.theme-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; width: 210px; display: grid; gap: 6px; padding: 12px;
  background: var(--panel-solid); border: 3px solid var(--panel-line); clip-path: var(--notch); }
.theme-menu[hidden] { display: none; }
.theme-menu-title { margin: 0 0 4px; font-size: 0.85rem; color: var(--muted); }
.theme-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px; font: 700 1rem var(--font); color: var(--ink); text-align: left;
  background: rgba(255,255,255,0.06); border: 0; cursor: pointer; clip-path: var(--notch-s); }
.theme-menu button:hover { background: rgba(255,255,255,0.14); }
.theme-menu button[aria-checked="true"] { background: rgba(255, 211, 107, 0.3); color: var(--sun); }
.theme-menu .thumb { width: 72px; height: 41px; flex: none; background: #1a1542 center bottom / cover no-repeat; image-rendering: pixelated; }
.theme-menu [data-theme="city"] .thumb { background-image: url('img/scene-city-dusk.png'); }
.theme-menu [data-theme="forest"] .thumb { background-image: url('img/scene-forest-dusk.png'); }
.theme-menu [data-theme="sea"] .thumb { background-image: url('img/scene-sea-dusk.png'); }
.theme-menu [data-theme="dungeon"] .thumb { background-image: url('img/scene-dungeon-dusk.png'); }
:root[data-scene="day"] .theme-menu [data-theme="city"] .thumb { background-image: url('img/scene-city-day.png'); }
:root[data-scene="day"] .theme-menu [data-theme="forest"] .thumb { background-image: url('img/scene-forest-day.png'); }
:root[data-scene="day"] .theme-menu [data-theme="sea"] .thumb { background-image: url('img/scene-sea-day.png'); }
:root[data-scene="day"] .theme-menu [data-theme="dungeon"] .thumb { background-image: url('img/scene-dungeon-day.png'); }

/* hero: the card up top, the live pets standing on the scene's desk at the bottom */
.hero { position: relative; min-height: calc(100svh - 64px); display: flex; flex-direction: column; }
.hero-row { position: relative; flex: 1; width: 100%; display: flex; align-items: center; padding-top: 32px; padding-bottom: calc(var(--stand, 120px) + 150px); }
.hero-card { max-width: 600px; padding: 32px; }
.hero-card h1 { font-size: clamp(3rem, 8vw, 5.2rem); color: var(--sun); text-shadow: 0 5px 0 var(--sun-dark), 0 9px 0 var(--shadow); margin-bottom: 8px; letter-spacing: 0.01em; }
/* "Launching soon on the Microsoft Store" above the name, until the Store link exists (site.config.json storeUrl) */
.hero-card .soon-badge, .soon-badge { display: inline-block; margin: 0 0 10px; padding: 4px 12px 6px; background: var(--mint); color: #0d2a1b; font-weight: 700; text-shadow: none; font-size: 0.95rem; clip-path: var(--notch-s); }
@media (max-width: 600px) { .hero-card .soon-badge { font-size: 0.74rem; padding: 3px 8px 4px; margin-bottom: 6px; } }
.dl .btn.store[aria-disabled="true"] { cursor: default; opacity: 0.9; margin-bottom: 12px; }
.tagline { font-size: clamp(1.2rem, 2.6vw, 1.5rem); font-weight: 700; color: var(--pink); }
.hero-card > p { color: var(--muted); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 14px; }
.fine { font-size: 0.9rem; opacity: 0.85; margin: 0; }
.hero-note { position: absolute; right: 6%; top: 70px; width: 170px; padding: 14px 16px 12px; background: #ffe46b; color: #4a3a12; transform: rotate(3deg);
  box-shadow: 6px 6px 0 var(--shadow); font-size: 1.05rem; line-height: 1.35; }
.hero-note::before { content: ''; position: absolute; top: -10px; left: 50%; width: 48px; height: 18px; margin-left: -24px; background: rgba(255,255,255,0.55); transform: rotate(-4deg); }
.hero-note p { margin: 0; }
.hero-note .note-title { font-weight: 700; margin-bottom: 4px; }
.hero-note .done { text-decoration: line-through; opacity: 0.6; }
@media (max-width: 980px) { .hero-note { display: none; } }
@media (max-width: 600px) { .hero-card { padding: 22px; } .hero-card .fine { display: none; } .cta-row { margin-bottom: 0; } .hero-row { padding-top: 20px; } }
/* the desk strip is tied to the bottom of the first screen (where the painted desk is), even if the hero runs taller */
/* 320px above the desk = room for the tallest pet frame (Miss Knightpaw's 310px, Knightpaw's Guardian's plume at the top) */
.desk { position: absolute; left: 0; right: 0; top: calc(100svh - 64px - var(--stand, 120px) - 320px); height: calc(var(--stand, 120px) + 320px); z-index: 2; overflow: hidden; pointer-events: none; }
.desk iframe { position: absolute; bottom: calc(var(--stand, 120px) - 4px); width: 240px; height: 170px; border: 0; background: transparent; pointer-events: none; color-scheme: normal; }
.desk-hint { position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; padding: 0 16px; display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap;
  font-size: 0.95rem; color: #fff3df; text-shadow: 0 2px 0 rgba(0,0,0,0.6); pointer-events: auto; }
@media (max-width: 600px) { .desk-hint { font-size: 0.85rem; } .desk-hint .txt { display: none; } }

/* sections */
.band { padding: 80px 0; }
.band-head { text-align: center; margin-bottom: 36px; }
.band-head p { color: var(--ink); font-size: 1.15rem; text-shadow: var(--outline); margin: 0; }
.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.feature h3 { display: flex; align-items: center; gap: 10px; color: var(--sun); }
.feature p { color: var(--muted); margin: 0; }
.ico { font-size: 1.3em; line-height: 1; }

/* pet showcases */
.showcase { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px; margin-bottom: 28px; align-items: stretch; }
.showcase.flip .stage-card { order: 2; }
@media (max-width: 820px) { .showcase { grid-template-columns: 1fr; } .showcase.flip .stage-card { order: 0; } }
.stage-card { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; }
.stage { position: relative; width: 100%; max-width: 360px; height: 190px; margin-top: 8px; }
.stage.tall { max-width: 560px; height: 330px; }
.showcase.wide { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
@media (max-width: 820px) { .showcase.wide { grid-template-columns: 1fr; } .stage.tall { height: auto; aspect-ratio: 520 / 330; } }
.stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: #9a6644; box-shadow: inset 0 3px 0 #b37a52, inset 0 -3px 0 #5f3b28; }
/* the pets on the site only act through their buttons: their frames never take the mouse (pet-web-host.js) */
.stage iframe { position: absolute; left: 50%; bottom: 8px; width: 240px; height: 170px; margin-left: -120px; border: 0; background: transparent; color-scheme: normal; pointer-events: none; }
.stage-name { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.stage-name h3 { margin: 0; font-size: 1.8rem; color: var(--sun); }
.kind { color: var(--muted); margin: 6px 0 0; }
.actions-card h3 { color: var(--sun); font-size: 1.6rem; }
.actions-card > p { color: var(--muted); }
/* what only the app does (the mouse on a pet): set apart, so the page's buttons and the desktop app don't blur */
.actions-card > p.desk-only { font-size: 0.95rem; padding: 10px 12px; background: rgba(255,255,255,0.05); border-left: 4px solid var(--sun); }
.desk-only span { display: block; margin-bottom: 2px; color: var(--sun); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
/* a pet with many buttons shows them in labelled groups */
.actions-card > p.act-h { margin: 16px 0 -8px; color: var(--ink); font-weight: 700; }
.act-h span { color: var(--muted); font-weight: 400; font-size: 0.9rem; margin-left: 6px; }
.actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; margin: 18px 0; }
.actions button { font: 700 1rem var(--font); color: var(--ink); background: rgba(255,255,255,0.08); border: 0; padding: 12px 10px 13px; cursor: pointer; clip-path: var(--notch-s);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.22), inset 0 -4px 0 rgba(0,0,0,0.25); }
.actions button:hover { background: rgba(255, 211, 107, 0.22); }
.actions button.on { background: var(--sun); color: #3a2400; }
.sound-line { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--muted); margin: 0; }
.badge { font: 700 0.8rem var(--font); text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 10px 4px; clip-path: var(--notch-s); }
.badge.free { background: var(--mint); color: #0f3d2b; }
.badge.basic { background: #8fd3ff; color: #0c2c45; }
.badge.premium { background: var(--sun); color: #3a2400; }

/* the gang */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr 1fr; gap: 12px; } .tile.accent { grid-column: 1 / -1; } .tile { padding: 16px 10px; } }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--ink); text-decoration: none; padding: 22px 16px; }
a.tile.panel:hover { border-color: rgba(255, 211, 107, 0.6); }
.tile h3 { margin: 10px 0 2px; color: var(--sun); }
.tile p { margin: 0; color: var(--muted); }
/* the tier in the card's top-left corner (the whole gang) */
.tile .badge.corner { position: absolute; top: 10px; left: 10px; font-size: 0.72rem; }
.tile .badge.corner ~ .sprite { margin-top: 16px; }   /* room under the badge, so ears and swords stay clear of it */
.sprite { image-rendering: pixelated; width: 96px; height: 96px; }
.tile .q { display: grid; place-items: center; font-size: 3.4rem; font-weight: 700; color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.06); clip-path: var(--notch); }
.tile.accent { background: var(--pink); color: #3d0f1d; clip-path: var(--notch); justify-content: center; }
.tile.accent p { color: #3d0f1d; }
.tile.accent .big { font-size: 1.9rem; font-weight: 700; margin-bottom: 6px; }
.tile.accent .go { font-weight: 700; margin-top: 10px; }

/* notes */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split h2 { text-align: left; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 30px; position: relative; margin: 9px 0; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 14px; height: 14px; background: var(--mint); clip-path: polygon(0 50%, 20% 50%, 20% 70%, 40% 70%, 40% 50%, 60% 50%, 60% 30%, 80% 30%, 80% 10%, 100% 10%, 100% 30%, 80% 30%, 80% 50%, 60% 50%, 60% 70%, 40% 70%, 40% 90%, 20% 90%, 20% 70%, 0 70%); }
.note-stack { position: relative; min-height: 280px; }
.note { position: absolute; width: 240px; padding: 36px 18px 18px; box-shadow: 8px 8px 0 var(--shadow); color: #3b3216; font-size: 1.1rem; }
.note::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 24px; background: rgba(0,0,0,0.08); }
.note p { margin: 0 0 6px; }
.note .done { text-decoration: line-through; opacity: 0.6; }
.note.butter { background: #ffe46b; left: 0; top: 0; transform: rotate(-3deg); }
.note.mint { background: #b9f0d2; left: 130px; top: 120px; transform: rotate(3deg); }
.note .progress { position: absolute; top: 3px; right: 10px; font-weight: 700; font-size: 0.85rem; color: #2c5b44; }
@media (max-width: 480px) { .note.mint { left: 70px; } }

/* premium */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; max-width: 820px; margin: 0 auto; }
.plans.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 1040px; }
.price.small { font-size: 1.5rem; }
.plans-note { text-align: center; color: var(--muted); max-width: 680px; margin: 18px auto 0; }
.plan { padding: 28px; }
.plan h3 { font-size: 1.5rem; }
.plan.featured { border-color: var(--sun); background: rgba(52, 30, 70, 0.82); }
.price { font-size: 2.6rem; font-weight: 700; color: var(--sun); margin: 0; line-height: 1.1; }
.price span { font-size: 1.1rem; color: var(--muted); }
.price-alt { color: var(--muted); margin: 0 0 16px; }
.ribbon { position: absolute; top: 18px; right: 18px; font: 700 0.8rem var(--font); text-transform: uppercase; letter-spacing: 0.06em; background: var(--sun); color: #3a2400; padding: 3px 10px 4px; clip-path: var(--notch-s); }

/* download */
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.dl h3 { display: flex; align-items: center; gap: 10px; }
.dl p { color: var(--muted); }
.waitlist { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist input[type="email"] { flex: 1 1 200px; min-width: 0; font: 400 1.05rem var(--font); color: var(--ink); background: rgba(0,0,0,0.3); padding: 11px 14px; border: 3px solid var(--panel-line); }
.waitlist input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.waitlist input[type="email"]:focus { border-color: var(--sun); outline: none; }
.hp { position: absolute; left: -9999px; }
.form-msg { flex-basis: 100%; margin: 4px 0 0; min-height: 1.4em; font-size: 0.95rem; }
.form-msg.ok { color: var(--mint); }
.form-msg.err { color: var(--pink); }

/* FAQ */
details.panel { padding: 0 22px; margin: 12px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 1.12rem; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--sun); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: '\2212'; }
details p { color: var(--muted); padding-bottom: 6px; }

/* footer */
.foot { margin-top: 40px; background: rgba(12, 9, 28, 0.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 3px solid var(--panel-line); padding: 40px 0 0; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
.foot-brand { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; font-weight: 700; color: var(--sun); }
.foot-brand img { image-rendering: pixelated; }
.foot p { color: var(--muted); }
.foot-h { font-weight: 700; color: var(--ink) !important; margin-bottom: 8px; }
.foot a { display: block; color: var(--muted); text-decoration: none; margin: 6px 0; }
.foot a:hover { color: var(--sun); }
.foot-base { border-top: 2px solid var(--panel-line); margin-top: 28px; padding-top: 16px; padding-bottom: 20px; font-size: 0.9rem; }
.foot-base p { margin: 0; }
.copy { font-family: 'Segoe UI', system-ui, sans-serif; }

/* text pages (privacy, 404) */
.page { padding-top: 48px; padding-bottom: 72px; }
/* "Skip to content": hidden until a keyboard user tabs to it */
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 8px 14px; background: var(--sun); color: #3a2400; font-weight: 700; text-decoration: none; clip-path: var(--notch-s); }
.skip:focus { top: 12px; }
/* a pet's own page (tools/build-website.js): breadcrumb, the showcase, then the story, questions and more pets */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 18px; font-size: 0.95rem; color: var(--muted); text-shadow: var(--outline); }
.crumbs a { color: var(--ink); }
.crumbs a:hover { color: var(--sun); }
.pet-hero { padding-top: 40px; }
.pet-hero .band-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--sun); text-shadow: 0 4px 0 var(--sun-dark), 0 7px 0 var(--shadow); }
.story .panel { padding: 32px; }
.story h2 { color: var(--sun); }
.story h2 .badge { text-shadow: none; vertical-align: middle; margin-left: 6px; }
.story p, .story li { color: var(--muted); }
.story ul { padding-left: 1.2em; }
.story li { margin: 6px 0; }
.more-link { display: inline-block; margin-top: 10px; color: var(--ink); font-weight: 700; }
.more-link:hover { color: var(--sun); }
.cta-end { text-align: center; }
.cta-end .panel { padding: 36px 24px; }
.cta-end h2 { color: var(--sun); }
.page .panel { padding: 32px; }
.page h1 { font-size: clamp(2rem, 5vw, 2.8rem); color: var(--sun); text-shadow: 0 4px 0 var(--sun-dark); }
.page h2 { font-size: 1.4rem; margin-top: 28px; text-shadow: none; }
.page p, .page li { color: var(--muted); }
.page li { margin: 6px 0; }

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