/* The opening message should be readable before visitors choose a special mode. */
body:not(.business-view) .hero #hero-title {
  font-family: Onest, Arial, sans-serif;
  font-size: clamp(2.35rem, 3.9vw, 3.65rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.035em;
}
body:not(.business-view) .hero #hero-title em,
body:not(.business-view) .hero #hero-title .hero-difficult,
body:not(.business-view) .hero #hero-title > span {
  display: block;
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
  color: var(--hero-ink, var(--ink));
  background: none;
  margin: 0;
}
body:not(.business-view) .hero #hero-title em,
body:not(.business-view) .hero #hero-title > span { font-weight: 500; }
body:not(.business-view) .hero #hero-title > span b {
  font: inherit;
  font-weight: 750;
  color: #244cab;
}
[data-theme=dark] body:not(.business-view) .hero #hero-title > span b { color: #bfd0ff; }
.hero .hero-description { font-size: 1.375rem; font-weight: 500; line-height: 1.55; letter-spacing: normal; }
.hero .hero-subline { font-size: 1.125rem; line-height: 1.65; color: var(--hero-ink, var(--ink)); max-width: 30rem; }
body.business-view .hero .hero-subline { font-size: 1.125rem; line-height: 1.65; color: var(--hero-ink, var(--ink)); }
.readable-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 46px;
  height: 46px;
  font: 600 .9375rem/1.4 Onest, Arial, sans-serif;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  min-height: 46px;
  cursor: pointer;
}
.readable-toggle svg { width: 26px; height: 26px; flex: none; }
.readable-toggle-label { display: none; }
.readable-toggle:hover { background: var(--line); }
.header .header-tools { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; }
.readable-toggle:focus-visible { outline: 3px solid #315fc6; outline-offset: 4px; }
.readable-only { display: none; }

.hero-path {
  grid-column: 1 / -1;
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  opacity: var(--hero-story-opacity, 1);
}
.hero-path-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.hero-path-header h2 { margin: 0; font: 600 clamp(1.25rem, 1.5vw, 1.5rem)/1.3 Onest, Arial, sans-serif; color: var(--hero-ink, var(--ink)); letter-spacing: -.025em; }
.hero-path-header p { margin: 0; color: var(--hero-muted, var(--muted)); font: 400 1rem/1.5 Onest, Arial, sans-serif; }
.hero-path-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hero-path-card { display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 10px 12px; min-height: 146px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #ffffff38; color: var(--hero-ink, var(--ink)); text-decoration: none; }
.hero-path-card > span { color: #244cab; font: 600 .875rem/1.4 Onest, Arial, sans-serif; }
.hero-path-card .hero-path-arrow { font-size: 1.125rem; }
.hero-path-card strong { grid-column: 1 / -1; font: 600 1.125rem/1.35 Onest, Arial, sans-serif; }
.hero-path-card small { grid-column: 1 / -1; color: var(--hero-muted, var(--muted)); font: 400 1rem/1.5 Onest, Arial, sans-serif; }
.hero-path-card:hover { border-color: #486bd2; background: #ffffff80; }
.hero-path-card:focus-visible { outline: 3px solid #315fc6; outline-offset: 4px; }
[data-theme=dark] .hero-path-card { background: #17223560; }
[data-theme=dark] .hero-path-card > span { color: #bfd0ff; }
[data-theme=dark] .hero-path-card:hover { border-color: #a6bfff; background: #172235; }
body.business-view .hero-path { display: none; }

@media (min-width: 761px) {
  body:not(.business-view) .hero { padding-top: 26px; }
  body:not(.business-view) .hero .hero-main { height: auto; min-height: 0; row-gap: 32px; padding: 20px 0 90px; }
}
@media (min-width: 761px) and (max-height: 1199px) {
  body:not(.business-view) .hero { height: auto; }
  body:not(.business-view) .hero .hero-main { position: relative; top: auto; }
  .hero-portal, .castle-handoff { display: none; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 761px) {
  body:not(.business-view) .hero .hero-main { top: auto; }
}
@media (max-width: 1100px) {
  .header .header-tools { gap: 8px; }
  .hero-path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1101px) {
  .header.wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; }
  .header nav { justify-content: center; gap: 14px; }
  .header .header-tools { display: flex; }
}
@media (max-width: 760px) {
  .header, .header.wrap { grid-template-areas: "brand brand" "tools tools" "nav nav"; }
  .header .header-tools { width: 100%; justify-content: flex-start; }
  .header .readable-toggle { width: 42px; height: 42px; min-height: 42px; }
  body:not(.business-view) .hero #hero-title { font-size: clamp(2rem, 8.5vw, 2.8rem); }
  body:not(.business-view) .hero .hero-description,
  body.business-view .hero .hero-description { font-size: 1.25rem; line-height: 1.55; }
  body:not(.business-view) .hero .hero-subline,
  body.business-view .hero .hero-subline { font-size: 1.0625rem; line-height: 1.65; }
  body:not(.business-view) .hero .hero-subline { grid-row: 3; margin-top: 14px; }
  body:not(.business-view) .hero .actions { grid-row: 4; }
  body:not(.business-view) .hero .actions .button { font-size: 1rem; }
  body:not(.business-view) .hero .cube-stage { grid-row: 5; }
  .hero-path { grid-row: 6; margin-top: 28px; padding-top: 22px; }
  .hero-path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hero-path-card { min-height: 0; padding: 14px; }
  .hero-path-card strong { font-size: 1rem; }
  .hero-path-card small { font-size: .9375rem; }
  body:not(.business-view) .hero .hero-next { grid-row: 7; }
}

/* A reversible text view. Semantic content and native form controls stay in place. */
html[data-readable=true] {
  font-size: 125%;
  color-scheme: light;
  scroll-behavior: auto;
  scroll-padding-top: 1rem;
  background: #fff;
  --bg: #fff;
  --ink: #111;
  --muted: #222;
  --blue: #003b80;
  --copper: #111;
  --line: #555;
  --hero-ink: #111;
  --hero-muted: #222;
  --display: Arial, sans-serif;
}
html[data-readable=true][data-readable-size=larger] { font-size: 150%; }
html[data-readable=true][data-readable-size=largest] { font-size: 175%; }
html[data-readable=true] body {
  background: #fff !important;
  color: #111 !important;
  font: 1.1rem/1.65 Arial, sans-serif;
}
html[data-readable=true] body * {
  min-width: 0;
  max-width: 100%;
  animation: none !important;
  transition: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  background-image: none !important;
  backdrop-filter: none !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  overflow-wrap: anywhere;
}
html[data-readable=true] body :is(main, header, footer, section, article, aside, div, figure, form, details, summary) {
  background-color: transparent !important;
  color: #111 !important;
  border-color: #555 !important;
}
html[data-readable=true] body :is(p, li, dd, dt, label, small, summary, button, input, select, textarea, a) {
  font-size: 1.1rem !important;
  line-height: 1.65 !important;
  color: inherit !important;
}
html[data-readable=true] body :is(span, em, b, strong, u) { font-family: inherit !important; font-size: inherit !important; color: inherit !important; }
html[data-readable=true] body :is(h1, h2, h3) { font-family: Arial, sans-serif !important; font-weight: 700 !important; line-height: 1.25 !important; color: #111 !important; }
html[data-readable=true] body h1 { font-size: clamp(1.7rem, 4vw, 2.6rem) !important; }
html[data-readable=true] body h2 { font-size: 1.6rem !important; }
html[data-readable=true] body h3 { font-size: 1.3rem !important; }
html[data-readable=true] body :is(h1, h2, h3) :is(span, em, b, strong, u) { font: inherit !important; background: none !important; margin: 0 !important; text-decoration: none !important; }
html[data-readable=true] body p { max-width: 70ch; }
html[data-readable=true] body a { color: #003b80 !important; text-decoration: underline !important; text-underline-offset: .18em; }
html[data-readable=true] body :is(button, .button, .header-contact) {
  background: #fff !important;
  color: #111 !important;
  border: 2px solid #111 !important;
  border-radius: 4px !important;
  min-height: 52px;
  height: auto !important;
  padding: .55rem .8rem !important;
  white-space: normal !important;
  cursor: pointer;
  transform: none !important;
}
html[data-readable=true] body :is(.primary, .header-contact, button[aria-pressed=true]) { background: #111 !important; color: #fff !important; }
html[data-readable=true] body button:disabled { color: #555 !important; border-color: #777 !important; cursor: default; }
html[data-readable=true] body :is(input, select, textarea) { background: #fff !important; color: #111 !important; border: 2px solid #555 !important; max-width: 100%; }
html[data-readable=true] body :is(input, textarea)::placeholder { color: #555; opacity: 1; }
html[data-readable=true] body input[type=checkbox] { width: 24px; height: 24px; flex: none; accent-color: #111; }
html[data-readable=true] body :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #005fcc !important; outline-offset: 4px; }
html[data-readable=true] body :is(img, video, canvas, svg, [aria-hidden=true], .hero-portal, .castle-handoff, .cube-stage, .business-hero-visual, .foundation-visual, .assembly, .story-scroll-cue, .story-aura, .assembly-orbit, .connections, .assembly-steps, .chapter-note, .hero-next, #showcase-panel, .case-visual, .tariff-number, .world-drag-hint, .teacher-visual, .trading-visual, [data-theme-toggle]) { display: none !important; }
html[data-readable=true] body :is(.hero, .hero-main, #visual-lab, .story-sticky, .story-layout, .story-copy) {
  position: static !important;
  top: auto !important;
  height: auto !important;
  min-height: 0 !important;
  transform: none !important;
  opacity: 1 !important;
}
html[data-readable=true] body :is(.hero-main, .hero-copy, .story-layout) { display: block !important; }
html[data-readable=true] body :is(.hero-main, .story-sticky) { padding: 0 !important; }
html[data-readable=true] body .hero-copy { max-width: 100%; opacity: 1 !important; transform: none !important; }
html[data-readable=true] body .hero { padding-block: 2rem !important; }
html[data-readable=true] body :is(.hero-description, .hero-subline, .hero .actions) { margin-top: 1rem !important; }
html[data-readable=true] body :is(.wrap, .portal-wrap, .program-wrap) { width: min(1000px, calc(100% - 40px)) !important; max-width: 100%; margin-inline: auto; }
html[data-readable=true] body .section { padding-block: 2rem !important; }
html[data-readable=true] body :is(.section-heading, .foundation-layout, .foundation-lessons, .contact-panel, .form-grid, .case, .teacher-layout, .business-grid, .business-steps, .reviews-grid) { grid-template-columns: minmax(0, 1fr) !important; gap: 1rem !important; }
html[data-readable=true] body :is(.section-heading > p, .foundation-intro, .foundation-lessons, .case-info) { max-width: 100%; justify-self: start; opacity: 1 !important; transform: none !important; }
html[data-readable=true] body .tariff-card { grid-template-columns: minmax(0, 1fr) !important; padding: 1.2rem !important; gap: .8rem !important; border: 2px solid #555 !important; }
html[data-readable=true] body .tariff-price { font-size: 1.6rem !important; white-space: normal !important; }
html[data-readable=true] body .notice { background: #fff !important; border: 2px solid #555 !important; }
html[data-readable=true] body :is(.section-label, .eyebrow, .micro, .small, .muted, .tariff-format, .form-steps, .field-help, .cost-note, .tariff-price-note, .tariff-conditions, .footer-bottom) { font-size: 1.1rem !important; line-height: 1.65 !important; }
html[data-readable=true] body :is(.tariff-card > *, .tariff-details) { grid-column: 1 !important; grid-row: auto !important; max-width: 100%; }
html[data-readable=true] body .tariff-details summary { display: block !important; max-width: 100%; }
html[data-readable=true] body .contact-direct { display: block !important; width: fit-content; max-width: 100%; }
html[data-readable=true] body :is(.header, .header.wrap, .journal-header, .portal-head) { position: static !important; display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem !important; }
html[data-readable=true] body .header .header-tools { width: auto; display: flex; flex-wrap: wrap; gap: .6rem; }
html[data-readable=true] body .readable-toggle { width: auto; }
html[data-readable=true] body .readable-toggle-label { display: inline; }
html[data-readable=true] body .hero-path { margin-top: 1.5rem; opacity: 1 !important; }
html[data-readable=true] body .hero-path-grid { grid-template-columns: minmax(0, 1fr); }
html[data-readable=true] body .hero-path-card { min-height: 0; }
html[data-readable=true] body .header nav { width: 100%; display: flex; flex-wrap: wrap; gap: .5rem 1rem; overflow: visible; white-space: normal; order: 3; }
html[data-readable=true] body .header nav a { padding: .25rem 0; }
html[data-readable=true] body .brand-symbol { display: none !important; }
html[data-readable=true] body :is(.brand-type, .journal-brand-type) { font-size: 1rem; line-height: 1.2; }
html[data-readable=true] body .readable-toolbar { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; padding: 1rem; margin-block: 1rem; border: 2px solid #111; }
html[data-readable=true] body .readable-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
html[data-readable=true] body .readable-controls output { min-width: 7em; }
html[data-readable=true] body .readable-only { display: block; }
html[data-readable=true] body #showcase .section-heading > p:not(.readable-only) { display: none; }
html[data-readable=true] body .footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; }
html[data-readable=true] body table { display: block; max-width: 100%; overflow-x: auto; }
html[data-readable=true] body [hidden] { display: none !important; }
@media (max-width: 760px) {
  html[data-readable=true] body :is(.wrap, .portal-wrap, .program-wrap) { width: calc(100% - 24px) !important; }
  html[data-readable=true] body .tariff-card { padding: .7rem !important; }
  html[data-readable=true] body .header .header-tools { width: 100%; }
  html[data-readable=true] body .audience-switch { flex-wrap: wrap; }
  html[data-readable=true] body .audience-switch button { flex: 1 1 10rem; }
  html[data-readable=true] body .section-label { flex-wrap: wrap; }
  html[data-readable=true] body .section-label span:last-child { text-align: left; }
  html[data-readable=true] body .hero { padding-inline: 0 !important; }
}

/* Business content follows the introduction without a reserved screen height. */
body.business-view .hero { min-height: 0; padding-top: 34px; padding-bottom: 28px; }
body.business-view .hero .hero-main { padding-bottom: 28px; }
body.business-view .hero .hero-copy { padding: 0; }
body.business-view .hero #hero-title { font-size: clamp(2.6rem, 3.8vw, 4rem); }
body.business-view .business-hero-visual > .eyebrow { color: #c7d7ff; }
body.business-view #business { padding-top: 56px; padding-bottom: 36px; }
body.business-view #business .business-web { margin-bottom: 0; }
body.business-view #pricing { padding-top: 56px; }
@media (max-width: 680px) {
  body.business-view .hero { padding-top: 24px; padding-bottom: 24px; }
  body.business-view .hero #hero-title { font-size: clamp(35px, 9vw, 47px); }
  body.business-view #business { padding-top: 36px; padding-bottom: 24px; }
  body.business-view #pricing { padding-top: 36px; }
}
