/* Display preferences are independent of sample account and health state. */
:root { --experience-header-offset: 120px; }
html { scroll-padding-top: var(--experience-header-offset); }
:where(a, button, input, select, textarea, summary, [tabindex], [id]) { scroll-margin-top: var(--experience-header-offset); scroll-margin-bottom: 85px; }
body :is(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #173f35 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 7px #d5ed86 !important;
}
body :is(button, select, input:not([type="radio"]):not([type="checkbox"]):not([type="range"]), summary) { min-height: 44px; }
body :is(button, .btn) { min-width: 44px; }
body input[type="range"] { min-height: 24px; }
.site-header nav a, .site-header nav button, .login-link { min-height: 44px; display: inline-flex; align-items: center; }
.pitch-dots { flex-wrap: wrap; }
.pitch-dots button { min-width: 44px; min-height: 44px; }
.dialog-close, .portal-icon-button { min-width: 44px; min-height: 44px; }
.experience-controls { font-family: 'DM Sans', Arial, sans-serif; }
.experience-launcher {
  position: fixed; z-index: 80; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 9px 16px 9px 10px; border: 1px solid #abc293;
  border-radius: 40px; color: #f8fbf0; background: #173f35;
  box-shadow: 0 5px 20px #0d2c2333; font-size: 13px; font-weight: 550;
}
.experience-launcher:hover { background: #275647; }
.experience-launcher-icon { width: 29px; height: 29px; border: 1px solid #8dab78; border-radius: 50%; display: grid; place-items: center; color: #d5ed86; font: 16px Georgia, serif; letter-spacing: -1px; flex-shrink: 0; }
.experience-dialog {
  border: 1px solid #cfd8c4; border-radius: 22px; padding: 30px;
  width: min(540px, calc(100vw - 28px)); max-height: calc(100dvh - 40px);
  overflow-y: auto; overscroll-behavior: contain; background: #fbfcf5; color: #203c2e;
  box-shadow: 0 30px 120px #06271e55; line-height: 1.5;
}
.experience-dialog::backdrop { background: #09281ec2; backdrop-filter: blur(5px); }
.experience-dialog-heading { display: flex; align-items: flex-start; gap: 16px; justify-content: space-between; }
.experience-dialog .experience-kicker { font-size: 11px; letter-spacing: .1em; color: #496147; margin: 0 0 10px; font-weight: 650; }
.experience-dialog h2 { margin: 0; font-size: 35px; letter-spacing: -.04em; line-height: 1.07; }
.experience-close { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #c5d0bb; border-radius: 50%; color: #294c36; background: #f0f3e8; font-size: 26px; line-height: 1; padding: 0; }
.experience-dialog #experience-intro { margin: 18px 0 23px; font-size: 15px; color: #52644e; line-height: 1.65; }
.experience-fieldset { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.experience-fieldset legend { margin: 0 0 10px; padding: 0; font-size: 16px; font-weight: 650; }
.experience-choices { display: grid; gap: 9px; }
.experience-choice { display: flex; align-items: center; gap: 13px; padding: 14px; min-height: 74px; border: 1px solid #c5d0bb; border-radius: 10px; background: #fdfef9; cursor: pointer; }
.experience-choice:has(input:checked) { border-color: #517b3e; background: #edf3df; box-shadow: inset 0 0 0 1px #517b3e; }
.experience-choice:has(input:focus-visible) { outline: 3px solid #173f35; outline-offset: 3px; }
.experience-choice input { accent-color: #264e37; width: 20px; height: 20px; margin: 0; flex-shrink: 0; }
.experience-choice strong { display: block; font-size: 15px; font-weight: 600; }
.experience-choice small { display: block; font-size: 13px; color: #52644e; line-height: 1.55; margin-top: 4px; }
.experience-dialog .experience-motion-note { margin: 10px 0 0; font-size: 12px; color: #52644e; }
.experience-tour { border-top: 1px solid #d3dccb; border-bottom: 1px solid #d3dccb; margin-top: 5px; }
.experience-tour summary { font-size: 14px; font-weight: 600; cursor: pointer; padding: 15px 3px; }
.experience-tour nav { display: grid; gap: 6px; padding-bottom: 15px; }
.experience-tour a { display: flex; align-items: center; gap: 13px; min-height: 64px; padding: 10px 12px; border-radius: 8px; }
.experience-tour a:hover { background: #eaf0dd; }
.experience-tour a > span:first-child { font-size: 12px; color: #506e3e; }
.experience-tour strong { display: block; font-size: 14px; font-weight: 600; }
.experience-tour small { display: block; font-size: 12px; margin-top: 3px; color: #52644e; }
.experience-dialog .experience-storage-note { font-size: 12px; line-height: 1.6; color: #52644e; margin: 17px 0 0; }
.experience-dialog .experience-status { font-size: 13px; line-height: 1.6; margin: 12px 0 0; color: #284d32; }
.experience-dialog .experience-status:empty { display: none; }
.experience-dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 23px; }
.experience-reset { padding: 10px 0; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.experience-done { min-width: 115px; min-height: 46px; padding: 12px 24px; border-radius: 40px; background: #173f35; color: #fffef8; font-size: 14px; font-weight: 600; }
.experience-done:hover { background: #275647; }

/* Improve the original homepage's small labels without resizing display headings. */
body[data-route='/'] :is(.program-content p, .journey-steps p, .faq-list p) { font-size: 16px; }
body[data-route='/'] :is(.btn, .text-link, .program-filter button, .billing-toggle button, .plan-card li) { font-size: 14px; }
body[data-route='/'] :is(.eyebrow, .program-image > span, .price-label, .plan-ribbon, .small-note, .pricing-note, .future-tags span, .hero-bottom p, .floating-note small, .note-top) { font-size: 12px; }
body[data-route='/'] :is(.footer-bottom > p, .footer-bottom > div, .footer-bottom button) { font-size: 13px; }
body[data-route='/'] .note-top { letter-spacing: .03em; }
body[data-route='/'] .floating-note { width: min(310px, calc(100% - 38px)); }
body[data-route='/'] .price-label { opacity: .85; }
body[data-route='/'] .plan-ribbon { letter-spacing: .02em; }
body[data-route='/'] .site-footer { padding-bottom: 95px; }

/* Larger reading mode scales content, not large editorial titles or chart geometry. */
html[data-reading='large'] body :is(p, li, label, summary, input, select, textarea) { font-size: 19px !important; line-height: 1.7 !important; }
html[data-reading='large'] body :is(button, .btn, .text-link, .site-header nav a, .experience-tour a) { font-size: 17px !important; line-height: 1.5 !important; white-space: normal; }
html[data-reading='large'] body :is(small, .eyebrow, .portal-eyebrow, .pitch-small-label, .pitch-footnote, .pitch-side-note, .pitch-kicker, .journey-step-label, .journey-summary-label, .experience-choice strong, .experience-tour strong) { font-size: 16px !important; line-height: 1.6 !important; }
html[data-reading='large'] body :is(.program-card, .plan-card, .portal-card, .journey-panel, .pitch-offering-card, .pitch-roadmap-card) { min-width: 0; }
html[data-reading='large'] :is(.hero-actions, .nav-actions, .portal-card-header, .portal-page-heading, .pitch-footer, .pitch-heading-row, .pitch-calculator-results, .experience-dialog-actions) { flex-wrap: wrap; }
html[data-reading='large'] .site-header { height: auto; min-height: 95px; padding-top: 10px; padding-bottom: 10px; }
html[data-reading='large'] .site-header nav { flex-wrap: wrap; gap: 8px 18px; }
html[data-reading='large'] .hero-bottom { flex-wrap: wrap; }
html[data-reading='large'] .plan-card ul { grid-template-columns: 1fr; }
html[data-reading='large'] .plan-ribbon { position: static; align-self: flex-start; transform: none; margin-bottom: 18px; white-space: normal; }
html[data-reading='large'] .experience-choice { align-items: flex-start; }
html[data-reading='large'] .experience-choice input { margin-top: 5px; }
html[data-reading='large'] .experience-dialog .experience-kicker { font-size: 12px !important; }
html[data-reading='large'] .experience-dialog .experience-motion-note,
html[data-reading='large'] .experience-dialog .experience-storage-note { font-size: 15px !important; }
html[data-reading='large'] .experience-launcher { font-size: 14px !important; }

@media (max-width: 800px) {
  :root { --experience-header-offset: 100px; }
  .experience-launcher { padding: 7px; width: 48px; height: 48px; right: 13px; bottom: calc(13px + env(safe-area-inset-bottom, 0px)); }
  .experience-launcher-label { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
  .experience-dialog { padding: 25px 20px; max-height: calc(100dvh - 26px); }
  .experience-dialog h2 { font-size: 31px; }
  .pitch-footer, .portal-bottom-note { padding-bottom: 80px; }
  html[data-reading='large'] .site-header { min-height: 82px; }
  html[data-reading='large'] .site-header.menu-open nav { top: 100%; }
  html[data-reading='large'] .nav-actions { flex-wrap: nowrap; gap: 10px; }
  html[data-reading='large'] .login-link { max-width: 86px; }
  html[data-reading='large'] :is(.program-grid, .plan-grid, .pitch-journey) { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  .experience-dialog-heading { gap: 8px; }
  .experience-dialog h2 { font-size: 28px; }
  .experience-choice { padding: 12px; gap: 10px; }
  body[data-route='/'] .hero-actions { flex-wrap: wrap; gap: 18px; }
}

/* Explicit reduction and the operating system setting both keep content visible. */
html[data-motion='reduce'] { scroll-behavior: auto !important; }
html[data-motion='reduce'] *, html[data-motion='reduce'] *::before, html[data-motion='reduce'] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-motion='reduce'] :is(.reveal, .hero-image, .floating-note, .dashboard-teaser, .portal-stage, .pitch-slide) { opacity: 1 !important; transform: none !important; }
html[data-motion='reduce'] :is(.portal-chart-line, [data-animated-chart]) { stroke-dashoffset: 0 !important; }
html[data-motion='reduce'] :is(.btn:hover, .program-card:hover .program-image img) { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .hero-image, .floating-note, .dashboard-teaser, .portal-stage, .pitch-slide { opacity: 1 !important; transform: none !important; }
  .portal-chart-line, [data-animated-chart] { stroke-dashoffset: 0 !important; }
  .btn:hover, .program-card:hover .program-image img { transform: none !important; }
}
