/* =========================================================
   Merge Kitty World — Cozy Cattery Landing
   Concept: living-room hub + circular cushions + scrapbook album
   Style: soft claymorphism / game HUD pills (light-first)
   ========================================================= */

:root {
  --cream: #fff8f0;
  --cream-deep: #f5ebe0;
  --peach: #ffd6c8;
  --rose: #f4a8b8;
  --teal: #2bb8a8;
  --teal-deep: #1a9a8c;
  --mint: #b8e8df;
  --gold: #efc45a;
  --wood: #c4a484;
  --ink: #3d2c24;
  --ink-soft: #6b5348;
  --ink-mute: #8a7368;
  --surface: rgba(255, 252, 247, 0.88);
  --surface-solid: #fffdf9;
  --shadow: 0 12px 32px rgba(61, 44, 36, 0.12);
  --shadow-soft: 0 6px 18px rgba(61, 44, 36, 0.08);
  --radius-pill: 999px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --font-display: "Varela Round", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --nav-h: 72px;
  --ease: cubic-bezier(0.34, 1.2, 0.64, 1);
  --transition: 200ms ease;
  color-scheme: light;
}

[data-theme="dark"] {
  --cream: #1f1814;
  --cream-deep: #2a211c;
  --peach: #5a3d36;
  --rose: #c4788a;
  --teal: #3dcebc;
  --teal-deep: #2bb8a8;
  --mint: #2a4f48;
  --gold: #d4a84a;
  --wood: #8a6e52;
  --ink: #f5ebe3;
  --ink-soft: #d4c4b8;
  --ink-mute: #a8988c;
  --surface: rgba(42, 33, 28, 0.9);
  --surface-solid: #2a211c;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Room atmosphere ---------- */
.room-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.room-bg__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% 0%, var(--peach) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 80%, var(--mint) 0%, transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}

.room-bg__window {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55vw;
  height: 55vw;
  max-width: 640px;
  max-height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, transparent 70%);
  opacity: 0.7;
}

.room-bg__dots {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(circle at 2px 2px, rgba(196, 164, 132, 0.35) 1.5px, transparent 0);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}

[data-theme="dark"] .room-bg__dots {
  opacity: 0.15;
}

/* ---------- HUD Nav ---------- */
.hud-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 24px));
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.55rem 0.45rem 0.65rem;
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition), background var(--transition);
}

.hud-nav.is-scrolled {
  box-shadow: var(--shadow);
  border-color: rgba(43, 184, 168, 0.25);
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
  padding-right: 0.25rem;
}

.hud-brand img {
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(61, 44, 36, 0.15);
}

.hud-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.hud-brand__text strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
}

.hud-brand__text small {
  font-size: 0.7rem;
  color: var(--ink-mute);
}

.hud-pills {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.hud-pill {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition);
}

.hud-pill:hover,
.hud-pill:focus-visible {
  background: var(--mint);
  color: var(--ink);
  outline: none;
}

.hud-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  background: var(--cream-deep);
  transition: background var(--transition), color var(--transition);
}

.theme-toggle:hover {
  background: var(--peach);
  color: var(--ink);
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

.hud-burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  place-items: center;
  background: var(--cream-deep);
  color: var(--ink);
}

.hud-burger svg,
.theme-toggle svg,
.btn-pill svg,
.btn-store svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* Buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.92rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-pill--teal {
  background: linear-gradient(180deg, #3dcebc 0%, var(--teal-deep) 100%);
  color: #fff;
  box-shadow:
    0 4px 0 #147a6e,
    0 8px 20px rgba(26, 154, 140, 0.35);
}

.btn-pill--teal:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 #147a6e,
    0 12px 24px rgba(26, 154, 140, 0.4);
}

.btn-pill--teal:active {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 #147a6e,
    0 4px 12px rgba(26, 154, 140, 0.3);
}

.btn-pill--xl {
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.15rem;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), opacity var(--transition);
}

.btn-store:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.btn-store span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.btn-store small {
  font-size: 0.68rem;
  opacity: 0.75;
  font-weight: 600;
}

.btn-store strong {
  font-size: 0.95rem;
  font-weight: 800;
}

.btn-store--light {
  background: var(--surface-solid);
  color: var(--ink);
  border: 2px solid rgba(61, 44, 36, 0.08);
}

[data-theme="dark"] .btn-store--light {
  border-color: rgba(255, 255, 255, 0.1);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 20px) 1.25rem 0;
  overflow: hidden;
}

.hero__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

/* Soft bottom wash only — keep room art readable */
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 248, 240, 0.2) 0%,
      rgba(255, 248, 240, 0.05) 28%,
      rgba(255, 248, 240, 0.35) 58%,
      rgba(255, 248, 240, 0.92) 82%,
      var(--cream) 100%
    );
}

[data-theme="dark"] .hero__veil {
  background:
    linear-gradient(
      180deg,
      rgba(31, 24, 20, 0.35) 0%,
      rgba(31, 24, 20, 0.15) 30%,
      rgba(31, 24, 20, 0.55) 62%,
      rgba(31, 24, 20, 0.92) 85%,
      var(--cream) 100%
    );
}

.hero__stage {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  margin: 0 auto;
  padding-bottom: 1.25rem;
  text-align: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 7vw, 3.75rem);
  line-height: 1.02;
  color: var(--ink);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85),
    0 10px 28px rgba(61, 44, 36, 0.14);
  letter-spacing: -0.02em;
  max-width: 12ch;
}

[data-theme="dark"] .hero__brand {
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.4),
    0 10px 28px rgba(0, 0, 0, 0.4);
}

.hero__tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  color: var(--teal-deep);
  line-height: 1.3;
}

.hero__lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  line-height: 1.55;
  max-width: 42ch;
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.35rem;
  width: 100%;
}

.hero__stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.btn-store--ghost {
  background: rgba(255, 253, 249, 0.72);
  color: var(--ink);
  border: 2px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.55rem 0.95rem;
}

[data-theme="dark"] .btn-store--ghost {
  background: rgba(42, 33, 28, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-store--ghost strong {
  font-size: 0.88rem;
}

.hero__wave {
  position: relative;
  z-index: 2;
  color: var(--cream);
  line-height: 0;
  margin-top: 0.5rem;
}

.hero__wave svg {
  display: block;
  width: 100%;
  height: clamp(36px, 6vw, 72px);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(52px, 8vw, 88px);
  transform: translateX(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  background: rgba(255, 253, 249, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  transition: color var(--transition), background var(--transition);
  animation: scroll-nudge 2.2s ease-in-out infinite;
}

.hero__scroll:hover {
  color: var(--teal-deep);
  background: #fff;
}

.hero__scroll svg {
  width: 1.2rem;
  height: 1.2rem;
}

@keyframes scroll-nudge {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll {
    animation: none;
  }
}

/* ---------- Cattery / Features ---------- */
.cattery {
  padding: 2.5rem 1.25rem 4.5rem;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 0.5rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.section-lead {
  color: var(--ink-mute);
}

/* Carpet with circular cushions — unique vs card grids */
.carpet {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: 2.25rem 1.35rem 2.5rem;
  border-radius: 40px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.55) 0%, transparent 60%),
    linear-gradient(180deg, #f8efe4 0%, #efe2d2 100%);
  border: 4px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 2px 12px rgba(255, 255, 255, 0.6),
    var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem 1rem;
  text-align: center;
}

[data-theme="dark"] .carpet {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(61, 206, 188, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #322820 0%, #2a211c 100%);
  border-color: rgba(61, 206, 188, 0.2);
}

.cushion {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.cushion__pad {
  width: min(120px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff9f2 0%, #f0e0d0 55%, #e4d0bc 100%);
  box-shadow:
    inset 0 -8px 16px rgba(61, 44, 36, 0.12),
    inset 0 6px 12px rgba(255, 255, 255, 0.7),
    0 10px 20px rgba(61, 44, 36, 0.12);
  display: grid;
  place-items: center;
  transition: transform 250ms var(--ease);
}

[data-theme="dark"] .cushion__pad {
  background:
    radial-gradient(circle at 35% 30%, #4a3a30 0%, #3a2e26 55%, #2e241e 100%);
}

.cushion:hover .cushion__pad {
  transform: translateY(-6px) scale(1.04);
}

.cushion__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3dcebc, var(--teal-deep));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 0 #147a6e, 0 8px 16px rgba(26, 154, 140, 0.35);
}

.cushion__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.cushion h3 {
  font-size: 1.05rem;
}

.cushion p {
  font-size: 0.88rem;
  color: var(--ink-mute);
  max-width: 18ch;
  line-height: 1.45;
}

/* ---------- Scrapbook album ---------- */
.album {
  padding: 2rem 1.25rem 5rem;
}

.album__binder {
  width: min(1000px, 100%);
  margin: 0 auto;
  position: relative;
  background: linear-gradient(135deg, #f2a07a 0%, #e88868 45%, #d97a5c 100%);
  border-radius: 28px 32px 32px 28px;
  padding: 1.25rem 1.25rem 1.5rem 2.75rem;
  box-shadow: var(--shadow);
}

[data-theme="dark"] .album__binder {
  background: linear-gradient(135deg, #8a4a38 0%, #6e3a2e 100%);
}

.album__rings {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.album__rings span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f5d76e, #c9a227);
  box-shadow:
    inset 2px 2px 4px rgba(255, 255, 255, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.2);
  border: 2px solid #a8841e;
}

.album__tabs {
  display: flex;
  gap: 0.4rem;
  margin: -2.35rem 0 1rem 0.5rem;
}

.album-tab {
  padding: 0.55rem 1.15rem;
  border-radius: 14px 14px 0 0;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 400;
  background: #f0c94a;
  color: var(--ink);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-bottom: none;
  opacity: 0.85;
  transition: opacity var(--transition), transform var(--transition);
}

.album-tab.is-active {
  background: var(--surface-solid);
  opacity: 1;
  transform: translateY(-2px);
  color: var(--teal-deep);
}

.album-tab:not(.is-active) {
  background: #e86a5c;
  color: #fff;
}

.album__page {
  background: var(--surface-solid);
  border-radius: 20px;
  padding: 1.75rem 1.5rem 2rem;
  min-height: 320px;
}

.album__head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.album__head h2 {
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  margin-bottom: 0.4rem;
}

.album__head p {
  color: var(--ink-mute);
  font-size: 0.95rem;
}

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.stamp-grid.is-hidden {
  display: none;
}

.stamp {
  margin: 0;
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 0.65rem 0.65rem 0.85rem;
  box-shadow: 0 4px 14px rgba(61, 44, 36, 0.1);
  transition: transform 220ms var(--ease);
  border: 2px dashed rgba(61, 44, 36, 0.14);
  /* perforated stamp feel via outline dots */
  outline: 4px solid #fff;
  outline-offset: 0;
}

[data-theme="dark"] .stamp {
  background: #3a2e26;
  border-color: rgba(255, 255, 255, 0.1);
}

.stamp:hover {
  transform: translateY(-4px) rotate(-1deg);
}

.stamp__ribbon {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: #e85a5a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(232, 90, 90, 0.4);
}

.stamp__frame {
  border-radius: 8px;
  overflow: hidden;
  background: var(--cream-deep);
}

.stamp__frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}

.stamp__frame--promo img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.stamp__frame--landscape img {
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center;
}

.stamp figcaption {
  margin-top: 0.55rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: #3b82c4;
}

[data-theme="dark"] .stamp figcaption {
  color: #7eb8e8;
}

.stamp--wide,
.stamp--promo {
  grid-column: span 2;
}

.stamp--promo .stamp__frame--promo {
  max-height: none;
}

/* ---------- Download platform ---------- */
.adopt {
  padding: 2rem 1.25rem 5.5rem;
}

.adopt__platform {
  width: min(720px, 100%);
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 1.75rem 2.25rem;
  border-radius: 40px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(61, 206, 188, 0.25) 0%, transparent 55%),
    linear-gradient(180deg, #3dcebc 0%, var(--teal-deep) 55%, #147a6e 100%);
  color: #fff;
  box-shadow:
    0 8px 0 #0f5c54,
    0 24px 48px rgba(20, 122, 110, 0.35);
  position: relative;
}

.adopt__mascot {
  width: 88px;
  height: 88px;
  margin: -4.25rem auto 1rem;
  border-radius: 50%;
  background: #fff;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.adopt__mascot img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.adopt__platform h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin-bottom: 0.55rem;
}

.adopt__platform > p {
  opacity: 0.92;
  max-width: 40ch;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
}

.adopt__ctas {
  margin-bottom: 1rem;
}

.adopt__platform .btn-pill--teal {
  background: #fff;
  color: var(--teal-deep);
  box-shadow: 0 4px 0 #d4ebe7, 0 8px 20px rgba(0, 0, 0, 0.15);
}

.adopt__platform .btn-pill--teal:hover {
  box-shadow: 0 6px 0 #d4ebe7, 0 12px 24px rgba(0, 0, 0, 0.18);
}

.adopt__stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.adopt__stores .btn-store {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 2.5rem 1.25rem 3rem;
  border-top: 2px dashed rgba(61, 44, 36, 0.1);
}

[data-theme="dark"] .site-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.footer-inner {
  width: min(900px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.footer-brand img {
  border-radius: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--teal-deep);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--ink-mute);
}

/* ---------- Modal ---------- */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 28, 22, 0.45);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  width: min(400px, 100%);
  background: var(--surface-solid);
  border-radius: 28px;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
  z-index: 1;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream-deep);
  color: var(--ink-soft);
}

.modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.modal__panel h2 {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.modal__panel p {
  color: var(--ink-mute);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

body.modal-open {
  overflow: hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .carpet {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 36px;
    gap: 1.5rem 1rem;
  }

  .stamp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__scroll {
    display: none;
  }
}

@media (max-width: 720px) {
  .hud-nav {
    top: 10px;
    width: calc(100% - 16px);
    flex-wrap: wrap;
  }

  .hud-pills {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    margin: 0;
    padding: 0.35rem 0.35rem 0.5rem;
    gap: 0.15rem;
  }

  .hud-pills.is-open {
    display: flex;
  }

  .hud-pill {
    width: 100%;
    text-align: center;
    padding: 0.7rem;
  }

  .hud-burger {
    display: grid;
  }

  .hud-actions .btn-pill span {
    display: none;
  }

  .hud-actions .btn-pill {
    padding: 0.65rem;
    width: 42px;
    height: 42px;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 12px);
    justify-content: flex-end;
  }

  .hero__stage {
    padding-bottom: 0.5rem;
  }

  .hero__brand {
    max-width: none;
  }

  .hero__stores {
    width: 100%;
  }

  .hero__stores .btn-store {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
  }

  .album__binder {
    padding: 1rem 0.85rem 1.15rem 2.1rem;
  }

  .album__tabs {
    margin-top: -1.85rem;
    flex-wrap: wrap;
  }

  .stamp--wide,
  .stamp--promo {
    grid-column: span 2;
  }

  .adopt__platform {
    padding: 2.25rem 1.15rem 1.75rem;
    border-radius: 32px;
  }

  .adopt__mascot {
    margin-top: -3.5rem;
    width: 76px;
    height: 76px;
  }
}

@media (max-width: 420px) {
  .stamp-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .carpet {
    padding: 1.75rem 1rem 2rem;
  }

  .cushion p {
    font-size: 0.8rem;
  }

  .btn-pill--xl {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .cushion:hover .cushion__pad,
  .stamp:hover,
  .btn-pill--teal:hover,
  .btn-store:hover {
    transform: none;
  }
}

/* Focus visibility */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
