:root {
  color-scheme: light;
  --paper: #fffbf5;
  --surface: #ffffff;
  --ink: #103f48;
  --text: #244951;
  --muted: #445e65;
  --teal: #006c70;
  --teal-dark: #00585c;
  --glass: #d6f2eb;
  --glass-tint: #f0f9f6;
  --apricot: #ffb487;
  --apricot-tint: #fff0e5;
  --rust: #97431f;
  --rule: #c5d4cf;
  --control-edge: #718881;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-padding: 1rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 1.0625rem/1.62 var(--sans);
}
[hidden] { display: none !important; }
a { color: var(--teal-dark); text-underline-offset: .2em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 4px;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 2;
  padding: .75rem 1rem;
  background: var(--surface);
  color: var(--ink);
}
.skip:focus { top: .5rem; }
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 72rem;
  margin-inline: auto;
  padding: 1.1rem clamp(1.15rem, 3vw, 2rem);
  border-bottom: 1px solid var(--rule);
}
header a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 650;
}
header img { display: block; width: clamp(9.5rem, 18vw, 13rem); height: auto; }
main { max-width: 66rem; margin-inline: auto; padding: 1.25rem clamp(1.125rem, 3vw, 2rem) 4rem; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { color: var(--ink); }
h1, h2 { font: 400 clamp(2rem, 4vw, 3.05rem)/1.12 var(--serif); letter-spacing: -.028em; margin: 0 0 1rem; }
h1 { text-wrap: balance; font-size: clamp(2.75rem, 6vw, 4.85rem); line-height: 1.035; margin-bottom: 1.1rem; letter-spacing: -.045em; }
h3 { font: 650 1.25rem/1.35 var(--sans); margin: 1.5rem 0 .65rem; }
h4 { font-size: 1.05rem; margin: 1rem 0 .35rem; }
.eyebrow { margin: 0 0 .65rem; color: var(--teal-dark); font-weight: 700; font-size: .875rem; line-height: 1.4; letter-spacing: .085em; }
.intro { max-width: 51rem; padding-block: clamp(1.25rem, 3.8vw, 3rem) .75rem; }
.lead { max-width: 57ch; font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.49; }
.small, .hint { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.hint { display: block; font-weight: 400; }
.before-input {
  margin: 1.2rem 0 1rem;
  padding: 1rem clamp(1rem, 2.4vw, 1.45rem);
  border: 1px solid #a8c9c0;
  border-radius: .65rem;
  background: var(--glass-tint);
}
.before-input h2 { font: 650 1.15rem/1.35 var(--sans); letter-spacing: 0; margin: 0 0 .35rem; }
.before-input p,.field-guide p { max-width: 68ch; margin: .45rem 0; }
details summary {
  display: list-item;
  min-height: 48px;
  padding-block: .625rem;
  color: var(--teal-dark);
  cursor: pointer;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .2em;
}
details summary::marker { color: var(--teal); }
#availability { margin: 1rem 0 .35rem; font-variant-numeric: lining-nums tabular-nums; }

.journey-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.35rem, 1.2vw, 1rem);
  padding: 0;
  margin: 1rem 0;
  list-style: none;
}
.journey-steps li {
  border-top: 3px solid var(--rule);
  padding: .5rem 0;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.4;
}
.journey-steps li[aria-current="step"] { color: var(--ink); border-top-color: var(--teal); font-weight: 750; }
.card {
  margin: 1rem 0 1.5rem;
  padding: clamp(1.15rem, 3.8vw, 2.75rem);
  border: 1px solid var(--rule);
  border-radius: .9rem;
  background: var(--surface);
  min-width: 0;
}
.card > p:not(.eyebrow), .help p { max-width: 69ch; }
button,input,select,textarea { font: inherit; }
button,.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  max-width: 100%;
  padding: .78rem 1.2rem;
  border: 2px solid var(--teal);
  border-radius: .55rem;
  background: var(--teal);
  color: white;
  cursor: pointer;
  line-height: 1.35;
  font-weight: 680;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
}
button:hover,.button:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
button:disabled { opacity: .6; cursor: not-allowed; }
.secondary { background: var(--surface); color: var(--teal-dark); }
.secondary:hover { background: var(--glass); }
.quiet { background: transparent; color: var(--teal-dark); border-color: transparent; text-decoration: underline; text-underline-offset: .2em; }
.quiet:hover { border-color: transparent; background: var(--glass-tint); }
.actions,.email-output-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem .85rem; margin: 1.25rem 0; }
.actions:last-child { margin-bottom: 0; }

.columns,.payment-grid,.email-fields,.email-guide,.math-records { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
fieldset { min-width: 0; margin: 0; padding: 1rem clamp(.85rem, 2vw, 1.35rem) 1.3rem; border: 1px solid var(--rule); border-radius: .6rem; }
legend { padding: 0 .4rem; color: var(--ink); font-weight: 680; line-height: 1.4; }
.record { background: var(--glass-tint); border-color: #a5c5bc; }
.record:nth-child(2) { background: #fff5ed; border-color: #d9b9a6; }
.record legend { font-size: 1.25rem; }
label { display: block; color: var(--ink); font-size: 1.0625rem; font-weight: 650; line-height: 1.5; }
input:not([type="checkbox"]):not([type="radio"]),select,textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  margin: .4rem 0 .45rem;
  padding: .65rem .8rem;
  border: 1.5px solid var(--control-edge);
  border-radius: .4rem;
  color: var(--ink);
  background-color: var(--surface);
  font: 400 1.0625rem/1.4 var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
}
select {
  appearance: none;
  padding-inline-end: 2.6rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--teal-dark) 50%), linear-gradient(135deg, var(--teal-dark) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 51%, calc(100% - .85rem) 51%;
  background-size: .31rem .31rem;
  background-repeat: no-repeat;
}
textarea { resize: vertical; min-height: 6rem; }
input[aria-invalid="true"],select[aria-invalid="true"],textarea[aria-invalid="true"] { border: 2px solid var(--rust) !important; }
input::placeholder,textarea::placeholder { color: var(--muted); opacity: 1; }
.check {
  display: flex;
  align-items: flex-start;
  gap: .72rem;
  min-height: 48px;
  margin-top: .55rem;
  padding: .65rem .8rem;
  border: 1px solid var(--rule);
  border-radius: .5rem;
  background: var(--surface);
  font-weight: 400;
  cursor: pointer;
}
.check input {
  flex: 0 0 auto;
  width: 1.38rem;
  height: 1.38rem;
  margin: .11rem 0 0;
  accent-color: var(--teal);
  cursor: pointer;
}
.check strong { color: var(--ink); }
.check:has(input:checked) { border-color: var(--teal); background: var(--glass-tint); }
.check:focus-within { outline: 3px solid var(--rust); outline-offset: 3px; }
.check input:focus-visible { outline: none; }
#fit-step > .check { max-width: 77ch; padding: .85rem 1rem; }
#fit-step .check strong { display: block; }
.pair { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: .85rem; margin: 1rem 0 .4rem; }
.field-guide { border-block: 1px solid var(--rule); margin: .75rem 0; }
.payment,.payment-choice { margin: 1.5rem 0; }
.payment .quiet { padding-inline: .5rem; margin-top: .6rem; }
#payment-entry>.small { margin-top: .7rem; }
.notice,.email-next {
  margin-block: 1.25rem;
  padding: 1rem 1.2rem;
  border-inline-start: .3rem solid var(--rust);
  border-radius: 0 .5rem .5rem 0;
  background: var(--apricot-tint);
}
.notice p,.notice ul { margin: .45rem 0; }
.notice > :first-child { margin-top: 0; }
.notice > :last-child { margin-bottom: 0; }
li { margin-block: .4rem; }
#action-status,#order-status,.email-error { font-weight: 650; overflow-wrap: anywhere; }
.warn,.email-error { color: var(--rust); }
.success { color: var(--teal-dark); }
#action-status:empty,.email-copy-status:empty,.email-error:empty,.hint:empty { margin: 0; }

.math-records { margin: 1.3rem 0; }
.math-sheet { min-width: 0; border: 1px solid #a5c5bc; border-top: 4px solid var(--teal); border-radius: .45rem; background: var(--glass-tint); padding: clamp(.85rem, 1.8vw, 1.3rem); }
.math-sheet:nth-child(2) { border-color: #d9b9a6; border-top-color: var(--apricot); background: #fff5ed; }
.math-sheet h3 { margin: 0 0 .6rem; }
dl { margin: 1rem 0; }
dt,dd { margin: 0; }
.math-sheet dl,#review-content dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 .6rem; }
.math-sheet dt,.math-sheet dd,#review-content dt,#review-content dd { padding: .65rem 0; border-bottom: 1px solid var(--rule); line-height: 1.4; }
.math-sheet dd,#review-content dd { text-align: right; color: var(--ink); font-weight: 650; font-variant-numeric: lining-nums tabular-nums; }
.math-sheet dt:last-of-type,.math-sheet dd:last-child { border-bottom: 0; font-weight: 750; }
.math-sheet dl { margin: 0; }
#review-content dd { max-width: 31ch; overflow-wrap: anywhere; }
#preview-title,#sample-heading { font-variant-numeric: lining-nums tabular-nums; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
#report-offer { margin-top: 1.85rem; padding: 1.4rem clamp(1rem, 2.3vw, 1.6rem); border-radius: .65rem; border: 1px solid #a8c9c0; background: var(--glass-tint); }
#report-offer h3 { margin: .3rem 0 1rem; font: 400 1.8rem/1.19 var(--serif); }
#report-offer > p { max-width: 69ch; }
#report-offer p:last-child { margin-bottom: 0; }
#purchase .check { margin: 1.05rem 0; }
#recovery .actions { padding-block: .35rem; }
#report-sections { max-width: 66ch; }
#report-sections section { border-top: 1px solid var(--rule); margin-block: 1.6rem; padding-block: .15rem; }
#report-sections p { white-space: pre-line; overflow-wrap: anywhere; font-variant-numeric: lining-nums tabular-nums; }

.email-pack { border-top: 4px solid var(--teal); }
.email-builder { display: grid; gap: 1rem; margin: 1.4rem 0; }
.email-step { min-width: 0; padding: clamp(.9rem, 2.4vw, 1.45rem); border: 1px solid var(--rule); border-radius: .6rem; background: var(--glass-tint); }
.email-step h3,.email-step-label { display: block; margin: 0 0 .7rem; color: var(--ink); font: 680 1.25rem/1.35 var(--sans); }
.email-step .hint { margin: .35rem 0 0; }
.email-fields { gap: .9rem 1.15rem; }
.email-error,.email-copy-status { font-size: 1rem; margin: .45rem 0 0; }
.email-extras,.email-edit { margin: 1rem 0 0; padding: .2rem .85rem; border: 1px solid var(--rule); border-radius: .5rem; background: white; }
.email-extras[open] > .email-fields,.email-edit[open] > label { margin-block: .7rem; }
.email-step form > button { margin-top: 1rem; }
.email-preview { min-width: 0; padding: clamp(1rem, 2.6vw, 1.5rem); border: 1px solid var(--rule); border-radius: .45rem; background: white; overflow-wrap: anywhere; }
.email-preview-brand { font-size: .875rem; font-weight: 700; letter-spacing: .08em; color: var(--teal-dark); }
.email-preview-recipient,.email-preview-subject { margin-bottom: .6rem; color: var(--ink); font-weight: 650; }
.email-preview-body { margin: .75rem 0 0; border-top: 1px solid var(--rule); padding-top: .9rem; white-space: pre-wrap; }
.email-output-actions { margin-bottom: 0; }
.email-copy-status:not(:empty) { color: var(--teal-dark); font-weight: 650; }
.email-next { border-color: var(--teal); background: var(--glass); }
.email-next p:last-child { margin-bottom: 0; }
.email-guide > div { background: var(--glass-tint); border: 1px solid var(--rule); padding: 1rem; border-radius: .5rem; }
.email-guide h3 { margin-top: 0; }
.email-guide ul { margin-bottom: 0; padding-inline-start: 1.25rem; }
.help { max-width: 73ch; padding-top: 1rem; }
.help h2 { font-size: 2rem; }
.help .small { margin-top: .7rem; }
footer { border-top: 1px solid var(--rule); padding: 1.4rem 1.15rem; text-align: center; font-size: 1rem; line-height: 1.65; }
footer > a,.help > a,.demo-end > a:not(.button) { display: inline-flex; align-items: center; min-height: 48px; padding-inline: .2rem; }
.care-report-socials { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .65rem; margin-top: .75rem; }
.care-report-socials a { display: inline-flex; align-items: center; gap: .4rem; min-height: 48px; padding: .5rem .85rem; border: 1px solid var(--rule); border-radius: .45rem; text-decoration: none; font-weight: 600; }
.care-report-socials a:hover { text-decoration: underline; background: var(--glass-tint); }
.care-report-socials svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }

@media (max-width: 48rem) {
  .columns,.email-guide,.math-records { grid-template-columns: 1fr; }
  .columns { gap: 1.45rem; }
}
@media (max-width: 38rem) {
  header { padding-block: .7rem; }
  main { padding-top: .7rem; }
  .card { border-radius: .6rem; }
  .payment-grid,.email-fields { grid-template-columns: 1fr; }
  #review-content dl { grid-template-columns: 1fr; }
  #review-content dt { border: 0; padding-bottom: 0; }
  #review-content dd { text-align: left; max-width: none; padding-top: .2rem; }
  .actions > button,.actions > .button { flex: 1 1 auto; }
  .journey-steps li { font-size: .9375rem; }
  #fit-step > .check { padding-inline: .7rem; }
}
@media (max-width: 25rem) {
  .pair { grid-template-columns: 1fr; }
  .math-sheet dl { grid-template-columns: minmax(0, 1fr) minmax(0, auto); }
  .math-sheet dd { overflow-wrap: anywhere; }
  .actions { gap: .55rem; }
}
@media (forced-colors: active) {
  .check:has(input:checked),.journey-steps li[aria-current="step"] { border-color: Highlight; }
  select { appearance: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; }
}
@media print {
  header,footer,form,#recovery,#purchase,.intro,.actions,.journey-steps,#edit-result,#report-offer,.demo-end,.example-picker,#email-pack,#close-report-reader { display: none !important; }
  body,.card { background: white; }
  main,.card { padding: 0; }
  .card { box-shadow: none; border: 0; }
  h2,h3 { break-after: avoid; }
}

/* Keep the line length available for text when the browser increases text size. */
header { flex-wrap: wrap; column-gap: min(3vw,20px); }
header > a { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
header img { width: clamp(156px, 50vw, 224px); max-width: 100%; }
.card,.check,.record,button,.button,.help,.intro,.email-step,footer { overflow-wrap: anywhere; }
.check > span { min-width: 0; }
@media (max-width: 38rem) {
  main,header { padding-inline: clamp(12px,4vw,20px); }
  .card,.before-input,.email-step,.email-preview { padding-inline: clamp(12px,4vw,20px); }
  .intro h1 { font-size: 2.4rem; }
  fieldset,.record,.payment,.payment-choice { padding-inline: clamp(10px,3vw,16px); }
  .check,#fit-step > .check { padding-inline: 10px; gap: 9px; }
  .check input { width: clamp(22px,1.38rem,32px); height: clamp(22px,1.38rem,32px); }
  .journey-steps { grid-template-columns: repeat(auto-fit,minmax(min(100%,3.65em),1fr)); gap: 5px; }
  button,.button { padding-inline: clamp(10px,4vw,18px); }
  .notice,.email-next,#report-offer,.math-sheet { padding-inline: clamp(10px,3vw,16px); }
  .math-sheet dl { grid-template-columns: minmax(0,1fr) minmax(0,auto); }
  .math-sheet dt,.math-sheet dd { overflow-wrap: anywhere; }
  footer { padding-inline: 12px; }
  footer > a { max-width: 100%; }
}

#journey-intro { padding-bottom: 0; }
#journey-intro .before-input { margin: .8rem 0 1rem; padding-block: .6rem; }
#journey-intro .before-input > p { margin-top: .25rem; }
.intro-options {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 1.5rem;
}
.intro-options > a { display: inline-flex; align-items: center; min-height: 48px; }
.intro-options > details { min-width: 0; }
.intro-options > details[open] { flex-basis: 100%; }
#fit-step #availability { margin: 1rem 0 0; }
.result-next {
  margin: 1.15rem 0 1.4rem;
  border-inline-start: 4px solid var(--teal);
  border-radius: 0 .5rem .5rem 0;
  background: var(--glass-tint);
  padding: 1rem clamp(12px,3vw,22px);
}
.result-next h3 { margin: 0 0 .45rem; font: 680 1.125rem/1.4 var(--sans); }
.result-next p { max-width: 67ch; }
.result-next p:last-child { margin-bottom: 0; }
@media (max-width: 38rem) {
  .intro-options { column-gap: .75rem; }
  #journey-intro .before-input { margin: .65rem 0 .9rem; }
}

#journey-intro.journey-started { padding: .35rem 0 0; }
#journey-intro.journey-started h1 { margin: 0; font: 650 1.05rem/1.45 var(--sans); letter-spacing: 0; }
#journey-intro.journey-started .eyebrow,
#journey-intro.journey-started .lead,
#journey-intro.journey-started .before-input { display: none; }
