:root {
  --paper: #f3efe6;
  --paper-deep: #e8e1d3;
  --cream: #fffaf0;
  --ink: #171712;
  --ink-soft: #2a2a22;
  --muted: #68645b;
  --line: #c9c2b5;
  --lime: #d9ff57;
  --lime-deep: #b7dd35;
  --coral: #ff6b4a;
  --sky: #8dcfff;
  --sun: #ffc93c;
  --white: #fffef9;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --shadow: 7px 7px 0 var(--ink);
  --max: 1220px;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Bricolage Grotesque", "Avenir Next", "Trebuchet MS", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 107, 74, 0.14), transparent 25rem),
    radial-gradient(circle at 90% 18%, rgba(141, 207, 255, 0.18), transparent 29rem),
    linear-gradient(rgba(23, 23, 18, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 18, 0.028) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 32px 32px, 32px 32px, auto;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

::selection {
  color: var(--ink);
  background: var(--lime);
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1.5px;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 50, "WONK" 1;
}

h1 {
  letter-spacing: -0.062em;
  line-height: 0.89;
}

h2 {
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h3 {
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: var(--ink);
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 999px;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

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

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1.5px solid var(--ink);
  background: rgba(243, 239, 230, 0.9);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand__mark {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  transform: rotate(-8deg);
}

.brand__mark svg {
  width: 21px;
}

.brand:hover .brand__mark {
  transform: rotate(8deg);
  transition: transform 220ms ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.92rem;
  font-weight: 650;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:not(.button):hover {
  text-decoration: underline;
}

.button {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  color: var(--ink);
  background: var(--lime);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease;
}

.button:hover {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(2px, 2px);
}

.button:active {
  box-shadow: none;
  transform: translate(4px, 4px);
}

.button:focus-visible,
.choice:has(input:focus-visible),
.toggle:has(input:focus-visible),
select:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

.button--ink {
  color: var(--white);
  background: var(--ink);
  box-shadow: 3px 3px 0 var(--coral);
}

.button--ghost {
  background: transparent;
  box-shadow: none;
}

.button--ghost:hover {
  background: var(--cream);
  box-shadow: none;
  transform: none;
}

.button--small {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.85rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  content: "";
  background: currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1.5px solid var(--ink);
}

.hero__inner {
  display: grid;
  min-height: 720px;
  grid-template-columns: minmax(0, 1.03fr) minmax(430px, 0.97fr);
  align-items: center;
  gap: clamp(32px, 6vw, 90px);
  padding-block: 80px 92px;
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 730px;
}

.hero h1 {
  max-width: 780px;
  margin-bottom: 28px;
  font-size: clamp(4.4rem, 8.9vw, 8.7rem);
  font-weight: 640;
}

.hero h1 em {
  position: relative;
  z-index: 0;
  color: var(--ink);
  font-style: italic;
  white-space: nowrap;
}

.hero h1 em::after {
  position: absolute;
  z-index: -1;
  right: -0.03em;
  bottom: 0.06em;
  left: -0.02em;
  height: 0.27em;
  content: "";
  background: var(--coral);
  border-radius: 999px 40px 999px 30px;
  transform: rotate(-1.6deg);
}

.hero__lede {
  max-width: 600px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  font-weight: 750;
  text-decoration: none;
}

.text-link span {
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  list-style: none;
}

.quick-facts li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.quick-facts li::before {
  width: 7px;
  height: 7px;
  content: "";
  background: var(--ink);
  border-radius: 50%;
}

.hero__art {
  position: relative;
  min-height: 550px;
}

.collage {
  position: absolute;
  inset: 0;
  transform: rotate(1.4deg);
}

.collage::before {
  position: absolute;
  top: 2%;
  right: -2%;
  bottom: 7%;
  left: 10%;
  content: "";
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 46% 54% 35% 65% / 42% 43% 57% 58%;
  transform: rotate(7deg);
}

.collage__sun {
  position: absolute;
  top: 5%;
  right: 4%;
  width: 46%;
  aspect-ratio: 1;
  background: var(--coral);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.pet-portrait {
  position: absolute;
  right: 18%;
  bottom: 2%;
  width: 72%;
  aspect-ratio: 0.82;
  overflow: hidden;
  background:
    linear-gradient(145deg, transparent 40%, rgba(255, 255, 255, 0.34) 41%, transparent 42%),
    var(--sky);
  border: 2px solid var(--ink);
  border-radius: 44% 44% 20px 20px / 38% 38% 20px 20px;
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
}

.pet-portrait svg {
  position: absolute;
  right: -6%;
  bottom: -2%;
  width: 88%;
}

.receipt {
  position: absolute;
  z-index: 3;
  top: 12%;
  left: 0;
  width: 212px;
  padding: 21px 18px 24px;
  background: var(--cream);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  line-height: 1.55;
  transform: rotate(-7deg);
}

.receipt::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 8px;
  content: "";
  background: linear-gradient(135deg, var(--cream) 5px, transparent 0) 0 0 / 10px 10px repeat-x;
}

.receipt__shop {
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--ink);
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
}

.receipt__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.receipt__row strong {
  font-weight: 800;
}

.receipt__total {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--ink);
  font-size: 0.84rem;
}

.sticker {
  position: absolute;
  z-index: 4;
  right: -2%;
  bottom: 10%;
  display: grid;
  width: 132px;
  aspect-ratio: 1;
  place-items: center;
  padding: 20px;
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 0.73rem;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(10deg);
}

.floating-tag {
  position: absolute;
  z-index: 4;
  top: 26%;
  right: -5%;
  padding: 10px 15px;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(5deg);
}

.ticker {
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

.ticker__track {
  display: flex;
  width: max-content;
  padding-block: 13px;
  animation: ticker 32s linear infinite;
}

.ticker__set {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  white-space: nowrap;
  text-transform: uppercase;
}

.ticker__set span::after {
  margin-left: 28px;
  color: var(--lime);
  content: "◆";
}

.section {
  padding-block: clamp(72px, 10vw, 128px);
  border-bottom: 1.5px solid var(--ink);
}

.section--cream {
  background: var(--cream);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.45fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 48px;
}

.section-heading h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(2.9rem, 5.7vw, 5.5rem);
  font-weight: 620;
}

.section-heading p {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 1rem;
}

.kicker {
  display: block;
  margin-bottom: 12px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.calculator-shell {
  position: relative;
}

.calculator-shell::before {
  position: absolute;
  z-index: -1;
  top: 38px;
  right: 1.5%;
  width: 120px;
  aspect-ratio: 1;
  content: "";
  background: var(--coral);
  border: 2px solid var(--ink);
  border-radius: 50%;
  transform: translate(35%, 0);
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, 0.84fr);
  align-items: start;
  gap: 28px;
}

.pet-form {
  padding: clamp(22px, 4vw, 38px);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.field {
  min-width: 0;
  margin: 0;
  padding: 0 0 27px;
  border: 0;
}

.field + .field {
  padding-top: 27px;
  border-top: 1px solid var(--line);
}

.field:last-of-type {
  padding-bottom: 18px;
}

.field legend,
.field__label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  padding: 0;
  font-size: 1rem;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.field__number {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.field__hint {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 550;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice-row--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice__face {
  display: flex;
  min-height: 72px;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 12px 14px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease;
}

.choice:hover .choice__face {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.choice input:checked + .choice__face {
  background: var(--lime);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.choice__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
}

.choice__note {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.3;
}

.choice input:checked + .choice__face .choice__note {
  color: var(--ink-soft);
}

.pet-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 10px;
  height: 10px;
  content: "";
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

select {
  width: 100%;
  height: 54px;
  padding: 0 46px 0 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  appearance: none;
  font-weight: 700;
  cursor: pointer;
}

select:hover {
  border-color: var(--ink);
}

.field[hidden] {
  display: none;
}

.insurance-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 15px;
  background: #eafaff;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
}

.insurance-box__copy strong {
  display: block;
  font-size: 0.9rem;
}

.insurance-box__copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.toggle {
  position: relative;
  display: inline-flex;
  width: 58px;
  height: 32px;
  flex: 0 0 auto;
  cursor: pointer;
}

.toggle input {
  position: absolute;
  opacity: 0;
}

.toggle__track {
  width: 100%;
  height: 100%;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  transition: background-color 160ms ease;
}

.toggle__track::after {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 20px;
  height: 20px;
  content: "";
  background: var(--ink);
  border-radius: 50%;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.toggle input:checked + .toggle__track {
  background: var(--lime);
}

.toggle input:checked + .toggle__track::after {
  transform: translateX(26px);
}

.result-panel {
  position: sticky;
  top: 98px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 7px 7px 0 var(--coral);
}

.result-panel__top {
  position: relative;
  padding: 29px 28px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.result-panel__top::after {
  position: absolute;
  top: 23px;
  right: 25px;
  width: 49px;
  height: 49px;
  content: "";
  background: var(--lime);
  border: 1.5px solid var(--white);
  border-radius: 50%;
  opacity: 0.95;
}

.result-panel__label {
  margin-bottom: 17px;
  color: var(--lime);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.result-panel__amount {
  margin: 0 0 3px;
  font-family: var(--display);
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.result-panel__amount > span:last-child {
  color: #aaa99f;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
}

.result-panel__subline {
  margin: 10px 0 0;
  color: #c8c7bd;
  font-size: 0.83rem;
}

.range-scale {
  padding: 20px 28px 18px;
  background: #202019;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.range-scale__labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #a9a89f;
  font-size: 0.65rem;
  font-weight: 650;
}

.range-scale__bar {
  position: relative;
  height: 8px;
  background: linear-gradient(90deg, var(--sky), var(--lime) 52%, var(--coral));
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
}

.range-scale__marker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 17px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--white);
  transform: translate(-50%, -50%);
  transition: left 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.result-panel__body {
  padding: 23px 28px 25px;
}

.cost-chart {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.donut {
  position: relative;
  width: 124px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    var(--coral) 0 30%,
    var(--sky) 30% 52%,
    var(--lime) 52% 72%,
    var(--sun) 72% 88%,
    #d7d2c4 88% 100%
  );
  transition: background 280ms ease;
}

.donut::before {
  position: absolute;
  inset: 20px;
  display: grid;
  content: "PER YEAR";
  color: #b9b8ae;
  background: var(--ink);
  border-radius: 50%;
  place-items: center;
  font-size: 0.55rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.breakdown {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breakdown li {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: #cac9bf;
  font-size: 0.72rem;
}

.breakdown__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.breakdown__value {
  color: var(--white);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.lifetime-box {
  margin-bottom: 18px;
  padding: 16px 17px;
  background: var(--lime);
  color: var(--ink);
  border-radius: var(--radius-sm);
}

.lifetime-box__label {
  margin-bottom: 3px;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lifetime-box__value {
  font-family: var(--display);
  font-size: 1.62rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.lifetime-box__note {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 0.66rem;
  line-height: 1.35;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
}

.result-actions .button {
  min-height: 44px;
  background: var(--white);
  box-shadow: none;
}

.result-actions .button:hover {
  background: var(--lime);
  box-shadow: none;
  transform: none;
}

.result-actions .button--icon {
  width: 44px;
  padding: 0;
  font-size: 1rem;
}

.copy-status {
  min-height: 17px;
  margin: 9px 0 0;
  color: var(--lime);
  font-size: 0.66rem;
  text-align: center;
}

.result-panel__fine {
  margin: 3px 0 0;
  color: #929187;
  font-size: 0.6rem;
  line-height: 1.4;
}

.equation {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 54px;
}

.equation__item {
  padding: 24px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
}

.equation__icon {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
}

.equation__item h3 {
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.equation__item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.equation__symbol {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 650;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.cost-card {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  padding: 27px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-md);
}

.cost-card:nth-child(1) {
  grid-column: span 7;
  background: var(--lime);
}

.cost-card:nth-child(2) {
  grid-column: span 5;
  background: var(--sky);
}

.cost-card:nth-child(3) {
  grid-column: span 5;
  background: var(--sun);
}

.cost-card:nth-child(4) {
  grid-column: span 7;
  background: var(--coral);
}

.cost-card__number {
  position: absolute;
  top: 19px;
  right: 23px;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.cost-card h3 {
  max-width: 390px;
  margin: 68px 0 12px;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 610;
}

.cost-card p {
  max-width: 470px;
  margin-bottom: 0;
  font-size: 0.91rem;
}

.cost-card__metric {
  display: inline-block;
  margin-top: 20px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

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

.path-card {
  display: flex;
  min-height: 350px;
  flex-direction: column;
  padding: 27px;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.path-card:hover {
  box-shadow: 6px 6px 0 var(--ink);
  transform: translate(-3px, -3px);
}

.path-card__tag {
  align-self: flex-start;
  margin-bottom: 54px;
  padding: 6px 10px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.path-card h3 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 610;
}

.path-card p {
  color: var(--muted);
  font-size: 0.88rem;
}

.path-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 800;
}

.path-card--dog {
  background:
    radial-gradient(circle at 76% 18%, var(--lime) 0 68px, transparent 69px),
    var(--white);
}

.path-card--cat {
  background:
    radial-gradient(circle at 76% 18%, var(--coral) 0 68px, transparent 69px),
    var(--white);
}

.path-card--guide {
  background:
    radial-gradient(circle at 76% 18%, var(--sky) 0 68px, transparent 69px),
    var(--white);
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  gap: 60px;
}

.method-copy h2 {
  max-width: 700px;
  margin-bottom: 26px;
  font-size: clamp(2.8rem, 5vw, 4.7rem);
}

.method-copy > p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.03rem;
}

.method-list {
  display: grid;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.method-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 15px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

.method-item__number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: var(--lime);
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 0.67rem;
  font-weight: 850;
}

.method-item h3 {
  margin-bottom: 4px;
  font-size: 1.12rem;
}

.method-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.method-note {
  align-self: start;
  padding: 26px;
  background: var(--lime);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(1.5deg);
}

.method-note h3 {
  margin-bottom: 12px;
  font-size: 1.7rem;
}

.method-note p {
  font-size: 0.82rem;
}

.method-note p:last-child {
  margin-bottom: 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.36fr minmax(0, 0.64fr);
  gap: 60px;
}

.faq-heading h2 {
  margin-bottom: 20px;
  font-size: clamp(2.9rem, 5vw, 4.8rem);
}

.faq-heading p {
  color: var(--muted);
}

.faq-list {
  border-top: 1px solid var(--ink);
}

.faq-item {
  border-bottom: 1px solid var(--ink);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 23px 2px;
  font-weight: 780;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  content: "+";
  background: var(--lime);
  border: 1px solid var(--ink);
  border-radius: 50%;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item__answer {
  max-width: 720px;
  padding: 0 0 25px;
  color: var(--muted);
  font-size: 0.9rem;
}

.faq-item__answer p:last-child {
  margin-bottom: 0;
}

.footer {
  padding: 50px 0 32px;
  color: var(--white);
  background: var(--ink);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 48px;
  padding-bottom: 44px;
}

.footer .brand {
  color: var(--white);
}

.footer__tagline {
  max-width: 420px;
  margin: 18px 0 0;
  color: #a8a79f;
  font-size: 0.9rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 15px 25px;
  font-size: 0.82rem;
}

.footer__nav a {
  color: #d6d5cc;
  text-decoration: none;
}

.footer__nav a:hover {
  color: var(--lime);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  color: #83827b;
  border-top: 1px solid #383831;
  font-size: 0.65rem;
}

.footer__bottom p {
  margin-bottom: 0;
}

.page-hero {
  padding-block: clamp(74px, 10vw, 130px);
  border-bottom: 1.5px solid var(--ink);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  align-items: end;
  gap: 70px;
}

.page-hero h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(3.9rem, 8vw, 7.7rem);
  font-weight: 620;
}

.page-hero h1 em {
  font-style: italic;
}

.page-hero__lede {
  max-width: 690px;
  margin-bottom: 27px;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.page-hero__panel {
  padding: 25px;
  background: var(--lime);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(1.5deg);
}

.page-hero__panel .kicker {
  margin-bottom: 18px;
}

.big-number {
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 3.8rem;
  font-weight: 620;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.page-hero__panel p {
  margin-bottom: 0;
  font-size: 0.78rem;
}

.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) 260px;
  align-items: start;
  gap: 72px;
}

.article-intro {
  max-width: 780px;
  margin-bottom: 45px;
}

.article-intro p {
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.prose h2 {
  margin: 54px 0 18px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.prose h3 {
  margin: 34px 0 10px;
  font-size: 1.55rem;
}

.prose p,
.prose li {
  color: #47443d;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 9px;
}

.prose a {
  font-weight: 700;
}

.source-note {
  margin-top: -8px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--sky) 54%, var(--white));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.method-note a {
  font-weight: 800;
}

.callout {
  margin-block: 34px;
  padding: 24px;
  background: var(--lime);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: 4px 4px 0 var(--ink);
}

.callout p:last-child {
  margin-bottom: 0;
}

.article-aside {
  position: sticky;
  top: 100px;
  padding: 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.article-aside h2 {
  margin-bottom: 14px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-aside ol {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 11px;
  counter-reset: aside;
  list-style: none;
}

.article-aside li {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 8px;
  font-size: 0.74rem;
  counter-increment: aside;
}

.article-aside li::before {
  color: var(--muted);
  content: "0" counter(aside);
  font-size: 0.62rem;
  font-weight: 800;
}

.article-aside .button {
  width: 100%;
  margin-top: 18px;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-block: 32px;
}

.snapshot {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.snapshot strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.snapshot span {
  color: var(--muted);
  font-size: 0.7rem;
}

.cost-table-wrap {
  overflow-x: auto;
  margin-block: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.cost-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.82rem;
}

.cost-table th,
.cost-table td {
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.cost-table th {
  background: var(--ink);
  color: var(--white);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.cost-table td:last-child,
.cost-table th:last-child {
  text-align: right;
}

.article-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 26px;
  margin-top: 48px;
  padding: 28px;
  background: var(--coral);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 5px 5px 0 var(--ink);
}

.article-cta h2 {
  margin-bottom: 6px;
  font-size: 2.1rem;
}

.article-cta p {
  margin-bottom: 0;
  font-size: 0.82rem;
}

.privacy-wrap {
  max-width: 850px;
}

.simple-hero h1 {
  margin-bottom: 16px;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 1;
  transform: none;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1040px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
    gap: 30px;
  }

  .hero h1 {
    font-size: clamp(4rem, 8vw, 6.4rem);
  }

  .hero__art {
    min-height: 480px;
  }

  .receipt {
    width: 180px;
    font-size: 0.68rem;
  }

  .calculator-grid {
    grid-template-columns: minmax(0, 1fr) 350px;
  }

  .cost-card:nth-child(n) {
    grid-column: span 6;
  }

  .page-hero__grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
  }
}

@media (max-width: 850px) {
  html {
    scroll-padding-top: 72px;
  }

  .wrap {
    width: min(var(--max), calc(100% - 30px));
  }

  .site-header__inner {
    min-height: 68px;
  }

  .site-nav a:not(.button):not(.nav-mobile-hide) {
    display: none;
  }

  .site-nav {
    gap: 12px;
  }

  .hero__inner {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-block: 64px 70px;
  }

  .hero__copy {
    max-width: 760px;
  }

  .hero h1 {
    font-size: clamp(4rem, 14vw, 7rem);
  }

  .hero__art {
    width: min(100%, 590px);
    min-height: 520px;
    margin: 12px auto 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .result-panel {
    position: relative;
    top: auto;
  }

  .equation {
    grid-template-columns: 1fr;
  }

  .equation__symbol {
    text-align: center;
  }

  .cost-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cost-card:nth-child(n) {
    grid-column: span 1;
  }

  .path-grid {
    grid-template-columns: 1fr;
  }

  .path-card {
    min-height: 290px;
  }

  .method-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .method-note {
    max-width: 520px;
    transform: none;
  }

  .page-hero__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .page-hero__panel {
    max-width: 420px;
    transform: none;
  }

  .article-wrap {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .article-aside {
    position: relative;
    top: auto;
    grid-row: 1;
  }

  .article-aside ol {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  body {
    background-size: auto, auto, 24px 24px, 24px 24px, auto;
  }

  .brand {
    font-size: 1rem;
  }

  .brand__mark {
    width: 32px;
    height: 32px;
  }

  .site-nav .nav-mobile-hide {
    display: none;
  }

  .hero__inner {
    padding-block: 50px 58px;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 18vw, 5.3rem);
  }

  .hero__lede {
    font-size: 1rem;
  }

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

  .hero__actions .button {
    width: 100%;
  }

  .text-link {
    justify-content: center;
  }

  .quick-facts {
    display: grid;
    gap: 8px;
  }

  .hero__art {
    min-height: 405px;
  }

  .receipt {
    top: 9%;
    width: 155px;
    padding: 15px 13px 19px;
    font-size: 0.62rem;
  }

  .sticker {
    right: 0;
    width: 105px;
    font-size: 0.59rem;
  }

  .floating-tag {
    top: 22%;
    right: 0;
    padding: 8px 11px;
    font-size: 0.62rem;
  }

  .section {
    padding-block: 66px;
  }

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

  .section-heading h2 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .pet-form {
    padding: 20px 16px 26px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .choice-row,
  .choice-row--three {
    grid-template-columns: 1fr;
  }

  .choice__face {
    min-height: 62px;
  }

  .insurance-box {
    align-items: flex-start;
  }

  .result-panel,
  .method-note {
    box-shadow: 4px 4px 0 var(--coral);
  }

  .result-panel__top,
  .range-scale,
  .result-panel__body {
    padding-right: 20px;
    padding-left: 20px;
  }

  .cost-chart {
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 15px;
  }

  .donut {
    width: 105px;
  }

  .donut::before {
    inset: 17px;
    font-size: 0.48rem;
  }

  .cost-grid {
    grid-template-columns: 1fr;
  }

  .cost-card {
    min-height: 245px;
    padding: 22px;
  }

  .cost-card h3 {
    margin-top: 55px;
  }

  .path-grid {
    gap: 14px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer__nav {
    justify-content: flex-start;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
  }

  .page-hero {
    padding-block: 58px;
  }

  .page-hero h1 {
    font-size: clamp(3.15rem, 15vw, 5rem);
  }

  .snapshot-grid {
    grid-template-columns: 1fr;
  }

  .article-cta {
    grid-template-columns: 1fr;
    padding: 23px;
  }

  .article-cta .button {
    width: 100%;
  }

  .article-aside ol {
    grid-template-columns: 1fr;
  }
}

@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;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
