:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-strong: #eef4ff;
  --ink: #162033;
  --muted: #667085;
  --line: #d8e2f0;
  --primary: #4f7dd8;
  --primary-dark: #315ea8;
  --coral: #e46d57;
  --yellow: #e6b54a;
  --blue: #4169a8;
  --shadow: 0 22px 60px rgba(49, 94, 168, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.topbar {
  align-items: center;
  background: rgba(247, 249, 252, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  left: 0;
  min-height: 68px;
  padding: 14px clamp(20px, 5vw, 64px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-size: 12px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.nav {
  align-items: center;
  display: flex;
  gap: 8px;
}

.nav a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 10px;
  text-decoration: none;
}

.nav a:hover {
  background: var(--surface-strong);
  color: var(--ink);
}

.section-band,
.content-section,
.split-section {
  padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 64px);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(30px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  min-height: calc(100vh - 68px);
}

.hero-copy,
.section-heading,
.split-section > div {
  max-width: 780px;
}

.eyebrow {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
  margin-bottom: 22px;
  max-width: 940px;
}

h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.06;
  margin-bottom: 18px;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.lede {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  max-width: 680px;
}

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

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--primary);
  color: #ffffff;
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
}

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

.phone-shell {
  background: #162033;
  border: 1px solid #2d3a52;
  border-radius: 32px;
  box-shadow: var(--shadow);
  justify-self: center;
  max-width: 390px;
  padding: 16px;
  width: min(100%, 390px);
}

.phone-status {
  align-items: center;
  color: #d8e2f0;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: space-between;
  padding: 8px 12px 14px;
}

.app-screen {
  background: #f9fbff;
  border-radius: 22px;
  color: var(--ink);
  min-height: 560px;
  overflow: hidden;
  padding: 18px;
}

.pet-row {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.pet-row span,
.visit-reason p,
.timeline-mini p,
.summary-bar,
.metric span,
.feature p,
.decision-list p,
.price-box p,
.roadmap p,
.footer {
  color: var(--muted);
}

.pet-avatar {
  align-items: center;
  background: var(--coral);
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.pet-row div:last-child {
  display: grid;
  gap: 2px;
}

.label {
  background: #eef4ff;
  border-radius: 8px;
  color: var(--primary-dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 12px;
  padding: 6px 9px;
  text-transform: uppercase;
}

.visit-reason {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.visit-reason h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.timeline-mini {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.timeline-mini div {
  align-items: flex-start;
  display: grid;
  gap: 10px;
  grid-template-columns: 12px 1fr;
}

.timeline-mini p {
  font-size: 14px;
  margin: 0;
}

.dot {
  border-radius: 999px;
  display: block;
  height: 10px;
  margin-top: 6px;
  width: 10px;
}

.dot.primary {
  background: var(--primary);
}

.dot.coral {
  background: var(--coral);
}

.dot.yellow {
  background: var(--yellow);
}

.summary-bar {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: space-between;
  margin-top: 30px;
  padding: 14px;
}

.content-section {
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 28px;
}

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

.metric,
.feature,
.doc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 170px;
  padding: 22px;
}

.metric strong {
  color: var(--primary-dark);
  display: block;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  margin-bottom: 14px;
}

.split-section {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(24px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
}

.split-section p {
  color: var(--muted);
  font-size: 18px;
}

.decision-list {
  display: grid;
  gap: 12px;
}

.decision-list div,
.price-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.decision-list span,
.price-box span,
.feature-index,
.doc-card > span {
  color: var(--coral);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.decision-list p,
.price-box p {
  margin-bottom: 0;
}

.tab-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.tab-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tab {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 44px;
  padding: 10px;
}

.tab.is-active,
.tab:hover {
  background: var(--surface-strong);
  color: var(--primary-dark);
}

.tab-content {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  min-height: 150px;
  padding: 28px 18px 16px;
}

.tab-content p {
  color: var(--muted);
  font-size: 18px;
  max-width: 820px;
}

.feature-index {
  color: var(--blue);
}

.doc-card {
  min-height: 260px;
}

.doc-card p {
  color: var(--muted);
}

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.doc-links a {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--primary-dark);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  min-height: 36px;
  padding: 8px 10px;
  text-decoration: none;
}

.doc-links a:hover {
  background: #eef4ff;
}

.price-box {
  border-color: #bfd0f1;
  background: #f7f9fc;
}

.price-box strong {
  color: var(--primary-dark);
  display: block;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  margin-bottom: 14px;
}

.roadmap {
  counter-reset: none;
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.roadmap li {
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: 42px 1fr;
  padding: 20px;
}

.roadmap li > span {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.roadmap h3,
.roadmap p {
  margin-bottom: 4px;
}

.footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 64px);
}

.footer p {
  margin: 0;
}

.legal-page {
  padding: clamp(54px, 8vw, 92px) clamp(20px, 5vw, 64px);
}

.legal-hero {
  max-width: 900px;
}

.legal-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
}

.legal-document {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 34px;
  max-width: 920px;
  padding: clamp(24px, 4vw, 42px);
}

.legal-document h2 {
  font-size: 24px;
  margin-top: 30px;
}

.legal-document h2:first-child {
  margin-top: 0;
}

.legal-document p,
.legal-document li {
  color: var(--muted);
  font-size: 17px;
}

.legal-document a {
  color: var(--primary-dark);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .phone-shell {
    justify-self: start;
  }

  .metric-grid,
  .feature-grid,
  .doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    position: static;
  }

  .nav {
    flex-wrap: wrap;
  }

  .section-band,
  .content-section,
  .split-section {
    padding: 44px 18px;
  }

  .metric-grid,
  .feature-grid,
  .doc-grid,
  .tab-list {
    grid-template-columns: 1fr;
  }

  .app-screen {
    min-height: 520px;
  }

  .summary-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
