/* ==========================================================================
   Joey AI — marketing site
   Palette aligned with MeetJoey app (cream / terracotta / sage).
   ========================================================================== */

:root {
  --cream: #f7f1e6;
  --linen: var(--cream);
  --card: #fffdf8;
  --card-elevated: #fffdf8;
  --ink: #231c14;
  --ink-deep: #231c14;
  --textmuted: #7a7266;
  --border: rgba(35, 28, 20, 0.1);
  --border-strong: rgba(35, 28, 20, 0.16);

  --sage: #3e6b4c;
  --sage-dark: #32573d;
  --sage-deep: #32573d;
  --sage-mist: #dceee1;
  --sage-tint: #dceee1;

  --terracotta: #c1633f;
  --terracotta-dark: #a54f30;
  --terracotta-light: #f5e3dc;
  --peach: #f5e3dc;
  --sun: #f5e6b8;
  --blush: #f5e3dc;
  --navy: #0f2a38;
  --danger: #c0453a;
  --danger-tint: #f7dedb;
  --champagne: #f5e6b8;
  --gold: #c1633f;

  --triage-emergency: #c0453a;
  --triage-urgent: #f5e6b8;
  --triage-monitor: #c1633f;
  --triage-routine: #3e6b4c;

  --interactive: var(--terracotta);
  --interactive-dark: var(--terracotta-dark);
  --interactive-light: var(--terracotta-light);
  --interactive-ring: rgba(193, 99, 63, 0.18);
  --interactive-border: rgba(193, 99, 63, 0.28);

  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Source Serif 4", "Georgia", "Times New Roman", serif;
  --font-script: "Source Serif 4", "Georgia", serif;

  --shadow-card: 0 14px 40px -12px rgba(35, 28, 20, 0.12), 0 4px 12px -4px rgba(35, 28, 20, 0.06);
  --shadow-soft: 0 2px 8px -2px rgba(35, 28, 20, 0.14), 0 1px 3px -1px rgba(35, 28, 20, 0.08);
  --shadow-chunky: 0 6px 0 0 rgba(35, 28, 20, 0.08);
  --shadow-chunky-lift: 0 8px 0 0 rgba(35, 28, 20, 0.08);
  --shadow-chunky-press: 0 2px 0 0 rgba(35, 28, 20, 0.08);

  --radius-2xl: 1.35rem;
  --radius-3xl: 1.75rem;
  --radius-4xl: 2.25rem;
  --wrap: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 220ms;
  --nav-h: 112px;
  --announce-h: 0px;
}

@media (min-width: 1280px) {
  :root { --wrap: 1220px; }
}

@media (min-width: 1700px) {
  :root { --wrap: 1360px; }
}

body:has(.announce:not([hidden])) {
  --announce-h: 46px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--announce-h) + var(--nav-h) + 16px);
  color-scheme: light;
}

html, body { margin: 0; padding: 0; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-announce { --announce-h: 0px; }

img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  line-height: 1.15;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
}

p, figure, blockquote { margin: 0; }
p { text-wrap: pretty; }

::selection { background: var(--terracotta); color: #fff; }

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 90;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--t) var(--ease);
}

.skip-link:focus-visible { top: 12px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-chunky);
  transition: transform 150ms var(--ease), box-shadow 150ms var(--ease),
    background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-chunky-lift);
}

.btn:active {
  transform: translateY(4px);
  box-shadow: var(--shadow-chunky-press);
}

.btn-primary {
  background: var(--terracotta);
  color: #fff;
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  color: #fff;
}

.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: color-mix(in srgb, var(--sun) 40%, var(--card));
  color: var(--ink);
}

.btn-sm { min-height: 44px; padding: 0 20px; font-size: 0.9rem; }
.btn-lg { min-height: 54px; padding: 0 32px; font-size: 1rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 600;
  color: var(--terracotta);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(193, 99, 63, 0.35);
  transition: text-decoration-color var(--t) var(--ease);
}

.text-link:hover { text-decoration-color: var(--terracotta); }
.text-link svg { width: 16px; height: 16px; transition: transform var(--t) var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-card);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 14px;
}

.marker {
  position: relative;
  display: inline-block;
  isolation: isolate;
  font-style: italic;
  font-weight: 600;
}

.marker::before {
  content: none;
}

.script {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 600;
  color: var(--terracotta);
  font-size: 1.05em;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   Announce + navigation
   -------------------------------------------------------------------------- */

.announce {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 44px 8px 16px;
  background: var(--terracotta);
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
}

.announce[hidden] { display: none; }
.announce a {
  display: inline-block;
  padding: 6px 4px;
  color: #fff;
  font-weight: 700;
  text-underline-offset: 3px;
}

.announce-close {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  opacity: 0.85;
}

.announce-close:hover { opacity: 1; background: rgba(255, 255, 255, 0.15); }
.announce-close svg { width: 16px; height: 16px; }

.site-nav {
  position: sticky;
  top: var(--announce-h);
  z-index: 30;
  padding: 10px 0 6px;
  background: transparent;
}

.nav-shell { position: relative; }

.nav-inner {
  min-height: calc(var(--nav-h) - 20px);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 14px 12px 28px;
  background: rgba(255, 254, 251, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    background 320ms var(--ease),
    border-color 320ms var(--ease),
    box-shadow 320ms var(--ease),
    backdrop-filter 320ms var(--ease);
}

.site-nav.is-stuck .nav-inner {
  background: rgba(255, 254, 251, 0.94);
  box-shadow: var(--shadow-card);
}

.site-nav.is-menu-open .nav-inner {
  background: var(--card);
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}

/* Home — nav merges with hero video at top; solid pill on scroll */
.page-home .site-nav {
  position: fixed;
  top: var(--announce-h);
  left: 0;
  right: 0;
  z-index: 50;
  padding: 16px 0 8px;
  background: transparent;
}

.page-home .site-nav::before {
  content: "";
  position: absolute;
  inset: 0 0 -48px;
  background: linear-gradient(180deg, rgba(15, 32, 22, 0.42) 0%, rgba(15, 32, 22, 0.12) 55%, transparent 100%);
  opacity: 1;
  pointer-events: none;
  transition: opacity 320ms var(--ease);
}

.page-home .site-nav.is-stuck::before,
.page-home .site-nav.is-menu-open::before {
  opacity: 0;
}

.page-home .site-nav:not(.is-stuck):not(.is-menu-open) .nav-inner {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.page-home .site-nav:not(.is-stuck):not(.is-menu-open) .nav-links a {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 12px rgba(15, 32, 22, 0.35);
}

.page-home .site-nav:not(.is-stuck):not(.is-menu-open) .nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.page-home .site-nav:not(.is-stuck):not(.is-menu-open) .nav-cta .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
  box-shadow: none;
}

.page-home .site-nav:not(.is-stuck):not(.is-menu-open) .nav-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.page-home .site-nav:not(.is-stuck):not(.is-menu-open) .nav-cta .btn-primary {
  box-shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.35);
}

.page-home .site-nav:not(.is-stuck):not(.is-menu-open) .menu-toggle {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
}

.page-home .site-nav:not(.is-stuck):not(.is-menu-open) .logo__img--dark {
  display: none;
}

.page-home .site-nav:not(.is-stuck):not(.is-menu-open) .logo__img--light {
  display: block;
}

.logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo__img--light { display: none; }
.logo img,
.logo__img { height: 72px; width: auto; }

.page-home .hero {
  padding: 0;
}

.page-home .hero-stage {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.page-home .hero-frame {
  min-height: 100svh;
  border-radius: 0;
  box-shadow: none;
}

.page-home .hero-inner {
  padding-top: calc(var(--nav-h) + 24px);
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--textmuted);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}

.nav-links a:hover { color: var(--ink); background: color-mix(in srgb, var(--blush) 55%, var(--card)); }

.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-cta .btn { min-height: 48px; padding: 0 24px; font-size: 0.96rem; }

.menu-toggle {
  display: none;
  width: 50px;
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  place-items: center;
}

.menu-toggle svg { width: 22px; height: 22px; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: -18px;
  padding: 28px 22px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 28px 28px;
  box-shadow: var(--shadow-soft);
}

.mobile-nav[hidden] { display: none; }

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 50px;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child { border-bottom: 0; margin-top: 10px; }
.mobile-nav .btn { width: 100%; }

/* --------------------------------------------------------------------------
   Hero â€” video stays the focal object, framed like a clinic gallery piece
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: 8px 0 0;
}

.hero-stage { width: 100%; }

.hero-frame {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--nav-h) - var(--announce-h) - 72px);
  border-radius: 36px;
  color: #fff;
  box-shadow: var(--shadow-card);
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 38%;
  transform: scale(1.04);
  filter: saturate(1.08) brightness(0.92);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 32, 22, 0.72) 0%, rgba(15, 32, 22, 0.28) 46%, rgba(15, 32, 22, 0.12) 100%),
    linear-gradient(180deg, rgba(15, 32, 22, 0.18) 0%, rgba(15, 32, 22, 0.08) 40%, rgba(15, 32, 22, 0.55) 100%);
}

.hero-paw {
  position: absolute;
  z-index: 1;
  width: 72px;
  height: 72px;
  color: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.hero-paw-a { top: 12%; right: 10%; transform: rotate(18deg); }
.hero-paw-b { bottom: 18%; right: 22%; width: 48px; height: 48px; transform: rotate(-24deg); }

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  min-height: inherit;
  padding: 56px 48px 64px;
}

.hero-copy {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero .eyebrow { color: var(--sage-mist); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  max-width: 14ch;
}
.hero .marker { color: #fff; }

.hero-lede {
  margin-top: 20px;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 32px;
}

.hero .btn-primary {
  background: #fff;
  color: var(--terracotta-dark);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.35);
}
.hero .btn-primary:hover {
  background: var(--sun);
  color: var(--terracotta-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.4);
}

.hero-assurance {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
}

.hero-assurance span { display: inline-flex; align-items: center; gap: 7px; }
.hero-assurance svg { width: 17px; height: 17px; color: var(--sage-mist); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Triage chips
   -------------------------------------------------------------------------- */

.triage {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.triage::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.triage-emergency { background: var(--danger-tint); color: #96322a; }
.triage-urgent { background: var(--sun); color: #6b5410; }
.triage-monitor { background: var(--terracotta-light); color: var(--terracotta-dark); }
.triage-routine { background: var(--sage-tint); color: var(--sage-dark); }

/* --------------------------------------------------------------------------
   Trust strip — page-scroll driven sticky stack (no nested scroll)
   -------------------------------------------------------------------------- */

.trust {
  --trust-steps: 4;
  position: relative;
  z-index: 3;
  margin-top: 0;
  /* Tall runway: page scroll advances cards while stage stays sticky */
  height: calc(100vh * (var(--trust-steps) * 0.85));
  min-height: 280vh;
  padding: 0;
  overflow: visible;
  background:
    linear-gradient(180deg, transparent 0%, rgba(247, 241, 230, 0.7) 8%, var(--cream) 40%, var(--cream) 100%);
}

.trust-pin {
  position: sticky;
  top: calc(var(--announce-h) + var(--nav-h) + 8px);
  height: calc(100vh - var(--announce-h) - var(--nav-h) - 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  padding: 12px 0 20px;
}

.trust-deck {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

.trust-stack {
  --stack-peek: 32px;
  --card-h: clamp(390px, 48vw, 500px);
  position: relative;
  width: 100%;
  height: calc(var(--card-h) + (var(--stack-peek) * 3) + 40px);
  margin: 0 auto;
}

.trust-card {
  --trust-accent: var(--sage);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--card-h);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(22px, 2.8vw, 36px);
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: clamp(32px, 3.2vw, 44px);
  background: var(--card);
  border: 1px solid rgba(35, 28, 20, 0.08);
  box-shadow:
    0 28px 60px -36px rgba(35, 28, 20, 0.42),
    0 10px 24px -16px rgba(35, 28, 20, 0.16);
  transform-origin: 50% 100%;
  transition:
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 420ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 420ms cubic-bezier(0.16, 1, 0.3, 1),
    background 320ms ease;
  cursor: default;
  outline: none;
  /* Never create a nested scroll surface */
  overflow: hidden;
}

.trust-card--chat { --trust-accent: #3e6b4c; }
.trust-card--scan { --trust-accent: #c1633f; }
.trust-card--wag { --trust-accent: #3e6b4c; }
.trust-card--food { --trust-accent: #c1633f; }

.trust-card[data-stack="0"] {
  z-index: 4;
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  background: var(--card);
  pointer-events: auto;
}

.trust-card[data-stack="1"] {
  z-index: 3;
  transform: translate3d(0, calc(var(--stack-peek) * -1), 0) scale(0.97);
  opacity: 1;
  background: #f5efe3;
  pointer-events: none;
  box-shadow: 0 16px 36px -28px rgba(35, 28, 20, 0.28);
}

.trust-card[data-stack="2"] {
  z-index: 2;
  transform: translate3d(0, calc(var(--stack-peek) * -2), 0) scale(0.94);
  opacity: 1;
  background: #efe6d6;
  pointer-events: none;
  box-shadow: none;
}

.trust-card[data-stack="3"] {
  z-index: 1;
  transform: translate3d(0, calc(var(--stack-peek) * -3), 0) scale(0.91);
  opacity: 1;
  background: #e8dece;
  pointer-events: none;
  box-shadow: none;
}

.trust-card.is-front {
  box-shadow:
    0 36px 70px -34px rgba(35, 28, 20, 0.48),
    0 14px 28px -16px rgba(35, 28, 20, 0.18);
}

.trust-card:focus-visible {
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--sage) 55%, #fff),
    0 36px 70px -34px rgba(35, 28, 20, 0.48);
}

.trust-card__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(8px, 1.5vw, 18px) clamp(8px, 1.2vw, 14px) clamp(8px, 1.5vw, 18px) clamp(10px, 1.5vw, 18px);
}

.trust-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 16px;
}

.trust-card__chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(35, 28, 20, 0.06);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trust-card__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--textmuted);
  font-size: 0.86rem;
  font-weight: 560;
}

.trust-card__status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--trust-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--trust-accent) 18%, transparent);
}

.trust-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
}

.trust-card__lede {
  margin: 12px 0 0;
  color: var(--textmuted);
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.45;
  max-width: 30ch;
}

.trust-card__notes {
  margin: 20px 0 0;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(35, 28, 20, 0.05);
  color: var(--textmuted);
  font-size: 0.98rem;
  line-height: 1.45;
  max-width: 42ch;
}

.trust-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.trust-card__cta {
  min-height: 52px;
  padding: 0 30px;
  border-radius: 999px;
}

.trust-card__cta:hover {
  background: var(--terracotta-dark);
  color: #fff;
}

.trust-card__media {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: clamp(22px, 2.6vw, 32px);
  background: var(--sage-mist);
}

.trust-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
  transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.trust-card.is-front .trust-card__media img {
  transform: scale(1);
}

.trust-card.is-front:hover .trust-card__media img {
  transform: scale(1.05);
}

.trust-card:not(.is-front) .trust-card__lede,
.trust-card:not(.is-front) .trust-card__notes,
.trust-card:not(.is-front) .trust-card__actions,
.trust-card:not(.is-front) .trust-card__status {
  opacity: 0;
}

.trust-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.trust-nav {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(35, 28, 20, 0.12);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 8px 18px -14px rgba(35, 28, 20, 0.35);
  transition: background 220ms var(--ease), transform 220ms var(--ease);
}

.trust-nav svg {
  width: 18px;
  height: 18px;
}

.trust-nav:hover {
  background: color-mix(in srgb, var(--sun) 45%, var(--card));
  transform: translateY(-1px);
}

.trust-dots {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(35, 28, 20, 0.05);
}

.trust-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(35, 28, 20, 0.22);
  transition: width 280ms var(--ease), background 280ms var(--ease);
}

.trust-dots button.is-active {
  width: 26px;
  background: var(--terracotta);
}

.trust-hint {
  margin: 14px 0 0;
  text-align: center;
  color: var(--textmuted);
  font-size: 0.84rem;
  letter-spacing: 0.01em;
}

@media (max-width: 860px) {
  .trust {
    height: auto;
    min-height: 0;
    padding: 36px 0 72px;
  }

  .trust-pin {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
    padding: 0;
  }

  .trust-stack {
    --stack-peek: 22px;
    --card-h: auto;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .trust-card {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    height: auto;
    grid-template-columns: 1fr;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: var(--card) !important;
    box-shadow:
      0 22px 48px -30px rgba(35, 28, 20, 0.4),
      0 10px 22px -16px rgba(35, 28, 20, 0.14);
  }

  .trust-card:not(.is-front) .trust-card__lede,
  .trust-card:not(.is-front) .trust-card__notes,
  .trust-card:not(.is-front) .trust-card__actions,
  .trust-card:not(.is-front) .trust-card__status {
    opacity: 1;
  }

  .trust-card__media {
    aspect-ratio: 16 / 10;
    min-height: 200px;
    order: -1;
  }

  .trust-card__title {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .trust-controls,
  .trust-hint {
    display: none;
  }
}

@media (max-width: 560px) {
  .trust-deck {
    width: calc(100% - 20px);
  }

  .trust-card {
    padding: 14px;
    border-radius: 28px;
    gap: 14px;
  }

  .trust-card__copy {
    padding: 6px 6px 10px;
  }

  .trust-card__notes {
    font-size: 0.88rem;
  }

  .trust-card__cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trust {
    height: auto;
    min-height: 0;
    padding: 48px 0 72px;
  }

  .trust-pin {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
  }

  .trust-stack {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .trust-card,
  .trust-card[data-stack] {
    position: relative;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: var(--card) !important;
  }

  .trust-card:not(.is-front) .trust-card__lede,
  .trust-card:not(.is-front) .trust-card__notes,
  .trust-card:not(.is-front) .trust-card__actions,
  .trust-card:not(.is-front) .trust-card__status {
    opacity: 1;
  }

  .trust-controls,
  .trust-hint {
    display: none;
  }

  .trust-card,
  .trust-card__media img,
  .trust-nav,
  .trust-dots button {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: 108px 0; }

.section-tint {
  background:
    radial-gradient(1200px 400px at 10% 0%, rgba(47, 106, 74, 0.07), transparent 60%),
    var(--card);
  border-block: 1px solid var(--border);
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.is-centred { margin-inline: auto; text-align: center; }
.section-head.is-centred .eyebrow { justify-content: center; }

.section h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }

.section-lede {
  margin-top: 16px;
  color: var(--textmuted);
  font-size: 1.08rem;
}

.feature-row + .feature-row { margin-top: 108px; }

.feature-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px;
  align-items: center;
}

.feature-row-alt .feature-visual { order: -1; }

.feature-text, .hero-copy, .plan, .service-card { min-width: 0; }
.feature-text h2 { max-width: 16ch; }
.feature-text > p { margin-top: 18px; color: var(--textmuted); max-width: 48ch; }
.feature-text .text-link { margin-top: 18px; }

.checklist {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.checklist li { position: relative; padding-left: 32px; line-height: 1.5; }

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.16em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sage-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E6B4C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}

.feature-visual { display: flex; justify-content: center; min-width: 0; }

.visual-stage {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 24px 0 8px;
}

.blob {
  position: absolute;
  z-index: 0;
  width: min(420px, 90%);
  height: 78%;
  top: 8%;
  border-radius: 62% 38% 46% 54% / 48% 42% 58% 52%;
  pointer-events: none;
}

.blob-sage { background: var(--sage-mist); }
.blob-peach { background: var(--peach); }

.photo-orb {
  position: absolute;
  z-index: 1;
  width: 168px;
  height: 168px;
  margin: 0;
  overflow: hidden;
  border-radius: 50%;
  border: 6px solid var(--card);
  box-shadow: var(--shadow-card);
}

.photo-orb img { width: 100%; height: 100%; object-fit: cover; }
.photo-orb-scan { left: -8px; bottom: 28px; }
.photo-orb-bowl { right: -4px; top: 18px; width: 150px; height: 150px; }

/* --------------------------------------------------------------------------
   Phone mockup
   -------------------------------------------------------------------------- */

.device {
  width: min(300px, 100%);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 28px 48px rgba(35, 28, 20, 0.22));
}

.device-tilt { transform: none; }

.device-bezel {
  position: relative;
  padding: 11px;
  border-radius: 42px;
  background: linear-gradient(165deg, #3d4a40, #1a241c 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.device-shine {
  position: absolute;
  inset: -20% -40%;
  z-index: 4;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.14) 48%,
    transparent 58%
  );
  transform: translateX(-40%) rotate(8deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms var(--ease), transform 900ms var(--ease);
}

.device:hover .device-shine,
.demo-device.is-lit .device-shine,
.feature-device.is-lit .device-shine,
[data-tilt-device].is-lit .device-shine {
  opacity: 1;
  transform: translateX(35%) rotate(8deg);
}

.device-island {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 22px;
  background: #101610;
  border-radius: 20px;
  z-index: 3;
}

.device-status {
  position: absolute;
  top: 22px;
  left: 26px;
  right: 26px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  pointer-events: none;
}

.device-status svg { width: 17px; height: 11px; }

.device-screen {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: var(--linen);
  min-height: 528px;
}

.device-screen-shot { background: var(--card); display: block; padding: 0; }
.device-screen-shot picture { display: block; }

.device-shot {
  position: absolute;
  inset: 34px 0 0 0;
  width: 100%;
  height: calc(100% - 34px);
  object-fit: cover;
  object-position: top center;
}

.device-home {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 104px;
  height: 5px;
  border-radius: 99px;
  background: var(--ink);
  opacity: 0.28;
  z-index: 3;
}

/* --------------------------------------------------------------------------
   Demo section â€” premium interactive composition
   -------------------------------------------------------------------------- */

.demo-section {
  position: relative;
  overflow: clip;
}

.demo-section::before {
  content: "";
  position: absolute;
  inset: 8% auto auto -12%;
  width: min(520px, 55vw);
  height: min(520px, 55vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 106, 74, 0.12), transparent 68%);
  pointer-events: none;
}

.demo-layout {
  gap: clamp(40px, 6vw, 88px);
}

.demo-copy .eyebrow {
  letter-spacing: 0.18em;
}

.demo-copy h2 {
  max-width: 15ch;
}

.demo-checklist li {
  padding: 12px 14px 12px 40px;
  border-radius: 16px;
  background: rgba(255, 254, 251, 0.55);
  border: 1px solid rgba(35, 28, 20, 0.06);
  transition:
    transform 320ms var(--ease),
    background 320ms var(--ease),
    border-color 320ms var(--ease),
    box-shadow 320ms var(--ease);
}

.demo-checklist li::before {
  top: 50%;
  transform: translateY(-50%);
  left: 12px;
}

.demo-checklist li:hover {
  transform: translateX(4px);
  background: var(--card);
  border-color: rgba(47, 106, 74, 0.18);
  box-shadow: var(--shadow-soft);
}

.demo-cta {
  margin-top: 22px;
  padding: 10px 4px;
}

.demo-stage {
  min-height: 620px;
  align-items: center;
  perspective: 1200px;
  padding: 40px 12px 28px;
}

.demo-blob {
  width: min(460px, 96%);
  height: 84%;
  top: 6%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 254, 251, 0.55), transparent 42%),
    radial-gradient(circle at 70% 70%, rgba(193, 99, 63, 0.12), transparent 48%),
    var(--sage-mist);
  filter: blur(0.2px);
  animation: demo-blob-morph 10s ease-in-out infinite;
}

.demo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(47, 106, 74, 0.16);
  pointer-events: none;
  z-index: 0;
}

.demo-ring-a {
  width: min(390px, 86%);
  aspect-ratio: 1;
  top: 10%;
  animation: demo-ring-spin 28s linear infinite;
}

.demo-ring-b {
  width: min(470px, 98%);
  aspect-ratio: 1;
  top: 4%;
  border-color: rgba(193, 99, 63, 0.14);
  animation: demo-ring-spin 40s linear infinite reverse;
}

.demo-float,
.feature-chip {
  --chip-rot: 0deg;
  --parallax-x: 0px;
  --parallax-y: 0px;
  --parallax-rot: 0deg;
  position: absolute;
  z-index: 3;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: none;
  user-select: none;
  pointer-events: auto;
  cursor: default;
  will-change: transform;
  transform:
    translate3d(var(--parallax-x), var(--parallax-y), 0)
    rotate(calc(var(--chip-rot) + var(--parallax-rot)));
  transition: transform 60ms linear;
}

.feature-chip__face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 14px 30px -16px rgba(35, 28, 20, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  animation: feature-chip-float 5.4s ease-in-out infinite;
  transition:
    transform 320ms var(--ease),
    box-shadow 320ms var(--ease),
    filter 320ms var(--ease);
}

.demo-float .feature-chip__face {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.demo-float:hover .feature-chip__face,
.feature-chip:hover .feature-chip__face,
.demo-float:focus-visible .feature-chip__face,
.feature-chip:focus-visible .feature-chip__face {
  transform: scale(1.08) translateY(-2px);
  box-shadow:
    0 18px 36px -14px rgba(35, 28, 20, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.45) inset;
  filter: saturate(1.08);
}

.demo-float--emergency {
  top: 12%;
  left: 2%;
  --chip-rot: -8deg;
}

.demo-float--emergency .feature-chip__face {
  background: rgba(247, 222, 219, 0.94);
  color: #96322a;
  animation-delay: 0s;
}

.demo-float--urgent {
  top: 22%;
  right: 0;
  --chip-rot: 7deg;
}

.demo-float--urgent .feature-chip__face {
  background: rgba(233, 217, 168, 0.94);
  color: #6b5410;
  animation-delay: 0.6s;
}

.demo-float--monitor {
  bottom: 18%;
  left: 0;
  --chip-rot: -5deg;
}

.demo-float--monitor .feature-chip__face {
  background: rgba(245, 227, 220, 0.95);
  color: var(--terracotta-dark);
  animation-delay: 1.1s;
}

.demo-float--routine {
  bottom: 12%;
  right: 2%;
  --chip-rot: 6deg;
}

.demo-float--routine .feature-chip__face {
  background: rgba(231, 241, 234, 0.95);
  color: var(--sage-dark);
  animation-delay: 1.7s;
}

.demo-device {
  width: min(320px, 86%);
  transform-style: preserve-3d;
  transform: none;
  transition: transform 500ms var(--ease), filter 500ms var(--ease);
  animation: demo-device-float 5.8s ease-in-out infinite;
  filter: drop-shadow(0 34px 54px rgba(35, 28, 20, 0.28));
  will-change: transform;
}

.demo-device:hover,
.demo-stage:hover .demo-device {
  animation-play-state: paused;
}

.demo-device.is-tilting {
  animation: none;
  transition: transform 80ms linear;
}

@keyframes demo-device-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes demo-blob-morph {
  0%, 100% { border-radius: 62% 38% 46% 54% / 48% 42% 58% 52%; transform: scale(1); }
  50% { border-radius: 42% 58% 52% 48% / 58% 42% 58% 42%; transform: scale(1.04); }
}

@keyframes demo-ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes demo-chip-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

[data-reveal].is-in .demo-checklist li:nth-child(1) { animation: demo-rise 560ms var(--ease) 80ms both; }
[data-reveal].is-in .demo-checklist li:nth-child(2) { animation: demo-rise 560ms var(--ease) 150ms both; }
[data-reveal].is-in .demo-checklist li:nth-child(3) { animation: demo-rise 560ms var(--ease) 220ms both; }

@keyframes demo-rise {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}

@media (max-width: 1024px) {
  .demo-stage {
    min-height: 560px;
  }

  .demo-device {
    width: min(290px, 78%);
  }

  .demo-float .feature-chip__face,
  .feature-chip__face {
    font-size: 0.66rem;
    padding: 7px 12px;
  }
}

@media (max-width: 860px) {
  .demo-stage {
    min-height: 0;
    padding: 28px 8px 12px;
  }

  .demo-float--emergency { left: 4%; top: 6%; }
  .demo-float--urgent { right: 4%; top: 10%; }
  .demo-float--monitor { left: 6%; bottom: 8%; }
  .demo-float--routine { right: 4%; bottom: 4%; }

  .demo-device {
    width: min(280px, 72%);
    transform: none;
    animation: demo-device-float-sm 5.8s ease-in-out infinite;
  }
}

@keyframes demo-device-float-sm {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 560px) {
  .demo-checklist li {
    padding: 12px 12px 12px 38px;
  }

  .demo-float .feature-chip__face {
    padding: 6px 10px;
    font-size: 0.62rem;
  }

  .demo-ring-b {
    display: none;
  }

  .demo-device {
    width: min(260px, 78%);
    transform: none;
    animation: demo-device-float-xs 5.4s ease-in-out infinite;
  }
}

@keyframes demo-device-float-xs {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (hover: none) {
  .demo-device {
    animation: none;
    transform: none;
  }

  .demo-checklist li:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-blob,
  .demo-ring,
  .demo-float,
  .demo-device,
  .feature-chip__face {
    animation: none !important;
  }

  .demo-device {
    transform: none;
  }

  .demo-float,
  .feature-chip {
    transform: rotate(var(--chip-rot));
    transition: none;
  }

  .demo-checklist li,
  .device-shine {
    transition: none;
  }

  [data-reveal].is-in .demo-checklist li:nth-child(n) {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Feature showcase â€” interactive phone stages (chat, etc.)
   -------------------------------------------------------------------------- */

.feature-showcase {
  position: relative;
}

.feature-showcase__layout {
  gap: clamp(40px, 6vw, 88px);
}

.feature-showcase__copy h2 {
  max-width: 15ch;
}

.feature-stage {
  min-height: 600px;
  align-items: center;
  perspective: 1200px;
  padding: 36px 12px 24px;
}

.feature-blob {
  width: min(450px, 94%);
  height: 82%;
  top: 7%;
  animation: feature-blob-morph 11s ease-in-out infinite;
}

.feature-stage--peach .feature-blob {
  background:
    radial-gradient(circle at 28% 30%, rgba(255, 254, 251, 0.6), transparent 44%),
    radial-gradient(circle at 72% 68%, rgba(47, 106, 74, 0.1), transparent 50%),
    var(--peach);
}

.feature-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(193, 99, 63, 0.22);
  pointer-events: none;
  z-index: 0;
}

.feature-orbit-a {
  width: min(380px, 84%);
  aspect-ratio: 1;
  top: 11%;
  animation: feature-orbit-spin 32s linear infinite;
}

.feature-orbit-b {
  width: min(460px, 96%);
  aspect-ratio: 1;
  top: 5%;
  border-style: solid;
  border-color: rgba(193, 99, 63, 0.12);
  animation: feature-orbit-spin 44s linear infinite reverse;
}

.feature-chip--a {
  top: 10%;
  left: 0;
  --chip-rot: -9deg;
}

.feature-chip--a .feature-chip__face {
  background: rgba(255, 254, 251, 0.94);
  color: var(--terracotta-dark);
  border: 1px solid rgba(193, 99, 63, 0.22);
  animation-delay: 0s;
}

.feature-chip--b {
  top: 18%;
  right: 0;
  --chip-rot: 8deg;
}

.feature-chip--b .feature-chip__face {
  background: rgba(231, 241, 234, 0.95);
  color: var(--sage-dark);
  border: 1px solid rgba(47, 106, 74, 0.16);
  animation-delay: 0.5s;
}

.feature-chip--c {
  bottom: 20%;
  left: 2%;
  --chip-rot: -6deg;
}

.feature-chip--c .feature-chip__face {
  background: rgba(245, 227, 220, 0.95);
  color: var(--terracotta-dark);
  border: 1px solid rgba(193, 99, 63, 0.18);
  animation-delay: 1s;
}

.feature-chip--d {
  bottom: 10%;
  right: 2%;
  --chip-rot: 7deg;
}

.feature-chip--d .feature-chip__face {
  background: rgba(233, 217, 168, 0.92);
  color: #6b5410;
  border: 1px solid rgba(107, 84, 16, 0.14);
  animation-delay: 1.5s;
}

.feature-device {
  width: min(320px, 86%);
  transform-style: preserve-3d;
  transition: transform 500ms var(--ease), filter 500ms var(--ease);
  will-change: transform;
  filter: drop-shadow(0 34px 54px rgba(35, 28, 20, 0.26));
}

.feature-device--right {
  transform: none;
  animation: feature-device-float-r 6s ease-in-out infinite;
}

.feature-device--left {
  transform: none;
  animation: feature-device-float-l 6s ease-in-out infinite;
}

.feature-device:hover,
.feature-stage:hover .feature-device {
  animation-play-state: paused;
}

.feature-device.is-tilting {
  animation: none;
  transition: transform 80ms linear;
}

.feature-showcase__copy {
  position: relative;
}

.feature-showcase__copy::after {
  content: "";
  position: absolute;
  left: -8px;
  top: 0.2em;
  width: 3px;
  height: 2.4em;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--terracotta), transparent);
  opacity: 0.7;
}

.feature-stage--sage .feature-showcase__copy::after,
#feature-scan .feature-showcase__copy::after {
  background: linear-gradient(180deg, var(--sage), transparent);
}

.feature-stage--sage .feature-blob {
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 254, 251, 0.55), transparent 42%),
    radial-gradient(circle at 70% 70%, rgba(193, 99, 63, 0.1), transparent 48%),
    var(--sage-mist);
}

.feature-stage--sage .feature-orbit {
  border-color: rgba(47, 106, 74, 0.18);
}

.feature-chip--scan-a {
  top: 8%;
  left: 0;
  --chip-rot: -8deg;
}

.feature-chip--scan-a .feature-chip__face {
  background: rgba(231, 241, 234, 0.95);
  color: var(--sage-dark);
  border: 1px solid rgba(47, 106, 74, 0.16);
}

.feature-chip--scan-b {
  top: 16%;
  right: 0;
  --chip-rot: 7deg;
}

.feature-chip--scan-b .feature-chip__face {
  background: rgba(255, 254, 251, 0.94);
  color: var(--ink);
  border: 1px solid rgba(35, 28, 20, 0.08);
  animation-delay: 0.45s;
}

.feature-chip--scan-c {
  bottom: 22%;
  left: 2%;
  --chip-rot: -5deg;
}

.feature-chip--scan-c .feature-chip__face {
  background: rgba(245, 227, 220, 0.95);
  color: var(--terracotta-dark);
  border: 1px solid rgba(193, 99, 63, 0.18);
  animation-delay: 0.9s;
}

.feature-chip--scan-d {
  bottom: 10%;
  right: 2%;
  --chip-rot: 6deg;
}

.feature-chip--scan-d .feature-chip__face {
  background: rgba(233, 217, 168, 0.92);
  color: #6b5410;
  border: 1px solid rgba(107, 84, 16, 0.14);
  animation-delay: 1.35s;
}

.feature-chip--food-a {
  top: 9%;
  left: 0;
  --chip-rot: -8deg;
}

.feature-chip--food-a .feature-chip__face {
  background: rgba(247, 222, 219, 0.94);
  color: #96322a;
  border: 1px solid rgba(192, 69, 58, 0.2);
}

.feature-chip--food-b {
  top: 18%;
  right: 0;
  --chip-rot: 8deg;
}

.feature-chip--food-b .feature-chip__face {
  background: rgba(231, 241, 234, 0.95);
  color: var(--sage-dark);
  border: 1px solid rgba(47, 106, 74, 0.16);
  animation-delay: 0.4s;
}

.feature-chip--food-c {
  bottom: 20%;
  left: 2%;
  --chip-rot: -6deg;
}

.feature-chip--food-c .feature-chip__face {
  background: rgba(255, 254, 251, 0.94);
  color: var(--terracotta-dark);
  border: 1px solid rgba(193, 99, 63, 0.18);
  animation-delay: 0.85s;
}

.feature-chip--food-d {
  bottom: 9%;
  right: 2%;
  --chip-rot: 7deg;
}

.feature-chip--food-d .feature-chip__face {
  background: rgba(233, 217, 168, 0.92);
  color: #6b5410;
  border: 1px solid rgba(107, 84, 16, 0.14);
  animation-delay: 1.3s;
}

.feature-orb {
  z-index: 4;
  animation: feature-orb-float 5.6s ease-in-out infinite;
  transition: transform 420ms var(--ease), box-shadow 420ms var(--ease);
}

.feature-orb:hover {
  transform: scale(1.06) rotate(-4deg);
  box-shadow: var(--shadow-card);
}

.feature-stage--sage .photo-orb-scan {
  animation-delay: 0.35s;
}

.feature-stage--peach .photo-orb-bowl {
  animation-delay: 0.6s;
}

@keyframes feature-device-float-r {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes feature-device-float-l {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes feature-blob-morph {
  0%, 100% { border-radius: 58% 42% 48% 52% / 46% 54% 46% 54%; transform: scale(1); }
  50% { border-radius: 42% 58% 54% 46% / 56% 44% 56% 44%; transform: scale(1.045); }
}

@keyframes feature-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes feature-chip-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@keyframes feature-orb-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@media (max-width: 1024px) {
  .feature-stage { min-height: 540px; }
  .feature-device { width: min(290px, 78%); }
  .feature-chip { font-size: 0.66rem; padding: 7px 12px; }
}

@media (max-width: 860px) {
  .feature-showcase__copy::after { display: none; }
  .feature-stage {
    min-height: 0;
    padding: 24px 8px 8px;
  }

  .feature-chip--a { left: 4%; top: 4%; }
  .feature-chip--b { right: 4%; top: 8%; }
  .feature-chip--c { left: 6%; bottom: 6%; }
  .feature-chip--d { right: 4%; bottom: 2%; }

  .feature-device--right {
    width: min(280px, 72%);
    animation: feature-device-float-r-sm 6s ease-in-out infinite;
  }

  .feature-device--left {
    width: min(280px, 72%);
    animation: feature-device-float-l-sm 6s ease-in-out infinite;
  }
}

@keyframes feature-device-float-r-sm {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes feature-device-float-l-sm {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 560px) {
  .feature-chip,
  .demo-float {
    display: block;
  }

  .feature-orbit-b {
    display: none;
  }

  .feature-chip__face {
    padding: 7px 11px;
    font-size: 0.64rem;
  }

  .feature-device--right,
  .feature-device--left {
    width: min(260px, 78%);
    animation: feature-device-float-xs 5.4s ease-in-out infinite;
  }

  .feature-orb {
    width: 110px;
    height: 110px;
  }
}

@keyframes feature-device-float-xs {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (hover: none) {
  .feature-device {
    animation: none;
    transform: none;
  }

  .feature-device--left {
    transform: none;
  }

  .feature-orb {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-blob,
  .feature-orbit,
  .feature-chip,
  .feature-chip__face,
  .feature-device,
  .feature-orb {
    animation: none !important;
  }

  .feature-device--right {
    transform: none;
  }

  .feature-device--left {
    transform: none;
  }

  .feature-chip,
  .demo-float {
    --parallax-x: 0px;
    --parallax-y: 0px;
    --parallax-rot: 0deg;
    transform: rotate(var(--chip-rot));
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Premium food checker
   -------------------------------------------------------------------------- */

.checker--premium {
  margin-top: 28px;
  padding: 24px;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(47, 106, 74, 0.08), transparent 55%),
    var(--card);
  border: 1px solid rgba(35, 28, 20, 0.08);
  border-radius: 28px;
  box-shadow:
    0 18px 40px -26px rgba(35, 28, 20, 0.28),
    0 4px 14px -8px rgba(35, 28, 20, 0.08);
  transition:
    transform 320ms var(--ease),
    box-shadow 320ms var(--ease),
    border-color 320ms var(--ease);
}

.checker--premium:focus-within {
  transform: translateY(-3px);
  border-color: var(--interactive-border);
  box-shadow: var(--shadow-card);
}

.checker--premium input {
  background: #fff;
  border-color: rgba(35, 28, 20, 0.12);
}

.checker--premium .checker-hint button {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(35, 28, 20, 0.1);
  background: var(--linen);
  transition:
    background 220ms var(--ease),
    color 220ms var(--ease),
    transform 220ms var(--ease);
}

.checker--premium .checker-hint button:hover {
  background: var(--terracotta-light);
  color: var(--terracotta-dark);
  transform: translateY(-1px);
}

.checker--premium .checker-out {
  margin-top: 14px;
  animation: checker-pop 420ms var(--ease);
}

@keyframes checker-pop {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Daily Wag â€” premium metric dashboard
   -------------------------------------------------------------------------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(460px, 100%);
}

.metric-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(35, 28, 20, 0.08);
  border-radius: 24px;
  padding: 22px 20px 20px;
  box-shadow:
    0 14px 32px -22px rgba(35, 28, 20, 0.28),
    0 4px 12px -8px rgba(35, 28, 20, 0.08);
  transition:
    transform 280ms var(--ease),
    box-shadow 280ms var(--ease),
    border-color 280ms var(--ease);
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--metric-accent, var(--sage)), transparent 85%);
  opacity: 0.95;
}

.metric-card:active {
  transform: translateY(-2px) scale(1.005);
}

.metric-hero::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 106, 74, 0.14), transparent 68%);
  pointer-events: none;
  animation: metric-glow 4.8s ease-in-out infinite;
}

@keyframes metric-glow {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50% { transform: translate(-10px, 12px) scale(1.12); opacity: 1; }
}

[data-reveal].is-in .metric-card:nth-child(1) { animation: metric-rise 560ms var(--ease) both; }
[data-reveal].is-in .metric-card:nth-child(2) { animation: metric-rise 560ms var(--ease) 80ms both; }
[data-reveal].is-in .metric-card:nth-child(3) { animation: metric-rise 560ms var(--ease) 140ms both; }
[data-reveal].is-in .metric-card:nth-child(4) { animation: metric-rise 560ms var(--ease) 200ms both; }

@keyframes metric-rise {
  from { opacity: 0; translate: 0 16px; }
  to { opacity: 1; translate: 0 0; }
}

.metric-hero {
  --metric-accent: #3e6b4c;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 168px;
  padding: 26px 24px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(47, 106, 74, 0.16), transparent 55%),
    linear-gradient(135deg, #fffefb 0%, #f3f8f4 100%);
}

.metric-appetite { --metric-accent: #c1633f; background: linear-gradient(180deg, #fffefb 0%, #fbf4ef 100%); }
.metric-walks { --metric-accent: #3e6b4c; background: linear-gradient(180deg, #fffefb 0%, #f1f7f2 100%); }
.metric-energy { --metric-accent: #c1633f; background: linear-gradient(180deg, var(--card) 0%, #fbf4ef 100%); }

.metric-hero-copy {
  min-width: 0;
  flex: 1;
}

.metric-label {
  display: block;
  color: var(--textmuted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-top: 8px;
  color: var(--sage-dark);
}

.metric-sm {
  font-size: 1.45rem;
  color: var(--ink);
  margin-top: 10px;
}

.metric-hint {
  display: block;
  color: var(--textmuted);
  font-size: 0.84rem;
  margin-top: 6px;
  line-height: 1.4;
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric-chip--good {
  background: rgba(47, 106, 74, 0.12);
  color: var(--sage-dark);
}

.metric-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--metric-accent) 16%, #fff);
  color: var(--metric-accent);
}

.metric-icon svg {
  width: 20px;
  height: 20px;
}

.metric-ring-wrap {
  position: relative;
  width: 124px;
  height: 124px;
  flex-shrink: 0;
}

.ring {
  width: 124px;
  height: 124px;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(47, 106, 74, 0.18));
}

.ring-track {
  fill: none;
  stroke: rgba(47, 106, 74, 0.12);
  stroke-width: 10;
}

.ring-fill {
  fill: none;
  stroke: url(#wag-ring);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 84 100;
  stroke-dashoffset: 100;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-in .ring-fill,
html:not(.js-reveal) .ring-fill {
  stroke-dashoffset: 0;
}

.metric-ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--sage-dark);
  letter-spacing: -0.03em;
}

.metric-bars {
  display: flex;
  gap: 4px;
  margin-top: 14px;
  height: 8px;
}

.metric-bars span {
  flex: 1;
  border-radius: 99px;
  background: rgba(201, 162, 39, 0.18);
}

.metric-bars span.is-on {
  background: linear-gradient(180deg, #e2c35a, #c9a227);
  box-shadow: 0 2px 6px rgba(201, 162, 39, 0.35);
}

@media (max-width: 860px) {
  .metrics {
    width: min(520px, 100%);
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .metrics {
    width: 100%;
    gap: 12px;
  }

  .metric-hero {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    padding: 22px 18px;
  }

  .metric-ring-wrap {
    align-self: flex-end;
    margin-top: -8px;
  }

  .metric-value {
    font-size: 2.6rem;
  }
}

@media (hover: none) {
  .metric-card:hover {
    transform: none;
    box-shadow:
      0 14px 32px -22px rgba(35, 28, 20, 0.28),
      0 4px 12px -8px rgba(35, 28, 20, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ring-fill {
    transition: none;
    stroke-dashoffset: 0;
  }

  .metric-hero::after {
    animation: none;
  }

  [data-reveal].is-in .metric-card:nth-child(n) {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Food checker
   -------------------------------------------------------------------------- */

.checker {
  margin-top: 26px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  padding: 22px;
  box-shadow: var(--shadow-card);
  max-width: 520px;
}

.checker label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.checker-row { display: flex; gap: 10px; }

.checker input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.checker input::placeholder { color: var(--textmuted); }

.checker input:focus-visible {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px var(--interactive-ring);
}

.checker-hint { margin-top: 12px; font-size: 0.82rem; color: var(--textmuted); }

.checker-hint button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 0;
  background: none;
  padding: 4px 8px;
  font-size: inherit;
  font-weight: 600;
  color: var(--terracotta);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checker-hint button:hover {
  background: var(--terracotta-light);
  border-radius: 8px;
  text-decoration: none;
}

.checker-out:empty { display: none; }

.checker-out {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--linen);
  font-size: 0.92rem;
  line-height: 1.5;
}

.checker-out strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.checker-out .triage { margin: 10px 0 0; }
.checker-out p { color: var(--textmuted); font-size: 0.86rem; margin-top: 6px; }

.checker-out.level-lethal,
.checker-out.level-severe { background: var(--danger-tint); border-color: rgba(192, 69, 58, 0.3); }
.checker-out.level-moderate { background: var(--terracotta-light); border-color: rgba(193, 99, 63, 0.3); }
.checker-out.level-mild { background: var(--sun); border-color: rgba(107, 84, 16, 0.25); }
.checker-out.level-safe { background: var(--sage-tint); border-color: rgba(62, 107, 76, 0.3); }
.checker-out.level-unknown { background: var(--linen); }

/* --------------------------------------------------------------------------
   Premium service cards (Behance-inspired bento)
   -------------------------------------------------------------------------- */

.service-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  align-items: stretch;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  transition:
    transform 280ms var(--ease),
    box-shadow 280ms var(--ease),
    border-color 280ms var(--ease);
}

.service-card--featured {
  grid-column: span 8;
  grid-row: span 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 480px;
}

.service-card--wide {
  grid-column: span 8;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  min-height: 280px;
}

.service-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-card);
  border-color: rgba(47, 106, 74, 0.22);
}

.service-card__media {
  position: relative;
  overflow: hidden;
  background: var(--sage-mist);
  aspect-ratio: 16 / 11;
  min-height: 200px;
}

.service-card--featured .service-card__media,
.service-card--wide .service-card__media {
  min-height: 100%;
  height: 100%;
}

.service-card__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 520ms var(--ease);
}

.service-card:hover .service-card__media img {
  transform: scale(1.05);
}

.service-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(35, 28, 20, 0.12) 100%);
  pointer-events: none;
}

.service-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 26px 30px;
  flex: 1;
}

.service-card--featured .service-card__body,
.service-card--wide .service-card__body {
  justify-content: center;
  padding: 36px 34px;
}

.service-card__tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sage-tint);
  color: var(--sage-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-card h3 {
  font-size: clamp(1.28rem, 2vw, 1.5rem);
  letter-spacing: -0.03em;
}

.service-card--featured h3 {
  font-size: clamp(1.75rem, 2.8vw, 2.45rem);
  max-width: 12ch;
}

.service-card p {
  color: var(--textmuted);
  font-size: 0.98rem;
  line-height: 1.55;
  flex: 1;
}

.service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  min-height: 44px;
  padding: 0 4px;
  width: fit-content;
  color: var(--terracotta);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: gap 220ms var(--ease), color 220ms var(--ease);
}

.service-card__cta svg {
  width: 18px;
  height: 18px;
  transition: transform 220ms var(--ease);
}

.service-card__cta:hover {
  color: var(--terracotta-dark);
  gap: 12px;
}

.service-card__cta:hover svg,
.service-card:hover .service-card__cta svg {
  transform: translateX(4px);
}


.feature-spotlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  margin: 8px 0 88px;
  align-items: stretch;
  perspective: 1600px;
}

.spotlight-card {
  --spot-accent: var(--sage);
  --spot-tilt: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(180deg, #fffefb 0%, #f7faf7 100%);
  border: 1px solid rgba(35, 28, 20, 0.08);
  border-radius: 32px;
  box-shadow:
    0 18px 40px -28px rgba(35, 28, 20, 0.28),
    0 4px 14px -8px rgba(35, 28, 20, 0.08);
  transform: translateY(0);
  transform-origin: 50% 85%;
  transition:
    transform 420ms var(--ease),
    box-shadow 420ms var(--ease),
    border-color 420ms var(--ease);
  animation: spotlight-float 5.8s ease-in-out infinite;
  will-change: transform;
}

.spotlight-card--chat { --spot-accent: #3e6b4c; --spot-tilt: 0deg; animation-delay: 0s; }
.spotlight-card--scan { --spot-accent: #c1633f; --spot-tilt: 0deg; animation-delay: 0.35s; }
.spotlight-card--wag { --spot-accent: #3e6b4c; --spot-tilt: 0deg; animation-delay: 0.7s; }
.spotlight-card--food { --spot-accent: #c1633f; --spot-tilt: 0deg; animation-delay: 1.05s; }

.spotlight-card--tilt-l,
.spotlight-card--tilt-r { margin-top: 0; }

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  z-index: 2;
  background: linear-gradient(90deg, var(--spot-accent), transparent 80%);
  opacity: 0.9;
}

@keyframes spotlight-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.spotlight-card:hover,
.spotlight-card:focus-visible {
  --spot-tilt: 0deg;
  z-index: 3;
  animation: none;
  transform: translateY(-12px) scale(1.03);
  border-color: color-mix(in srgb, var(--spot-accent) 40%, transparent);
  box-shadow:
    0 32px 60px -28px rgba(35, 28, 20, 0.4),
    0 12px 28px -14px rgba(35, 28, 20, 0.16);
}

.spotlight-card:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 4px;
}

.spotlight-card__media {
  position: relative;
  aspect-ratio: 5 / 4;
  min-height: 220px;
  overflow: hidden;
  background: var(--sage-mist);
}

.spotlight-card__media::before {
  content: "";
  position: absolute;
  inset: -30% -40%;
  z-index: 2;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 60%
  );
  transform: translateX(-50%) rotate(8deg);
  opacity: 0;
  transition: opacity 400ms var(--ease), transform 900ms var(--ease);
  pointer-events: none;
}

.spotlight-card:hover .spotlight-card__media::before,
.spotlight-card:focus-visible .spotlight-card__media::before {
  opacity: 1;
  transform: translateX(40%) rotate(8deg);
}

.spotlight-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 48%, rgba(35, 28, 20, 0.28) 100%),
    linear-gradient(135deg, color-mix(in srgb, var(--spot-accent) 18%, transparent), transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.spotlight-card__index {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 254, 251, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  box-shadow: 0 8px 18px -12px rgba(35, 28, 20, 0.35);
}

.spotlight-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.04);
  transition: transform 700ms var(--ease), filter 420ms var(--ease);
  filter: saturate(1.04);
}

.spotlight-card[href="#feature-wag"] .spotlight-card__media img,
.service-card--featured .service-card__media img {
  object-position: center 22%;
}

.spotlight-card:hover .spotlight-card__media img,
.spotlight-card:focus-visible .spotlight-card__media img {
  transform: scale(1.12);
}

.spotlight-card__body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: clamp(20px, 2vw, 26px) clamp(20px, 2vw, 24px) clamp(22px, 2.2vw, 28px);
  flex: 1;
  width: 100%;
  border-top: 3px solid color-mix(in srgb, var(--spot-accent) 45%, transparent);
}

.spotlight-card .service-card__tag {
  align-self: flex-start;
  max-width: 100%;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  line-height: 1.25;
  padding: 7px 12px;
  background: color-mix(in srgb, var(--spot-accent) 14%, #fff);
  color: color-mix(in srgb, var(--spot-accent) 75%, #231c14);
  text-wrap: balance;
}

.spotlight-card h3 {
  width: 100%;
  max-width: none;
  margin: 0;
  font-size: clamp(1.22rem, 1.35vw, 1.48rem);
  letter-spacing: -0.025em;
  line-height: 1.3;
  text-wrap: pretty;
  transition: color 280ms var(--ease);
}

.spotlight-card:hover h3,
.spotlight-card:focus-visible h3 {
  color: color-mix(in srgb, var(--spot-accent) 55%, #231c14);
}

.spotlight-card .service-card__cta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.96rem;
  color: var(--spot-accent);
  gap: 8px;
}

.spotlight-card:hover .service-card__cta svg,
.spotlight-card:focus-visible .service-card__cta svg {
  transform: translateX(5px);
}

@media (min-width: 1280px) {
  .spotlight-card__media {
    aspect-ratio: 1 / 1;
    min-height: 260px;
  }

  .spotlight-card h3 {
    font-size: 1.42rem;
  }
}

@media (min-width: 1600px) {
  .feature-spotlights {
    gap: 30px;
  }

  .spotlight-card {
    border-radius: 36px;
  }

  .spotlight-card__media {
    min-height: 300px;
  }

  .spotlight-card h3 {
    font-size: 1.38rem;
  }
}

@media (max-width: 1024px) {
  .feature-spotlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .spotlight-card {
    animation: none;
    --spot-tilt: 0deg;
  }

  .spotlight-card--tilt-l,
  .spotlight-card--tilt-r {
    margin-top: 0;
  }

  .spotlight-card:nth-child(odd),
  .spotlight-card:nth-child(even) {
    transform: none;
  }

  .spotlight-card:hover,
  .spotlight-card:focus-visible {
    transform: translateY(-8px) scale(1.02);
  }
}

@media (max-width: 560px) {
  .feature-spotlights {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
    gap: 16px;
  }

  .spotlight-card,
  .spotlight-card:nth-child(odd),
  .spotlight-card:nth-child(even) {
    --spot-tilt: 0deg;
    transform: none;
    animation: none;
  }

  .spotlight-card:hover,
  .spotlight-card:focus-visible {
    transform: translateY(-6px);
  }

  .spotlight-card__media {
    aspect-ratio: 16 / 10;
    min-height: 200px;
  }
}

@media (hover: none) {
  .spotlight-card {
    animation: none;
    --spot-tilt: 0deg;
    transform: none;
  }

  .spotlight-card:hover,
  .spotlight-card:focus-visible {
    transform: none;
    box-shadow:
      0 18px 40px -28px rgba(35, 28, 20, 0.28),
      0 4px 14px -8px rgba(35, 28, 20, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spotlight-card {
    animation: none !important;
    --spot-tilt: 0deg;
    transform: none;
    transition: box-shadow 200ms ease, border-color 200ms ease;
  }

  .spotlight-card:hover,
  .spotlight-card:focus-visible {
    transform: none;
  }

  .spotlight-card__media img,
  .spotlight-card__media::before {
    transition: none;
  }
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-4xl);
  box-shadow: var(--shadow-soft);
  height: 100%;
  transition:
    transform 240ms var(--ease),
    box-shadow 240ms var(--ease),
    border-color 240ms var(--ease);
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.plan-featured {
  border-color: transparent;
  background: linear-gradient(180deg, #fff8f4 0%, var(--card) 40%);
  box-shadow: var(--shadow-card);
  position: relative;
  outline: 2px solid var(--terracotta);
  outline-offset: 0;
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan h3 { font-size: 1.3rem; }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.5rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-price span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--textmuted);
  letter-spacing: 0;
}

.plan-alt { margin-top: 8px; font-size: 0.88rem; color: var(--textmuted); }
.plan-alt b { color: var(--terracotta-dark); font-weight: 700; }

.plan ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 11px;
  flex: 1;
}

.plan li { position: relative; padding-left: 28px; font-size: 0.93rem; line-height: 1.45; }

.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.14em;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--sage-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E6B4C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
}

.plan .btn { margin-top: 24px; width: 100%; }
.plan-note { margin-top: 28px; text-align: center; color: var(--textmuted); font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Reviews — premium sage nocturne shell + continuous marquee
   -------------------------------------------------------------------------- */

.reviews {
  padding-top: 40px;
  padding-bottom: 40px;
}

.reviews-shell {
  position: relative;
  overflow: hidden;
  padding: 56px 28px 0;
  border-radius: clamp(28px, 3.5vw, 44px);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(221, 232, 223, 0.18), transparent 58%),
    radial-gradient(70% 50% at 12% 80%, rgba(233, 217, 168, 0.1), transparent 55%),
    linear-gradient(165deg, #1a3326 0%, #243f30 42%, #1e3829 100%);
  border: 1px solid rgba(221, 232, 223, 0.14);
  box-shadow:
    0 36px 72px -40px rgba(35, 28, 20, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.reviews-head {
  max-width: 560px;
  margin: 0 auto 36px;
  text-align: center;
  padding-inline: 20px;
}

.reviews-head .eyebrow {
  justify-content: center;
  color: var(--sun);
}

.reviews-head h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
  color: #f7faf7;
}

.reviews-slider {
  position: relative;
  z-index: 2;
  margin-inline: 0;
}

.reviews-marquee {
  overflow: hidden;
  padding: 12px 0 18px;
  /* Soft fade only — no curved clip cutting cards */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 3%,
    #000 97%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 3%,
    #000 97%,
    transparent 100%
  );
}

.reviews-track {
  display: flex;
  width: max-content;
  gap: 24px;
  padding: 8px 20px;
  overflow: visible;
  scroll-snap-type: none;
}

.reviews-track.is-marquee {
  animation: reviews-marquee 48s linear infinite;
  will-change: transform;
}

.reviews-marquee:hover .reviews-track.is-marquee,
.reviews-track.is-marquee.is-paused {
  animation-play-state: paused;
}

@keyframes reviews-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-track.is-marquee {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    max-width: 920px;
    margin-inline: auto;
    justify-content: center;
  }

  .reviews-marquee {
    -webkit-mask-image: none;
    mask-image: none;
    overflow: visible;
  }
}

.review-card {
  flex: 0 0 min(360px, 78vw);
  width: min(360px, 78vw);
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 30px 28px 28px;
  background:
    linear-gradient(180deg, #fffefb 0%, #f4f8f4 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 24px;
  box-shadow:
    0 18px 40px -24px rgba(8, 16, 12, 0.55),
    0 4px 14px -8px rgba(8, 16, 12, 0.25);
  transform: none;
  transition:
    transform 260ms var(--ease),
    box-shadow 260ms var(--ease),
    border-color 260ms var(--ease);
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 217, 168, 0.55);
  box-shadow:
    0 24px 48px -22px rgba(8, 16, 12, 0.6),
    0 8px 20px -10px rgba(8, 16, 12, 0.3);
}

.review-quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.8;
  color: var(--sage);
}

.review-card h3 {
  margin-top: 4px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.review-card > p:not(.review-quote) {
  margin-top: 12px;
  color: var(--textmuted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.review-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(35, 28, 20, 0.16);
}

.review-author strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.review-author span {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.reviews-dots {
  display: none;
}

.reviews-dots button {
  display: none;
}

.reviews-stage {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 0;
  margin-top: 0;
  padding: 12px 0 28px;
  pointer-events: none;
}

.reviews-watermark {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(3.6rem, 9vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.85;
  white-space: nowrap;
  color: rgba(221, 232, 223, 0.16);
  text-transform: lowercase;
  user-select: none;
  z-index: 1;
}

.reviews-peek-frame {
  position: relative;
  z-index: 2;
  width: min(360px, 56%);
  height: clamp(220px, 28vw, 280px);
  overflow: hidden;
  border-radius: 200px 200px 0 0;
  background: #e8dccf;
  box-shadow:
    0 -12px 36px -18px rgba(35, 28, 20, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.reviews-peek {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 18%;
  opacity: 1;
  filter: saturate(1.02) contrast(1.02);
  -webkit-mask-image: none;
  mask-image: none;
}

/* --------------------------------------------------------------------------
   Closing CTA â€” premium auto slideshow
   -------------------------------------------------------------------------- */

.close-cta {
  padding: 48px 0 120px;
}

.close-wrap {
  width: min(1360px, calc(100% - 32px));
}

.close-inner {
  position: relative;
  overflow: hidden;
  min-height: clamp(520px, 72vh, 720px);
  padding: clamp(56px, 8vw, 96px) clamp(28px, 6vw, 72px);
  border-radius: clamp(28px, 4vw, 48px);
  color: #fff;
  text-align: center;
  box-shadow:
    0 40px 80px -36px rgba(35, 28, 20, 0.45),
    0 12px 28px -16px rgba(35, 28, 20, 0.18);
  display: grid;
  place-items: center;
  isolation: isolate;
}

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

.close-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(1.06) contrast(1.04);
  opacity: 0;
  transform: scale(1.08);
  transition:
    opacity 1.1s var(--ease),
    transform 7.5s linear;
  will-change: opacity, transform;
}

.close-photo.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.close-photo.is-leaving {
  opacity: 0;
  transform: scale(1.04);
  z-index: 0;
}

.close-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(15, 32, 22, 0.28) 0%, rgba(15, 32, 22, 0.55) 48%, rgba(15, 32, 22, 0.78) 100%),
    radial-gradient(80% 70% at 50% 40%, transparent 20%, rgba(9, 14, 11, 0.35) 100%);
  pointer-events: none;
}

.close-copy {
  position: relative;
  z-index: 2;
  max-width: 740px;
}

html:not(.js-reveal) .close-copy {
  animation: close-copy-in 700ms var(--ease) both;
}

.close-eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.close-inner h2 {
  max-width: 18ch;
  margin-inline: auto;
  font-size: clamp(2.1rem, 4.4vw, 3.55rem);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.close-copy > p:not(.close-eyebrow) {
  margin: 18px auto 32px;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.close-inner .btn-primary {
  background: #fff;
  color: var(--terracotta-dark);
  min-height: 56px;
  padding: 0 34px;
  box-shadow: 0 16px 32px -18px rgba(0, 0, 0, 0.45);
}

.close-inner .btn-primary:hover {
  background: var(--sun);
  color: var(--terracotta-dark);
  transform: translateY(-2px);
}

.close-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(9, 14, 11, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.close-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.45);
  transition:
    width 280ms var(--ease),
    background 280ms var(--ease),
    transform 280ms var(--ease);
}

.close-dots button.is-active {
  width: 28px;
  background: #fff;
}

.close-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(-50%);
  transition:
    background 240ms var(--ease),
    transform 240ms var(--ease),
    border-color 240ms var(--ease);
}

.close-nav svg {
  width: 20px;
  height: 20px;
}

.close-nav:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
}

.close-nav--prev { left: 18px; }
.close-nav--next { right: 18px; }

@keyframes close-copy-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  .close-inner {
    min-height: clamp(460px, 68vh, 620px);
    padding: 56px 28px 72px;
  }

  .close-nav {
    width: 42px;
    height: 42px;
  }

  .close-nav--prev { left: 12px; }
  .close-nav--next { right: 12px; }
}

@media (max-width: 560px) {
  .close-cta { padding: 28px 0 88px; }

  .close-wrap {
    width: calc(100% - 20px);
  }

  .close-inner {
    min-height: 440px;
    border-radius: 28px;
    padding: 48px 22px 68px;
  }

  .close-nav {
    display: none;
  }

  .close-dots {
    bottom: 16px;
  }
}

@media (hover: none) {
  .close-nav:hover {
    background: rgba(255, 255, 255, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .close-photo {
    transition: opacity 200ms ease;
    transform: none !important;
  }

  .close-copy {
    animation: none;
  }

  .close-dots button {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-section {
  position: relative;
}

.faq-section::before {
  content: "";
  position: absolute;
  inset: 10% 50% auto auto;
  width: min(420px, 40vw);
  height: min(420px, 40vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 106, 74, 0.1), transparent 68%);
  pointer-events: none;
  transform: translateX(40%);
}

.faq-wrap { max-width: 820px; position: relative; }

.faq-head h2 {
  max-width: 16ch;
}

.faq-list {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid rgba(35, 28, 20, 0.08);
  border-radius: 22px;
  background: rgba(255, 254, 251, 0.72);
  box-shadow: 0 10px 28px -22px rgba(35, 28, 20, 0.28);
  overflow: hidden;
  transition:
    transform 280ms var(--ease),
    box-shadow 280ms var(--ease),
    border-color 280ms var(--ease),
    background 280ms var(--ease);
}

.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 106, 74, 0.2);
  box-shadow: 0 18px 36px -22px rgba(35, 28, 20, 0.3);
}

.faq-item.is-open {
  background: var(--card);
  border-color: rgba(47, 106, 74, 0.28);
  box-shadow: var(--shadow-soft);
}

.faq-item h3 { font-size: 1.08rem; letter-spacing: -0.01em; margin: 0; }

.faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  padding: 18px 20px;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.faq-chevron {
  width: 36px;
  height: 36px;
  padding: 7px;
  flex-shrink: 0;
  color: var(--terracotta-dark);
  border-radius: 50%;
  background: var(--terracotta-light);
  transition:
    transform 360ms var(--ease),
    background 280ms var(--ease),
    color 280ms var(--ease);
}

.faq-item button[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  background: var(--terracotta);
  color: #fff;
}

.faq-panel {
  padding: 0 20px 20px;
  color: var(--textmuted);
  max-width: 68ch;
  overflow: hidden;
}

.faq-panel[hidden] { display: none; }

.faq-panel:not([hidden]) {
  animation: faq-panel-in 380ms var(--ease);
}

.faq-panel a { color: var(--terracotta); font-weight: 600; text-underline-offset: 3px; }

@keyframes faq-panel-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .faq-item button {
    min-height: 60px;
    padding: 14px 16px;
    gap: 14px;
  }

  .faq-panel {
    padding: 0 16px 16px;
  }

  .faq-chevron {
    width: 32px;
    height: 32px;
    padding: 6px;
  }
}

@media (hover: none) {
  .faq-item:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-chevron,
  .checker--premium {
    transition: none;
  }

  .faq-panel:not([hidden]),
  .checker--premium .checker-out {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--card);
  color: var(--ink);
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand img {
  height: 52px;
  width: auto;
}

.footer-brand p {
  color: var(--textmuted);
  margin-top: 16px;
  max-width: 34ch;
  font-size: 0.94rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease), background var(--t) var(--ease);
}

.footer-social-link:hover {
  border-color: var(--interactive-border);
  color: var(--terracotta);
  background: var(--card);
  text-decoration: none;
}

.footer-social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-col h2 {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--textmuted);
  margin-bottom: 6px;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.94rem;
}

.footer-col a:hover {
  color: var(--terracotta);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-col--support {
  min-width: 0;
}

.footer-support-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.footer-support-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}

.footer-support-card:hover {
  border-color: var(--interactive-border);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
  color: var(--ink);
  text-decoration: none;
}

.footer-support-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 0.75rem;
}

.footer-support-icon--mail {
  background: rgba(193, 99, 63, 0.1);
  color: var(--terracotta);
}

.footer-support-icon--phone {
  background: rgba(245, 230, 184, 0.45);
  color: var(--terracotta);
}

.footer-support-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.footer-support-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--textmuted);
}

.footer-support-value {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  word-break: break-word;
}

.footer-support-meta {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--textmuted);
}

.footer-company-links {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.footer-company-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.94rem;
}

.footer-company-links a:hover {
  color: var(--terracotta);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-disclaimer {
  margin-top: 44px;
  padding: 18px 22px;
  border-radius: var(--radius-2xl);
  background: var(--peach);
  color: #6d3d26;
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--textmuted);
  font-size: 0.88rem;
}

.footer-bottom a { color: inherit; }

/* --------------------------------------------------------------------------
   Legal
   -------------------------------------------------------------------------- */

.legal { padding: 72px 0 96px; }
.legal-wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.legal-meta { margin-top: 14px; color: var(--textmuted); font-size: 0.92rem; }
.legal h2 { font-size: 1.3rem; margin-top: 44px; }
.legal h3 { font-size: 1.05rem; margin-top: 28px; }
.legal p, .legal li { color: var(--ink); margin-top: 14px; line-height: 1.68; }
.legal ul, .legal ol { margin: 6px 0 0; padding-left: 22px; }
.legal a { color: var(--terracotta); font-weight: 600; text-underline-offset: 3px; }

.legal table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.legal th, .legal td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border: 1px solid var(--border);
}

.legal th {
  background: var(--sage-tint);
  font-family: var(--font-display);
  font-weight: 600;
}

.legal-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.legal-identity {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 20px 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.legal-identity-row {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: 12px 20px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.legal-identity-row:first-child {
  border-top: 0;
}

.legal-identity-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--textmuted);
  padding-top: 2px;
}

.legal-identity-value {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
}

.legal-identity-value a {
  color: var(--terracotta);
  font-weight: 700;
  text-decoration: none;
}

.legal-identity-value a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-identity-note {
  margin-top: 8px;
  color: var(--textmuted);
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (max-width: 560px) {
  .legal-identity-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 16px;
  }
}

.callout {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(192, 69, 58, 0.28);
  background: var(--danger-tint);
}

.callout p { margin-top: 0; color: #7d2a23; }
.callout p + p { margin-top: 12px; }
.callout strong { font-family: var(--font-display); }

.todo {
  background: var(--sun);
  border-bottom: 2px dotted #a08528;
  padding: 0 4px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Motion â€” premium scroll reveals (transform/opacity only)
   Inspired by high-end scroll choreography; brand/layout unchanged.
   -------------------------------------------------------------------------- */

:root {
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-dur: 920ms;
  --motion-dur-fast: 720ms;
  --motion-rise: 42px;
  --motion-slide: 48px;
}

/* Only hide when JS has armed the reveal system. Without this gate, a
   script failure would leave the marketing page blank forever. */
html.js-reveal [data-reveal]:not(.is-settled),
html.js-reveal [data-reveal-stagger]:not(.is-settled) > * {
  opacity: var(--drift-o, 0);
  transform: translate3d(
    var(--drift-x, 0px),
    var(--drift-y, var(--motion-rise)),
    0
  ) scale(var(--drift-s, 0.985));
  will-change: opacity, transform;
  transition: none;
}

html.js-reveal [data-reveal][data-motion="choreograph"]:not(.is-settled) {
  opacity: 1;
  transform: none;
  will-change: auto;
}

html.js-reveal [data-reveal][data-motion="choreograph"]:not(.is-settled) > .eyebrow,
html.js-reveal [data-reveal][data-motion="choreograph"]:not(.is-settled) > h1,
html.js-reveal [data-reveal][data-motion="choreograph"]:not(.is-settled) > h2,
html.js-reveal [data-reveal][data-motion="choreograph"]:not(.is-settled) > h3,
html.js-reveal [data-reveal][data-motion="choreograph"]:not(.is-settled) > p,
html.js-reveal [data-reveal][data-motion="choreograph"]:not(.is-settled) > .hero-lede,
html.js-reveal [data-reveal][data-motion="choreograph"]:not(.is-settled) > .hero-actions,
html.js-reveal [data-reveal][data-motion="choreograph"]:not(.is-settled) > .hero-assurance,
html.js-reveal [data-reveal][data-motion="choreograph"]:not(.is-settled) > .btn,
html.js-reveal [data-reveal][data-motion="choreograph"]:not(.is-settled) > ul,
html.js-reveal [data-reveal][data-motion="choreograph"]:not(.is-settled) > .feature-list,
html.js-reveal [data-reveal][data-motion="choreograph"]:not(.is-settled) > .checker,
html.js-reveal [data-reveal][data-motion="choreograph"]:not(.is-settled) > .close-copy,
html.js-reveal [data-reveal][data-motion="choreograph"]:not(.is-settled) > .close-dots,
html.js-reveal [data-reveal][data-motion="choreograph"]:not(.is-settled) > .close-nav {
  opacity: var(--drift-o, 0);
  transform: translate3d(0, var(--drift-y, 28px), 0);
  will-change: opacity, transform;
  transition: none;
}

[data-reveal].is-settled,
[data-reveal-stagger].is-settled > * {
  will-change: auto;
}

[data-reveal][data-motion="choreograph"].is-settled > .eyebrow,
[data-reveal][data-motion="choreograph"].is-settled > h1,
[data-reveal][data-motion="choreograph"].is-settled > h2,
[data-reveal][data-motion="choreograph"].is-settled > h3,
[data-reveal][data-motion="choreograph"].is-settled > p,
[data-reveal][data-motion="choreograph"].is-settled > .hero-lede,
[data-reveal][data-motion="choreograph"].is-settled > .hero-actions,
[data-reveal][data-motion="choreograph"].is-settled > .hero-assurance,
[data-reveal][data-motion="choreograph"].is-settled > .btn,
[data-reveal][data-motion="choreograph"].is-settled > ul,
[data-reveal][data-motion="choreograph"].is-settled > .feature-list,
[data-reveal][data-motion="choreograph"].is-settled > .checker,
[data-reveal][data-motion="choreograph"].is-settled > .close-copy,
[data-reveal][data-motion="choreograph"].is-settled > .close-dots,
[data-reveal][data-motion="choreograph"].is-settled > .close-nav {
  will-change: auto;
}

[data-reveal-stagger] > * {
  --stagger: 0;
}

[data-reveal-stagger] > *:nth-child(1) { --stagger: 0; }
[data-reveal-stagger] > *:nth-child(2) { --stagger: 1; }
[data-reveal-stagger] > *:nth-child(3) { --stagger: 2; }
[data-reveal-stagger] > *:nth-child(4) { --stagger: 3; }
[data-reveal-stagger] > *:nth-child(5) { --stagger: 4; }
[data-reveal-stagger] > *:nth-child(6) { --stagger: 5; }
[data-reveal-stagger] > *:nth-child(7) { --stagger: 6; }
[data-reveal-stagger] > *:nth-child(8) { --stagger: 7; }
[data-reveal-stagger] > *:nth-child(9) { --stagger: 8; }
[data-reveal-stagger] > *:nth-child(10) { --stagger: 9; }
[data-reveal-stagger] > *:nth-child(11) { --stagger: 10; }
[data-reveal-stagger] > *:nth-child(12) { --stagger: 11; }

@media (max-width: 860px) {
  :root {
    --motion-rise: 28px;
    --motion-slide: 28px;
  }
}

@media (max-width: 560px) {
  :root {
    --motion-rise: 20px;
    --motion-slide: 16px;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-inner { padding: 40px 32px 48px; }
  .page-home .hero-inner { padding-top: calc(var(--nav-h) + 16px); }
  .hero-copy, .hero h1, .hero-lede { max-width: none; }
  .feature-spotlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 72px;
  }

  .spotlight-card {
    border-radius: 28px;
  }

  .spotlight-card__media {
    aspect-ratio: 16 / 11;
    min-height: 240px;
  }

  .spotlight-card h3 {
    font-size: clamp(1.28rem, 2.2vw, 1.42rem);
  }

  .service-card,
  .service-card--featured,
  .service-card--wide {
    grid-column: auto;
    grid-row: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .service-card--featured .service-card__media,
  .service-card--wide .service-card__media {
    min-height: 220px;
    height: 220px;
  }

  .service-card--featured .service-card__body,
  .service-card--wide .service-card__body {
    padding: 28px 26px 30px;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .photo-orb { width: 120px; height: 120px; }
}

@media (max-width: 900px) {
  .service-bento {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .plan-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .menu-toggle { display: grid; margin-left: auto; }

  .feature-inner { grid-template-columns: 1fr; gap: 40px; }
  .feature-row-alt .feature-visual { order: 0; }

  .section { padding: 72px 0; }
  .close-cta { padding: 36px 0 88px; }
  .feature-row + .feature-row { margin-top: 64px; }
  .section-head { margin-bottom: 40px; }
  .device-tilt:not(.demo-device) { transform: none; }
  .photo-orb { display: none; }
  .feature-stage .feature-orb { display: block; }

  .reviews-shell {
    border-radius: 28px;
    padding: 40px 16px 0;
  }

  .reviews-track {
    gap: 16px;
  }

  .review-card {
    flex-basis: min(300px, 72vw);
    width: min(300px, 72vw);
  }

  .reviews-watermark {
    font-size: clamp(3.2rem, 13vw, 5.5rem);
  }

  .reviews-peek-frame {
    width: min(300px, 70%);
    height: 230px;
  }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  :root { --nav-h: 92px; }
  .logo img,
  .logo__img { height: 58px; }
  .wrap { width: calc(100% - 28px); }
  .nav-inner { padding: 10px 10px 10px 18px; }
  .hero-inner { padding: 28px 20px 36px; }
  .page-home .hero-inner { padding: calc(var(--nav-h) + 12px) 20px 36px; }
  .metrics, .footer-grid, .feature-spotlights { grid-template-columns: 1fr; }

  .feature-spotlights {
    gap: 18px;
    margin-bottom: 56px;
  }

  .spotlight-card__media {
    aspect-ratio: 16 / 10;
    min-height: 210px;
  }

  .spotlight-card__body {
    padding: 22px 20px 24px;
  }

  .spotlight-card h3 {
    font-size: 1.28rem;
  }

  .reviews-shell {
    border-radius: 24px;
    padding: 32px 12px 0;
  }

  .reviews-track {
    gap: 14px;
    animation-duration: 40s;
  }

  .review-card {
    flex-basis: min(280px, 82vw);
    width: min(280px, 82vw);
    min-height: 260px;
    padding: 22px 20px;
  }

  .reviews-stage {
    padding: 16px 0 28px;
  }

  .reviews-peek-frame {
    width: min(260px, 78%);
    height: 200px;
  }

  .service-card,
  .service-card--featured,
  .service-card--wide {
    grid-column: auto;
  }

  .service-card--featured .service-card__media,
  .service-card--wide .service-card__media {
    height: 200px;
    min-height: 200px;
  }
  .checker-row { flex-direction: column; }
  .checker-row .btn { width: 100%; }
  .close-inner {
    padding: 48px 22px 68px;
    min-height: 440px;
  }
  .announce { font-size: 0.84rem; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
  .section h2, .close-inner h2 { font-size: clamp(1.55rem, 6.4vw, 1.95rem); }
  .hero-lede { font-size: 1rem; }
  .plan-price { font-size: 2rem; }
  .metric-value { font-size: 2.4rem; }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 20px); }
  .logo img,
  .logo__img { height: 52px; }
  .btn { padding: 0 18px; }
  .checker, .metric-card, .service-card__body, .plan { padding: 16px; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .hero-frame { min-height: 0; }
  .hero-inner { padding: 32px 28px 36px; }
  .page-home .hero-inner { padding-top: calc(var(--nav-h) + 8px); }
  .hero h1 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); }
  .announce { display: none; }
  body { --announce-h: 0px; }
}

@media (hover: none) {
  .btn:hover, .service-card:hover, .spotlight-card:hover, .plan:hover, .review-card:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
  }

  .service-card:hover .service-card__media img,
  .spotlight-card:hover .spotlight-card__media img {
    transform: none;
  }
  .text-link:hover svg { transform: none; }
}

@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;
    scroll-behavior: auto !important;
  }

  .device-tilt:not(.demo-device) { transform: none; }

  [data-reveal],
  [data-reveal].is-settled,
  [data-reveal-stagger] > *,
  [data-reveal-stagger].is-settled > *,
  [data-reveal][data-motion="choreograph"] > .eyebrow,
  [data-reveal][data-motion="choreograph"] > h1,
  [data-reveal][data-motion="choreograph"] > h2,
  [data-reveal][data-motion="choreograph"] > h3,
  [data-reveal][data-motion="choreograph"] > p,
  [data-reveal][data-motion="choreograph"] > .hero-lede,
  [data-reveal][data-motion="choreograph"] > .hero-actions,
  [data-reveal][data-motion="choreograph"] > .hero-assurance,
  [data-reveal][data-motion="choreograph"] > .btn,
  [data-reveal][data-motion="choreograph"] > ul,
  [data-reveal][data-motion="choreograph"] > .feature-list,
  [data-reveal][data-motion="choreograph"] > .checker,
  [data-reveal][data-motion="choreograph"] > .close-copy,
  [data-reveal][data-motion="choreograph"] > .close-dots,
  [data-reveal][data-motion="choreograph"] > .close-nav {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media print {
  .announce, .site-nav, .mobile-nav, .close-cta, .skip-link { display: none !important; }
  body { background: #fff; }
  .legal { padding: 0; }
}

/* ==========================================================================
   Feature demos — /demo/*
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.demo-page {
  background: var(--linen);
  color: var(--ink);
  min-height: 100vh;
}

.demo-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 241, 230, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.demo-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
}

.demo-header__logo img {
  height: 2.75rem;
  width: auto;
}

.demo-header__center {
  text-align: center;
}

.demo-header__title {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.demo-header__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.demo-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--sage-tint);
  color: var(--sage-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-main {
  padding: 1.5rem 0 3rem;
}

.demo-chat-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.demo-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-soft);
}

.demo-panel + .demo-panel {
  margin-top: 0.85rem;
}

.demo-panel__label {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--textmuted);
}

.demo-pet-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.demo-pet-chip img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sage-tint);
}

.demo-pet-chip strong {
  display: block;
  font-size: 0.95rem;
}

.demo-pet-chip span {
  display: block;
  font-size: 0.78rem;
  color: var(--textmuted);
}

.demo-session {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.85rem;
  border: none;
  border-radius: 1rem;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 0.88rem;
  color: var(--textmuted);
  cursor: pointer;
  transition: background var(--t) var(--ease);
}

.demo-session.is-active {
  background: var(--terracotta-light);
  color: var(--ink);
  font-weight: 600;
}

.demo-session:hover {
  background: color-mix(in srgb, var(--terracotta-light) 55%, var(--card));
}

.demo-prompts {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.demo-prompt {
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  text-align: left;
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}

.demo-prompt:hover {
  border-color: var(--terracotta);
  background: var(--terracotta-light);
}

.demo-disclaimer {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--textmuted);
}

.demo-quota {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink);
}

.demo-quota strong {
  color: var(--terracotta-dark);
  font-size: 1.1rem;
}

.demo-quota-hint {
  margin: 8px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--textmuted);
}

.demo-limit-banner {
  margin-top: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(47, 106, 74, 0.22);
  border-radius: var(--radius-2xl);
  background: var(--sage-tint);
  text-align: center;
}

.demo-limit-banner__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.demo-limit-banner__text {
  margin: 8px 0 14px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--textmuted);
}

.demo-compose-limit {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--sage-tint);
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink);
}

.demo-compose-limit a {
  color: var(--sage-dark);
  font-weight: 700;
}

.demo-chat-compose.is-locked {
  opacity: 0.55;
  pointer-events: none;
}

.demo-chat-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.demo-chat-input:disabled {
  background: var(--linen);
  cursor: not-allowed;
}

.demo-prompt:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.demo-msg__limit-note {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--textmuted);
}

.demo-msg__limit-note a {
  color: var(--sage-dark);
  font-weight: 700;
}

.demo-chat-card {
  display: flex;
  flex-direction: column;
  min-height: min(78vh, 720px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.demo-chat-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fffefb 0%, #f8fbf9 100%);
}

.demo-chat-card__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}

.demo-chat-card__sub {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--textmuted);
  max-width: 36ch;
}

.demo-live-dot {
  width: 10px;
  height: 10px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(47, 106, 74, 0.18);
  flex-shrink: 0;
}

.demo-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--linen);
}

.demo-msg {
  display: flex;
}

.demo-msg--user {
  justify-content: flex-end;
}

.demo-msg--assistant {
  justify-content: flex-start;
}

.demo-msg__bubble {
  max-width: min(85%, 520px);
  padding: 0.85rem 1rem;
  border-radius: 1.35rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.demo-msg--user .demo-msg__bubble {
  background: var(--terracotta);
  color: #fff;
  border-bottom-right-radius: 0.35rem;
}

.demo-msg--assistant .demo-msg__bubble {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  border-bottom-left-radius: 0.35rem;
}

.demo-msg__text {
  margin: 0;
}

.demo-msg__time {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.68rem;
  opacity: 0.7;
}

.demo-triage {
  display: inline-block;
  margin-top: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-triage--emergency { background: var(--danger-tint); color: var(--danger); }
.demo-triage--urgent { background: #f5f0d6; color: #6b5a12; }
.demo-triage--monitor { background: var(--terracotta-light); color: var(--terracotta-dark); }
.demo-triage--routine { background: var(--sage-tint); color: var(--sage-dark); }

.demo-msg__bubble--typing {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--sage-tint);
  border-color: transparent;
}

.demo-typing-dots {
  display: inline-flex;
  gap: 0.25rem;
}

.demo-typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terracotta);
  animation: demo-bounce 1.2s infinite ease-in-out;
}

.demo-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.demo-typing-dots span:nth-child(3) { animation-delay: 0.3s; }

.demo-typing-label {
  font-size: 0.82rem;
  color: var(--textmuted);
}

@keyframes demo-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.demo-chat-compose {
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--border);
  background: #fff;
}

.demo-chat-form {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  min-width: 0;
  padding: 0.35rem 0.4rem 0.35rem 0.2rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--linen);
  transition:
    border-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease);
}

.demo-chat-form:focus-within {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px var(--interactive-ring);
  background: #fff;
}

.demo-chat-tools {
  display: flex;
  flex-shrink: 0;
  gap: 0;
}

.demo-chat-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--textmuted);
  cursor: default;
  opacity: 0.55;
}

.demo-chat-tool svg {
  width: 1.05rem;
  height: 1.05rem;
}

.demo-chat-mic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--textmuted);
  cursor: pointer;
  transition:
    background var(--t) var(--ease),
    color var(--t) var(--ease),
    transform var(--t) var(--ease);
}

.demo-chat-mic:hover:not(:disabled) {
  background: color-mix(in srgb, var(--terracotta-light) 65%, var(--card));
  color: var(--terracotta-dark);
}

.demo-chat-mic.is-listening {
  background: var(--terracotta);
  color: #fff;
}

.demo-chat-mic:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.demo-chat-mic__icon {
  position: relative;
  z-index: 1;
  width: 1.05rem;
  height: 1.05rem;
}

.demo-chat-mic__pulse {
  display: none;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(47, 106, 74, 0.35);
  animation: demo-mic-ping 1.4s ease-out infinite;
}

.demo-chat-mic.is-listening .demo-chat-mic__pulse {
  display: block;
}

@keyframes demo-mic-ping {
  0% { transform: scale(0.85); opacity: 0.7; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

.demo-chat-input {
  flex: 1;
  min-width: 0;
  min-height: 2.25rem;
  max-height: 120px;
  padding: 0.55rem 0.35rem;
  border: none;
  border-radius: 0;
  resize: none;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.4;
  background: transparent;
}

.demo-chat-input:focus {
  outline: none;
}

.demo-chat-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  margin-right: 0.05rem;
  border: none;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  cursor: pointer;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
}

.demo-chat-send:hover:not(:disabled) {
  background: var(--terracotta-dark);
}

.demo-chat-send:active:not(:disabled) {
  transform: scale(0.96);
}

.demo-chat-send svg {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
}

.demo-chat-voice-error {
  margin: 0.45rem 0.5rem 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: #9a4a2c;
}

@media (max-width: 900px) {
  .demo-header__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .demo-header__actions {
    justify-content: center;
  }

  .demo-header__logo {
    justify-self: center;
  }

  .demo-chat-layout {
    grid-template-columns: 1fr;
  }

  .demo-chat-sidebar {
    order: 2;
  }

  .demo-chat-stage {
    order: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-typing-dots span {
    animation: none;
    opacity: 0.7;
  }
}

/* --------------------------------------------------------------------------
   Symptom checker flow — /demo/check-pet.html (landing theme)
   -------------------------------------------------------------------------- */

.demo-flow-page {
  background: var(--linen);
}

.demo-flow-main {
  padding-bottom: 4rem;
}

.flow-shell {
  max-width: 620px;
  margin: 0 auto;
  padding: 28px 28px 32px;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(47, 106, 74, 0.07), transparent 55%),
    var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-card);
}

.flow-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 28px;
}

.flow-progress__seg {
  height: 4px;
  border-radius: 999px;
  background: var(--sage-mist);
  transition: background 320ms var(--ease);
}

.flow-progress__seg.is-done {
  background: var(--terracotta);
}

.flow-body {
  min-height: 320px;
}

.flow-panel {
  animation: flow-fade 360ms var(--ease) both;
}

.flow-panel[hidden] {
  display: none;
}

.flow-intro {
  text-align: center;
}

.flow-intro .eyebrow {
  justify-content: center;
}

.flow-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
}

.flow-title--sm {
  font-size: clamp(1.45rem, 3.5vw, 1.75rem);
  text-align: left;
}

.flow-subtitle {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-style: italic;
  color: var(--terracotta-dark);
  line-height: 1.45;
}

.flow-lede {
  margin: 20px auto 0;
  max-width: 46ch;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--textmuted);
}

.flow-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.flow-start svg {
  width: 18px;
  height: 18px;
}

.flow-start--full {
  width: 100%;
}

.flow-trust {
  margin: 18px 0 0;
  font-size: 0.88rem;
  color: var(--textmuted);
}

.flow-stars {
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-right: 6px;
}

.flow-fine {
  margin: 24px 0 0;
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--textmuted);
  text-align: center;
}

.flow-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 0;
  border: none;
  background: none;
  min-height: 44px;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
}

.flow-back svg {
  width: 16px;
  height: 16px;
}

.flow-step-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.8vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.flow-step-hint {
  margin: 10px 0 22px;
  font-size: 0.95rem;
  color: var(--textmuted);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.flow-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 118px;
  padding: 18px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--linen);
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition:
    border-color var(--t) var(--ease),
    background var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    transform var(--t) var(--ease);
}

.flow-card:hover {
  border-color: var(--interactive-border);
  box-shadow: var(--shadow-chunky-lift);
  transform: translateY(-2px);
}

.flow-card.is-selected {
  border-color: var(--terracotta);
  background: var(--terracotta-light);
  box-shadow: 0 0 0 3px var(--interactive-ring);
}

.flow-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--terracotta-light);
  color: var(--terracotta-dark);
}

.flow-card__icon svg {
  width: 26px;
  height: 26px;
}

.flow-card__label {
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

.flow-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flow-option {
  width: 100%;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--linen);
  text-align: left;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition:
    border-color var(--t) var(--ease),
    background var(--t) var(--ease),
    transform var(--t) var(--ease);
}

.flow-option:hover {
  border-color: var(--interactive-border);
  background: var(--terracotta-light);
  transform: translateY(-1px);
}

.flow-option.is-selected {
  border-color: var(--terracotta);
  background: var(--terracotta-light);
}

.flow-result__card {
  margin-top: 18px;
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--linen);
  box-shadow: var(--shadow-soft);
}

.flow-result__headline {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.flow-result__body {
  margin: 10px 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--textmuted);
}

.flow-result__watch {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.flow-result__watch-label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}

.flow-result__watch ul,
.flow-result__next ul {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink);
}

.flow-result__next {
  margin-top: 16px;
}

.flow-result__cta {
  margin-top: 24px;
  text-align: center;
}

.flow-link-secondary {
  display: inline-flex;
  margin-top: 14px;
}

.flow-link-secondary--btn {
  display: flex;
  justify-content: center;
  margin: 10px auto 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

@keyframes flow-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .flow-shell {
    padding: 22px 18px 26px;
    border-radius: var(--radius-2xl);
  }

  .flow-grid {
    gap: 10px;
  }

  .flow-card {
    min-height: 104px;
    padding: 14px 10px;
  }

  .flow-card__label {
    font-size: 0.84rem;
  }
}

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

  .flow-card:hover,
  .flow-option:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Image scanner demo — /demo/scanner.html
   -------------------------------------------------------------------------- */

.demo-scanner-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.demo-scan-types {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.demo-scan-type {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--linen);
  text-align: left;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}

.demo-scan-type:hover {
  border-color: var(--interactive-border);
  background: var(--terracotta-light);
}

.demo-scan-type.is-active {
  border-color: var(--terracotta);
  background: var(--terracotta-light);
  color: var(--terracotta-dark);
}

.demo-scan-type:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.demo-scan-tips {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--textmuted);
}

.demo-scanner-card {
  display: flex;
  flex-direction: column;
  min-height: min(78vh, 720px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.demo-scanner-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--linen);
}

.demo-scanner-preview {
  position: relative;
  padding: 1.25rem;
}

.demo-scanner-source {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
  padding: 4px;
  border-radius: 999px;
  background: var(--linen);
  border: 1px solid var(--border);
}

.demo-scanner-source__btn {
  padding: 0.55rem 0.85rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--textmuted);
  cursor: pointer;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}

.demo-scanner-source__btn.is-active {
  background: var(--card);
  color: var(--terracotta-dark);
  box-shadow: var(--shadow-soft);
}

.demo-scanner-source__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.demo-scanner-upload {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px dashed rgba(47, 106, 74, 0.35);
  border-radius: var(--radius-2xl);
  background: rgba(231, 241, 234, 0.45);
  text-align: center;
}

.demo-scanner-upload[hidden] {
  display: none;
}

.demo-scanner-upload__hint {
  margin: 0 0 12px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--textmuted);
}

.demo-scanner-upload__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.demo-scanner-upload__actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.demo-scanner-upload__actions .btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.demo-scanner-idle .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.demo-scanner-frame {
  position: relative;
  margin: 0;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background: #000;
}

.demo-scanner-frame.is-adjusting .demo-scanner-frame__preview,
.demo-scanner-frame.is-adjusting .demo-scanner-frame__label {
  display: none;
}

.demo-scanner-frame__preview {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.demo-scanner-adjust {
  position: relative;
}

.demo-scanner-adjust[hidden] {
  display: none;
}

.demo-scanner-adjust__viewport {
  position: relative;
  height: 320px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  background: #0a100c;
}

.demo-scanner-adjust__viewport.is-dragging {
  cursor: grabbing;
}

.demo-scanner-adjust__img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  pointer-events: none;
  will-change: transform;
}

.demo-scanner-adjust__hint {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(18, 26, 21, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}

.demo-scanner-adjust-bar {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--linen);
  text-align: center;
}

.demo-scanner-adjust-bar[hidden] {
  display: none;
}

.demo-scanner-adjust-bar__text {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: var(--textmuted);
}

.demo-scanner-adjust-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.demo-scanner-zoom {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--t) var(--ease);
}

.demo-scanner-zoom:hover {
  background: var(--sage-tint);
}

.demo-scanner-frame__label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(18, 26, 21, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.demo-scanner-idle {
  margin-top: 1.1rem;
  text-align: center;
}

.demo-scanner-idle p {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--textmuted);
}

.demo-scanner-analyzing {
  position: absolute;
  inset: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: var(--radius-2xl);
  background: rgba(18, 26, 21, 0.55);
  color: #fff;
  font-weight: 600;
}

.demo-scanner-analyzing[hidden] {
  display: none;
}

.demo-scanner-scanline {
  width: 80%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--sage-mist), transparent);
  animation: scanline-move 1.2s ease-in-out infinite;
}

@keyframes scanline-move {
  0%, 100% { transform: translateY(-40px); opacity: 0.4; }
  50% { transform: translateY(40px); opacity: 1; }
}

.demo-scanner-result {
  padding: 1.25rem 1.35rem 1.5rem;
  border-top: 1px solid var(--border);
  background: #fff;
}

.demo-scanner-result[hidden] {
  display: none;
}

.demo-scanner-result__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.demo-scanner-confidence {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--textmuted);
}

.demo-scanner-result__title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.demo-scanner-result__lede {
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--textmuted);
}

.demo-scanner-result__block {
  margin-top: 18px;
}

.demo-scanner-result__label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}

.demo-scanner-result__block ul {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink);
}

.demo-scanner-result__upgrade {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--textmuted);
}

.demo-scanner-result__upgrade a {
  color: var(--sage-dark);
  font-weight: 700;
}

@media (max-width: 900px) {
  .demo-scanner-layout {
    grid-template-columns: 1fr;
  }

  .demo-scanner-sidebar {
    order: 2;
  }

  .demo-scanner-stage {
    order: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-scanner-scanline {
    animation: none;
    opacity: 0.7;
  }
}

/* Camera capture modal */
body.is-camera-open {
  overflow: hidden;
}

.demo-camera {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 16px;
}

.demo-camera[hidden] {
  display: none;
}

.demo-camera__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 24, 18, 0.72);
  backdrop-filter: blur(6px);
}

.demo-camera__dialog {
  position: relative;
  width: min(100%, 480px);
  padding: 16px;
  border-radius: var(--radius-3xl);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.demo-camera__video {
  display: block;
  width: 100%;
  max-height: min(60vh, 420px);
  border-radius: var(--radius-2xl);
  background: #000;
  object-fit: cover;
}

.demo-camera__status {
  margin: 12px 0 0;
  font-size: 0.86rem;
  text-align: center;
  color: var(--textmuted);
}

.demo-camera__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   Daily Wag demo — /demo/daily-wag.html
   -------------------------------------------------------------------------- */

.demo-wag-page .flow-shell--wag {
  max-width: 680px;
}

.flow-progress--wag {
  grid-template-columns: repeat(5, 1fr);
}

.demo-wag-step-label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}

.demo-wag-options {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.demo-wag-options--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demo-wag-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-2xl);
  cursor: pointer;
  transition:
    border-color 220ms var(--ease),
    background 220ms var(--ease),
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.demo-wag-option:hover {
  border-color: var(--interactive-border);
  background: #fffaf6;
}

.demo-wag-option.is-selected {
  border-color: var(--terracotta);
  background: color-mix(in srgb, var(--terracotta-light) 70%, var(--card));
  box-shadow: 0 0 0 1px var(--interactive-ring);
}

.demo-wag-option__emoji {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--terracotta-light) 80%, var(--card));
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--terracotta-dark);
}

.demo-wag-option__label {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
}

.demo-wag-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.demo-wag-scale__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 6px 12px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--terracotta-dark);
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition:
    border-color 220ms var(--ease),
    background 220ms var(--ease),
    transform 220ms var(--ease);
}

.demo-wag-scale__btn span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--textmuted);
  line-height: 1.2;
  text-align: center;
}

.demo-wag-scale__btn:hover {
  border-color: var(--interactive-border);
}

.demo-wag-scale__btn.is-selected {
  border-color: var(--terracotta);
  background: var(--terracotta-light);
  transform: translateY(-2px);
}

.demo-wag-result__lede {
  margin: 10px 0 22px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--textmuted);
}

.demo-wag-metrics {
  width: 100%;
  max-width: none;
  margin-bottom: 20px;
}

.demo-wag-metrics .ring-fill {
  stroke: url(#wag-ring-demo);
  stroke-dasharray: 0 100;
  stroke-dashoffset: 100;
}

.demo-wag-chip--watch {
  background: rgba(201, 162, 39, 0.14);
  color: #8a6d12;
}

.demo-wag-chip--alert {
  background: rgba(193, 99, 63, 0.14);
  color: #9a4a2c;
}

.demo-wag-watch {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-2xl);
  background: rgba(201, 99, 63, 0.06);
  border: 1px solid rgba(201, 99, 63, 0.16);
}

.demo-wag-watch__label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a4a2c;
}

.demo-wag-watch ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.5;
}

.demo-limit-banner--inline {
  margin-bottom: 18px;
}

.feature-cta {
  margin-top: 22px;
}

@media (max-width: 560px) {
  .demo-wag-scale {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .demo-wag-scale__btn {
    padding: 12px 4px 10px;
    font-size: 1.15rem;
  }

  .demo-wag-options--compact {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Hub demos — health file & breed alerts (shared layout)
   -------------------------------------------------------------------------- */

.demo-hub-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.demo-hub-card {
  display: flex;
  flex-direction: column;
  min-height: min(78vh, 720px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.demo-hub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.demo-hub-tab {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--linen);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}

.demo-hub-tab.is-active {
  border-color: var(--terracotta);
  background: var(--terracotta-light);
  color: var(--terracotta-dark);
}

.demo-hub-action {
  width: 100%;
}

.demo-health-body,
.demo-alerts-body {
  flex: 1;
  padding: 1rem 1.1rem 1.25rem;
  overflow: auto;
}

.demo-health-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.demo-health-record {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition:
    border-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    transform var(--t) var(--ease);
}

.demo-health-record:hover:not(:disabled) {
  border-color: rgba(47, 106, 74, 0.35);
  box-shadow: 0 8px 20px -16px rgba(35, 28, 20, 0.35);
}

.demo-health-record:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.demo-health-record__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--sage-tint);
  font-size: 1.1rem;
}

.demo-health-record__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.demo-health-record__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.demo-health-record__type {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}

.demo-health-record__status {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.demo-health-record__status--ok {
  background: rgba(47, 106, 74, 0.1);
  color: var(--sage-dark);
}

.demo-health-record__status--due {
  background: rgba(201, 162, 39, 0.14);
  color: #8a6d12;
}

.demo-health-record__title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.demo-health-record__meta {
  font-size: 0.8rem;
  color: var(--textmuted);
  line-height: 1.4;
}

.demo-health-record__chev {
  flex-shrink: 0;
  color: var(--textmuted);
}

.demo-health-record__chev svg {
  width: 1.1rem;
  height: 1.1rem;
}

.demo-health-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--textmuted);
  font-size: 0.92rem;
}

.demo-health-detail {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.demo-health-detail__row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.demo-health-detail__row dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--textmuted);
}

.demo-health-detail__row dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink);
}

.demo-health-share {
  margin: 1rem 0 1.25rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--linen);
  font-size: 0.9rem;
  line-height: 1.5;
}

.demo-health-share__head {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.demo-health-share__pet {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.demo-health-share__date {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--textmuted);
}

.demo-health-share__section {
  margin-top: 0.85rem;
}

.demo-health-share__section h3 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}

.demo-health-share__section ul {
  margin: 0;
  padding-left: 1.1rem;
}

.demo-health-share__section p {
  margin: 0;
}

.demo-health-share__fine {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--textmuted);
}

.demo-breed-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.demo-breed-pick {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--linen);
  text-align: left;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}

.demo-breed-pick.is-active {
  border-color: var(--terracotta);
  background: var(--terracotta-light);
  color: var(--terracotta-dark);
}

.demo-alerts-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.demo-alerts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.demo-alert-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: #fff;
}

.demo-alert-card--critical {
  border-color: rgba(180, 60, 50, 0.25);
  background: rgba(180, 60, 50, 0.04);
}

.demo-alert-card--warning {
  border-color: rgba(193, 99, 63, 0.25);
  background: rgba(193, 99, 63, 0.04);
}

.demo-alert-card--info {
  border-color: rgba(47, 106, 74, 0.2);
  background: rgba(47, 106, 74, 0.04);
}

.demo-alert-card__icon {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--sage-dark);
}

.demo-alert-card--critical .demo-alert-card__icon {
  color: #b43c32;
}

.demo-alert-card--warning .demo-alert-card__icon {
  color: #c1633f;
}

.demo-alert-card__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.demo-alert-card__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.demo-alert-card__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.demo-alert-card__summary {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink);
}

.demo-alert-card__meta {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--textmuted);
}

.demo-alert-card__cta {
  align-self: center;
  white-space: nowrap;
}

.demo-alert-badge {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-alert-badge--critical {
  background: rgba(180, 60, 50, 0.12);
  color: #9a2e26;
}

.demo-alert-badge--warning {
  background: rgba(193, 99, 63, 0.14);
  color: #9a4a2c;
}

.demo-alert-badge--info {
  background: rgba(47, 106, 74, 0.12);
  color: var(--sage-dark);
}

.demo-alert-detail p {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink);
}

.demo-alert-detail__block {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.demo-alert-detail__label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}

.demo-alert-detail__block ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.demo-alert-detail__actions {
  margin-top: 1.25rem;
}

.demo-modal {
  width: min(520px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: none;
  border-radius: var(--radius-3xl);
  background: transparent;
}

.demo-modal--wide {
  width: min(580px, calc(100vw - 2rem));
}

.demo-modal::backdrop {
  background: rgba(35, 28, 20, 0.45);
  backdrop-filter: blur(4px);
}

.demo-modal__sheet {
  position: relative;
  padding: 1.5rem 1.5rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-card);
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.demo-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--linen);
  color: var(--textmuted);
  cursor: pointer;
}

.demo-modal__close svg {
  width: 1rem;
  height: 1rem;
}

.demo-modal__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}

.demo-modal__title {
  margin: 0.35rem 2rem 0 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.demo-modal__meta {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  color: var(--textmuted);
}

@media (max-width: 900px) {
  .demo-hub-layout {
    grid-template-columns: 1fr;
  }

  .demo-hub-sidebar {
    order: 2;
  }

  .demo-hub-stage {
    order: 1;
  }

  .demo-alert-card {
    grid-template-columns: auto 1fr;
  }

  .demo-alert-card__cta {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .demo-health-detail__row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

