:root {
  --ink: #172024;
  --muted: #5c676b;
  --paper: #fffaf3;
  --panel: #ffffff;
  --line: #dce4df;
  --teal: #2f8f83;
  --teal-deep: #17645d;
  --coral: #e86f5c;
  --amber: #edb94e;
  --sky: #dbeafe;
  --danger: #b7352a;
  --danger-bg: #fff0ec;
  --shadow: 0 24px 70px rgba(23, 32, 36, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img,
svg {
  display: block;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 243, 0.88);
  border-bottom: 1px solid rgba(23, 32, 36, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: white;
  background: var(--teal-deep);
  border-radius: 8px;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 2vw, 22px);
  color: #314046;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  padding: 7px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-bottom-color: var(--coral);
  outline: none;
}

.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  padding: 104px clamp(18px, 4vw, 56px) 56px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/pet-vet-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(255, 250, 243, 0.98) 0%, rgba(255, 250, 243, 0.88) 31%, rgba(255, 250, 243, 0.22) 68%, rgba(23, 32, 36, 0.24) 100%),
    linear-gradient(0deg, rgba(255, 250, 243, 0.86), rgba(255, 250, 243, 0.06) 46%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(360px, 480px);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  max-width: 1240px;
  min-height: calc(94vh - 160px);
  margin: 0 auto;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 630px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 6.4vw, 6.8rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 1rem;
  line-height: 1.25;
}

.hero-lede {
  max-width: 560px;
  color: #334247;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button svg,
.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button.primary {
  color: white;
  background: var(--teal-deep);
  box-shadow: 0 10px 26px rgba(23, 100, 93, 0.25);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #10564f;
}

.button.subtle {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(23, 32, 36, 0.14);
}

.button.subtle.dark {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.button.full {
  width: 100%;
  margin-top: 6px;
}

.care-note {
  max-width: 560px;
  margin: 24px 0 0;
  color: #556166;
  font-size: 0.94rem;
}

.checker-panel {
  display: grid;
  gap: 16px;
  width: 100%;
  padding: clamp(18px, 2.6vw, 28px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 32, 36, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-head h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
}

.status-pill {
  white-space: nowrap;
  padding: 7px 10px;
  color: var(--teal-deep);
  background: #dff2eb;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
}

.field-group {
  display: grid;
  gap: 8px;
}

.pet-toggle {
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  background: #edf4f0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pet-toggle label {
  cursor: pointer;
}

.pet-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pet-toggle span {
  display: grid;
  min-height: 40px;
  place-items: center;
  border-radius: 6px;
  color: #425056;
  font-weight: 850;
}

.pet-toggle input:checked + span {
  color: white;
  background: var(--teal);
}

.upload-box {
  display: grid;
  min-height: 132px;
  place-items: center;
  padding: 20px;
  text-align: center;
  border: 1.5px dashed #9bb8b0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 143, 131, 0.08), rgba(232, 111, 92, 0.08)),
    #fbfffd;
  cursor: pointer;
}

.upload-box.is-dragover {
  border-color: var(--coral);
  background: #fff5f2;
}

.upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--teal-deep);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(23, 32, 36, 0.08);
}

.upload-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.upload-title {
  margin-top: 10px;
  font-weight: 900;
}

.upload-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.preview-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf4f0;
}

.preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.is-hidden {
  display: none !important;
}

.icon-button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(23, 32, 36, 0.12);
  border-radius: 8px;
  cursor: pointer;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span,
.symptom-list legend {
  color: #334247;
  font-size: 0.85rem;
  font-weight: 900;
}

.field select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.symptom-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.symptom-list legend {
  padding: 0 6px;
}

.symptom-list label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #303d42;
  font-size: 0.9rem;
}

.symptom-list input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--teal-deep);
  flex: 0 0 auto;
}

.consent-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  color: #334247;
  background: #f7fbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
}

.consent-box input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal-deep);
  flex: 0 0 auto;
}

.submission-note {
  min-height: 20px;
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.submission-note.is-success {
  color: var(--teal-deep);
  font-weight: 800;
}

.submission-note.is-warning {
  color: #9a5a05;
  font-weight: 800;
}

.result-section,
.danger-band,
.workflow-section,
.dataset-section,
.privacy-section {
  padding: clamp(54px, 8vw, 92px) clamp(18px, 4vw, 56px);
}

.result-section {
  background: linear-gradient(180deg, #fffaf3, #f4fbf7);
}

.result-card {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 36px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(23, 32, 36, 0.08);
}

.empty-state {
  max-width: 720px;
}

.empty-state h2 {
  margin-bottom: 12px;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(300px, 1fr);
  gap: clamp(20px, 4vw, 48px);
}

.risk-panel {
  padding: 22px;
  border-radius: 8px;
  background: #f8fbf8;
  border: 1px solid var(--line);
}

.risk-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: white;
  font-size: 0.82rem;
  font-weight: 900;
}

.risk-label.emergency {
  background: var(--danger);
}

.risk-label.today {
  background: #b56a06;
}

.risk-label.monitor {
  background: var(--teal-deep);
}

.risk-panel h2 {
  margin: 16px 0 10px;
}

.confidence {
  color: var(--muted);
  font-size: 0.92rem;
}

.result-details {
  display: grid;
  gap: 18px;
}

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

.detail-block:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.detail-block h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.detail-block ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: #344248;
}

.photo-clues {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.clue {
  padding: 7px 9px;
  border-radius: 999px;
  background: #edf4f0;
  color: #314046;
  font-size: 0.82rem;
  font-weight: 800;
}

.section-copy {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.danger-band {
  background: var(--danger-bg);
}

.danger-grid,
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.danger-grid article,
.steps article {
  padding: 20px;
  background: white;
  border: 1px solid rgba(183, 53, 42, 0.14);
  border-radius: 8px;
}

.mini-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 14px;
  color: var(--danger);
  background: #ffe1da;
  border-radius: 8px;
}

.mini-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.danger-grid p,
.steps p,
.dataset-copy p,
.privacy-section p,
.site-footer p {
  color: var(--muted);
}

.workflow-section {
  background: #f8faf7;
}

.steps {
  grid-template-columns: repeat(3, 1fr);
}

.steps article {
  border-color: var(--line);
}

.steps span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--coral);
  font-size: 0.8rem;
  font-weight: 950;
}

.dataset-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1fr);
  gap: clamp(22px, 5vw, 72px);
  align-items: center;
  color: white;
  background: #182225;
}

.dataset-copy {
  max-width: 680px;
}

.dataset-copy .eyebrow {
  color: var(--amber);
}

.dataset-copy p {
  color: #d5ddde;
}

.small-light {
  font-size: 0.94rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.metric {
  min-height: 132px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 143, 131, 0.32), rgba(232, 111, 92, 0.18)),
    rgba(255, 255, 255, 0.06);
}

.metric span {
  display: block;
  margin-bottom: 10px;
  color: white;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 950;
  line-height: 0.95;
}

.metric p {
  margin: 0;
  color: #dce8e5;
  font-weight: 750;
}

.privacy-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
  background: #fffaf3;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 4vw, 56px);
  background: white;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 142px;
  }

  .hero-content,
  .result-layout,
  .dataset-section,
  .privacy-section {
    grid-template-columns: 1fr;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(255, 250, 243, 0.98), rgba(255, 250, 243, 0.74)),
      linear-gradient(0deg, rgba(255, 250, 243, 0.95), rgba(255, 250, 243, 0.18));
  }

  .danger-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .site-nav {
    width: 100%;
    justify-content: space-between;
    font-size: 0.84rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    min-height: 0;
  }

  .field-grid,
  .symptom-list,
  .danger-grid,
  .steps,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .panel-head {
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
  }
}
