/* ========================================
   POCKET PET — Website Design System
   Visual thesis: "Calm, warm, alive —
   a cozy companion, never a cold tool."
   ======================================== */

/* ---- 1. Design Tokens ---- */
:root {
  /* Color — warm cream + amber + ink */
  --cream:         #fffcf5;
  --cream-mid:     #fef9ee;
  --cream-dark:    #fdf3e1;
  --amber:         #f59e0b;
  --amber-hover:   #d97706;
  --amber-light:   #fef3c7;
  --amber-glow:    rgba(245,158,11,.12);
  --ink:           #292524;
  --ink-soft:      #44403c;
  --ink-muted:     #78716c;
  --stone:         #a8a29e;
  --stone-light:   #d6cfc4;
  --white:         #ffffff;
  --green:         #059669;
  --green-light:   #ecfdf5;
  --red:           #dc2626;

  /* Typography */
  --font-display:  'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:     'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing scale (4px base) */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;
  --sp-4: 16px;  --sp-5: 20px;  --sp-6: 24px;
  --sp-8: 32px;  --sp-10: 40px; --sp-12: 48px;
  --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;
  --sp-32: 128px;

  /* Radius — soft, rounded, friendly */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-2xl:  32px;
  --r-pill: 999px;

  /* Shadows — gentle, layered, floating */
  --shadow-xs:  0 1px 2px rgba(0,0,0,.04);
  --shadow-sm:  0 2px 8px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.10);
  --shadow-xl:  0 16px 48px rgba(0,0,0,.14);
  --shadow-glow: 0 0 0 4px var(--amber-glow);

  /* Transitions */
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);
  --dur-fast:  .15s;
  --dur-med:   .25s;
  --dur-slow:  .4s;

  /* Layout */
  --container: 1080px;
  --container-narrow: 720px;
  --nav-height: 72px;
}

/* ---- 2. Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

::selection {
  background: var(--amber-light);
  color: var(--ink);
}

/* ---- 3. Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -.015em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -.01em; }
h4 { font-size: 1.125rem; }

p { color: var(--ink-soft); max-width: 60ch; }
.text-muted { color: var(--ink-muted); }
.text-stone { color: var(--stone); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }

.label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--amber);
}

/* ---- 4. Layout ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.container--narrow {
  max-width: var(--container-narrow);
}

section {
  padding: var(--sp-24) 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}

/* ---- 5. Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--r-pill);
  padding: var(--sp-3) var(--sp-8);
  transition: all var(--dur-med) var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--amber);
  color: var(--white);
  box-shadow: var(--shadow-sm), 0 0 0 0 var(--amber-glow);
}
.btn--primary:hover {
  background: var(--amber-hover);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: translateY(-1px);
}
.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--stone-light);
}
.btn--secondary:hover {
  border-color: var(--amber);
  color: var(--amber);
  box-shadow: var(--shadow-sm);
}

.btn--ghost {
  color: var(--ink-muted);
  padding: var(--sp-2) var(--sp-4);
}
.btn--ghost:hover {
  color: var(--amber);
}

.btn--sm {
  font-size: 0.875rem;
  padding: var(--sp-2) var(--sp-6);
}

.btn--lg {
  font-size: 1.125rem;
  padding: var(--sp-4) var(--sp-10);
}

.btn .btn-icon {
  width: 20px;
  height: 20px;
}

/* ---- 6. Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 100;
  background: rgba(255,252,245,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-med) ease;
}
.nav.scrolled {
  border-bottom-color: var(--amber-glow);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}
.nav__brand img {
  width: 36px;
  height: 36px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color var(--dur-fast) ease;
  position: relative;
}
.nav__link:hover {
  color: var(--ink);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amber);
  border-radius: var(--r-pill);
  transition: width var(--dur-med) var(--ease-out);
}
.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}
.nav__link.active {
  color: var(--ink);
}

.nav__cta {
  margin-left: var(--sp-4);
}

/* Mobile hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: var(--r-pill);
  transition: all var(--dur-med) var(--ease-out);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cream);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  z-index: 99;
}
.nav__mobile.open {
  display: flex;
}
.nav__mobile a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
}

/* ---- 7. Hero ---- */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + var(--sp-16)) var(--sp-6) var(--sp-16);
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--amber-light) 0%, transparent 70%);
  opacity: .4;
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--white);
  border: 1px solid var(--amber-glow);
  border-radius: var(--r-pill);
  padding: var(--sp-1) var(--sp-4) var(--sp-1) var(--sp-2);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: var(--sp-8);
  box-shadow: var(--shadow-xs);
}
.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease infinite;
}

.hero h1 {
  margin-bottom: var(--sp-6);
}
.hero h1 .accent {
  color: var(--amber);
  position: relative;
}
.hero h1 .accent::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--amber-light);
  border-radius: var(--r-pill);
  z-index: -1;
}

.hero__sub {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--ink-muted);
  margin: 0 auto var(--sp-10);
  max-width: 540px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-16);
  flex-wrap: wrap;
}

/* Browser mockup in hero */
.hero__demo {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(0,0,0,.06);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--white);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--stone-light);
}
.browser-dot:first-child { background: #ff6058; }
.browser-dot:nth-child(2) { background: #ffbd2e; }
.browser-dot:nth-child(3) { background: #27c93f; }

.browser-url {
  flex: 1;
  margin-left: var(--sp-4);
  background: var(--cream);
  border-radius: var(--r-sm);
  padding: var(--sp-1) var(--sp-4);
  font-size: 0.8125rem;
  color: var(--stone);
}

.browser-content {
  position: relative;
  background: var(--white);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.browser-content > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

/* ---- Animated hero demo ---- */
.demo-page {
  padding: 12% 10% 10% 8%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.demo-line {
  height: 6px;
  background: #e7e5e4;
  border-radius: 4px;
}
.demo-line--title {
  height: 10px;
  background: #d6d3d1;
  border-radius: 4px;
  margin-bottom: 4px;
}
.demo-line--gap {
  height: 0;
  margin: 8px 0;
  background: none;
}

.demo-pet {
  position: absolute;
  bottom: 12px;
  right: 16px;
  z-index: 2;
  animation: demo-pet-in .6s var(--ease-bounce) .3s both;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.18));
  cursor: default;
}
.demo-pet img {
  width: 48px;
  height: 60px;
  object-fit: contain;
  animation: demo-pet-idle 3s ease-in-out 2s infinite;
}

.demo-bubble {
  position: absolute;
  bottom: 78px;
  right: 12px;
  width: 200px;
  background: #fffcf5;
  border: 1px solid rgba(251,191,36,.15);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,.10);
  z-index: 3;
  animation: demo-bubble-in .35s var(--ease-out) 1.2s both;
}

.demo-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 8px;
  border-bottom: 1.5px solid #fef3c7;
  padding-bottom: 6px;
}
.demo-tab {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  color: #a8a29e;
  border-radius: 6px;
  cursor: default;
  transition: all .2s ease;
}
.demo-tab--active {
  color: #292524;
  background: #fef3c7;
}

.demo-panel {
  display: none;
}
.demo-panel--active {
  display: block;
  animation: demo-fade .3s ease;
}

.demo-link-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
}
.demo-favicon {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.demo-link-text {
  height: 5px;
  background: #d6cfc4;
  border-radius: 3px;
  flex: 1;
}

.demo-file-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
}
.demo-file-icon {
  font-size: 7px;
  font-weight: 700;
  color: var(--white);
  background: var(--amber);
  border-radius: 3px;
  padding: 2px 4px;
  line-height: 1;
}

@keyframes demo-pet-in {
  from { opacity: 0; transform: translateY(20px) scale(.8); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes demo-pet-idle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes demo-bubble-in {
  from { opacity: 0; transform: scale(.85) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes demo-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Floating pets around hero */
.hero__float {
  position: absolute;
  z-index: 0;
  opacity: .15;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}
.hero__float--1 { top: 15%; left: 5%; animation-delay: 0s; width: 80px; }
.hero__float--2 { top: 25%; right: 6%; animation-delay: -2s; width: 70px; }
.hero__float--3 { bottom: 20%; left: 8%; animation-delay: -4s; width: 60px; }
.hero__float--4 { bottom: 15%; right: 10%; animation-delay: -1s; width: 75px; }

/* ---- 8. Trust Strip ---- */
.trust {
  padding: var(--sp-12) 0;
  border-top: 1px solid var(--amber-glow);
  border-bottom: 1px solid var(--amber-glow);
  background: var(--cream-mid);
}

.trust__grid {
  display: flex;
  justify-content: center;
  gap: var(--sp-12);
  flex-wrap: wrap;
}

.trust__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.trust__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--amber-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust__icon svg {
  width: 20px;
  height: 20px;
  color: var(--amber);
}

/* ---- 9. Features ---- */
.features {
  padding: var(--sp-24) 0;
}

.features__header {
  text-align: center;
  margin-bottom: var(--sp-20);
}
.features__header p {
  margin: var(--sp-4) auto 0;
  font-size: 1.125rem;
}

/* Sticky scroll feature layout */
.features__sticky {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
}

.features__visual-col {
  position: relative;
}
.features__visual-sticky {
  position: sticky;
  top: calc(var(--nav-height) + var(--sp-8));
}
.features__visual-sticky .feature__visual {
  opacity: 0;
  transform: scale(.97);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.features__visual-sticky .feature__visual:first-child {
  position: relative;
}
.features__visual-sticky .feature__visual--active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.features__text-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-24);
  padding: var(--sp-8) 0 var(--sp-16);
}

.feature__text-block {
  padding: var(--sp-8);
  border-radius: var(--r-xl);
  border: 1.5px solid transparent;
  transition: all var(--dur-med) var(--ease-out);
}
.feature__text-block.active {
  background: var(--white);
  border-color: var(--amber-glow);
  box-shadow: var(--shadow-sm);
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
  margin-bottom: var(--sp-24);
}
.feature:last-child {
  margin-bottom: 0;
}
.feature:nth-child(even) {
  direction: rtl;
}
.feature:nth-child(even) > * {
  direction: ltr;
}

.feature__text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.feature__number {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: .04em;
}

.feature__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.feature__desc {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

.feature__callout {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--amber);
  margin-top: var(--sp-2);
}
.feature__callout svg {
  width: 16px;
  height: 16px;
}

.feature__visual {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,.04);
  background: var(--white);
}
.feature__visual img {
  width: 100%;
  display: block;
}
.feature__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-2xl);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
  pointer-events: none;
}

/* ---- 10. Pet Gallery ---- */
.pets {
  background: var(--cream-mid);
  padding: var(--sp-24) 0;
  text-align: center;
}

.pets__header {
  margin-bottom: var(--sp-16);
}
.pets__header p {
  margin: var(--sp-4) auto 0;
  font-size: 1.125rem;
}

.pets__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-6);
  max-width: 800px;
  margin: 0 auto;
}

.pet-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-3);
  border-radius: var(--r-xl);
  background: var(--white);
  border: 1.5px solid transparent;
  transition: all var(--dur-med) var(--ease-out);
  cursor: default;
}
.pet-card:hover {
  border-color: var(--amber-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.pet-card__img {
  width: 64px;
  height: 80px;
  object-fit: contain;
  transition: transform var(--dur-med) var(--ease-bounce);
}
.pet-card:hover .pet-card__img {
  transform: scale(1.1);
}

.pet-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}

.pet-card__trait {
  font-size: 0.75rem;
  color: var(--stone);
  font-style: italic;
}

/* ---- 11. Privacy Section ---- */
.privacy {
  padding: var(--sp-24) 0;
}

.privacy__card {
  background: var(--ink);
  border-radius: var(--r-2xl);
  padding: var(--sp-16);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* Subtle texture on dark card */
.privacy__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(245,158,11,.08), transparent 60%);
  pointer-events: none;
}

.privacy__text {
  position: relative;
  z-index: 1;
}

.privacy__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--amber);
  margin-bottom: var(--sp-4);
}

.privacy__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--white);
  margin-bottom: var(--sp-6);
}

.privacy__desc {
  color: var(--stone);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: var(--sp-8);
}

.privacy__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.privacy__list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  color: var(--stone-light);
  font-size: 0.9375rem;
}
.privacy__list-item svg {
  width: 20px;
  height: 20px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

.privacy__visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy__device {
  width: 200px;
  height: 200px;
  border-radius: var(--r-2xl);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
}
.privacy__device svg {
  width: 56px;
  height: 56px;
  color: var(--amber);
}
.privacy__device span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--stone-light);
}

/* ---- 12. FAQ ---- */
.faq {
  padding: var(--sp-24) 0;
  background: var(--cream-mid);
}

.faq__header {
  text-align: center;
  margin-bottom: var(--sp-12);
}

.faq__list {
  max-width: var(--container-narrow);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.faq__item {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--amber-glow);
  overflow: hidden;
  transition: box-shadow var(--dur-med) ease;
}
.faq__item:hover {
  box-shadow: var(--shadow-sm);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  transition: color var(--dur-fast) ease;
}
.faq__question:hover {
  color: var(--amber);
}

.faq__icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-med) var(--ease-out);
  flex-shrink: 0;
  color: var(--stone);
}
.faq__item.open .faq__icon {
  transform: rotate(45deg);
  color: var(--amber);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out);
}
.faq__item.open .faq__answer {
  max-height: 300px;
}

.faq__answer-inner {
  padding: 0 var(--sp-6) var(--sp-5);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

/* ---- 13. Final CTA ---- */
.cta-section {
  padding: var(--sp-24) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--amber-light) 0%, transparent 70%);
  opacity: .3;
  pointer-events: none;
}

.cta-section__content {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  margin-bottom: var(--sp-4);
}

.cta-section p {
  margin: 0 auto var(--sp-10);
  font-size: 1.125rem;
}

.cta-section__pets {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  margin-top: var(--sp-12);
}
.cta-section__pets img {
  width: 48px;
  height: 64px;
  object-fit: contain;
  opacity: .5;
  transition: all var(--dur-med) var(--ease-bounce);
}
.cta-section__pets img:hover {
  opacity: 1;
  transform: translateY(-4px) scale(1.1);
}

/* ---- 14. Footer ---- */
.footer {
  padding: var(--sp-12) 0;
  padding-bottom: 80px;
  border-top: 1px solid var(--amber-glow);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-6);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}
.footer__brand img {
  width: 28px;
  height: 28px;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}
.footer__link {
  font-size: 0.875rem;
  color: var(--stone);
  transition: color var(--dur-fast) ease;
}
.footer__link:hover {
  color: var(--amber);
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--stone);
}

/* ---- 15. Scroll Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-12px) rotate(2deg); }
  66% { transform: translateY(4px) rotate(-1deg); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

/* Sticky CTA bar (appears on scroll) */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1.5px solid var(--amber-light);
  padding: var(--sp-4) var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  z-index: 999;
  transform: translateY(100%);
  transition: transform var(--dur-med) var(--ease-out);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
.sticky-cta.visible {
  transform: translateY(0);
}
.sticky-cta__text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---- 16. Responsive ---- */
@media (max-width: 1024px) {
  .feature {
    gap: var(--sp-10);
  }
  .privacy__card {
    padding: var(--sp-12);
  }
}

@media (max-width: 768px) {
  section {
    padding: var(--sp-16) 0;
  }

  .nav__links { display: none; }
  .nav__cta.desktop-only { display: none; }
  .nav__toggle { display: flex; }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + var(--sp-12)) var(--sp-6) var(--sp-12);
  }
  .hero__float { display: none; }

  .hero__demo {
    max-width: 100%;
  }

  .trust__grid {
    flex-direction: column;
    align-items: center;
    gap: var(--sp-6);
  }

  .features__sticky {
    grid-template-columns: 1fr;
  }
  .features__visual-col {
    display: none;
  }
  .features__text-col {
    gap: var(--sp-12);
  }
  .feature__text-block {
    background: var(--white);
    border-color: var(--amber-glow);
    box-shadow: var(--shadow-sm);
  }

  .feature,
  .feature:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: var(--sp-8);
    text-align: center;
    margin-bottom: var(--sp-16);
  }
  .feature__text {
    align-items: center;
  }
  .feature__desc {
    max-width: 500px;
  }

  .pets__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
  }

  .privacy__card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--sp-10) var(--sp-6);
  }
  .privacy__list {
    align-items: center;
  }
  .privacy__visual {
    order: -1;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }

  .hero__actions {
    flex-direction: column;
    gap: var(--sp-3);
  }
  .hero__actions .btn {
    width: 100%;
  }

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

  .trust__grid {
    align-items: flex-start;
  }
}

/* ---- 17. Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero__float { display: none; }
}

/* ---- 18. SEO Page Layouts ---- */
.page-hero {
  padding: calc(var(--nav-height) + var(--sp-16)) var(--sp-6) var(--sp-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, var(--amber-light) 0%, transparent 70%);
  opacity: .3;
  pointer-events: none;
}
.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.page-hero p {
  margin: var(--sp-4) auto var(--sp-8);
  font-size: 1.125rem;
}

.content-section {
  padding: var(--sp-16) 0;
}
.content-section--alt {
  background: var(--cream-mid);
}

.content-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--sp-10);
  border: 1px solid var(--amber-glow);
  box-shadow: var(--shadow-sm);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-6);
}

.content-grid__card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  border: 1px solid var(--amber-glow);
  transition: all var(--dur-med) var(--ease-out);
}
.content-grid__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.content-grid__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--amber-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
}
.content-grid__icon svg {
  width: 24px;
  height: 24px;
  color: var(--amber);
}

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.comparison__col {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  border: 1px solid var(--amber-glow);
}
.comparison__col--highlight {
  border-color: var(--amber);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.comparison__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--amber-glow);
}

.comparison__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.comparison__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 0.9375rem;
  color: var(--ink-muted);
}
.comparison__item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.comparison__item svg.check { color: var(--green); }
.comparison__item svg.x { color: var(--stone-light); }

@media (max-width: 768px) {
  .comparison {
    grid-template-columns: 1fr;
  }
}

/* ---- 19. Utility Pages ---- */
.util-page {
  padding: calc(var(--nav-height) + var(--sp-12)) var(--sp-6) var(--sp-16);
  min-height: 70vh;
}

.util-page__content {
  max-width: var(--container-narrow);
  margin: 0 auto;
}
.util-page__content h1 {
  margin-bottom: var(--sp-8);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}
.util-page__content h2 {
  margin: var(--sp-10) 0 var(--sp-4);
  font-size: 1.25rem;
}
.util-page__content p {
  margin-bottom: var(--sp-4);
  line-height: 1.7;
}
.util-page__content ul {
  margin-bottom: var(--sp-4);
  padding-left: var(--sp-6);
}
.util-page__content ul li {
  list-style: disc;
  color: var(--ink-muted);
  margin-bottom: var(--sp-2);
  line-height: 1.7;
}
.util-page__content a {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-color: var(--amber-light);
  text-underline-offset: 2px;
  transition: text-decoration-color var(--dur-fast) ease;
}
.util-page__content a:hover {
  text-decoration-color: var(--amber);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  margin-top: var(--sp-8);
}
.contact-form label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-1);
  display: block;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1.5px solid var(--stone-light);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: var(--shadow-glow);
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--stone);
}
