/* MEWS — warm, friendly, mascot-led OS for vet medicine
   Big rounded type · cream paper · Mew the cat + Milo the dog · soft motion
*/

:root {
  /* paper */
  --bg:        #FFF4E6;
  --bg-2:      #FFEAD0;
  --surface:   #FFFCF5;
  --surface-2: #FFF9EC;
  --paper:     #FFFFFF;

  /* ink */
  --ink:    #2A1F18;
  --ink-2:  #5A4A3D;
  --muted:  #9C8B7D;
  --line:   rgba(42,31,24,0.10);
  --line-2: rgba(42,31,24,0.20);

  /* brand */
  --orange:      #FF8A3D;
  --orange-deep: #E26B1F;
  --orange-soft: #FFE3CC;
  --orange-glow: rgba(255,138,61,0.22);

  --sun:      #FFD166;
  --sun-soft: #FFEDC2;

  --coral:      #E94F37;
  --coral-soft: #FBD9D3;

  --mint:      #7CC4A8;
  --mint-soft: #DAEFE3;

  --plum:      #B8588A;
  --plum-soft: #F2D8E6;

  /* type */
  --display: "Bricolage Grotesque", "Nunito", system-ui, sans-serif;
  --sans:    "Nunito", "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  --max:  1240px;
  --r-sm: 14px;
  --r:    22px;
  --r-lg: 32px;
}

/* ============ RESET / BASE ============ */
* { box-sizing: border-box; }
html, body { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* faint paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(255,138,61,0.06), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,209,102,0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
main, section, nav, footer { position: relative; z-index: 1; }

/* ============ REVEAL ON SCROLL ============ */
/* Gated on .js — content shows immediately if JS doesn't run.
   The init script also disables animations if document.hidden
   (e.g. a preview iframe), to avoid stuck-at-opacity-0 states. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s cubic-bezier(.2,.7,.3,1),
              transform .65s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays (apply to base + variants) */
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }
.js .reveal[data-delay="5"] { transition-delay: .40s; }
.js .reveal[data-delay="6"] { transition-delay: .48s; }
.js .reveal[data-delay="7"] { transition-delay: .56s; }
.js .reveal[data-delay="8"] { transition-delay: .64s; }

/* ---- Variants (override .reveal's transform) ---- */
/* Pop in — springy scale from small. Great for buttons, pills, badges. */
.js .reveal.anim-pop {
  transform: scale(.55);
  transition-timing-function: cubic-bezier(.34, 1.56, .64, 1);
  transition-duration: .7s;
}
.js .reveal.anim-pop.in { transform: scale(1); }

/* Slide in from left / right — for paired-column layouts. */
.js .reveal.anim-slide-l { transform: translateX(-72px) translateY(0); }
.js .reveal.anim-slide-l.in { transform: translateX(0) translateY(0); }
.js .reveal.anim-slide-r { transform: translateX(72px) translateY(0); }
.js .reveal.anim-slide-r.in { transform: translateX(0) translateY(0); }

/* Stamp — bigger then settles. Great for big numbers, badges, tags. */
.js .reveal.anim-stamp {
  transform: scale(1.45) rotate(-6deg);
  transition-timing-function: cubic-bezier(.34, 1.56, .64, 1);
  transition-duration: .55s;
}
.js .reveal.anim-stamp.in { transform: scale(1) rotate(0); }

/* Drop — falls from above with a rotation. Great for mascots, sticky notes. */
.js .reveal.anim-drop {
  transform: translateY(-60px) rotate(-14deg);
  transition-timing-function: cubic-bezier(.34, 1.56, .64, 1);
  transition-duration: .85s;
}
.js .reveal.anim-drop.in { transform: translateY(0) rotate(0); }

/* Mirror drop for items on the right side. */
.js .reveal.anim-drop-r {
  transform: translateY(-60px) rotate(14deg);
  transition-timing-function: cubic-bezier(.34, 1.56, .64, 1);
  transition-duration: .85s;
}
.js .reveal.anim-drop-r.in { transform: translateY(0) rotate(0); }

/* Tilt-up — slight rotation while sliding up. Pair odd/even for visual rhythm. */
.js .reveal.anim-tilt-l { transform: translateY(28px) rotate(-3deg); }
.js .reveal.anim-tilt-l.in { transform: translateY(0) rotate(0); }
.js .reveal.anim-tilt-r { transform: translateY(28px) rotate(3deg); }
.js .reveal.anim-tilt-r.in { transform: translateY(0) rotate(0); }

/* Unfold — slide and scale from a small footprint (for product mocks / phones). */
.js .reveal.anim-unfold {
  transform: translateY(40px) scale(.92);
  transition-duration: .85s;
  transition-timing-function: cubic-bezier(.22, 1, .36, 1);
}
.js .reveal.anim-unfold.in { transform: translateY(0) scale(1); }

/* Auto-alternate tilt for sibling cards in a 3-column grid.
   Lets us add variety without hand-classing every card. */
.js .grid-3 > .reveal.anim-stagger:nth-child(3n+1) { transform: translateY(28px) rotate(-3deg); }
.js .grid-3 > .reveal.anim-stagger:nth-child(3n+1).in { transform: translateY(0) rotate(0); }
.js .grid-3 > .reveal.anim-stagger:nth-child(3n+2) { transform: translateY(36px) scale(.94); }
.js .grid-3 > .reveal.anim-stagger:nth-child(3n+2).in { transform: translateY(0) scale(1); }
.js .grid-3 > .reveal.anim-stagger:nth-child(3n+3) { transform: translateY(28px) rotate(3deg); }
.js .grid-3 > .reveal.anim-stagger:nth-child(3n+3).in { transform: translateY(0) rotate(0); }
.js .reveal.anim-stagger {
  transition-timing-function: cubic-bezier(.34, 1.56, .64, 1);
  transition-duration: .7s;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .wiggle, .float, .wag, .bob { animation: none !important; }
}

/* ============ TYPE ============ */
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 6.6vw, 96px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.030em; font-weight: 700; }
h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -0.018em; font-weight: 700; }
h4 { font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -0.012em; }
h5 { font-size: 13px; font-weight: 700; }

em {
  font-family: var(--display);
  font-style: italic;
  color: var(--orange-deep);
  font-weight: 700;
}

p { margin: 0; }
.lede { font-size: 21px; line-height: 1.5; color: var(--ink-2); max-width: 660px; font-weight: 500; }
.sub { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.small { font-size: 13px; color: var(--muted); }
.mono { font-family: var(--mono); }

/* Scribbled underline */
.scribble {
  position: relative;
  white-space: nowrap;
  display: inline-block;
}
.scribble::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px;
  bottom: -6px;
  height: 12px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2 7 Q 30 1, 60 6 T 120 5 T 180 7 T 198 5' stroke='%23FF8A3D' stroke-width='3' fill='none' stroke-linecap='round' /></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--orange-deep);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--orange-soft);
  border-radius: 999px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  border: 0;
  transition: transform 0.2s cubic-bezier(.3,.7,.4,1.4), box-shadow 0.2s, background 0.2s, color 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.2s cubic-bezier(.3,.7,.4,1); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--orange);
  color: #FFFCF5;
  box-shadow: 0 4px 0 var(--orange-deep), 0 12px 28px -10px var(--orange-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--orange-deep), 0 16px 36px -10px var(--orange-glow);
}
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--orange-deep); }

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--sun);
  box-shadow: 0 6px 0 var(--ink);
}
.btn-secondary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 14px 18px;
}
.btn-ghost:hover { background: var(--orange-soft); }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 16px;
  z-index: 50;
  margin: 16px auto 0;
  max-width: var(--max);
  padding: 0 16px;
  transition: top 0.3s;
}
.nav-inner {
  background: rgba(255,252,245,0.85);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 10px 14px 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 4px 0 var(--ink), 0 18px 40px -20px rgba(42,31,24,0.18);
  transition: box-shadow 0.3s, background 0.3s;
}
.nav.scrolled .nav-inner { background: rgba(255,252,245,0.96); }

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.nav-logo .logo-mark {
  width: 36px; height: 36px;
  display: inline-block;
}
.nav-logo:hover .logo-mark { animation: wiggle 0.6s ease; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
}
.nav-links a:not(.nav-cta) {
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-links a:not(.nav-cta):hover {
  color: var(--ink);
  background: var(--orange-soft);
}
.nav-links a.active { color: var(--orange-deep); background: var(--orange-soft); }

.nav-cta {
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.nav-cta:hover {
  background: var(--orange);
  color: #FFFCF5;
  transform: translateY(-1px);
}

/* ============ LAYOUT ============ */
section { padding: 96px 24px; position: relative; }
.container { max-width: var(--max); margin: 0 auto; position: relative; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ============ CARDS ============ */
.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  padding: 28px;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.25s cubic-bezier(.3,.7,.4,1.4), box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 0 8px 0 var(--ink);
}

.card.soft {
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(42,31,24,0.04), 0 12px 28px -16px rgba(42,31,24,0.12);
}
.card.soft:hover { box-shadow: 0 1px 0 rgba(42,31,24,0.04), 0 16px 36px -16px rgba(42,31,24,0.18); }

.card-orange { background: var(--orange-soft); }
.card-sun    { background: var(--sun-soft); }
.card-mint   { background: var(--mint-soft); }
.card-coral  { background: var(--coral-soft); }
.card-plum   { background: var(--plum-soft); }
.card-paper  { background: var(--paper); }

/* dotted divider */
.dotted-hr {
  border: 0;
  border-top: 3px dotted var(--line-2);
  margin: 32px 0;
}

/* ============ HERO ============ */
.hero {
  padding: 64px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.hero h1 {
  margin: 28px auto 0;
  max-width: 16ch;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  padding-bottom: 32px;
}
.hero h1 em {
  font-style: italic;
  color: var(--orange);
  position: relative;
  display: inline-block;
}
.hero .lede {
  margin: 64px auto 0;
  font-size: clamp(18px, 1.6vw, 21px);
  text-wrap: balance;
  max-width: 580px;
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* sun behind hero */
.sun-disc {
  position: absolute;
  width: min(540px, 100vw);
  height: min(540px, 100vw);
  border-radius: 50%;
  background: radial-gradient(circle, var(--sun) 0%, var(--sun-soft) 60%, transparent 75%);
  top: -120px; left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  opacity: 0.55;
  filter: blur(2px);
}

/* hero mascot positions */
.hero-mascot {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.hero-mascot.left  { left: 2%;  bottom: -10px; transform: rotate(-6deg); width: 180px; height: 180px; }
.hero-mascot.right { right: 2%; bottom: 10px;  transform: rotate(8deg);  width: 180px; height: 180px; }

/* hero trust strip */
.trust-row {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 2px 0 var(--ink);
  white-space: nowrap;
}
.trust-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.trust-pill.alt .dot { background: var(--orange); }

/* ============ STATS BAND ============ */
.stats-band {
  background: var(--ink);
  color: #FFFCF5;
  border-radius: var(--r-lg);
  padding: 56px 40px;
  margin: 0 auto;
  max-width: calc(var(--max) - 32px);
}
.stats-band .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stats-band .cell .num {
  font-family: var(--display);
  font-size: clamp(48px, 5.5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--sun);
}
.stats-band .cell .num .unit {
  font-size: 0.36em;
  color: rgba(255,252,245,0.55);
  margin-left: 6px;
  font-weight: 600;
  letter-spacing: 0;
}
.stats-band .cell .desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,252,245,0.7);
}

/* ============ BIG NUMBERS ============ */
.bignum {
  font-family: var(--display);
  font-size: clamp(54px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--ink);
}
.bignum em {
  font-style: italic;
  color: var(--orange);
  font-weight: 800;
}

/* ============ TAGS ============ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--paper);
}
.tag-orange { background: var(--orange-soft); border-color: var(--orange); color: var(--orange-deep); }
.tag-mint   { background: var(--mint-soft); border-color: var(--mint); color: #2A6B52; }
.tag-coral  { background: var(--coral-soft); border-color: var(--coral); color: #9C2A1E; }
.tag-sun    { background: var(--sun-soft); border-color: #DBA728; color: #7A5418; }

/* ============ SECTION VARIANTS ============ */
.section-paper { background: var(--paper); }
.section-cream { background: var(--bg-2); }
.section-dark { background: var(--ink); color: #FFFCF5; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #FFFCF5; }
.section-dark em { color: var(--sun); }
.section-dark .lede { color: rgba(255,252,245,0.78); }
.section-dark .small { color: rgba(255,252,245,0.6); }

/* paw-print divider strip */
.paws {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 32px 0;
  opacity: 0.4;
}
.paws svg { width: 28px; height: 28px; }

/* ============ FEATURE GRID ============ */
.feat-card {
  position: relative;
  padding: 32px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.25s cubic-bezier(.3,.7,.4,1.4), box-shadow 0.25s;
}
.feat-card:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 8px 0 var(--ink);
}
.feat-card .icon-blob {
  width: 56px; height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
  border: 2px solid var(--ink);
}
.feat-card h4 { margin-bottom: 8px; }
.feat-card p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* numbered step */
.step-row {
  display: grid;
  grid-template-columns: 96px 1fr 320px;
  gap: 32px;
  padding: 32px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 0 4px 0 var(--ink);
  align-items: start;
}
.step-row .step-num {
  font-family: var(--display);
  font-size: 84px;
  font-weight: 800;
  line-height: 0.85;
  color: var(--orange);
  letter-spacing: -0.04em;
}
.step-row .step-aside {
  background: var(--bg-2);
  border-radius: var(--r-sm);
  padding: 18px 20px;
}

/* sticky note (used in switching) */
.sticky-note {
  background: var(--sun-soft);
  border: 1.5px solid #DBA728;
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 4px 0 #DBA728;
  transform: rotate(-1.4deg);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
}

/* ============ MASCOTS ============ */
.mascot {
  display: inline-block;
  width: 120px;
  height: 120px;
}
.mascot.lg { width: 200px; height: 200px; }
.mascot.xl { width: 320px; height: 320px; }
.mascot.sm { width: 60px;  height: 60px; }
.mascot.xs { width: 36px;  height: 36px; }

/* gentle motion */
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-6deg); }
  75% { transform: rotate(6deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}
@keyframes wag {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}
.float { animation: float 4s ease-in-out infinite; }
.bob   { animation: bob   3s ease-in-out infinite; }
.wiggle-hover:hover { animation: wiggle 0.6s ease; }

/* ============ PRODUCT MOCK ============ */
.product-frame {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 0 6px 0 var(--ink), 0 24px 60px -20px rgba(42,31,24,0.25);
  overflow: hidden;
}
.product-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--bg-2);
  border-bottom: 2px solid var(--ink);
}
.product-bar .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}
.product-bar .dot.red    { background: #FF6B6B; }
.product-bar .dot.yellow { background: var(--sun); }
.product-bar .dot.green  { background: var(--mint); }
.product-bar .url {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
.product-grid {
  padding: 32px;
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 20px;
  background: var(--bg-2);
}

/* phone mock */
.phone {
  width: 280px;
  aspect-ratio: 9/19;
  background: var(--ink);
  border-radius: 42px;
  padding: 10px;
  box-shadow: 0 12px 0 #1A130C, 0 40px 80px -20px rgba(42,31,24,0.4);
}
.phone-screen {
  background: var(--bg);
  border-radius: 32px;
  height: 100%;
  overflow: hidden;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink);
  color: #FFFCF5;
  padding: 80px 24px 32px;
  margin-top: 60px;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.site-footer .footer-logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.04em;
  color: #FFFCF5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.site-footer h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,252,245,0.55);
  margin: 0 0 14px;
  font-weight: 600;
}
.site-footer a {
  display: block;
  color: rgba(255,252,245,0.78);
  padding: 4px 0;
  font-size: 15px;
  transition: color 0.15s;
}
.site-footer a:hover { color: var(--orange); }
.site-footer .footer-meta {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,252,245,0.12);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,252,245,0.45);
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============ FORM (demo page) ============ */
label {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 16px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: 0;
  border-color: var(--orange);
  box-shadow: 0 3px 0 var(--orange-deep);
  transform: translateY(-1px);
}
textarea { resize: vertical; min-height: 110px; }

/* ============ CREDENTIALS STRIP ============ */
.credentials-strip {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: center;
}
.credentials-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ============ REPLACES GRID ============ */
.replaces-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 14px;
  column-gap: 24px;
  font-size: 16px;
}
.replaces-total {
  border-top: 3px solid var(--ink);
  padding-top: 18px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
}
.replaces-total-price {
  font-size: 28px;
  color: var(--coral);
  text-align: right;
  font-style: italic;
}

/* ============ MOBILE ============ */
@media (max-width: 920px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 18px; }
  .grid-4 { grid-template-columns: 1fr; gap: 18px; justify-items: center; }
  .grid-4 > * { max-width: 320px; width: 100%; }
  .stats-band .grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.nav-cta):not(:last-of-type) { display: none; }
  section { padding: 72px 20px; }
  .step-row { grid-template-columns: 1fr; gap: 18px; }
  .step-row .step-num { font-size: 64px; }
  .hero-mascot {
    position: static !important;
    width: 120px !important;
    height: 120px !important;
  }
  .hero-inner { display: flex; flex-direction: column; align-items: center; }
  .hero-mascot-row { display: flex; justify-content: center; gap: 16px; margin-top: 40px; }
  h1 { font-size: clamp(40px, 11vw, 64px) !important; }
  .step4-mascot {
    position: static !important;
    margin: 16px auto 0;
    opacity: 0.4 !important;
  }
  .product-grid { grid-template-columns: 1fr; padding: 20px; }
  .product-bar .url { display: none; }
  .phone-wrapper {
    flex-wrap: wrap;
    flex-direction: column;
  }
  .mascot-float-phone {
    position: static !important;
    margin-top: 24px;
  }
  .mascot-float-cta {
    position: static !important;
    width: 120px; height: 120px;
  }
  .cta-mascot-row { display: flex; justify-content: center; gap: 16px; margin-top: 32px; }
  .credentials-strip { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px !important; }
  .credentials-stats { grid-template-columns: 1fr; gap: 20px; }
  .replaces-grid {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }
  .replaces-grid > .mono {
    text-align: left !important;
    margin-bottom: 14px;
  }
  .replaces-total { margin-top: 10px; }
  .replaces-total-price { text-align: left !important; }
}
@media (max-width: 600px) {
  .stats-band { padding: 36px 24px; border-radius: var(--r); }
  .stats-band .grid { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr; gap: 24px; }
}
