:root {
  color-scheme: light;
  --ink: #19201d;
  --muted: #657169;
  --paper: #fff9ef;
  --card: #ffffff;
  --grass: #316f4a;
  --grass-dark: #184b32;
  --sun: #ffba43;
  --warm: #f97345;
  --hot: #d83f31;
  --safe: #2f9b63;
  --blue: #1f6f8b;
  --focus: #174cff;
  --shadow: 0 28px 80px rgba(33, 47, 36, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 9% 8%, rgba(255, 186, 67, 0.28), transparent 22rem),
    radial-gradient(circle at 90% 12%, rgba(47, 155, 99, 0.18), transparent 24rem),
    linear-gradient(180deg, #fffaf2 0%, #f1f8ef 100%);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0.75rem auto 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(25, 32, 29, 0.12);
  border-radius: 999px;
  background: rgba(255, 249, 239, 0.86);
  backdrop-filter: blur(16px);
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand {
  color: var(--ink);
  font-weight: 950;
  text-decoration: none;
}

.site-header nav a {
  padding: 0.55rem 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--ink);
  background: rgba(47, 155, 99, 0.12);
}

.paw-logo {
  position: relative;
  display: inline-grid;
  width: 2.2rem;
  aspect-ratio: 1;
  border-radius: 40% 40% 48% 48%;
  background: var(--grass);
}

.paw-logo span {
  position: absolute;
  width: 0.42rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
}

.paw-logo span:nth-child(1) { left: 0.48rem; top: 0.42rem; }
.paw-logo span:nth-child(2) { right: 0.48rem; top: 0.42rem; }
.paw-logo span:nth-child(3) { left: 0.35rem; top: 0.9rem; }
.paw-logo span:nth-child(4) { right: 0.35rem; top: 0.9rem; }

.hero,
.planner-section,
.ai-section,
.report-section,
.how-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero-copy,
.section-heading,
.planner-grid,
.ai-section > *,
.report-section > *,
.how-section > * {
  min-width: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 5.5rem);
  padding: 5rem 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #c84f2c;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 1.2rem;
  font-size: clamp(4rem, 9vw, 8.6rem);
  line-height: 0.82;
  letter-spacing: -0.07em;
}

h1 span {
  display: inline;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.hero-copy p:not(.eyebrow),
.section-heading p,
.ai-section p,
.report-section p,
.how-section p {
  max-width: 68ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.1rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--grass);
  box-shadow: 0 12px 26px rgba(49, 111, 74, 0.22);
}

.button.ghost {
  color: var(--grass-dark);
  background: rgba(49, 111, 74, 0.12);
}

.weather-action {
  display: grid;
  align-content: end;
  gap: 0.45rem;
  font-weight: 900;
}

.weather-action p {
  margin: 0;
}

.button.full {
  width: 100%;
  margin-top: 1rem;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
.art-card:focus {
  outline: 4px solid var(--focus);
  outline-offset: 4px;
}

.dog-card {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(25, 32, 29, 0.12);
  border-radius: 34px;
  background: #dff2d4;
  box-shadow: var(--shadow);
  animation: hero-card-float 5.5s ease-in-out infinite;
}

.dog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.26), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(255, 211, 91, 0.28), transparent 20%);
  pointer-events: none;
  z-index: 1;
}

.hero-dog-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% center;
  transform: scale(1.015);
  animation: hero-image-drift 9s ease-in-out infinite;
}

.sun-pulse,
.leaf-drift,
.water-shimmer {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.sun-pulse {
  top: 10%;
  right: 7%;
  width: 7.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 221, 107, 0.38), transparent 66%);
  animation: sun-soft-pulse 4.8s ease-in-out infinite;
}

.leaf-drift {
  width: 1.25rem;
  height: 0.62rem;
  border-radius: 100% 0 100% 0;
  background: rgba(122, 167, 47, 0.76);
  filter: drop-shadow(0 0.25rem 0.35rem rgba(24, 75, 50, 0.14));
}

.leaf-one {
  top: 13%;
  left: 19%;
  animation: leaf-float-one 8s ease-in-out infinite;
}

.leaf-two {
  top: 18%;
  left: 27%;
  width: 1rem;
  height: 0.5rem;
  background: rgba(173, 191, 63, 0.7);
  animation: leaf-float-two 9.5s ease-in-out infinite;
}

.water-shimmer {
  left: 13%;
  bottom: 14%;
  width: 11.8rem;
  height: 4.2rem;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 45% 43%, rgba(255, 255, 255, 0.46), transparent 12%),
    linear-gradient(100deg, transparent 0 42%, rgba(255, 255, 255, 0.34) 48%, transparent 56%);
  mix-blend-mode: screen;
  opacity: 0.45;
  animation: water-glint 3.4s ease-in-out infinite;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 1.5rem;
}

.compact-heading {
  margin-bottom: 0.85rem;
}

.planner-section,
.ai-section,
.report-section,
.how-section {
  padding: 3.2rem 0;
  scroll-margin-top: 6rem;
}

.ai-section {
  padding-bottom: 2rem;
}

.report-section {
  padding-top: 2rem;
}

.planner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 1rem;
}

.planner-form,
.result-card,
.ai-card,
.report-card,
.report-actions,
.how-grid article {
  border: 1px solid rgba(25, 32, 29, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 52px rgba(33, 47, 36, 0.09);
}

.planner-form,
.result-card,
.ai-card,
.report-card,
.report-actions {
  padding: clamp(1rem, 3vw, 1.4rem);
}

.planner-form {
  display: grid;
  gap: 0.8rem;
}

label,
fieldset {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 900;
}

fieldset {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0.8rem;
  border: 1px solid rgba(25, 32, 29, 0.12);
  border-radius: 18px;
}

fieldset legend {
  padding: 0 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

fieldset label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 750;
}

input,
select {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.7rem 0.8rem;
  color: var(--ink);
  border: 1px solid rgba(25, 32, 29, 0.18);
  border-radius: 14px;
  background: #fff;
  font: inherit;
}

input[type="range"] {
  padding-inline: 0;
  accent-color: var(--grass);
}

input[type="checkbox"],
input[type="radio"] {
  width: 1rem;
  min-height: auto;
  accent-color: var(--grass);
}

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

.value-label {
  color: var(--grass-dark);
  font-size: 0.9rem;
}

.result-card {
  align-self: start;
}

.result-topline,
.score-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.risk-pill {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: #fff;
  background: var(--warm);
  font-weight: 950;
}

.risk-pill.safe {
  background: var(--safe);
}

.risk-pill.high {
  background: var(--hot);
}

.score-wrap {
  justify-content: flex-start;
  margin: 1rem 0;
  padding: 0.9rem;
  border-radius: 20px;
  background: #f5faef;
}

.score-wrap strong,
.score-wrap span {
  display: block;
}

.score-wrap span {
  margin-top: 0.25rem;
  color: var(--muted);
}

.score-ring {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 6rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 58%, transparent 59%),
    conic-gradient(var(--risk-color, var(--warm)) calc(var(--score, 58) * 1%), #dfe8dc 0);
  box-shadow:
    inset 0 0 0 1px rgba(25, 32, 29, 0.06),
    0 14px 30px rgba(25, 32, 29, 0.12);
}

.score-ring span {
  color: var(--ink);
  font-size: 1.8rem;
  font-weight: 950;
}

.risk-breakdown {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1rem;
}

.risk-breakdown span {
  display: grid;
  grid-template-columns: minmax(9rem, 12rem) 1fr;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.risk-breakdown span::after {
  content: "";
  height: 0.72rem;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--safe), var(--sun), var(--hot)) 0 / calc(var(--bar, 30) * 1%) 100% no-repeat,
    #e2ebdf;
}

.plan-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-list li {
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(25, 32, 29, 0.1);
  border-radius: 999px;
  background: #f7fbf3;
  color: var(--grass-dark);
  font-size: 0.88rem;
  font-weight: 850;
}

.copy-status,
.ai-note {
  min-height: 1.4rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.ai-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.ai-card,
.report-actions {
  display: grid;
  gap: 1rem;
}

.ai-output {
  min-height: 9rem;
  padding: 1rem;
  color: var(--muted);
  white-space: pre-wrap;
  border: 1px solid rgba(25, 32, 29, 0.1);
  border-radius: 18px;
  background: #f7fbf3;
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.58fr);
  gap: 1rem;
  align-items: start;
}

.report-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 186, 67, 0.95), transparent 9rem),
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.18), transparent 12rem),
    linear-gradient(135deg, var(--grass-dark), var(--grass));
  box-shadow: var(--shadow);
}

.report-card::before {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -4rem;
  width: 18rem;
  aspect-ratio: 1;
  border-radius: 42% 42% 48% 48%;
  background:
    radial-gradient(circle at 35% 28%, #fff 0 0.8rem, transparent 0.86rem),
    radial-gradient(circle at 58% 28%, #fff 0 0.8rem, transparent 0.86rem),
    radial-gradient(circle at 28% 50%, #fff 0 0.8rem, transparent 0.86rem),
    radial-gradient(circle at 64% 50%, #fff 0 0.8rem, transparent 0.86rem),
    rgba(255, 255, 255, 0.12);
  transform: rotate(-18deg);
}

.report-card > * {
  position: relative;
}

.report-kicker {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.report-card h3 {
  max-width: 780px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 0.92;
}

.report-card p:not(.report-kicker) {
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
  line-height: 1.7;
}

.report-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 2rem 0 0;
}

.report-card dl div {
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.report-card dt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-card dd {
  margin: 0.3rem 0 0;
  font-weight: 950;
}

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

.how-grid article {
  padding: 1.2rem;
}

.how-grid span {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--grass);
  font-weight: 950;
}

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

@keyframes hero-card-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.35rem);
  }
}

@keyframes hero-image-drift {
  0%,
  100% {
    transform: scale(1.015) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.035) translate3d(-0.35rem, -0.2rem, 0);
  }
}

@keyframes sun-soft-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.94);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.08);
  }
}

@keyframes leaf-float-one {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(12deg);
    opacity: 0.34;
  }
  50% {
    transform: translate3d(1.2rem, 0.65rem, 0) rotate(36deg);
    opacity: 0.82;
  }
}

@keyframes leaf-float-two {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-18deg);
    opacity: 0.28;
  }
  50% {
    transform: translate3d(-0.9rem, 0.9rem, 0) rotate(-44deg);
    opacity: 0.76;
  }
}

@keyframes water-glint {
  0%,
  100% {
    transform: translateX(-0.4rem) scaleX(0.94);
    opacity: 0.22;
  }
  50% {
    transform: translateX(0.55rem) scaleX(1.04);
    opacity: 0.48;
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    border-radius: 24px;
  }

  .site-header nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero,
  .planner-grid,
  .ai-section,
  .report-grid,
  .how-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-block: 3rem;
  }

  .dog-card {
    min-height: 490px;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: min(100% - 1rem, 1180px);
    flex-wrap: wrap;
  }

  .brand {
    flex-shrink: 0;
  }

  .site-header nav {
    width: 100%;
    justify-content: flex-start;
  }

  .site-header nav a {
    padding: 0.42rem 0.46rem;
    font-size: 0.78rem;
  }

  .hero,
  .planner-section,
  .ai-section,
  .report-section,
  .how-section {
    width: calc(100% - 1rem);
    max-width: 1180px;
    min-width: 0;
  }

  h1 {
    max-width: 22rem;
    font-size: clamp(2.55rem, 12.2vw, 3.35rem);
    line-height: 0.88;
    letter-spacing: -0.062em;
  }

  h1 span {
    display: block;
  }

  h2 {
    font-size: clamp(2.05rem, 10vw, 2.8rem);
    line-height: 0.96;
    overflow-wrap: anywhere;
  }

  .eyebrow {
    max-width: 20rem;
    font-size: 0.7rem;
    line-height: 1.35;
  }

  .hero-copy p:not(.eyebrow),
  .section-heading p,
  .ai-section p,
  .report-section p,
  .how-section p {
    max-width: 22rem;
  }

  .field-row,
  fieldset,
  .report-card dl {
    grid-template-columns: 1fr;
  }

  .risk-breakdown span {
    grid-template-columns: 1fr;
  }

  .dog-card {
    width: 100%;
    min-height: 390px;
  }

  .sun-pulse {
    right: -1rem;
    width: 6rem;
  }

  .leaf-drift {
    display: none;
  }

  .water-shimmer {
    left: 4%;
    bottom: 5%;
    width: 7.2rem;
    height: 2.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
