/* Still Around — white paper, round corners, warm pastels.
   Cute but calm. The page holds still and the animals do the moving; nothing
   here bounces for attention except the things you can actually press. */

:root {
  /* Committed to one light look. Without this the browser hands dark-mode
     visitors black range sliders and colour pickers on a white card. */
  color-scheme: light;

  --paper:   #ffffff;
  --paper-2: #ffffff;
  --cream:   #fff8f4;
  --blush:   #ffe7dd;
  --peach:   #ffd9c8;
  --butter:  #fff0cd;
  --mint:    #d9f2ec;
  --sky:     #e5edff;
  --lilac:   #ede5ff;

  --ink:       #3c302b;
  --ink-soft:  #6d5c53;
  --ink-faint: #9d8d84;
  --line:      #f4e8e1;

  --accent:      #f2764b;   /* ginger, after Momo */
  --accent-deep: #d0562b;
  --accent-soft: #fff0e9;
  --mint-deep:   #2b9c86;

  --shadow:    0 1px 2px rgba(176, 108, 78, 0.05), 0 10px 28px rgba(176, 108, 78, 0.10);
  --shadow-lg: 0 2px 5px rgba(176, 108, 78, 0.06), 0 22px 50px rgba(176, 108, 78, 0.14);

  --radius:    22px;
  --radius-lg: 30px;

  --display: "Fredoka", ui-rounded, "SF Pro Rounded", "Varela Round", "Trebuchet MS", system-ui, sans-serif;
  --sans: "Nunito", ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, sans-serif;
  /* personas.html still asks for --serif by name. */
  --serif: var(--display);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.3rem, 6vw, 3.7rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; }
section { padding: clamp(44px, 7vw, 84px) 0; }
.muted { color: var(--ink-faint); }
.small { font-size: 0.9rem; }
.hidden { display: none !important; }

/* ---------- header ---------- */

header.top {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand {
  font-family: var(--display); font-size: 1.2rem; font-weight: 600;
  margin-right: auto; display: inline-flex; align-items: center; gap: 8px;
}
.brand span { color: var(--accent); }
.brand .paw { font-size: 1.05rem; transition: transform 0.25s ease; }
.brand:hover .paw { transform: rotate(-18deg) scale(1.15); }
.top nav { display: flex; gap: 10px; font-size: 0.95rem; align-items: center; }
.top nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; transition: background 0.15s ease, color 0.15s ease;
}
.top nav a:hover { background: var(--accent-soft); color: var(--accent-deep); }
.top nav a.now { background: var(--ink); color: #fff; }
.top nav a.now:hover { background: var(--accent); color: #fff; }
@media (max-width: 620px) { .top nav a:not(.now) { display: none; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-family: var(--display); font-weight: 600; font-size: 1rem;
  cursor: pointer; text-decoration: none;
  transition: transform 0.14s cubic-bezier(.34,1.56,.64,1), background 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 6px 0 -1px var(--accent-deep), 0 12px 26px rgba(242, 118, 75, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); background: #f4835b; }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 3px 0 -1px var(--accent-deep); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--peach); box-shadow: var(--shadow); }
.btn[disabled] {
  opacity: 0.5; cursor: not-allowed; pointer-events: none;
  background: var(--cream); color: var(--ink-faint); border-color: var(--line); box-shadow: none;
}
/* "Coming soon" should read as a clear statement, not as a button that failed
   to load, so it keeps full contrast and says why with a dashed edge. */
.btn.is-off {
  cursor: default; pointer-events: none; box-shadow: none;
  background: var(--cream); color: var(--ink-soft);
  border: 2px dashed var(--peach);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- hero ---------- */

.hero { padding-top: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
/* Two soft blobs, well behind everything, so the white has some warmth in it
   without any section going non-white. */
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1;
}
.hero::before { width: 380px; height: 380px; background: var(--blush); opacity: 0.30; top: -190px; right: -120px; }
.hero::after  { width: 260px; height: 260px; background: var(--butter); opacity: 0.28; top: 300px; left: -190px; }

.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(26px, 5vw, 56px); align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lede { font-size: 1.16rem; color: var(--ink-soft); max-width: 40ch; margin-bottom: 26px; }

.badge {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent-deep);
  border-radius: 999px; padding: 7px 16px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.01em;
}

/* The stage the pets live on: a white card with a soft rug under their feet. */
.stage-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background:
    radial-gradient(75% 46% at 50% 88%, var(--peach) 0%, rgba(255, 216, 198, 0) 72%),
    linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.stage-frame canvas { display: block; width: 100%; height: 100%; touch-action: none; }
/* Along the top, not the bottom. The animals stand on the floor line, so a
   caption underneath them ran straight through their feet on a narrow stage —
   and the top of the stage is empty by construction. */
.stage-hint {
  position: absolute; left: 50%; top: 10px; transform: translateX(-50%);
  max-width: calc(100% - 20px); text-align: center;
  background: rgba(255, 255, 255, 0.7); border-radius: 16px; padding: 4px 13px;
  font-size: 0.78rem; font-weight: 600; color: var(--ink-faint); pointer-events: none;
}

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px 22px; text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step .n {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.75rem; margin: 0 auto 14px; transition: transform 0.25s cubic-bezier(.34,1.56,.64,1);
}
.step:hover .n { transform: rotate(-8deg) scale(1.08); }
.step:nth-child(1) .n { background: var(--blush); }
.step:nth-child(2) .n { background: var(--butter); }
.step:nth-child(3) .n { background: var(--mint); }
.step h3 { margin-bottom: 5px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* A little trail of paws instead of a rule. Drawn rather than emoji: 🐾 is
   near-black in every font, and knocking it back to fit just makes grey smudges. */
.paws { display: flex; justify-content: center; align-items: center; gap: 26px; }
.paws svg { width: 24px; height: 24px; color: #ffc7ad; flex: none; }
.paws svg:nth-child(even) { transform: translateY(11px) rotate(16deg); }
.paws svg:nth-child(odd) { transform: rotate(-12deg); }
.paws svg:first-child, .paws svg:last-child { opacity: 0.5; width: 18px; height: 18px; }

/* ---------- studio ---------- */

.studio {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.studio-head {
  padding: 22px 26px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(180deg, var(--cream), #fff);
}
.studio-head h2 { margin-right: auto; }
.studio-body { padding: clamp(20px, 3vw, 28px); }

.pill-group { display: inline-flex; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.pill {
  border: 0; background: transparent; color: var(--ink-soft);
  font: inherit; font-family: var(--display); font-weight: 600;
  padding: 8px 20px; border-radius: 999px; cursor: pointer; font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.pill:hover { color: var(--accent-deep); }
.pill[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(242,118,75,.3); }

.progress { height: 8px; background: var(--cream); border-radius: 999px; overflow: hidden; margin: 18px 0 6px; }
.progress i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #ffb072);
  transition: width 0.2s ease;
}

.editor { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; }
@media (max-width: 900px) { .editor { grid-template-columns: 1fr; } }

.controls { display: grid; gap: 15px; align-content: start; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); display: flex; justify-content: space-between; }
.field input[type="range"] { width: 100%; accent-color: var(--accent); }
.field input[type="text"], .field select {
  font: inherit; padding: 11px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--cream); color: var(--ink);
}
.field input[type="text"]:focus, .field select:focus { outline: 2px solid var(--peach); outline-offset: 1px; }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { display: grid; gap: 5px; justify-items: center; font-size: 0.76rem; font-weight: 600; color: var(--ink-faint); }
.swatch input[type="color"] {
  width: 48px; height: 36px; padding: 0; border: 1px solid var(--line);
  border-radius: 12px; background: none; cursor: pointer;
}
details.advanced summary {
  cursor: pointer; font-weight: 700; font-size: 0.92rem; color: var(--ink-soft);
  list-style: none; padding: 10px 14px; border-radius: 14px; background: var(--cream);
}
details.advanced summary::-webkit-details-marker { display: none; }
details.advanced summary::before { content: "▸ "; color: var(--accent); }
details.advanced[open] summary::before { content: "▾ "; }
details.advanced[open] summary { margin-bottom: 12px; }

.notes { font-size: 0.86rem; color: var(--ink-faint); padding-left: 1.1em; }
.notes li { margin-bottom: 3px; }

/* Picking the eye colour out of the photo. */
.pickwrap { position: relative; display: inline-block; max-width: 100%; }
.pickwrap canvas { max-width: 100%; border-radius: 16px; border: 1px solid var(--line); cursor: crosshair; display: block; }
.pick-dot {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 1.5px rgba(0,0,0,0.5); pointer-events: none;
}

/* ---------- downloads ---------- */

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 780px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: grid; gap: 12px; align-content: start;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
/* Drawn, not emoji: 🪟 renders as a brown door on macOS, which is not the
   impression a Windows download button wants to make. */
.card .os {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--blush); color: var(--accent-deep);
}
.card:nth-child(2) .os { background: var(--sky); color: #3f6296; }
.card .os svg { width: 26px; height: 26px; }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- the quiet reassurance strip ---------- */

.promise {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--mint); border-radius: var(--radius-lg); padding: 26px 30px;
}
.promise .lock { font-size: 1.7rem; line-height: 1; }
.promise h2 { font-size: 1.3rem; margin-bottom: 4px; }
.promise p { margin: 0; color: #33564f; font-size: 0.96rem; }
.promise p + p { margin-top: 6px; }

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--ink-faint); font-size: 0.9rem; }
footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
footer nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--ink-faint); text-decoration: none; }
footer a:hover { color: var(--accent); }
.memorial { font-weight: 700; color: var(--ink-soft); }
.memorial .heart { color: var(--accent); }

/* ---------- the shot list ---------- */

.video-lead {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--butter), var(--blush));
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 22px;
}
.video-lead-icon { font-size: 2rem; line-height: 1; }
.video-lead > div:nth-child(2) { flex: 1 1 250px; }
.video-lead h3 { margin-bottom: 2px; }
.video-lead p { margin: 0; color: var(--ink-soft); }

.or-line { display: flex; align-items: center; gap: 14px; color: var(--ink-faint); font-size: 0.85rem; font-weight: 600; margin-bottom: 18px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .slots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 358px) { .slots { grid-template-columns: 1fr; } }

.slot {
  position: relative; text-align: center; cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 14px 18px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.slot:hover { border-color: var(--peach); box-shadow: var(--shadow); transform: translateY(-3px); }
.slot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.slot:active { transform: translateY(0); }

/* A soft pastel disc behind the little animal, a different one per slot, so the
   four read as four things to do rather than one repeated tile. */
.slot .art, .slot .shot {
  width: 136px; height: 112px; margin: 0 auto 12px; max-width: 100%;
  display: grid; place-items: center; border-radius: 26px; overflow: hidden;
}
.slot:nth-child(1) .art, .slot:nth-child(1) .shot { background: var(--blush); }
.slot:nth-child(2) .art, .slot:nth-child(2) .shot { background: var(--butter); }
.slot:nth-child(3) .art, .slot:nth-child(3) .shot { background: var(--mint); }
.slot:nth-child(4) .art, .slot:nth-child(4) .shot { background: var(--sky); }
.slot .art canvas { width: 136px; height: 112px; max-width: 100%; display: block; }
.slot:hover .art { transform: scale(1.04); transition: transform 0.2s ease; }
.slot .shot { display: block; object-fit: contain; }

.slot h4 { margin: 0 0 4px; font-size: 1.04rem; font-weight: 600; }
.slot p { margin: 0; font-size: 0.82rem; color: var(--ink-faint); line-height: 1.45; }

.slot .tag {
  display: inline-block; margin-top: 10px; padding: 4px 12px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
  background: var(--cream); color: var(--ink-faint);
}
.slot[data-state="wanted"] .tag { background: var(--accent-soft); color: var(--accent-deep); }
.slot[data-state="filled"] { border-color: var(--peach); }
.slot[data-state="filled"] .tag { background: var(--mint); color: var(--mint-deep); }

.slot .clear {
  position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border: 0;
  border-radius: 50%; background: rgba(60, 48, 43, 0.62);
  color: #fff; cursor: pointer; font-size: 15px; line-height: 26px; padding: 0;
  opacity: 0; transition: opacity 0.15s ease;
}
.slot:hover .clear, .slot:focus-within .clear { opacity: 1; }

.peek {
  display: grid; grid-template-columns: 210px 1fr; gap: 20px; align-items: center;
  margin-top: 24px; background: var(--cream); border-radius: var(--radius); padding: 18px 20px;
}
@media (max-width: 640px) { .peek { grid-template-columns: 1fr; } }
.peek canvas { width: 100%; height: 100%; display: block; }
.peek .stage-frame { box-shadow: var(--shadow); }

.candidates { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 14px; }
.candidate {
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  cursor: pointer; padding: 0; background: var(--cream); display: block;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.candidate:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.candidate canvas { width: 100%; display: block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .step, .card, .slot, .candidate, .step .n, .brand .paw { transition: none; }
  .step:hover, .card:hover, .slot:hover, .candidate:hover, .btn:hover { transform: none; }
}
