/* Butterbuds website. Lilac Dawn: a barely-there wash, white glass, near-black ink,
   periwinkle in small places, butter only around pets and coins. */

:root {
  --wash: linear-gradient(160deg, #FFF9F1 0%, #FCF2F2 48%, #F4EFFB 100%);
  --wash-okay: linear-gradient(160deg, #F6F3F9 0%, #EDEDF7 48%, #E3E8F4 100%);
  --wash-sleepy: linear-gradient(160deg, #EFEFF2 0%, #E6E7EC 48%, #DADDE5 100%);
  --ink: #1B1820;
  --secondary: #6B6460;
  --accent: #5B5BD6;
  --accent-text: #4A4AC4;
  --hairline: rgba(27, 24, 32, 0.08);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 1px 2px rgba(27, 24, 32, 0.04), 0 8px 24px rgba(27, 24, 32, 0.05);
  --butter: #FFD75E;
  --cream: #FFF3C4;
  --tint-open: #FFF3D6;
  --tint-health: #ECEBFB;
  --heart: #E8788A;
  --serif: Fraunces, "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --spring: cubic-bezier(0.3, 1.25, 0.5, 1);      /* app's bbSpring: barely overshoots */
  --bouncy: cubic-bezier(0.34, 1.56, 0.64, 1);    /* app's bbBouncy: checks, coins, pets */
  --foot: 50% 93%;                                 /* where every pet cutout meets the ground */
  --breath: 2.6s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #FBF4F6; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--wash); }
[hidden] { display: none !important; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.wrap { width: min(1120px, 100%); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 28px;
}

/* ── Type ── */
h1, h2 {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-weight: 400;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.4rem + 5.2vw, 4.6rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); line-height: 1.06; }
h3 { font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--secondary); }
.lede { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem); line-height: 1.5; color: var(--secondary); text-wrap: pretty; }
.fine { font-size: 0.875rem; line-height: 1.45; color: var(--secondary); }
.dot { color: var(--secondary); }

/* ── Wordmark: soft serif with the Paw Coin earned at the end ── */
.wordmark {
  position: relative; display: inline-block; text-decoration: none; white-space: nowrap;
  font-family: var(--serif); font-variation-settings: "SOFT" 100, "opsz" 144;
  font-size: 30px; font-weight: 440; line-height: 1; letter-spacing: -0.018em;
  padding: 8px 0.6em 8px 0;
}
.wordmark .wm-t { margin-left: 0.02em; }
.wordmark .wm-b { margin-left: -0.012em; }
.wm-coin { position: absolute; left: calc(100% - 0.6em + 0.03em); top: 8px; width: 0.46em; height: 0.46em; transform: rotate(-10deg); }
.wordmark-small { font-size: 22px; font-weight: 470; }
.wordmark-small .wm-coin { width: 0.52em; height: 0.52em; top: 6px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 54px; padding: 0 28px; border-radius: 27px; border: 0; cursor: pointer;
  font-size: 1.0625rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform 0.38s var(--spring), opacity 0.2s, background-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); opacity: 0.86; transition-duration: 0.08s; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(27, 24, 32, 0.2), 0 10px 24px rgba(27, 24, 32, 0.14); }
.btn-primary:hover { background: #2A2631; }
.btn-small { height: 44px; padding: 0 18px; border-radius: 22px; font-size: 0.9375rem; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
.btn-small:hover { background: #fff; }
.btn-quiet { height: 44px; padding: 0 20px; border-radius: 22px; font-size: 0.9375rem; background: var(--ink); color: #fff; }
.text-btn { background: none; border: 0; padding: 10px 0; cursor: pointer; font-size: 0.9375rem; font-weight: 600; color: var(--accent-text); text-decoration: underline; text-underline-offset: 0.2em; }
.cta-block { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-note { min-height: 0; font-size: 0.9375rem; font-weight: 600; color: var(--accent-text); }
.cta-note:empty { margin-top: -12px; }
.cta-note.is-in { animation: note-in 0.42s var(--bouncy) both; }
@keyframes note-in { from { opacity: 0; transform: translateY(-4px) scale(0.96); } }

/* ── Header ── */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }

/* ── Hero ── */
.hero { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(20px, 5vw, 56px) clamp(48px, 8vw, 96px); }
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.hero-copy .lede { max-width: 32em; }
.hero-copy .cta-block { margin-top: 8px; }
.hero-pet { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.sun-stage { position: relative; width: min(100%, 460px); aspect-ratio: 1; }
.sun { position: absolute; border-radius: 50%; }
.sun-outer { left: 9%; top: 3%; width: 82%; height: 82%; background: var(--cream); }
.sun-inner { left: 15%; top: 9%; width: 70%; height: 70%; background: radial-gradient(circle at 50% 38%, #FFE48A 0%, #FFD75E 68%, #FDCF4E 100%); }
.sun-stage .pet-hero { position: absolute; left: -2%; top: 1%; width: 100%; }
.pet-caption { font-size: 0.9375rem; text-align: center; color: var(--ink); }
.pet-hint { display: block; color: var(--secondary); transition: opacity 0.5s; }
.pet-hint.is-gone { opacity: 0; }

.picker { display: flex; justify-content: center; gap: clamp(6px, 2vw, 14px); }
.chip { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip-face {
  width: clamp(48px, 13vw, 58px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: var(--glass); border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow); transition: transform 0.38s var(--spring), box-shadow 0.2s, background-color 0.2s;
}
.chip-face img { width: 150%; max-width: none; margin: -8% 0 0 -25%; }
.chip-label { font-size: 0.75rem; font-weight: 600; color: var(--secondary); transition: color 0.2s; }
.chip:hover .chip-face { transform: translateY(-2px); }
.chip input:checked + .chip-face { background: var(--cream); box-shadow: 0 0 0 2px var(--ink), var(--glass-shadow); }
.chip input:checked ~ .chip-label { color: var(--ink); }
.chip input:focus-visible + .chip-face { outline: 3px solid var(--accent); outline-offset: 3px; }
.chip:active .chip-face { transform: scale(0.94); }

/* ── The pet: one wrapper per motion channel so reactions add up, all anchored at the feet ── */
.pet { position: relative; aspect-ratio: 1; width: 100%; user-select: none; -webkit-user-select: none; }
.pet-lean, .pet-hop, .pet-tilt, .pet-squash, .pet-breathe { position: absolute; inset: 0; transform-origin: var(--foot); }
.pet-lean { transform: rotate(var(--lean, 0deg)); transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.pet-breathe { animation: breathe var(--breath) ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(1, 1); } to { transform: scale(1.007, 1.015); } }
.pet img { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-user-drag: none; pointer-events: none; }
.pet-shadow {
  position: absolute; left: 24%; top: 87.8%; width: 52%; aspect-ratio: 5; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(27, 24, 32, 0.22), rgba(27, 24, 32, 0.1) 50%, rgba(27, 24, 32, 0.02) 82%, transparent);
}
.pet-fx { position: absolute; inset: 0; pointer-events: none; }
.pet-touch {
  position: absolute; inset: 12% 14% 5%; border: 0; padding: 0; background: none; border-radius: 40%;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.pet-touch:focus-visible { outline-offset: 6px; border-radius: 40%; }
.stage-img { opacity: 0; transition: opacity 0.28s ease; }
.stage-img.is-on { opacity: 1; }
.pet.is-swapping img { opacity: 0 !important; transition: opacity 0.14s ease !important; }

.fx { position: absolute; left: 0; top: 0; width: 7%; aspect-ratio: 1; will-change: transform, opacity; }
.fx svg { width: 100%; height: 100%; }
.fx-heart { color: var(--heart); fill: currentColor; }
.fx-sparkle { fill: #F4B224; }
.bubble {
  position: absolute; left: 50%; top: 4%; z-index: 2; transform: translate(-50%, -100%); transform-origin: 50% 100%;
  padding: 8px 14px; border-radius: 18px; white-space: nowrap;
  background: #fff; box-shadow: 0 1px 2px rgba(27, 24, 32, 0.06), 0 8px 20px rgba(27, 24, 32, 0.1);
  font-size: 0.9375rem; font-weight: 600; color: var(--ink);
  animation: bubble-in 0.42s var(--bouncy) both;
}
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 12px; height: 12px; margin-left: -6px; background: #fff; border-radius: 3px; transform: rotate(45deg); }
.bubble.is-out { animation: bubble-out 0.22s ease-in both; }
@keyframes bubble-in { from { opacity: 0; transform: translate(-50%, -100%) scale(0.6); } }
@keyframes bubble-out { to { opacity: 0; transform: translate(-50%, -108%) scale(0.92); } }

.fly-coin { position: fixed; left: 0; top: 0; width: 20px; height: 20px; z-index: 50; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(201, 138, 10, 0.35)); will-change: transform, opacity; }
.fly-coin svg { width: 100%; height: 100%; }

/* ── How a day goes ── */
.day { display: grid; gap: 28px clamp(32px, 5vw, 72px); padding-block: clamp(40px, 7vw, 88px); grid-template-areas: "title" "card" "steps"; }
.day > h2 { grid-area: title; }
.day-copy { grid-area: steps; }
.day .today { grid-area: card; }
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 22px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
.steps li::before {
  content: counter(step); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
  font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 1.25rem;
}
.steps h3 { align-self: end; padding-top: 8px; }
.steps p { grid-column: 2; color: var(--secondary); margin-top: 4px; max-width: 30em; }

.today { padding: clamp(18px, 4vw, 26px); display: flex; flex-direction: column; gap: 16px; width: min(100%, 460px); justify-self: center; }
.today-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.today-head h3 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.today-sub { font-size: 0.9375rem; color: var(--secondary); margin-top: 4px; }
.balance { display: grid; grid-template-columns: 1fr auto; column-gap: 7px; align-items: center; justify-items: end; padding: 9px 14px 9px 11px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--hairline); }
.coin-22 { width: 22px; height: 22px; }
.coin-16 { width: 16px; height: 16px; }
.balance-num { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.balance-sub { grid-column: 1 / -1; font-size: 0.75rem; color: var(--secondary); white-space: nowrap; margin-top: 3px; font-variant-numeric: tabular-nums; }
.balance.is-bump .coin-22, .balance.is-bump .balance-num { animation: coin-bump 0.52s both; }
@keyframes coin-bump { 31% { transform: scale(1.28); } 58% { transform: scale(0.94); } 100% { transform: scale(1); } }

.today-pet { display: grid; grid-template-columns: minmax(120px, 42%) 1fr; align-items: center; gap: 12px; padding: 6px 14px 6px 4px; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 243, 196, 0.55), rgba(255, 243, 196, 0.25)); }
.growth { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.growth-title { font-size: 0.9375rem; line-height: 1.3; }
.growth-title strong { display: block; font-size: 1.0625rem; }
.growth-title .dot { display: none; }
.growth-title [data-stage-label] { color: var(--secondary); font-size: 0.875rem; }
.growth-bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.growth-bar i { height: 8px; border-radius: 4px; background: rgba(27, 24, 32, 0.08); transition: background-color 0.3s, transform 0.42s var(--bouncy); }
.growth-bar i.is-on { background: #E3A81C; }
.growth-bar i.is-new { transform: scaleY(1.5); }
.growth-sub { font-size: 0.8125rem; color: var(--secondary); }

.goals { display: flex; flex-direction: column; gap: 8px; }
.goal {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 16px 8px 14px;
  border-radius: 20px; background: var(--tint-open); cursor: pointer;
  transition: background-color 0.3s, transform 0.38s var(--spring); -webkit-tap-highlight-color: transparent;
}
.goal:active { transform: scale(0.975); transition-duration: 0.08s; }
.goal input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.goal-check { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgba(27, 24, 32, 0.55); color: #fff; transition: background-color 0.2s, box-shadow 0.2s; }
.goal-check svg { width: 13px; height: 13px; transform: scale(0.3); opacity: 0; }
.goal-title { flex: 1; font-size: 1.0625rem; font-weight: 600; transition: color 0.3s; }
.goal-coins { display: inline-flex; align-items: center; gap: 5px; font-size: 0.9375rem; font-weight: 700; color: #7A5600; font-variant-numeric: tabular-nums; }
.goal:has(input:checked) { background: #fff; box-shadow: inset 0 0 0 1px var(--hairline); cursor: default; }
.goal input:checked { cursor: default; }
.goal input:checked ~ .goal-check { background: var(--accent); box-shadow: none; }
.goal input:checked ~ .goal-check svg { transform: scale(1); opacity: 1; transition: transform 0.5s var(--bouncy), opacity 0.15s; }
.goal input:checked ~ .goal-title { color: var(--secondary); }
.goal input:checked ~ .goal-coins { opacity: 0.55; }
.goal:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
@supports not selector(:has(a)) { .goal input:focus-visible ~ .goal-check { outline: 3px solid var(--accent); outline-offset: 3px; } }
.today-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.today-note { font-size: 0.8125rem; line-height: 1.4; color: var(--secondary); }
.today-foot .text-btn { flex: none; }

/* ── Missed days are fine: the ground is the pet-health wash ── */
.mood { position: relative; isolation: isolate; padding-block: clamp(56px, 9vw, 112px); }
.mood-wash {
  position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.8s ease;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.wash-happy { background: var(--wash); }
.wash-okay { background: var(--wash-okay); }
.wash-sleepy { background: var(--wash-sleepy); }
.mood[data-mood="happy"] .wash-happy, .mood[data-mood="okay"] .wash-okay, .mood[data-mood="sleepy"] .wash-sleepy { opacity: 1; }
.mood-inner { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
.mood-copy { display: flex; flex-direction: column; gap: 20px; }
.mood-copy .lede { max-width: 31em; }
.segmented { display: inline-grid; grid-template-columns: repeat(3, 1fr); align-self: flex-start; padding: 4px; border-radius: 26px; background: rgba(27, 24, 32, 0.06); margin-top: 6px; }
.segmented label { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.segmented input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.segmented span { display: grid; place-items: center; height: 44px; padding: 0 20px; border-radius: 22px; font-size: 0.9375rem; font-weight: 600; color: #554F4C; transition: background-color 0.25s, color 0.25s, box-shadow 0.25s; }
.segmented input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(27, 24, 32, 0.08), 0 4px 12px rgba(27, 24, 32, 0.06); }
.segmented input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.mood-line { font-weight: 600; min-height: 1.5em; }
.mood-promise { color: var(--secondary); font-size: 0.9375rem; }

.mood-pet { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.pet-mood { width: min(72%, 300px); margin-bottom: -6%; z-index: 1; }
.pet-mood img { transition: filter 0.8s ease, opacity 0.8s ease, transform 0.8s ease; }
.mood[data-mood="okay"] { --breath: 3.2s; }
.mood[data-mood="sleepy"] { --breath: 4.8s; }
.mood[data-mood="sleepy"] .pet-mood img { filter: saturate(0.5) brightness(0.98); opacity: 0.86; transform: translateY(2.5%) scale(1, 0.975); transform-origin: var(--foot); }
.zzz { position: absolute; left: 66%; top: 14%; width: 20%; height: 24%; opacity: 0; transition: opacity 0.6s; pointer-events: none; }
.mood[data-mood="sleepy"] .zzz { opacity: 1; }
.zzz span { position: absolute; left: 0; bottom: 0; font: 600 1.25rem/1 var(--serif); font-variation-settings: "SOFT" 100; color: #7C82A8; opacity: 0; animation: zzz 4.2s linear infinite; }
.zzz span:nth-child(2) { animation-delay: 1.4s; }
.zzz span:nth-child(3) { animation-delay: 2.8s; }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 0) scale(0.6); } 15% { opacity: 0.9; } 70% { opacity: 0.7; } 100% { opacity: 0; transform: translate(220%, -320%) scale(1.25); } }

.mood-card { width: min(100%, 360px); padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 12px; }
.mood-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mood-headline { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; }
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 13px; font-size: 0.8125rem; font-weight: 600; background: var(--tint-health); color: var(--accent-text); transition: background-color 0.6s, color 0.6s; }
.mood[data-mood="okay"] .badge { background: #E2E6F6; color: #4E5890; }
.mood[data-mood="sleepy"] .badge { background: #E1E3E9; color: #555A68; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week i { height: 10px; border-radius: 5px; background: rgba(27, 24, 32, 0.08); transition: background-color 0.4s, transform 0.42s var(--bouncy); }
.week i.is-on { background: var(--accent); }
.week i.is-new { transform: scaleY(1.4); }
.week-label { font-size: 0.875rem; color: var(--secondary); }
.mood-card .btn-quiet { align-self: flex-start; margin-top: 4px; animation: note-in 0.42s var(--bouncy) both; }

/* ── For parents ── */
.trust { padding-block: clamp(48px, 8vw, 104px); display: flex; flex-direction: column; gap: clamp(24px, 4vw, 40px); }
.trust-grid { display: grid; gap: 12px; }
.trust-grid li { padding: 22px 24px 24px; border-radius: 24px; display: flex; flex-direction: column; gap: 6px; }
.trust-grid p { color: var(--secondary); font-size: 0.9375rem; line-height: 1.5; }

/* ── Closing ── */
.get { padding-block: clamp(72px, 10vw, 120px) clamp(48px, 8vw, 96px); scroll-margin-top: 12px; }
.get-panel { position: relative; max-width: 720px; margin-inline: auto; padding: clamp(84px, 12vw, 104px) clamp(22px, 5vw, 56px) clamp(32px, 5vw, 48px); border-radius: 36px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.pet-get { position: absolute; left: 50%; top: 0; width: clamp(150px, 30vw, 190px); margin-left: calc(clamp(150px, 30vw, 190px) / -2); transform: translateY(-58%); }
.get-panel .lede { max-width: 30em; }
.get-panel .cta-block { align-items: center; margin-top: 6px; }
.get-panel .fine { max-width: 36em; font-size: 0.8125rem; }

/* ── Footer ── */
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; padding-block: 28px 40px; border-top: 1px solid var(--hairline); font-size: 0.9375rem; color: var(--secondary); }
.site-footer nav { display: flex; gap: 4px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; border-radius: 12px; }
.site-footer nav a:hover, .doc a:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer .wordmark { color: var(--ink); }
.copyright { flex-basis: 100%; font-size: 0.8125rem; }

/* ── Legal and support pages ── */
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-size: 0.9375rem; font-weight: 600; }
.doc { max-width: 44rem; padding-block: clamp(28px, 6vw, 72px) clamp(56px, 9vw, 112px); display: flex; flex-direction: column; gap: 16px; }
.doc h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 3.6rem); margin-bottom: 8px; }
.doc h2 { font-family: var(--sans); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; margin-top: 20px; }
.doc p { color: #3F3A40; max-width: 40em; }
.doc a { color: var(--accent-text); overflow-wrap: anywhere; }
.draft { align-self: flex-start; padding: 5px 12px; border-radius: 13px; background: var(--tint-open); color: #7A5600; font-size: 0.8125rem; font-weight: 600; }
.note { padding: 16px 20px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }

/* ── Wider screens ── */
@media (min-width: 560px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .copyright { flex-basis: auto; }
}
@media (min-width: 900px) {
  .wordmark { font-size: 34px; }
  .wordmark-small { font-size: 22px; }
  .hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
  .day { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); grid-template-areas: "title card" "steps card"; grid-template-rows: auto auto; align-content: center; }
  .day-copy { align-self: start; }
  .day > h2 { align-self: end; }
  .mood-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (max-width: 359px) {
  .wordmark { font-size: 26px; }
  .site-header { gap: 10px; }
  .btn-small { padding: 0 14px; }
  .btn-primary { padding: 0 20px; font-size: 1rem; }
  .segmented span { padding: 0 14px; }
}

/* ── Reduced motion: keep every state change, drop the movement ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pet-breathe, .zzz span { animation: none; }
  .zzz span { opacity: 0.8; position: static; display: inline-block; margin-right: 4px; }
  .pet-lean { transition: none; }
  .bubble, .bubble.is-out, .cta-note.is-in, .mood-card .btn-quiet, .balance.is-bump .coin-22, .balance.is-bump .balance-num { animation: none; }
  .btn, .goal, .chip-face, .growth-bar i, .week i, .goal input:checked ~ .goal-check svg { transition: none; }
  .pet-mood img { transition: filter 0.8s ease, opacity 0.8s ease; }
}
