.age-tool-page {
  --tool-accent: var(--aqua);
  --tool-soft: #eaf8f8;
  --tool-deep: #126f7c;
  --tool-wash: #dff4ed;
  background:
    radial-gradient(circle at 86% 9%, color-mix(in srgb, var(--tool-accent) 24%, transparent), transparent 24rem),
    linear-gradient(180deg, var(--tool-soft) 0 46rem, var(--paper) 46rem);
}

.age-tool-page[data-species="cat"] {
  --tool-accent: var(--coral);
  --tool-soft: #fff1e9;
  --tool-deep: #a64c34;
  --tool-wash: #fff5ce;
}

.age-breadcrumb {
  padding-top: 20px;
  font-size: 0.82rem;
}

.age-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.age-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.age-breadcrumb li + li::before {
  content: "/";
  color: color-mix(in srgb, var(--muted) 55%, transparent);
}

.age-breadcrumb a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
}

.age-breadcrumb a:hover {
  color: var(--ink-strong);
}

.age-hero {
  padding: clamp(38px, 7vw, 80px) 0 clamp(60px, 8vw, 98px);
}

.age-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(42px, 8vw, 108px);
}

.age-kicker {
  margin-bottom: 14px;
  color: var(--tool-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.25;
  text-transform: uppercase;
}

.age-tool-page .underline::after {
  background: var(--tool-accent);
}

.age-hero-copy h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 4.9vw, 4.2rem);
}

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

.age-hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.age-hero-notes li {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid color-mix(in srgb, var(--tool-deep) 18%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  color: var(--ink);
  font-size: 0.79rem;
  font-weight: 700;
}

.age-hero-notes li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--tool-accent);
}

.age-hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.age-ledger {
  position: relative;
  width: min(410px, 100%);
  padding: 28px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tool-deep) 17%, transparent);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: 0 32px 80px rgba(20, 33, 42, 0.14);
  transform: rotate(2deg);
}

.age-ledger::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -72px;
  top: -84px;
  border-radius: 50%;
  background: var(--tool-accent);
  opacity: 0.55;
}

.age-ledger-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
}

.age-ledger-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.age-ledger-brand img {
  width: 34px;
  height: 34px;
}

.age-ledger-brand strong {
  display: block;
  color: var(--ink-strong);
  line-height: 1.15;
}

.age-ledger-brand small,
.age-ledger-head > small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.age-ledger-years {
  display: grid;
  gap: 12px;
  margin-top: 23px;
}

.age-ledger-row {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.77rem;
}

.age-ledger-row strong {
  color: var(--ink-strong);
  font-size: 0.85rem;
}

.age-ledger-bar {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-deep);
}

.age-ledger-bar span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--tool-accent);
}

.age-ledger-row:nth-child(1) .age-ledger-bar span {
  width: 24%;
}

.age-ledger-row:nth-child(2) .age-ledger-bar span {
  width: 52%;
}

.age-ledger-row:nth-child(3) .age-ledger-bar span {
  width: 78%;
}

.age-ledger-foot {
  margin-top: 23px;
  padding: 17px 18px;
  border-radius: 18px;
  background: var(--tool-wash);
}

.age-ledger-foot strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink-strong);
  font-size: 0.9rem;
}

.age-ledger-foot p {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.age-tool-section {
  padding: 0 0 clamp(74px, 10vw, 120px);
}

.age-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.76fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: clamp(26px, 4vw, 42px);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.age-form-panel {
  padding: clamp(28px, 5vw, 58px);
}

.age-form-heading {
  max-width: 650px;
  margin-bottom: 35px;
}

.age-form-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 3.1vw, 2.65rem);
}

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

.age-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.age-form fieldset + fieldset {
  margin-top: 32px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.age-form legend {
  width: 100%;
  margin-bottom: 16px;
  padding: 0;
  color: var(--ink-strong);
  font-size: 1rem;
  font-weight: 780;
  letter-spacing: -0.015em;
}

.age-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.age-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
}

.age-field input {
  width: 100%;
  height: 58px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: var(--paper);
  color: var(--ink-strong);
  font-size: 1.12rem;
  font-weight: 730;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.age-field input:hover {
  border-color: color-mix(in srgb, var(--tool-deep) 52%, transparent);
}

.age-field input:focus {
  border-color: var(--tool-deep);
  background: white;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tool-accent) 30%, transparent);
  outline: 0;
}

.field-help {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

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

.age-size-option {
  position: relative;
}

.age-size-option label {
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 15px 14px 49px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms var(--ease);
}

.age-size-option label::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 15px;
  top: 50%;
  border: 2px solid color-mix(in srgb, var(--muted) 65%, transparent);
  border-radius: 50%;
  background: var(--surface);
  transform: translateY(-50%);
}

.age-size-option input:checked + label {
  border-color: var(--tool-deep);
  background: color-mix(in srgb, var(--tool-soft) 74%, white);
}

.age-size-option input:checked + label::before {
  border: 6px solid var(--tool-deep);
}

.age-size-option input:focus-visible + label {
  outline: 3px solid var(--tool-deep);
  outline-offset: 3px;
}

.age-size-option label:hover {
  border-color: color-mix(in srgb, var(--tool-deep) 55%, transparent);
  transform: translateY(-2px);
}

.age-size-option strong {
  color: var(--ink-strong);
  font-size: 0.86rem;
}

.age-size-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.69rem;
}

.age-form-error {
  min-height: 24px;
  margin: 16px 0 0;
  color: #a6382d;
  font-size: 0.82rem;
  font-weight: 700;
}

.age-form-error:empty {
  display: none;
}

.age-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 21px;
}

.age-form-actions .button {
  border: 0;
  cursor: pointer;
}

.age-form-actions .button--tool {
  background: var(--tool-accent);
  color: var(--ink-strong);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--tool-deep) 16%, transparent);
}

.age-form-actions .button--tool:hover {
  background: color-mix(in srgb, var(--tool-accent) 86%, white);
}

.age-reset {
  min-height: 48px;
  padding: 0 17px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.age-result-panel {
  position: relative;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 5vw, 55px);
  overflow: hidden;
  background: var(--ink-strong);
  color: rgba(255, 255, 255, 0.69);
}

.age-result-panel::before {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  right: -170px;
  top: -150px;
  border-radius: 50%;
  background: var(--tool-accent);
  opacity: 0.88;
}

.age-result-panel > * {
  position: relative;
  z-index: 1;
}

.age-result-label {
  margin-bottom: 26px;
  color: var(--tool-accent);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.age-result-empty {
  max-width: 330px;
  margin: auto 0;
}

.age-result-empty img {
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

.age-result-empty h2 {
  color: white;
  font-size: clamp(1.85rem, 3vw, 2.6rem);
}

.age-result-empty p {
  color: rgba(255, 255, 255, 0.62);
}

.age-result-content[hidden],
.age-result-empty[hidden] {
  display: none;
}

.age-result-content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.age-equivalent {
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.age-equivalent-prefix {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
}

.age-equivalent-value {
  display: flex;
  align-items: end;
  gap: 10px;
  color: white;
}

.age-equivalent-value strong {
  font-size: clamp(4.7rem, 10vw, 7.8rem);
  font-weight: 760;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.age-equivalent-value span {
  max-width: 78px;
  padding-bottom: 9px;
  font-size: 0.78rem;
  font-weight: 690;
  line-height: 1.25;
}

.age-stage-result {
  padding: 24px 0 22px;
}

.age-stage-result span {
  display: block;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.73rem;
  font-weight: 740;
  text-transform: uppercase;
}

.age-stage-result strong {
  display: block;
  margin-top: 4px;
  color: white;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.035em;
}

.age-stage-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.age-stage-track li {
  min-width: 0;
  padding-top: 12px;
  border-top: 5px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.25;
}

.age-stage-track li.is-past {
  border-top-color: color-mix(in srgb, var(--tool-accent) 52%, transparent);
  color: rgba(255, 255, 255, 0.56);
}

.age-stage-track li.is-current {
  border-top-color: var(--tool-accent);
  color: white;
}

.age-result-summary {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.91rem;
  line-height: 1.62;
}

.age-result-method {
  margin-top: auto;
  padding: 16px 17px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.72rem;
  line-height: 1.55;
}

.age-result-method strong {
  color: rgba(255, 255, 255, 0.88);
}

.age-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.73rem;
}

.age-privacy-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
  color: var(--tool-deep);
}

.age-content-section {
  padding: clamp(74px, 10vw, 122px) 0;
}

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

.age-content-section--soft {
  background:
    radial-gradient(circle at 8% 12%, color-mix(in srgb, var(--tool-accent) 17%, transparent), transparent 24rem),
    var(--tool-soft);
}

.age-content-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.age-content-heading h2 {
  max-width: 720px;
}

.age-content-heading p {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.03rem;
}

.age-method-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(40px, 8vw, 100px);
}

.age-method-copy p {
  color: var(--muted);
}

.age-method-copy p + p {
  margin-top: 16px;
}

.age-formula {
  margin-top: 28px;
  padding: 24px;
  border-left: 5px solid var(--tool-accent);
  border-radius: 0 20px 20px 0;
  background: var(--tool-soft);
}

.age-formula strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-strong);
}

.age-formula code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--tool-deep);
  font-family: "Voffi Sans", ui-sans-serif, sans-serif;
  font-size: 0.88rem;
  font-weight: 780;
}

.age-formula p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.77rem;
}

.age-method-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.age-method-steps li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--paper);
}

.age-method-step {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--tool-accent);
  color: var(--ink-strong);
  font-size: 0.8rem;
  font-weight: 820;
}

.age-method-steps strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-strong);
}

.age-method-steps p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.age-stage-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.age-stage-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.age-stage-card small {
  display: block;
  margin-bottom: 40px;
  color: var(--tool-deep);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.age-stage-card h3 {
  font-size: 1.22rem;
}

.age-stage-card p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

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

.age-faq-card {
  padding: 25px;
  border-top: 4px solid var(--tool-accent);
  border-radius: 4px 4px 20px 20px;
  background: var(--paper);
}

.age-faq-card h3 {
  font-size: 1.15rem;
  line-height: 1.25;
}

.age-faq-card p {
  color: var(--muted);
  font-size: 0.87rem;
}

.age-sources {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(480px, 1.3fr);
  gap: clamp(40px, 8vw, 100px);
}

.age-source-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: source;
}

.age-source-list li {
  position: relative;
  padding: 19px 0 19px 48px;
  border-top: 1px solid var(--line);
  counter-increment: source;
}

.age-source-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.age-source-list li::before {
  content: counter(source, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 20px;
  color: var(--tool-deep);
  font-size: 0.72rem;
  font-weight: 820;
}

.age-source-list a {
  color: var(--ink-strong);
  font-weight: 740;
}

.age-source-list p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.source-cite {
  white-space: nowrap;
  color: var(--tool-deep);
  font-size: 0.78em;
  font-weight: 800;
  vertical-align: 0.12em;
}

.age-disclaimer {
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid color-mix(in srgb, var(--tool-deep) 18%, transparent);
  border-radius: 18px;
  background: var(--tool-soft);
  color: var(--muted);
  font-size: 0.82rem;
}

.age-disclaimer strong {
  color: var(--ink-strong);
}

.age-related {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: end;
  gap: clamp(34px, 6vw, 80px);
}

.age-related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.age-related-link {
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  color: var(--ink-strong);
  font-weight: 750;
  line-height: 1.28;
  text-decoration: none;
  transition: transform 180ms var(--ease), border-color 180ms ease, box-shadow 180ms ease;
}

.age-related-link span {
  color: var(--tool-deep);
  font-size: 1.05rem;
}

.age-related-link:hover {
  border-color: color-mix(in srgb, var(--tool-deep) 48%, transparent);
  color: var(--ink-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.age-cta {
  padding: clamp(66px, 9vw, 105px) 0;
}

.age-cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 66px);
  border-radius: var(--radius-lg);
  background: var(--ink-strong);
  color: rgba(255, 255, 255, 0.68);
}

.age-cta-panel::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -110px;
  bottom: -220px;
  border-radius: 50%;
  background: var(--tool-accent);
}

.age-cta-panel > * {
  position: relative;
  z-index: 1;
}

.age-cta-panel h2 {
  max-width: 710px;
  color: white;
}

.age-cta-panel p {
  max-width: 650px;
}

.age-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 25px;
}

@media (max-width: 980px) {
  .age-hero-grid,
  .age-workbench,
  .age-method-grid,
  .age-sources,
  .age-related {
    grid-template-columns: 1fr;
  }

  .age-hero-visual {
    min-height: 380px;
  }

  .age-ledger {
    width: min(500px, 100%);
  }

  .age-result-panel {
    min-height: 570px;
  }

  .age-stage-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .age-hero-copy h1 {
    font-size: clamp(2.35rem, 11.5vw, 3.2rem);
  }

  .age-hero-visual {
    min-height: 330px;
  }

  .age-ledger {
    padding: 23px;
    transform: none;
  }

  .age-form-panel,
  .age-result-panel {
    padding: 28px 22px;
  }

  .age-result-panel {
    min-height: 540px;
  }

  .age-stage-cards,
  .age-faq-grid,
  .age-related-links {
    grid-template-columns: 1fr;
  }

  .age-stage-card {
    min-height: 0;
  }

  .age-stage-card small {
    margin-bottom: 22px;
  }
}

@media (max-width: 480px) {
  .age-breadcrumb {
    padding-top: 10px;
  }

  .age-hero {
    padding-top: 30px;
  }

  .age-hero-visual {
    min-height: 300px;
  }

  .age-ledger {
    padding: 20px;
    border-radius: 25px;
  }

  .age-ledger-row {
    grid-template-columns: 63px 1fr auto;
    gap: 8px;
  }

  .age-ledger-row span:last-child {
    font-size: 0.67rem;
  }

  .age-inputs,
  .age-size-options {
    grid-template-columns: 1fr;
  }

  .age-size-option label {
    min-height: 74px;
  }

  .age-equivalent-value strong {
    font-size: 5.1rem;
  }

  .age-stage-track li {
    font-size: 0.55rem;
  }

  .age-method-steps li {
    grid-template-columns: 40px 1fr;
    padding: 19px;
  }

  .age-method-step {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .age-ledger,
  .age-size-option label,
  .age-related-link {
    transform: none;
    transition: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .age-hero-notes li {
    background: var(--surface);
  }
}

@media print {
  .age-hero-visual,
  .age-form-actions,
  .age-related,
  .age-cta {
    display: none !important;
  }

  .age-workbench {
    display: block;
    border: 1px solid #999;
    box-shadow: none;
  }

  .age-result-panel {
    min-height: 0;
    background: white;
    color: black;
  }

  .age-result-panel *,
  .age-result-empty h2,
  .age-equivalent-value {
    color: black !important;
  }
}
