:root {
  color-scheme: light;
  --bg: #f6faf7;
  --surface: #ffffff;
  --surface-soft: #eef7f4;
  --ink: #14221e;
  --muted: #61736d;
  --line: #dbe7e2;
  --teal: #19b8a6;
  --teal-dark: #0c7f79;
  --coral: #ff8064;
  --gold: #f6c85f;
  --charcoal: #263238;
  --shadow: 0 18px 42px rgba(20, 34, 30, 0.13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

body.admin-body,
body.legal-body {
  min-height: 100vh;
  background: #f7fbf8;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(20, 34, 30, 0.35);
  color: #ffffff;
  backdrop-filter: blur(18px);
}

.site-header.light {
  position: sticky;
  color: var(--ink);
  background: rgba(247, 251, 248, 0.94);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 132px;
  height: auto;
}

.site-header:not(.light) .brand img {
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: inherit;
  font-size: 14px;
  font-weight: 760;
}

.nav-links a {
  opacity: 0.9;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
}

.button,
.button-secondary,
.button-ghost {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 860;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button {
  color: #ffffff;
  background: var(--teal-dark);
  box-shadow: 0 14px 26px rgba(12, 127, 121, 0.22);
}

.button-secondary {
  color: var(--teal-dark);
  background: #ffffff;
  border-color: var(--line);
}

.button-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.12);
}

.button:hover,
.button-secondary:hover,
.button-ghost:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #ffffff;
  background: #13231f;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/assets/hero-pet-companions.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(11, 24, 21, 0.88) 0%, rgba(11, 24, 21, 0.7) 34%, rgba(11, 24, 21, 0.2) 70%, rgba(11, 24, 21, 0.06) 100%);
}

.hero-content,
.section-shell,
.footer-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-content {
  padding: 116px 0 74px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #a8f0e6;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin-top: 48px;
}

.stat {
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(14px);
}

.stat strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.35;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: #ffffff;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-title {
  max-width: 660px;
}

.section-title .eyebrow,
.legal-content .eyebrow,
.admin-panel .eyebrow {
  color: var(--teal-dark);
}

.section h2,
.legal-content h1,
.admin-panel h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-lede {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

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

.product-card,
.proof-card,
.admin-card,
.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-card {
  min-height: 290px;
  padding: 24px;
}

.product-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--teal-dark);
}

.product-card:nth-child(2) .product-icon {
  background: var(--coral);
}

.product-card:nth-child(3) .product-icon {
  color: var(--ink);
  background: var(--gold);
}

.product-card h3,
.proof-card h3,
.admin-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
}

.product-card p,
.proof-card p,
.admin-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.proof-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.proof-card {
  padding: 26px;
}

.proof-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.proof-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}

.proof-item span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--teal-dark);
  font-weight: 900;
}

.proof-item strong {
  display: block;
}

.proof-item p {
  margin-top: 4px;
}

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

.url-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf9;
}

.url-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.url-row code {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.companion-showcase {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 22px;
  align-items: stretch;
  margin-top: 22px;
}

.carousel-copy,
.carousel-frame {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.carousel-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
}

.carousel-copy h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
}

.carousel-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.62;
}

.carousel-controls {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.carousel-controls button,
.carousel-dots button {
  border: 0;
  color: var(--teal-dark);
  background: var(--surface-soft);
}

.carousel-controls button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.carousel-frame {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #eef7f4;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(18px) scale(0.985);
  transition: opacity 420ms ease, transform 420ms ease;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(20, 34, 30, 0.62);
  backdrop-filter: blur(16px);
}

.slide-caption strong,
.slide-caption span {
  display: block;
}

.slide-caption strong {
  font-size: 18px;
}

.slide-caption span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.4;
}

.carousel-dots {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  opacity: 0.56;
}

.carousel-dots button.active {
  width: 28px;
  border-radius: 999px;
  opacity: 1;
  background: var(--teal);
}

.about-section {
  color: #ffffff;
  background: var(--charcoal);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: start;
}

.about-grid h2 {
  color: #ffffff;
}

.about-copy {
  display: grid;
  gap: 16px;
}

.about-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.68;
}

.about-copy .button-secondary {
  width: fit-content;
}

.site-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--charcoal);
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  font-weight: 760;
}

.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 420px 1fr;
}

.admin-rail {
  padding: 32px;
  color: #ffffff;
  background:
    linear-gradient(0deg, rgba(16, 36, 32, 0.9), rgba(16, 36, 32, 0.58)),
    url("/assets/hero-pet-companions.png") center / cover no-repeat;
}

.admin-rail .brand img {
  width: 144px;
  filter: brightness(0) invert(1);
}

.admin-rail h1 {
  max-width: 320px;
  margin: 80px 0 0;
  font-size: 44px;
  line-height: 1.02;
}

.admin-rail p {
  max-width: 320px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.admin-main {
  padding: 32px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.admin-topbar nav {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 780;
}

.admin-panel {
  width: min(920px, 100%);
}

.login-card,
.dashboard-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.login-card {
  max-width: 520px;
  margin-top: 38px;
  padding: 28px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--ink);
  background: #ffffff;
}

.field input:focus {
  outline: 3px solid rgba(25, 184, 166, 0.16);
  border-color: var(--teal);
}

.form-message {
  min-height: 22px;
  margin: 10px 0 0;
  color: #b42318;
  font-size: 13px;
  font-weight: 760;
}

.dashboard-shell {
  display: none;
  padding: 24px;
}

.dashboard-shell.active {
  display: block;
}

.dashboard-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-head h2 {
  margin: 0;
  font-size: 28px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.admin-card {
  padding: 16px;
  box-shadow: none;
}

.admin-card strong {
  display: block;
  font-size: 28px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: #ffffff;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

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

.legal-layout {
  min-height: 100vh;
}

.legal-content {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 76px;
}

.about-page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 76px;
}

.about-hero {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 24px;
  align-items: stretch;
}

.about-hero > div,
.about-hero img,
.about-values article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.about-hero > div {
  padding: 32px;
}

.about-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 0.98;
}

.about-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
}

.about-hero img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.about-values article {
  padding: 24px;
}

.about-values span {
  display: block;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.about-values h2 {
  margin: 18px 0 0;
  font-size: 24px;
}

.about-values p {
  color: var(--muted);
  line-height: 1.62;
}

.legal-content > p {
  color: var(--muted);
  line-height: 1.65;
}

.legal-card {
  padding: 28px;
  margin-top: 18px;
  box-shadow: none;
}

.legal-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.68;
}

.legal-card ul {
  padding-left: 20px;
}

.legal-card a {
  color: var(--teal-dark);
  font-weight: 820;
}

@media (max-width: 860px) {
  .nav-shell {
    width: min(100% - 28px, 1120px);
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a:not(.button):not(.button-secondary) {
    display: none;
  }

  .hero {
    min-height: 84vh;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(11, 24, 21, 0.86) 0%, rgba(11, 24, 21, 0.58) 44%, rgba(11, 24, 21, 0.22) 100%);
  }

  .hero-content,
  .section-shell,
  .footer-shell,
  .legal-content {
    width: min(100% - 28px, 1120px);
  }

  .hero-content {
    padding-top: 112px;
  }

  .hero-stats,
  .product-grid,
  .proof-grid,
  .kpi-grid,
  .companion-showcase,
  .about-grid,
  .about-hero,
  .about-values,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .section-header,
  .footer-shell,
  .dashboard-head,
  .admin-topbar {
    align-items: start;
    flex-direction: column;
  }

  .section {
    padding: 54px 0;
  }

  .admin-rail {
    min-height: 320px;
  }

  .admin-rail h1 {
    margin-top: 72px;
    font-size: 36px;
  }

  .admin-main {
    padding: 24px 16px 42px;
  }

  .carousel-frame {
    min-height: 360px;
  }

  .about-page {
    width: min(100% - 28px, 1120px);
  }

  .about-hero img {
    min-height: 320px;
  }

  .login-card {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  .brand img {
    width: 118px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .button-secondary,
  .button-ghost {
    width: 100%;
  }

  .url-row {
    align-items: start;
    flex-direction: column;
  }
}
