:root {
  color-scheme: light;
  --canvas: #fbf6ee;
  --surface: #fffdf9;
  --ink: #263129;
  --muted: #5f6b63;
  --border: #e3d8cb;
  --primary: #5a5eaa;
  --primary-dark: #464a8b;
  --primary-soft: #ecebfa;
  --accent: #d9795f;
  --accent-soft: #fff0e8;
  --danger: #a23d42;
  --danger-soft: #f9e3e4;
  --shadow: 0 18px 48px rgba(62, 44, 32, .10);
  --shadow-strong: 0 34px 90px rgba(62, 44, 32, .16);
}

* { box-sizing: border-box; }

html {
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body { margin: 0; }

body::before {
  background:
    radial-gradient(circle at 9% 14%, rgba(90, 94, 170, .12), transparent 22rem),
    radial-gradient(circle at 88% 2%, rgba(217, 121, 95, .14), transparent 24rem),
    linear-gradient(135deg, rgba(255, 253, 249, .72), rgba(251, 246, 238, .42));
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

a { color: var(--primary-dark); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.skip-link {
  background: var(--ink);
  color: var(--surface);
  left: 1rem;
  padding: .65rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 10;
}

.skip-link:focus { top: 1rem; }

footer {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 70rem;
  padding: 1.25rem 1.5rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  justify-content: flex-end;
}

.admin-nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 750;
  padding: .45rem .75rem;
  text-decoration: none;
}

.admin-nav a[aria-current="page"] {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

main {
  margin: 0 auto;
  max-width: 72rem;
  min-height: calc(100vh - 12rem);
  padding: 1.5rem 1.5rem 5rem;
}

.legal-page, .status-card, .lost-pet-page, .admin-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.75rem;
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 5vw, 3.5rem);
}

.lost-pet-page { display: grid; gap: 1.25rem; }
.lost-pet-hero {
  align-items: center;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr minmax(10rem, 15rem);
}
.lost-pet-hero h1 {
  font-size: clamp(2.35rem, 7vw, 4.25rem);
  letter-spacing: -.05em;
  line-height: 1;
  margin: .4rem 0;
}
.urgent-label {
  color: var(--danger);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.lost-pet-meta { color: var(--muted); font-size: 1.08rem; }
.lost-pet-photo {
  aspect-ratio: 1;
  border-radius: 1.5rem;
  height: auto;
  object-fit: cover;
  width: 100%;
}
.lost-pet-photo.placeholder {
  align-items: center;
  background: var(--primary-soft);
  display: flex;
  font-size: 4rem;
  justify-content: center;
}
.lost-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lost-panel {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.25rem;
}
.latest-sighting {
  background: var(--danger-soft);
  border-color: rgba(162, 61, 66, .35);
}
.lost-panel h2 { line-height: 1.25; margin: 0 0 .65rem; }
.reward {
  background: var(--primary-soft);
  border-radius: .85rem;
  margin-top: 1rem;
  padding: .85rem 1rem;
}
.sighting-form { display: grid; gap: 1rem; margin-top: 1rem; }
.sighting-form label { color: var(--ink); display: grid; font-weight: 700; gap: .35rem; }
.sighting-form input, .sighting-form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .75rem;
  color: var(--ink);
  font: inherit;
  min-height: 3rem;
  padding: .7rem .8rem;
  width: 100%;
}
.sighting-form textarea { resize: vertical; }
.sighting-form .form-row { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sighting-form .check-label { align-items: center; display: flex; font-weight: 500; }
.sighting-form .check-label input { min-height: auto; width: auto; }

.legal-page h1, .status-card h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  letter-spacing: -.04em;
  line-height: 1.08;
  margin: .25rem 0 1rem;
}

.legal-page h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 2.5rem 0 .6rem;
}

.legal-page h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 .35rem;
}

.legal-page p, .legal-page li, .status-card p { color: var(--muted); }
.legal-page li + li { margin-top: .5rem; }
.legal-page section { scroll-margin-top: 2rem; }

.eyebrow {
  color: var(--primary-dark) !important;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .1em;
  margin: 0;
  text-transform: uppercase;
}

.updated {
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
}

.summary {
  background: var(--primary-soft);
  border-radius: 1rem;
  color: var(--ink) !important;
  padding: 1rem 1.15rem;
}

.status-card {
  margin: 8vh auto 0;
  max-width: 37rem;
  text-align: center;
}

.status-icon {
  align-items: center;
  background: var(--primary-soft);
  border-radius: 1.5rem;
  color: var(--primary);
  display: flex;
  font-size: 2rem;
  font-weight: 900;
  height: 4.5rem;
  justify-content: center;
  margin: 0 auto 1.5rem;
  width: 4.5rem;
}

.status-icon.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.button {
  appearance: none;
  background: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 1rem;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-weight: 750;
  margin-top: 1rem;
  min-height: 3.25rem;
  padding: .7rem 1.35rem;
  text-decoration: none;
}

.button:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.button.secondary { background: transparent; color: var(--primary-dark); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.fine-print { font-size: .88rem; margin-top: 1.75rem; }

.landing-hero {
  background:
    radial-gradient(circle at 16% 9%, rgba(255, 255, 255, .92), transparent 27rem),
    radial-gradient(circle at 78% 24%, rgba(236, 235, 250, .86), transparent 28rem),
    linear-gradient(135deg, #fffaf1 0%, #f4efff 48%, #fff1e9 100%);
  border: 1px solid rgba(227, 216, 203, .75);
  border-radius: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-strong);
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, .8fr);
  margin: 0 auto 1.25rem;
  overflow: hidden;
  padding: clamp(1.4rem, 4vw, 4rem);
  position: relative;
}

.landing-hero::before {
  background-image:
    linear-gradient(rgba(90, 94, 170, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 94, 170, .055) 1px, transparent 1px);
  background-size: 3.6rem 3.6rem;
  content: "";
  inset: 0;
  mask-image: linear-gradient(120deg, rgba(0, 0, 0, .62), transparent 72%);
  opacity: .8;
  pointer-events: none;
  position: absolute;
}

.hero-glow {
  border-radius: 999px;
  filter: blur(4px);
  opacity: .78;
  pointer-events: none;
  position: absolute;
}

.hero-glow-one {
  background: rgba(90, 94, 170, .18);
  height: 18rem;
  right: -7rem;
  top: -8rem;
  width: 18rem;
}

.hero-glow-two {
  background: rgba(217, 121, 95, .2);
  bottom: -8rem;
  height: 20rem;
  left: 28%;
  width: 20rem;
}

.hero-orbit {
  border: 1px solid rgba(90, 94, 170, .18);
  border-radius: 999px;
  pointer-events: none;
  position: absolute;
}

.hero-orbit::after {
  background: var(--primary);
  border: .35rem solid rgba(255, 253, 249, .9);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(90, 94, 170, .26);
  content: "";
  height: .8rem;
  position: absolute;
  right: 14%;
  top: 10%;
  width: .8rem;
}

.hero-orbit-one {
  height: 16rem;
  right: 5%;
  top: 12%;
  width: 16rem;
}

.hero-orbit-two {
  border-color: rgba(217, 121, 95, .18);
  bottom: 9%;
  height: 10rem;
  left: 42%;
  width: 10rem;
}

.hero-content, .hero-visual {
  position: relative;
  z-index: 1;
}

.brand-chip {
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(255, 253, 249, .76);
  border: 1px solid rgba(227, 216, 203, .85);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: .9rem;
  font-weight: 850;
  gap: .55rem;
  margin-bottom: 1.35rem;
  padding: .5rem .8rem .5rem .55rem;
}

.mini-logo {
  border-radius: .65rem;
  box-shadow: 0 8px 18px rgba(90, 94, 170, .18);
  height: 1.8rem;
  width: 1.8rem;
}

.hero-content h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  letter-spacing: -.075em;
  line-height: .9;
  margin: .35rem 0 1.25rem;
  max-width: 48rem;
}

.hero-lede {
  color: var(--muted);
  font-size: clamp(1.12rem, 2.5vw, 1.42rem);
  line-height: 1.55;
  max-width: 43rem;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}

.store-badge {
  align-items: center;
  background: #121713;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 1.15rem;
  box-shadow: 0 16px 34px rgba(25, 22, 20, .16);
  color: #fff;
  display: inline-flex;
  gap: .75rem;
  min-height: 4rem;
  min-width: 12.8rem;
  padding: .72rem 1rem;
  text-decoration: none;
  transform: translateY(0);
}

.store-badge:hover {
  background: #050706;
  box-shadow: 0 22px 48px rgba(25, 22, 20, .22);
  text-decoration: none;
  transform: translateY(-2px);
}

.store-badge strong {
  color: #fff;
  display: block;
  font-size: 1.32rem;
  letter-spacing: -.02em;
  line-height: 1.05;
}

.store-mark {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.store-mark svg {
  display: block;
  height: 100%;
  width: 100%;
}

.apple-mark svg {
  fill: #fff;
}

.google-play-mark svg {
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .15));
}

.play-blue { fill: #00a0ff; }
.play-green { fill: #00d084; }
.play-yellow { fill: #ffcf3f; }
.play-red { fill: #ff4f58; }

.google-play-mark {
  height: 2.15rem;
  width: 2.15rem;
}

.store-kicker {
  color: rgba(255, 255, 255, .72);
  display: block;
  font-size: .74rem;
  font-weight: 750;
  line-height: 1;
}

.hero-proof {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.2rem;
}

.hero-proof span {
  backdrop-filter: blur(12px);
  background: rgba(255, 253, 249, .72);
  border: 1px solid rgba(227, 216, 203, .8);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 800;
  padding: .45rem .7rem;
}

.hero-proof strong {
  color: var(--primary-dark);
}

.hero-visual {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 38rem;
}

.visual-ring {
  border-radius: 999px;
  pointer-events: none;
  position: absolute;
}

.visual-ring-one {
  background: rgba(90, 94, 170, .08);
  height: min(88vw, 34rem);
  width: min(88vw, 34rem);
}

.visual-ring-two {
  border: 1px solid rgba(90, 94, 170, .16);
  height: min(72vw, 28rem);
  width: min(72vw, 28rem);
}

.phone-shell {
  background: linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(246, 239, 255, .72));
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 2.7rem;
  box-shadow: 0 38px 90px rgba(38, 49, 41, .24), 0 0 0 10px rgba(255, 255, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .85);
  max-width: 22rem;
  overflow: hidden;
  padding: .45rem;
  position: relative;
  transform: rotate(2.5deg);
  width: min(100%, 22rem);
  z-index: 2;
}

.phone-shine {
  background: linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, .42) 44%, transparent 62%);
  inset: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(-120%);
}

.phone-screenshot {
  border-radius: 2.25rem;
  display: block;
  height: auto;
  width: 100%;
}

.floating-note {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(255, 253, 249, .86);
  border: 1px solid rgba(227, 216, 203, .8);
  border-radius: 999px;
  box-shadow: 0 18px 36px rgba(71, 55, 44, .12);
  display: flex;
  font-weight: 900;
  gap: .45rem;
  padding: .75rem 1rem;
  position: absolute;
  z-index: 4;
}

.note-health {
  left: 0;
  top: 12%;
  transform: rotate(-6deg);
}

.note-docs {
  bottom: 13%;
  right: 0;
  transform: rotate(5deg);
}

.note-ai {
  right: 4%;
  top: 4%;
  transform: rotate(4deg);
}

.hero-mini-card {
  backdrop-filter: blur(16px);
  background: rgba(255, 253, 249, .78);
  border: 1px solid rgba(227, 216, 203, .82);
  border-radius: 1.25rem;
  box-shadow: 0 20px 48px rgba(71, 55, 44, .14);
  display: grid;
  gap: .1rem;
  padding: .9rem 1rem;
  position: absolute;
  z-index: 4;
}

.hero-mini-card span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-mini-card strong {
  font-size: 1rem;
  line-height: 1.15;
}

.hero-mini-card small {
  color: var(--primary-dark);
  font-weight: 800;
}

.hero-mini-card-one {
  left: -1rem;
  bottom: 25%;
}

.hero-mini-card-two {
  right: -1rem;
  bottom: 28%;
}

.landing-metrics {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.25rem 0;
}

.landing-metrics article {
  background:
    linear-gradient(145deg, rgba(255, 253, 249, .94), rgba(236, 235, 250, .56));
  border: 1px solid rgba(227, 216, 203, .9);
  border-radius: 1.5rem;
  box-shadow: 0 18px 44px rgba(62, 44, 32, .08);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.landing-metrics article::after {
  background: rgba(90, 94, 170, .12);
  border-radius: 999px;
  content: "";
  height: 5rem;
  position: absolute;
  right: -2.25rem;
  top: -2.25rem;
  width: 5rem;
}

.landing-metrics span {
  color: var(--primary-dark);
  display: block;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .08em;
  margin-bottom: .45rem;
  text-transform: uppercase;
}

.landing-metrics strong {
  display: block;
  font-size: 1.25rem;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.landing-metrics p {
  color: var(--muted);
  margin: .5rem 0 0;
}

.care-loop {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.25rem 0;
}

.care-loop article, .feature-showcase, .privacy-callout, .product-flow {
  background: rgba(255, 253, 249, .88);
  border: 1px solid var(--border);
  border-radius: 1.75rem;
  box-shadow: var(--shadow);
}

.care-loop article {
  padding: 1.35rem;
  position: relative;
  transform: translateY(0);
  overflow: hidden;
}

.care-loop article::before {
  background: linear-gradient(135deg, rgba(90, 94, 170, .12), transparent 64%);
  border-radius: inherit;
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity .2s ease;
}

.care-loop article:hover::before {
  opacity: 1;
}

.loop-icon {
  color: var(--primary);
  display: block;
  font-size: .86rem;
  font-weight: 950;
  letter-spacing: .1em;
  margin-bottom: 1.25rem;
}

.care-loop h2, .feature-showcase h2, .privacy-callout h2, .product-flow h2 {
  letter-spacing: -.04em;
  line-height: 1.05;
  margin: 0 0 .6rem;
}

.care-loop h2 {
  font-size: 1.35rem;
}

.care-loop p, .feature-grid p, .privacy-callout p, .flow-steps p {
  color: var(--muted);
  margin: 0;
}

.feature-showcase {
  display: grid;
  gap: 1.5rem;
  margin: 1.25rem 0;
  padding: clamp(1.4rem, 4vw, 2.5rem);
}

.feature-showcase h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  max-width: 42rem;
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid article {
  background:
    linear-gradient(180deg, rgba(255, 253, 249, .96), rgba(251, 246, 238, .9));
  border: 1px solid rgba(227, 216, 203, .85);
  border-radius: 1.35rem;
  padding: 1.15rem;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.feature-grid article:hover {
  border-color: rgba(90, 94, 170, .28);
  box-shadow: 0 18px 46px rgba(62, 44, 32, .1);
  transform: translateY(-4px);
}

.feature-icon {
  align-items: center;
  background: var(--primary-soft);
  border-radius: 1rem;
  display: inline-block;
  font-size: 2rem;
  margin-bottom: .85rem;
  padding: .35rem .5rem;
}

.feature-grid h3 {
  font-size: 1.1rem;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0 0 .45rem;
}

.product-flow {
  display: grid;
  gap: 1.5rem;
  margin: 1.25rem 0;
  overflow: hidden;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  position: relative;
}

.product-flow::before {
  background:
    radial-gradient(circle at 15% 20%, rgba(217, 121, 95, .12), transparent 16rem),
    radial-gradient(circle at 85% 10%, rgba(90, 94, 170, .12), transparent 18rem);
  content: "";
  inset: 0;
  position: absolute;
}

.product-flow > * {
  position: relative;
}

.product-flow h2 {
  font-size: clamp(2rem, 5vw, 3.15rem);
  max-width: 44rem;
}

.flow-steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow-steps article {
  background: rgba(255, 253, 249, .78);
  border: 1px solid rgba(227, 216, 203, .85);
  border-radius: 1.35rem;
  padding: 1.2rem;
}

.flow-steps span {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 999px;
  display: inline-flex;
  font-size: 1.35rem;
  height: 3rem;
  justify-content: center;
  margin-bottom: .85rem;
  width: 3rem;
}

.flow-steps h3 {
  font-size: 1.15rem;
  letter-spacing: -.02em;
  margin: 0 0 .45rem;
}

.privacy-callout {
  align-items: center;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: auto 1fr auto;
  margin-top: 1.25rem;
  padding: clamp(1.35rem, 4vw, 2rem);
}

.privacy-logo {
  border-radius: 1.35rem;
  box-shadow: 0 14px 32px rgba(90, 94, 170, .16);
  height: 4.5rem;
  width: 4.5rem;
}

.admin-shell {
  display: grid;
  gap: 1.25rem;
  margin: 0 auto;
  max-width: 54rem;
}

.admin-shell.wide {
  max-width: 76rem;
}

.admin-shell h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -.04em;
  line-height: 1.05;
  margin: 0;
}

.admin-shell h2 {
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0;
}

.admin-shell p {
  color: var(--muted);
  margin: .35rem 0 0;
}

.metric-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 1rem;
  color: var(--ink);
  display: grid;
  gap: .25rem;
  min-height: 8rem;
  padding: 1rem;
  text-decoration: none;
}

.metric-card span {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  font-size: 2.25rem;
  letter-spacing: -.04em;
  line-height: 1;
}

.metric-card small {
  color: var(--muted);
  font-size: .9rem;
}

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

.admin-columns > section {
  min-width: 0;
}

.section-title {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: .75rem;
}

.section-title a {
  font-weight: 800;
  white-space: nowrap;
}

.admin-search {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.admin-search input {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: .9rem;
  color: var(--ink);
  flex: 1;
  font: inherit;
  min-height: 3rem;
  min-width: min(100%, 18rem);
  padding: .7rem .85rem;
}

.button.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--primary-dark);
}

.table-wrap {
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: auto;
}

table {
  border-collapse: collapse;
  min-width: 48rem;
  width: 100%;
}

th, td {
  border-bottom: 1px solid var(--border);
  padding: .8rem .9rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--canvas);
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

td {
  color: var(--ink);
  font-size: .93rem;
}

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

tbody tr:last-child td {
  border-bottom: 0;
}

.admin-badge {
  border-radius: 999px;
  display: inline-block;
  font-size: .78rem;
  font-weight: 850;
  line-height: 1;
  padding: .38rem .55rem;
  text-transform: capitalize;
  white-space: nowrap;
}

.admin-badge.success {
  background: #e5f4eb;
  color: #236240;
}

.admin-badge.warning {
  background: #fff0c7;
  color: #7a4d00;
}

.admin-badge.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.admin-badge.neutral {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.empty-panel {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 1rem;
  color: var(--muted);
  padding: 1.25rem;
}

.admin-form {
  display: grid;
  gap: 1.25rem;
}

.admin-form fieldset {
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 1.1rem;
}

.admin-form legend {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 850;
  padding: 0 .45rem;
}

.admin-form label {
  color: var(--ink);
  display: grid;
  font-weight: 750;
  gap: .35rem;
}

.admin-form label span {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 500;
}

.admin-form input, .admin-form textarea, .admin-search select {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: .75rem;
  color: var(--ink);
  font: inherit;
  min-height: 3rem;
  padding: .7rem .8rem;
  width: 100%;
}

.admin-form textarea {
  resize: vertical;
}

.admin-search select {
  min-width: 12rem;
  width: auto;
}

.admin-form .check-label {
  align-items: center;
  display: flex;
}

.admin-form .check-label input {
  min-height: auto;
  width: auto;
}

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

.notice {
  border-radius: .85rem;
  font-weight: 750;
  margin: 0;
  padding: .85rem 1rem;
}

.notice.success {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 42rem) {
  footer { align-items: flex-start; flex-direction: column; }
  main {
    max-width: 100%;
    padding: .75rem .85rem 3rem;
  }
  .legal-page, .status-card { border-radius: 1.25rem; }
  .metric-grid, .admin-columns, .landing-hero, .landing-metrics, .care-loop, .feature-grid, .flow-steps, .privacy-callout { grid-template-columns: 1fr; }
  .admin-nav { justify-content: flex-start; }
  .lost-pet-hero, .lost-grid, .sighting-form .form-row, .form-grid { grid-template-columns: 1fr; }
  .lost-pet-photo { max-width: 14rem; order: -1; }
  .landing-hero {
    border-radius: 2rem;
    gap: 1.15rem;
    margin-bottom: .85rem;
    padding: 1rem;
  }
  .landing-hero::before {
    background-size: 2.2rem 2.2rem;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent 74%);
  }
  .hero-glow-one {
    height: 14rem;
    right: -5rem;
    top: -5rem;
    width: 14rem;
  }
  .hero-glow-two {
    bottom: 18rem;
    height: 15rem;
    left: -6rem;
    width: 15rem;
  }
  .brand-chip {
    font-size: .78rem;
    gap: .45rem;
    margin-bottom: .85rem;
    padding: .42rem .65rem .42rem .45rem;
  }
  .mini-logo {
    border-radius: .55rem;
    height: 1.55rem;
    width: 1.55rem;
  }
  .eyebrow {
    font-size: .76rem;
    letter-spacing: .11em;
  }
  .hero-content h1 {
    font-size: clamp(2.55rem, 13.4vw, 4rem);
    letter-spacing: -.07em;
    line-height: .92;
    margin: .22rem 0 .8rem;
  }
  .hero-lede {
    font-size: 1.02rem;
    line-height: 1.48;
  }
  .store-actions {
    display: grid;
    gap: .65rem;
    grid-template-columns: 1fr 1fr;
    margin-top: 1rem;
  }
  .store-badge {
    border-radius: 1rem;
    gap: .55rem;
    min-height: 3.45rem;
    min-width: 0;
    padding: .58rem .7rem;
    width: 100%;
  }
  .store-mark {
    height: 1.65rem;
    width: 1.65rem;
  }
  .google-play-mark {
    height: 1.76rem;
    width: 1.76rem;
  }
  .store-kicker {
    font-size: .61rem;
  }
  .store-badge strong {
    font-size: 1.02rem;
  }
  .hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem;
    margin-top: .85rem;
  }
  .hero-proof span {
    border-radius: 1rem;
    font-size: .72rem;
    line-height: 1.2;
    padding: .55rem .5rem;
    text-align: center;
  }
  .hero-proof strong {
    display: block;
  }
  .hero-visual {
    align-items: center;
    border-radius: 1.7rem;
    background:
      radial-gradient(circle at 50% 4%, rgba(255, 255, 255, .95), transparent 13rem),
      linear-gradient(180deg, rgba(236, 235, 250, .72), rgba(255, 253, 249, .32));
    border: 1px solid rgba(227, 216, 203, .7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
    flex-direction: column;
    gap: 0;
    margin-top: .25rem;
    min-height: 0;
    overflow: hidden;
    padding: 1rem .75rem 0;
  }
  .phone-shell {
    border-radius: 2.15rem;
    box-shadow: 0 24px 54px rgba(38, 49, 41, .2), 0 0 0 7px rgba(255, 255, 255, .32);
    height: clamp(26rem, 105vw, 34rem);
    max-width: none;
    padding: .36rem;
    transform: none;
    width: min(82vw, 19.5rem);
  }
  .phone-screenshot {
    border-radius: 1.78rem;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }
  .floating-note {
    border-radius: 999px;
    font-size: .78rem;
    gap: .35rem;
    padding: .55rem .68rem;
    position: absolute;
    width: auto;
  }
  .note-health {
    left: .6rem;
    top: 1rem;
    transform: rotate(-4deg);
  }
  .note-docs {
    bottom: 1rem;
    right: .55rem;
    transform: rotate(3deg);
  }
  .note-ai {
    display: none;
  }
  .hero-mini-card {
    border-radius: 1rem;
    bottom: auto;
    left: auto;
    padding: .68rem .78rem;
    position: absolute;
    right: .7rem;
    top: 3.8rem;
    width: auto;
  }
  .hero-mini-card-two {
    display: none;
  }
  .hero-mini-card span {
    font-size: .62rem;
  }
  .hero-mini-card strong {
    font-size: .86rem;
  }
  .hero-mini-card small {
    font-size: .74rem;
  }
  .hero-orbit, .visual-ring { display: none; }
  .landing-metrics {
    gap: .65rem;
    margin: .85rem 0;
  }
  .landing-metrics article {
    border-radius: 1.25rem;
    padding: 1rem;
  }
  .landing-metrics strong {
    font-size: 1.08rem;
  }
  .landing-metrics p {
    font-size: .95rem;
  }
  .care-loop {
    gap: .65rem;
    margin: .85rem 0;
  }
  .care-loop article, .feature-showcase, .product-flow, .privacy-callout {
    border-radius: 1.35rem;
  }
  .care-loop article {
    padding: 1.05rem;
  }
  .loop-icon {
    margin-bottom: .75rem;
  }
  .feature-showcase, .product-flow {
    gap: 1rem;
    margin: .85rem 0;
    padding: 1.05rem;
  }
  .feature-showcase h2, .product-flow h2, .privacy-callout h2 {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
  }
  .feature-grid {
    gap: .7rem;
  }
  .feature-grid article, .flow-steps article {
    border-radius: 1.1rem;
    padding: .95rem;
  }
  .feature-icon {
    font-size: 1.35rem;
    margin-bottom: .55rem;
  }
  .flow-steps {
    gap: .7rem;
  }
  .flow-steps span {
    height: 2.55rem;
    width: 2.55rem;
  }
  .privacy-callout {
    align-items: start;
    padding: 1.05rem;
  }
  .privacy-logo {
    height: 3.6rem;
    width: 3.6rem;
  }
  .privacy-callout .actions { justify-content: flex-start; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button { transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
  .button:hover { transform: translateY(-2px); }
  .landing-hero { animation: heroRise .7s cubic-bezier(.2, .9, .2, 1) both; }
  .hero-glow-one { animation: glowFloat 9s ease-in-out infinite alternate; }
  .hero-glow-two { animation: glowFloat 11s ease-in-out infinite alternate-reverse; }
  .hero-orbit-one { animation: slowSpin 24s linear infinite; }
  .hero-orbit-two { animation: slowSpin 18s linear infinite reverse; }
  .brand-chip, .eyebrow, .hero-content h1, .hero-lede, .store-actions, .hero-proof {
    animation: contentLift .65s cubic-bezier(.2, .9, .2, 1) both;
  }
  .eyebrow { animation-delay: .05s; }
  .hero-content h1 { animation-delay: .1s; }
  .hero-lede { animation-delay: .16s; }
  .store-actions { animation-delay: .23s; }
  .hero-proof { animation-delay: .3s; }
  .phone-shell { animation: phoneFloat 6.5s ease-in-out infinite; }
  .phone-shine { animation: shineSweep 4.8s ease-in-out infinite 1.2s; }
  .floating-note, .hero-mini-card { animation: noteFloat 5.5s ease-in-out infinite; }
  .note-docs, .hero-mini-card-two { animation-delay: .8s; }
  .note-ai, .hero-mini-card-one { animation-delay: 1.4s; }
  .landing-metrics article, .care-loop article, .feature-grid article, .flow-steps article, .privacy-callout {
    animation: contentLift .65s cubic-bezier(.2, .9, .2, 1) both;
    animation-timeline: view();
    animation-range: entry 0% cover 32%;
  }
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes contentLift {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes phoneFloat {
  0%, 100% { transform: rotate(2.5deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-12px); }
}

@keyframes noteFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

@keyframes shineSweep {
  0%, 45% { transform: translateX(-130%); }
  70%, 100% { transform: translateX(130%); }
}

@keyframes glowFloat {
  from { transform: translate3d(-10px, 4px, 0) scale(.96); }
  to { transform: translate3d(14px, -12px, 0) scale(1.08); }
}

@keyframes slowSpin {
  to { rotate: 360deg; }
}

@media (max-width: 42rem) and (prefers-reduced-motion: no-preference) {
  .phone-shell { animation: mobilePhoneFloat 6s ease-in-out infinite; }
  .floating-note, .hero-mini-card { animation: mobileChipFloat 5s ease-in-out infinite; }
  .note-docs { animation-delay: .7s; }
  .hero-mini-card-one { animation-delay: 1.2s; }
}

@keyframes mobilePhoneFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.012); }
}

@keyframes mobileChipFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}
