/* ============================================================
   philos.pet — shared stylesheet for the landing site +
   legal docs. Mirrors the React Native app's design system
   (see pet-app/lib/theme.ts) so the web touchpoint feels like
   the same product, not a separate marketing site.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --primary: #0f5f5c;
  --secondary: #148c8c;
  --accent: #ff8c7a;
  --dark-surface: #083d3d;

  /* Surfaces */
  --background: #f5faf9;
  --surface: #ffffff;
  --surface-alt: #eaf2f1;

  /* Text */
  --text-primary: #1b2b2b;
  --text-muted: #5b6e6e;
  --text-inverse: #ffffff;

  /* Borders */
  --border: #d9e5e4;
  --border-strong: #a8bfbe;

  /* Layout */
  --max-width: 1080px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-xxl: 28px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-subtle: 0 2px 8px rgba(8, 61, 61, 0.04);
  --shadow-card: 0 6px 18px rgba(8, 61, 61, 0.08);
  --shadow-lifted: 0 12px 30px rgba(8, 61, 61, 0.12);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.75;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

.muted {
  color: var(--text-muted);
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

/* ---------- Layout containers ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

@media (max-width: 640px) {
  section {
    padding: 56px 0;
  }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 250, 249, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 36px;
  height: 36px;
}

.brand-wordmark {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

@media (max-width: 640px) {
  .nav-links {
    gap: 18px;
  }
  .nav-links a {
    font-size: 0.9rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(20, 140, 140, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 140, 122, 0.06) 0%,
      transparent 50%
    );
  z-index: -1;
}

.hero-logo {
  /* Responsive logo sizing: small on phones (120 px floor), grows
     fluidly up to 152 px on desktop. Roughly 1.5× the old 96 px so
     it reads as a real "hero mark" rather than an inline icon. */
  width: clamp(120px, 13vw, 152px);
  height: clamp(120px, 13vw, 152px);
  margin: 0 auto 28px;
}

.hero h1 {
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

/* ---------- App store badges ---------- */
.coming-soon-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/**
 * Coming Soon badge — promoted from "floating eyebrow text" to a real label.
 * Coral fill + white type for contrast against the misty background, a soft
 * coral glow to lift it off the page, and a tiny pulsing dot on the left
 * to give it the feel of a live status indicator.
 */
.coming-soon-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-inverse);
  padding: 12px 24px;
  background: var(--accent);
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  box-shadow: 0 6px 18px rgba(255, 140, 122, 0.32);
}

.coming-soon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  animation: coming-soon-pulse 1.8s ease-in-out infinite;
}

@keyframes coming-soon-pulse {
  0%,
  100% {
    opacity: 0.95;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.7);
  }
}

.badge-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: var(--text-primary);
  color: var(--text-inverse);
  border-radius: var(--radius-lg);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.store-badge .store-icon {
  width: 28px;
  height: 28px;
}

.store-badge .store-text-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.store-badge .store-text-small {
  font-size: 0.7rem;
  opacity: 0.85;
}

.store-badge .store-text-large {
  font-size: 1.05rem;
  font-weight: 600;
}

/* ---------- Feature grid ---------- */
.features {
  background: var(--surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.feature-card {
  background: var(--background);
  border-radius: var(--radius-xxl);
  padding: 36px 32px;
  /* Claymorphic resting state — double-layered shadow gives the
     card "soft 3D" depth without needing a border. Inner top
     highlight catches "light from above" so the card feels lit
     from the same direction as the phone mockup. */
  box-shadow:
    0 8px 24px rgba(8, 61, 61, 0.08),
    0 2px 6px rgba(8, 61, 61, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 6px rgba(8, 61, 61, 0.03);
  /* Bouncier easing for both lift and shadow — matches the curve
     used by the phone mockup hover and the hero logo entrance,
     so the whole page shares one motion vocabulary. */
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 40px rgba(8, 61, 61, 0.12),
    0 6px 12px rgba(8, 61, 61, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -2px 6px rgba(8, 61, 61, 0.04);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  /* Claymorphic icon container — outer drop for elevation, plus
     a top-edge highlight and bottom inner shadow so the gradient
     feels like a "chunky button" rather than a flat tile. */
  box-shadow:
    0 8px 16px rgba(8, 61, 61, 0.18),
    0 2px 4px rgba(8, 61, 61, 0.10),
    inset 0 -2px 4px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* On card hover, the icon does a small playful scale + tilt so
   each card has a focal point reacting to attention. */
.feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(-4deg);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--text-inverse);
  stroke: var(--text-inverse);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Waitlist section ---------- */
/* Pre-launch email capture. Visually marked with a subtle vertical
   gradient so the section reads as a distinct "ask" moment between
   Features (white) and About (misty). Form behavior is driven by
   the `data-state` attribute on the <form> element, which CSS
   targets to swap the submit button between label + spinner and
   to disable inputs in the success/loading branches. */

.waitlist {
  background: linear-gradient(
    180deg,
    var(--surface) 0%,
    var(--background) 50%,
    var(--surface-alt) 100%
  );
  text-align: center;
}

.waitlist-content {
  max-width: 560px;
  margin: 0 auto;
}

.waitlist-tagline {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 8px;
  margin-bottom: 32px;
}

.waitlist-form {
  margin-bottom: 16px;
}

/* Honeypot — visually present in the DOM but inaccessible to
   humans. Positioned offscreen rather than display:none because
   more sophisticated bots skip display:none / visibility:hidden
   fields; offscreen positioning is harder to detect. Combined
   with aria-hidden + tabindex=-1 + autocomplete=off on the
   input itself, this keeps assistive tech, keyboard users, and
   password managers away from it. */
.waitlist-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.waitlist-input-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

@media (max-width: 540px) {
  .waitlist-input-row {
    flex-direction: column;
  }
}

/* ----- Email input ----- */
.waitlist-input {
  flex: 1;
  padding: 16px 22px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--surface);
  border: none;
  border-radius: var(--radius-pill);
  outline: none;
  /* Inset shadow gives the input a "pressed-in" claymorphic feel
     consistent with the rest of the page's soft-3D vocabulary. */
  box-shadow:
    inset 0 2px 6px rgba(8, 61, 61, 0.07),
    inset 0 1px 0 rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.2s ease;
}

.waitlist-input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.waitlist-input:focus {
  /* Brand-color focus ring (not the default browser blue). Stays
     visible on the misty page background, meets WCAG AA contrast. */
  box-shadow:
    inset 0 2px 6px rgba(8, 61, 61, 0.07),
    0 0 0 3px rgba(15, 95, 92, 0.22);
}

/* ----- Submit button ----- */
.waitlist-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  min-width: 152px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-inverse);
  background: linear-gradient(180deg, #178A86 0%, var(--primary) 100%);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  /* Claymorphic button — double outer shadow + top inner highlight
     + bottom inner shadow for the "chunky pressable" feel. */
  box-shadow:
    0 8px 18px rgba(15, 95, 92, 0.30),
    0 2px 4px rgba(15, 95, 92, 0.18),
    inset 0 -3px 6px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.waitlist-submit:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 24px rgba(15, 95, 92, 0.34),
    0 4px 6px rgba(15, 95, 92, 0.20),
    inset 0 -3px 6px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.waitlist-submit:active {
  transform: translateY(0);
  box-shadow:
    0 4px 10px rgba(15, 95, 92, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.28),
    inset 0 2px 4px rgba(0, 0, 0, 0.10);
}

/* Spinner is hidden by default; shown only during 'loading'. */
.waitlist-submit-spinner {
  display: none;
  animation: waitlist-spinner-rotate 0.9s linear infinite;
}

@keyframes waitlist-spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}

/* ----- State-driven appearance via data-state on the <form> ----- */

/* Loading: hide label, show spinner, lock interaction. */
.waitlist-form[data-state='loading'] .waitlist-submit-label {
  display: none;
}

.waitlist-form[data-state='loading'] .waitlist-submit-spinner {
  display: block;
}

.waitlist-form[data-state='loading'] .waitlist-submit,
.waitlist-form[data-state='loading'] .waitlist-input {
  pointer-events: none;
  opacity: 0.85;
}

/* Success: lock the form so users don't double-submit. */
.waitlist-form[data-state='success'] .waitlist-input,
.waitlist-form[data-state='success'] .waitlist-submit {
  pointer-events: none;
  opacity: 0.5;
}

/* ----- Status message ----- */
/* Container holds the (hidden-by-default) paw icon + a text span
   side by side. Flex centers them as a row; gap separates the
   pair when the icon becomes visible on success. */
.waitlist-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
  min-height: 1.4em;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-muted);
}

/* Icon hidden by default — only the success-state branch reveals
   it via the rule below. Other states (error / loading / idle)
   never show it. */
.waitlist-status-icon {
  width: 22px;
  height: 22px;
  color: var(--primary);
  display: none;
  flex-shrink: 0;
}

.waitlist-form[data-state='success'] .waitlist-status {
  color: var(--primary);
  font-weight: 600;
}

/* Success-state animation choreography:
   - The paw icon "drops" in from above with a bounce, slight tilt
     correction at the apex (the cubic-bezier overshoots so the
     paw briefly grows past its target before settling).
   - The text behind it pops up subtly (scale 0.92 → 1).
   Both fire from the moment the data-state attribute flips to
   'success', which is when the JS confirms the row was accepted. */
.waitlist-form[data-state='success'] .waitlist-status-icon {
  display: block;
  animation: waitlist-paw-drop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.waitlist-form[data-state='success'] .waitlist-status-text {
  display: inline-block;
  animation: waitlist-text-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

@keyframes waitlist-paw-drop {
  0% {
    opacity: 0;
    transform: translateY(-14px) scale(0.5) rotate(-18deg);
  }
  60% {
    opacity: 1;
    transform: translateY(3px) scale(1.18) rotate(8deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes waitlist-text-pop {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Honor reduced-motion users — they get the same visual result
   (icon visible, text in primary color) without the bounce. */
@media (prefers-reduced-motion: reduce) {
  .waitlist-form[data-state='success'] .waitlist-status-icon,
  .waitlist-form[data-state='success'] .waitlist-status-text {
    animation: none;
  }
}

.waitlist-form[data-state='error'] .waitlist-status {
  color: var(--danger);
  font-weight: 500;
}

/* ----- Privacy fineprint ----- */
.waitlist-fineprint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 24px 0 0;
  opacity: 0.8;
}

.waitlist-fineprint a {
  color: var(--secondary);
  text-decoration: underline;
}

/* ---------- About / story section ---------- */
.about {
  background: var(--background);
  text-align: center;
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
}

.about-content p {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-surface);
  color: var(--text-inverse);
  padding: 56px 0 32px;
}

/**
 * Footer is centered: brand block on top, links row below, copyright at
 * the bottom. Cleaner symmetry than the previous left/right split, and
 * reads better on narrow viewports where the right column was wrapping.
 */
.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.footer-brand .brand-wordmark {
  color: var(--text-inverse);
}

.footer-brand-tag {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
  /* No left margin — the tag is centered with the rest of the column. */
}

.footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent);
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Legal-doc pages ---------- */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.legal-page h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
  color: var(--primary);
  background: none;
  -webkit-text-fill-color: var(--primary);
  letter-spacing: -0.02em;
}

.legal-page .last-updated {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-page h2 {
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--primary);
}

.legal-page h3 {
  font-size: 1.125rem;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-page p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.legal-page ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-page li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.legal-page strong {
  color: var(--primary);
}

.disclaimer {
  background: var(--surface-alt);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.disclaimer strong {
  color: var(--text-primary);
}

/* ============================================================
   Scroll-triggered animations
   ============================================================ */

/* Elements start invisible + offset; revealed when they enter viewport
   (via IntersectionObserver toggling the `.in-view` class). */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children by setting `style="--reveal-delay: 100ms"` etc. */
.reveal[style*='--reveal-delay'] {
  transition-delay: var(--reveal-delay);
}

/* ============================================================
   Hero — premium treatment
   ============================================================ */

/* ============================================================
   Hero-logo animation system
   ------------------------------------------------------------
   Two phases:
     1) ENTRANCE (~1.4s, one-shot on page load): each piece of the
        logo pops in sequentially — center toe, then left + right
        toes, then the heart pad rises from below, then the coral
        dot lands with a small overshoot.
     2) STEADY STATE (loops forever): the whole logo gently floats,
        and the coral dot keeps a real heartbeat going (thump-thump,
        rest), echoing the "heart at the center of the paw" idea.
   ============================================================ */

/* Each child of .hero-logo transforms relative to its own bounding
   box, so `transform-origin: center` actually centers on the
   element (not on the SVG's 0,0 corner). */
.hero-logo .logo-toe,
.hero-logo .logo-pad,
.hero-logo .logo-dot {
  transform-box: fill-box;
  transform-origin: center;
}

/* Subtle floating breath on the whole logo. Stays running while
   the per-piece entrance + heartbeat animations layer on top of
   it — they compose, since the parent translates and children
   scale independently. */
@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.hero-logo {
  animation: hero-float 4s ease-in-out infinite;
}

/* Entrance keyframes. The cubic-bezier curve overshoots slightly
   on the way in (the 1.56 in the y-component) which gives each
   piece a satisfying "pop". */
@keyframes hero-logo-toe-pop {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  60% {
    opacity: 1;
    transform: scale(1.15);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes hero-logo-pad-rise {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hero-logo-dot-land {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  55% {
    opacity: 1;
    transform: scale(1.4);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Heartbeat — thump (10%), recover (20%), softer thump (30%),
   recover (40%), then 60% of the cycle is rest. This is the same
   rhythm we use on the Matches empty-state illustration in the
   mobile app, so the two surfaces share a heartbeat. */
@keyframes hero-logo-heartbeat {
  0%,
  60%,
  100% {
    transform: scale(1);
  }
  10% {
    transform: scale(1.35);
  }
  20% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.2);
  }
  40% {
    transform: scale(1);
  }
}

/* Staggered entrance — the center toe goes first because it sits
   at the apex of the paw, then the side toes "catch up". Durations
   and delays are ~10% slower than the initial v1; gives the build
   a slightly more deliberate feel without dragging. */
.hero-logo .logo-toe-center {
  animation: hero-logo-toe-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.06s
    both;
}
.hero-logo .logo-toe-left {
  animation: hero-logo-toe-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}
.hero-logo .logo-toe-right {
  animation: hero-logo-toe-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.33s
    both;
}
.hero-logo .logo-pad {
  animation: hero-logo-pad-rise 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.55s
    both;
}
/* Coral dot: pops in once (entrance ~10% slower), then keeps the
   1.8 s heartbeat going forever — heartbeat speed is unchanged. */
.hero-logo .logo-dot {
  animation: hero-logo-dot-land 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.94s
      both,
    hero-logo-heartbeat 1.8s ease-in-out 1.76s infinite;
}

/* Accessibility: users who prefer reduced motion get a still logo. */
@media (prefers-reduced-motion: reduce) {
  .hero-logo,
  .hero-logo .logo-toe,
  .hero-logo .logo-pad,
  .hero-logo .logo-dot {
    animation: none !important;
  }
}

/* Decorative blurred orbs in the hero background — adds depth without
   the cost of an image. */
.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}

.hero-orb-1 {
  width: 360px;
  height: 360px;
  background: var(--secondary);
  top: -120px;
  left: -80px;
}

.hero-orb-2 {
  width: 280px;
  height: 280px;
  background: var(--accent);
  bottom: -100px;
  right: -60px;
  opacity: 0.35;
}

/* ============================================================
   Phone mockup section — "see what it looks like"
   ------------------------------------------------------------
   Claymorphic phone with a multi-screen carousel: three "screens"
   rotate every ~4 s within a 12 s cycle. Each screen reflects an
   actual app surface (discovery, match, chat). Stylized SVG
   illustrations stand in for real screenshots — easy to swap for
   real screenshots once the app's UI is final.
   ============================================================ */

.showcase {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 880px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.showcase-copy h2 {
  margin-bottom: 16px;
}

.showcase-copy p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 460px;
}

/* ============================================================
   Phone hardware — claymorphic frame, iPhone 15-ish aspect
   ============================================================ */

.phone-frame-wrap {
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: 300px;
  height: 612px;
  background: #1B2B2B;
  border-radius: 48px;
  padding: 14px;
  /* Double shadow — soft outer drop + subtle inner highlight and
     inner shadow gives the "chunky soft-3D" claymorphic feel that
     UI/UX Pro Max recommends for our pet/wellness category. */
  box-shadow:
    0 40px 80px rgba(8, 61, 61, 0.22),
    0 16px 32px rgba(8, 61, 61, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -2px 4px rgba(0, 0, 0, 0.35);
  transform: rotate(-2deg);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.phone-frame:hover {
  transform: rotate(0deg) translateY(-6px);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--background);
  border-radius: 36px;
  overflow: hidden;
}

/* Dynamic Island — pill at top, sits visually "above" the screen
   content. Replaces the old iPhone-X notch silhouette. */
.phone-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 28px;
  background: #050505;
  border-radius: 14px;
  z-index: 3;
}

/* iOS-style status bar — time on left, signal/wifi/battery on
   right. Both sit on either side of the Dynamic Island. */
.phone-status-bar {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  padding: 0 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  z-index: 2;
  pointer-events: none;
}

.phone-status-time {
  letter-spacing: -0.02em;
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-primary);
}

/* ============================================================
   Screens container + multi-screen carousel animation
   ============================================================ */

.phone-screens {
  position: absolute;
  top: 50px; /* clear the status bar / Dynamic Island region */
  left: 0;
  right: 0;
  bottom: 0;
}

/* Each screen layered on top of the others; only one is
   opacity:1 at any moment via staggered animation delays. */
.phone-screen-content {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: phone-screen-rotation 12s linear infinite;
  animation-fill-mode: backwards;
}

/* Staggered start times — each screen gets a ~4 s "slot" of the
   12 s cycle. Same keyframe for all three; the delays handle the
   choreography so we don't need three near-identical keyframes. */
.phone-screen-discovery { animation-delay: 0s; }
.phone-screen-match     { animation-delay: 4s; }
.phone-screen-chat      { animation-delay: 8s; }

@keyframes phone-screen-rotation {
  /*  0%   →   4.17% (0.5 s):  fade in
      4.17% → 33.33% (3.5 s):  fully visible
     33.33% → 37.5% (0.5 s):   fade out
     37.5% →  100%:           hidden until next cycle */
  0%     { opacity: 0; }
  4.17%  { opacity: 1; }
  33.33% { opacity: 1; }
  37.5%  { opacity: 0; }
  100%   { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  /* Pause the rotation entirely; force the discovery screen to
     stay visible so the user still sees something meaningful. */
  .phone-screen-content { animation: none; }
  .phone-screen-discovery { opacity: 1; }
}

/* ============================================================
   Screen 1: Discovery card
   ============================================================ */

.phone-screen-discovery {
  padding: 12px 14px 24px;
}

.discovery-card {
  position: relative;
  width: 100%;
  height: calc(100% - 88px);
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  /* Claymorphic double shadow — softer than the phone frame's,
     same family. */
  box-shadow:
    0 12px 24px rgba(8, 61, 61, 0.14),
    0 4px 8px rgba(8, 61, 61, 0.06),
    inset 0 -2px 6px rgba(0, 0, 0, 0.06);
}

.discovery-photo {
  position: relative;
  width: 100%;
  height: 62%;
  /* Warm coral→peach gradient as the "photo" placeholder. The
     paw print + scattered decor floats above. Easily swapped for
     a real image when screenshots arrive. */
  background: linear-gradient(135deg, #FFC7BB 0%, #FF8C7A 60%, #E76F5F 100%);
  overflow: hidden;
}

/* Soft "lit from above" radial highlight — adds depth so the
   gradient doesn't read as flat. Sits behind the decor cluster. */
.discovery-highlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 28% 18%,
    rgba(255, 255, 255, 0.32) 0%,
    transparent 55%
  );
  pointer-events: none;
}

/* Container for scattered decorative paws + hearts. Sits between
   the highlight and the focal paw in z-order. */
.discovery-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Base styles shared by every scattered element. The `--rot`
   custom property holds the static tilt for each element; the
   keyframes reuse it so we keep the tilt while the element
   floats up/down. */
.decor-paw,
.decor-heart {
  position: absolute;
  --rot: 0deg;
  transform: rotate(var(--rot));
}

.decor-paw {
  /* fill comes from the inline SVG attribute (#ffffff); we just
     dial overall element opacity per variant below. */
}

.decor-heart {
  /* Slightly warmer than the paws — hints at the "match/like"
     color language without going full coral. */
  color: rgba(255, 255, 255, 0.5);
}

/* ----- Individual scattered elements ----- */
/* Minimal scatter — diagonal pair of paws plus a single heart
   accent. Opacities kept low so the central focal paw clearly
   wins the visual hierarchy. */
.decor-paw-1 {
  top: 12%;
  left: 12%;
  width: 26px;
  height: 26px;
  opacity: 0.22;
  --rot: -18deg;
  animation: decor-float-a 4.8s ease-in-out infinite;
}

.decor-paw-2 {
  bottom: 22%;
  right: 12%;
  width: 30px;
  height: 30px;
  opacity: 0.20;
  --rot: -22deg;
  animation: decor-float-a 6.2s ease-in-out infinite;
}

.decor-heart-1 {
  top: 30%;
  right: 18%;
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.28);
  --rot: -12deg;
  animation: decor-float-b 5.6s ease-in-out infinite;
}

/* Two float patterns with different magnitudes — using both
   prevents adjacent elements from drifting in lockstep. */
@keyframes decor-float-a {
  0%, 100% { transform: translateY(0)    rotate(var(--rot)); }
  50%      { transform: translateY(-6px) rotate(var(--rot)); }
}

@keyframes decor-float-b {
  0%, 100% { transform: translateY(0)    rotate(var(--rot)); }
  50%      { transform: translateY(-9px) rotate(var(--rot)); }
}

/* Focal paw — bigger than before so it reads as the primary
   mark, sits in front of the decor cluster, slightly more
   opaque than the scattered paws so the hierarchy is clear. */
.discovery-paw-decor {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130px;
  height: 130px;
  transform: translate(-50%, -50%);
}

/* Honor reduced-motion preferences — freeze the floating
   scatter, keep the layout intact. */
@media (prefers-reduced-motion: reduce) {
  .decor-paw,
  .decor-heart {
    animation: none;
  }
}

/* Multi-photo indicator dots at the top of the photo area. */
.discovery-photo-dots {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}

.discovery-photo-dot {
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
}

.discovery-photo-dot.active {
  background: rgba(255, 255, 255, 0.95);
}

.discovery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38%;
  padding: 14px 16px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.discovery-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.2;
}

.discovery-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.discovery-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.discovery-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
  background: var(--surface-alt);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.discovery-actions {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 18px;
}

/* Claymorphic action buttons — chunky, double-shadowed. */
.discovery-action {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 16px rgba(8, 61, 61, 0.18),
    0 2px 4px rgba(8, 61, 61, 0.10),
    inset 0 -3px 6px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.discovery-pass {
  background: var(--surface);
  color: #D96C6C;
}

.discovery-like {
  background: linear-gradient(180deg, #FF9F8E 0%, var(--accent) 100%);
  color: #FFFFFF;
}

/* ============================================================
   Screen 2: Match success
   ============================================================ */

.phone-screen-match {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Subtle radial that hints at celebration without being loud. */
  background: radial-gradient(circle at 50% 35%, rgba(255, 140, 122, 0.14), transparent 65%);
}

.match-content {
  text-align: center;
  padding: 0 24px;
  width: 100%;
}

.match-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.match-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.match-pets {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 24px 0;
}

/* Each pet avatar is a circle with a claymorphic gradient + inner
   shadows. The two are subtly rotated toward each other for a more
   playful "they're looking at each other" feel. */
.match-pet-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow:
    0 10px 20px rgba(8, 61, 61, 0.18),
    inset 0 -3px 6px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.match-pet-avatar svg {
  width: 48px;
  height: 48px;
}

.match-pet-left {
  transform: rotate(-8deg);
}

.match-pet-right {
  transform: rotate(8deg);
  background: linear-gradient(135deg, #FF9F8E, var(--accent));
}

.match-heart {
  color: var(--accent);
  filter: drop-shadow(0 4px 8px rgba(255, 140, 122, 0.45));
}

.match-cta {
  display: inline-block;
  padding: 10px 28px;
  background: var(--primary);
  color: var(--text-inverse);
  border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow:
    0 8px 16px rgba(8, 61, 61, 0.20),
    0 2px 4px rgba(8, 61, 61, 0.10),
    inset 0 -2px 4px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

/* ============================================================
   Screen 3: Chat preview
   ============================================================ */

.phone-screen-chat {
  display: flex;
  flex-direction: column;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(8, 61, 61, 0.14);
}

.chat-avatar svg {
  width: 18px;
  height: 18px;
}

.chat-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.chat-messages {
  flex: 1;
  padding: 14px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.chat-message {
  max-width: 75%;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 11.5px;
  line-height: 1.4;
}

.chat-message-theirs {
  align-self: flex-start;
  background: var(--surface);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  box-shadow:
    0 2px 6px rgba(8, 61, 61, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.chat-message-mine {
  align-self: flex-end;
  background: var(--primary);
  color: var(--text-inverse);
  border-bottom-right-radius: 4px;
  box-shadow:
    0 4px 8px rgba(8, 61, 61, 0.18),
    inset 0 -2px 4px rgba(0, 0, 0, 0.18);
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin: 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow:
    0 4px 10px rgba(8, 61, 61, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.chat-input-placeholder {
  flex: 1;
  font-size: 11px;
  color: var(--text-muted);
}

.chat-input-send {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 2px 4px rgba(8, 61, 61, 0.18),
    inset 0 -1px 2px rgba(0, 0, 0, 0.18);
}

/* ============================================================
   Trust strip — used between sections to add weight
   ============================================================ */
.trust-strip {
  padding: 36px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-item-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.trust-item-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ============================================================
   Skip-to-content link (WCAG 2.4.1)
   ------------------------------------------------------------
   First focusable element on the page. Positioned offscreen by
   default; transitions into view when it receives keyboard
   focus. Lets keyboard / screen-reader users jump past the
   sticky header nav straight to the page's main content.
   ============================================================ */
.skip-to-main {
  position: absolute;
  top: -200px;
  left: 16px;
  z-index: 100;
  background: var(--primary);
  color: var(--text-inverse);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: var(--shadow-lifted);
  transition: top 0.2s ease;
}

.skip-to-main:focus,
.skip-to-main:focus-visible {
  top: 16px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================================
   How it works
   ------------------------------------------------------------
   Four-step walkthrough between Showcase and Features. Each
   step is a claymorphic card with a numbered marker, gradient
   icon tile, title, and short warm description. Grid responds:
   4 cols → 2 cols → 1 col as the viewport narrows.
   ============================================================ */
.how-it-works {
  /* Sits between the warm-toned Showcase and the white Features
     section. Using surface-alt creates a subtle "step" so the
     section breaks aren't blunt color transitions. */
  background: var(--surface-alt);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 880px) {
  .how-steps {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 560px) {
  .how-steps {
    grid-template-columns: 1fr;
  }
}

.how-step {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-xxl);
  padding: 28px 24px 26px;
  /* Claymorphic resting state, slightly lighter shadow vocabulary
     than the feature cards because there are 4 of these in a row
     vs. 3 features — keeps the section from feeling shadow-heavy. */
  box-shadow:
    0 6px 18px rgba(8, 61, 61, 0.06),
    0 2px 5px rgba(8, 61, 61, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 5px rgba(8, 61, 61, 0.02);
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.how-step:hover {
  transform: translateY(-6px);
  box-shadow:
    0 16px 32px rgba(8, 61, 61, 0.10),
    0 4px 9px rgba(8, 61, 61, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -2px 5px rgba(8, 61, 61, 0.03);
}

/* Step number sits top-right of each card as a faint marker —
   present enough to read as "step N", not loud enough to fight
   the icon or title for focus. */
.how-step-number {
  position: absolute;
  top: 16px;
  right: 22px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--border-strong);
  letter-spacing: -0.02em;
}

.how-step-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--text-inverse);
  /* Same chunky-button shadow vocabulary as feature-icon, scaled
     slightly smaller so the step icons read as a related-but-
     calmer cousin of the feature icons. */
  box-shadow:
    0 6px 14px rgba(8, 61, 61, 0.16),
    0 2px 4px rgba(8, 61, 61, 0.08),
    inset 0 -2px 4px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.how-step:hover .how-step-icon {
  transform: scale(1.08) rotate(-4deg);
}

.how-step-icon svg {
  width: 24px;
  height: 24px;
}

.how-step h3 {
  font-size: 1.05rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.how-step p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   FAQ
   ------------------------------------------------------------
   Native <details>/<summary> accordion. No JS, no ARIA juggling
   — the browser handles open/close state and keyboard nav. We
   only style: the per-item card, the chevron rotation, and the
   answer-text spacing.
   ============================================================ */
.faq {
  background: var(--background);
}

.faq-list {
  max-width: 720px;
  margin: 44px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  /* Calmer shadow than feature/how-step cards: a list of 7 of
     these in a stack with heavy shadows would feel busy. */
  box-shadow:
    0 4px 14px rgba(8, 61, 61, 0.05),
    0 1px 3px rgba(8, 61, 61, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: box-shadow 0.3s ease;
}

.faq-item[open] {
  /* Lift slightly when expanded so the open item visually "pops"
     out of the stack and the user has a strong cue about what's
     currently being answered. */
  box-shadow:
    0 12px 28px rgba(8, 61, 61, 0.08),
    0 3px 6px rgba(8, 61, 61, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.faq-item summary {
  /* Remove the default disclosure triangle in Chrome/Safari + Firefox
     so we can drop our own chevron in. */
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  display: none;
}

.faq-q {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.faq-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-chevron svg {
  width: 18px;
  height: 18px;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-item p {
  padding: 0 24px 22px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item p a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: -2px;
  border-radius: var(--radius-xl);
}

/* ============================================================
   Footer social icons (coming-soon state)
   ------------------------------------------------------------
   <span> elements (not <a>) because handles aren't claimed yet.
   Renders as muted tiles with a CSS-only tooltip on hover/focus
   explaining why nothing happens on click. Swap to <a> with
   href + rel="me" once handles exist.
   ============================================================ */
/* Vertical stack: small "coming soon" label, then icons row.
   Whole block centered with the rest of the footer. */
.footer-social-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Eyebrow-style label that makes the placeholder state explicit
   at a glance, before any hover/focus. Matches the rhythm of
   on-page eyebrow labels (uppercase, letter-spaced), scaled for
   the dark footer surface. Flanked by short divider lines so it
   reads as a deliberate section marker, not orphan caption text. */
.footer-social-label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social-label::before,
.footer-social-label::after {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.footer-social {
  display: flex;
  gap: 12px;
  list-style: none;
  justify-content: center;
}

.footer-social-icon {
  position: relative;
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
  cursor: help;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

/* Coming-soon visual treatment: a 1.5px dashed outline on each
   tile says "placeholder" before the user ever hovers. On hover/
   focus the dashed line brightens so the interactive feedback
   still feels alive — but the dashes stay, so it never reads as
   a real live link. Combined with the label above and the hover
   tooltip, the not-yet state is unambiguous. */
.footer-social-block.is-soon .footer-social-icon {
  border: 1.5px dashed rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.03);
}

.footer-social-icon:hover,
.footer-social-icon:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.footer-social-block.is-soon .footer-social-icon:hover,
.footer-social-block.is-soon .footer-social-icon:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.footer-social-icon svg {
  width: 18px;
  height: 18px;
}

/* CSS-only tooltip. Anchored above the icon. Hidden by default,
   fades + slides into view on hover/focus of the parent icon. */
.footer-social-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.footer-social-icon:hover::after,
.footer-social-icon:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   404 / Page-not-found
   ------------------------------------------------------------
   Static error page served by Cloudflare Pages for any URL that
   doesn't match a file. Styled in the same vocabulary as the
   rest of the site so a 404 still feels like a Philos moment,
   not a generic browser error. Visual gag: the brand paw
   replaces the "0" in 404; the paw also gets a gentle "sniff"
   rotation so the page reads as alive (just lost).
   ============================================================ */

.not-found-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 24px 100px;
  text-align: center;
}

@media (max-width: 640px) {
  .not-found-page {
    padding: 56px 20px 72px;
  }
}

/* Big numerals + paw, centered in a single row. clamp() lets
   the type scale fluidly across viewports without a hard
   breakpoint shift. */
.not-found-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.not-found-digit {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(5rem, 18vw, 9rem);
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.04em;
}

.not-found-paw {
  display: inline-block;
  /* Size BY HEIGHT so the visible paw matches the digit
     cap-height exactly. The SVG uses a tightened viewBox
     (90×109) that wraps just the paw, so the rendered width
     auto-computes to ~83% of the height. End result: paw and
     digits read as the same visual weight. */
  height: clamp(5rem, 18vw, 9rem);
  width: auto;
  /* Sniff animation: gentle left/right rotation pivoting from
     the bottom edge of the paw (the "feet"), giving it a more
     "head tilt" feel — like a curious dog. */
  animation: paw-sniff 3.2s ease-in-out infinite;
  transform-origin: 50% 100%;
}

.not-found-paw svg {
  height: 100%;
  width: auto;
  display: block;
}

@keyframes paw-sniff {
  0%, 100% { transform: rotate(-4deg); }
  50%      { transform: rotate(4deg); }
}

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

.not-found-page h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  /* Override the gradient text treatment some site h1s inherit;
     we want a solid color here for max readability on a small
     viewport. */
  background: none;
  -webkit-text-fill-color: var(--text-primary);
}

.not-found-tagline {
  max-width: 480px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

/* Claymorphic pill CTA — chunky shadow vocabulary matching the
   feature-icon tiles + the waitlist submit button, so the
   "Take me home" affordance feels like a related cousin, not a
   new visual language. */
.not-found-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-inverse);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow:
    0 8px 18px rgba(8, 61, 61, 0.18),
    0 2px 5px rgba(8, 61, 61, 0.10),
    inset 0 -2px 4px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.not-found-cta:hover,
.not-found-cta:focus-visible {
  transform: translateY(-3px);
  box-shadow:
    0 14px 28px rgba(8, 61, 61, 0.22),
    0 4px 8px rgba(8, 61, 61, 0.12),
    inset 0 -2px 4px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  /* a.cta normally fades opacity on hover via the global anchor
     rule — undo that so the CTA stays full strength. */
  opacity: 1;
  outline: none;
}

.not-found-cta:focus-visible {
  box-shadow:
    0 14px 28px rgba(8, 61, 61, 0.22),
    0 4px 8px rgba(8, 61, 61, 0.12),
    inset 0 -2px 4px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 0 0 3px rgba(255, 140, 122, 0.45);
}

.not-found-cta svg {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.not-found-cta:hover svg,
.not-found-cta:focus-visible svg {
  transform: translateX(3px);
}

.not-found-help {
  margin-top: 44px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.not-found-help a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
}

/* ============================================================
   Companions (audience tabs) — zero-JS tab swap
   Radio inputs are .visually-hidden (focusable, unlike
   display:none) so keyboard users can arrow between tabs.
   Added 2026-06-07; pattern #4 in INSPIRATION.md.
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.companions {
  background: var(--surface-alt);
}

.companion-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 32px 0;
}

.companion-tabs label {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.companion-tabs label:hover {
  transform: translateY(-1px);
}

#cmp-dogs:checked ~ .companion-tabs label[for="cmp-dogs"],
#cmp-cats:checked ~ .companion-tabs label[for="cmp-cats"],
#cmp-all:checked ~ .companion-tabs label[for="cmp-all"] {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
}

#cmp-dogs:focus-visible ~ .companion-tabs label[for="cmp-dogs"],
#cmp-cats:focus-visible ~ .companion-tabs label[for="cmp-cats"],
#cmp-all:focus-visible ~ .companion-tabs label[for="cmp-all"] {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

.companion-panel {
  display: none;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

#cmp-dogs:checked ~ .companion-panels .panel-dogs,
#cmp-cats:checked ~ .companion-panels .panel-cats,
#cmp-all:checked ~ .companion-panels .panel-all {
  display: block;
  animation: companion-fadeup 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes companion-fadeup {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.companion-emoji {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 14px;
}

.companion-panel h3 {
  color: var(--primary);
  margin-bottom: 8px;
}

.companion-panel p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  #cmp-dogs:checked ~ .companion-panels .panel-dogs,
  #cmp-cats:checked ~ .companion-panels .panel-cats,
  #cmp-all:checked ~ .companion-panels .panel-all {
    animation: none;
  }
}
