:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
}

.age-page { background: #fff; }
.age-container { width: min(820px, calc(100% - 48px)); }
.age-intro { padding: 38px 0 59px; background: #fff; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 31px; color: #647087; font-size: 12px; font-weight: 600; }
.back-link:hover { color: var(--blue); }
.back-link span { font-size: 16px; }
.age-intro > .container > .section-kicker { margin-bottom: 8px; }
.age-intro h1 { margin: 0 0 9px; color: var(--ink); font-family: var(--font-heading); font-size: clamp(33px, 5vw, 42px); font-weight: 800; letter-spacing: -1.7px; }
.age-lede { margin-bottom: 26px; color: #748098; font-size: 14px; line-height: 1.6; }
.age-calculator-card { padding: 27px; border: 1px solid #e8edf5; border-radius: 14px; background: #fff; box-shadow: 0 14px 40px rgba(34,58,108,.07); }
.calculator-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; }
.calculator-icon { width: 44px; height: 44px; display: grid; flex: none; place-items: center; border: 1px solid #e1eaff; border-radius: 11px; color: var(--blue); background: #f2f6ff; }
.calculator-icon svg { width: 25px; height: 25px; }
.calculator-heading h2 { margin: 0 0 4px; font-family: var(--font-heading); font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.calculator-heading p { margin: 0; color: #8490a2; font-size: 11px; }
.input-label { display: block; margin-bottom: 8px; color: #536078; font-size: 12px; font-weight: 700; }
.calculator-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 9px; }
.calculator-controls input { width: 100%; min-width: 0; min-height: 45px; padding: 0 12px; border: 1px solid #dfe5ef; border-radius: 8px; outline: none; color: var(--ink); background: #fff; font: inherit; font-size: 13px; }
.calculator-controls input:focus { border-color: #9ab5ff; box-shadow: 0 0 0 3px #edf2ff; }
.age-button { min-height: 45px; padding: 0 16px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 700; transition: background .18s ease, border-color .18s ease; }
.age-button-primary { color: #fff; background: var(--blue); }
.age-button-primary:hover { background: var(--blue-dark); }
.age-button-primary span { padding-left: 8px; font-size: 15px; }
.age-button-secondary { border-color: #e4e9f1; color: #66738a; background: #fff; }
.age-button-secondary:hover { background: #f7f9fc; }
.date-error { min-height: 17px; margin: 8px 0 0; color: #c34848; font-size: 11px; }
.date-error:empty { min-height: 0; margin-top: 0; }
.age-results { margin-top: 19px; padding-top: 26px; border-top: 1px solid #edf0f5; }
.age-results[hidden] { display: none; }
.results-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.results-heading .section-kicker { margin-bottom: 5px; }
.results-heading h2 { margin: 0; font-family: var(--font-heading); font-size: 19px; font-weight: 800; letter-spacing: -.5px; }
.results-as-of { margin: 0 0 2px; color: #929bad; font-size: 10px; }
.age-summary { margin: 17px 0 12px; color: #59667d; font-size: 13px; }
.age-summary strong { color: var(--blue); font-weight: 700; }
.age-parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.age-part { display: flex; min-height: 91px; flex-direction: column; justify-content: center; padding: 13px; border: 1px solid #e3ebff; border-radius: 9px; background: #f7f9ff; text-align: center; }
.age-part strong { margin-bottom: 4px; color: var(--blue); font-family: var(--font-heading); font-size: 29px; font-weight: 800; letter-spacing: -.8px; line-height: 1; }
.age-part span { color: #738097; font-size: 11px; }
.totals-heading { margin: 23px 0 10px; font-family: var(--font-heading); font-size: 13px; font-weight: 800; }
.lifetime-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.lifetime-stat { min-width: 0; display: flex; min-height: 67px; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; border: 1px solid #edf0f5; border-radius: 8px; background: #fff; }
.lifetime-stat strong { overflow-wrap: anywhere; color: #273653; font-family: var(--font-heading); font-size: 17px; font-weight: 800; letter-spacing: -.4px; }
.lifetime-stat span { color: #8490a2; font-size: 10px; }
.milestone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.milestone-card { min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 78px; padding: 13px; border: 1px solid #edf0f5; border-radius: 9px; background: #fff; }
.milestone-icon { width: 36px; height: 36px; display: grid; flex: none; place-items: center; border-radius: 9px; background: #fff5ec; font-size: 19px; }
.milestone-calendar { color: #218c68; background: #e8f8f2; font-family: var(--font-heading); font-size: 16px; font-weight: 800; }
.milestone-card > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.milestone-label { color: #929bad; font-size: 8px; font-weight: 800; letter-spacing: .9px; }
.milestone-card strong { color: #273653; font-family: var(--font-heading); font-size: 14px; font-weight: 800; }
.milestone-detail { color: #8490a2; font-size: 10px; }
.hours-note { margin: 12px 0 0; color: #929bad; font-size: 10px; }
.age-privacy { justify-content: center; margin: 16px 0 0; }
.faq-section { padding: 48px 0 72px; border-top: 1px solid #f0f2f6; background: #fff; }
.faq-section > .container > .section-kicker { margin-bottom: 7px; }
.faq-section h2 { margin: 0 0 21px; font-family: var(--font-heading); font-size: 25px; font-weight: 800; letter-spacing: -.8px; }
.faq-list { border-top: 1px solid #edf0f5; }
.faq-item { border-bottom: 1px solid #edf0f5; }
.faq-item summary { position: relative; padding: 17px 32px 17px 0; color: #26334c; font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { position: absolute; top: 14px; right: 3px; color: var(--blue); content: "+"; font-size: 19px; font-weight: 500; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { max-width: 700px; margin: -3px 30px 17px 0; color: #788398; font-size: 12px; line-height: 1.7; }

@media (max-width: 700px) {
  .age-container { width: min(100% - 36px, 540px); }
}

@media (max-width: 560px) {
  .age-container { width: calc(100% - 32px); }
  .age-intro { padding: 27px 0 42px; }
  .back-link { margin-bottom: 23px; }
  .age-lede { margin-bottom: 20px; font-size: 13px; }
  .age-calculator-card { padding: 20px 16px; border-radius: 12px; }
  .calculator-heading { margin-bottom: 20px; }
  .calculator-controls { grid-template-columns: 1fr 1fr; }
  .calculator-controls input { grid-column: 1 / -1; }
  .age-button { padding: 0 10px; }
  .results-heading { align-items: start; flex-direction: column; gap: 5px; }
  .age-parts { gap: 7px; }
  .age-part { min-height: 79px; padding: 9px 5px; }
  .age-part strong { font-size: 25px; }
  .lifetime-grid { grid-template-columns: repeat(2, 1fr); }
  .lifetime-stat { min-height: 61px; }
  .milestone-grid { grid-template-columns: 1fr; }
  .faq-section { padding: 38px 0 54px; }
  .faq-section h2 { font-size: 22px; }
  .faq-item summary { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .age-button { transition-duration: .01ms; }
}
