/* Shared Lumileo website design. */
:root {
  color-scheme: light;
  --ink: #242133;
  --muted: #656273;
  --purple: #5740a0;
  --line: #e3e0eb;
  --paper: #faf9fd;
  --tint: #f0edf7;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
img {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.08;
}
h2 {
  font-size: clamp(2.5rem, 4vw, 3.6rem);
}
h3 {
  font-size: 1.35rem;
  line-height: 1.35;
  letter-spacing: -0.025em;
}
p {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #9b75e0;
  outline-offset: 5px;
}
::selection {
  background: #ddd2fa;
  color: #292035;
}
.container {
  width: min(1180px, calc(100% - 80px));
  margin-inline: auto;
}
.section {
  padding-block: 100px;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 700;
  margin-bottom: 22px;
}
.small-note {
  font-size: 0.875rem;
  line-height: 1.65;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 15px 23px;
  background: var(--purple);
  color: white;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9375rem;
  min-height: 50px;
  transition:
    background 0.2s,
    transform 0.2s;
  line-height: 1.4;
}
.button:hover {
  background: #413079;
  transform: translateY(-1px);
}
.button span {
  font-size: 1.2rem;
}
.button-small {
  padding: 10px 17px;
  min-height: 44px;
  gap: 18px;
}
.button-outline {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.button-outline:hover {
  background: var(--tint);
}
.button-light {
  background: white;
  color: #342552;
}
.button-light:hover {
  background: #ede7ff;
}
.button-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.text-link {
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  display: inline-flex;
  gap: 16px;
  align-items: center;
  min-height: 44px;
}
.text-link:hover {
  color: var(--purple);
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 50;
  background: white;
  padding: 14px;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  background: rgba(250, 249, 253, 0.97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 86px;
}
.brand {
  font-weight: 750;
  font-size: 1.85rem;
  letter-spacing: -0.07em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  line-height: 1;
}
.brand img {
  width: 32px;
  height: 39px;
  object-fit: contain;
}
.brand-dot {
  color: var(--purple);
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  margin-right: 18px;
}
.desktop-nav a {
  font-size: 0.875rem;
  text-decoration: none;
  font-weight: 500;
}
.desktop-nav a:hover {
  color: var(--purple);
}
.menu-button {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 44px;
  height: 44px;
}
.mobile-menu {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
}
.mobile-menu a {
  display: block;
  padding: 10px;
  text-decoration: none;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 64px;
}
.hero-copy .eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
}
.little-line {
  height: 1px;
  width: 26px;
  background: var(--purple);
}
h1 {
  font-size: clamp(3.5rem, 6vw, 5.45rem);
  line-height: 1.03;
  margin-bottom: 28px;
}
h1 em {
  font-weight: 400;
  color: var(--purple);
}
.hero-description {
  font-size: 1.0625rem;
  max-width: 440px;
  line-height: 1.8;
  margin-bottom: 28px;
}
.hero .button-row {
  gap: 12px 20px;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 22px;
}
.status-dot {
  background: #668774;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
}
.hero-visual {
  padding-bottom: 70px;
  position: relative;
  max-width: 520px;
  width: 100%;
  justify-self: end;
}
.reading-sheet {
  background: #eee8fa;
  border: 1px solid #ded3f0;
  padding: 30px 34px 24px;
  border-radius: 6px;
  box-shadow:
    9px 10px 0 #f7f4fc,
    10px 11px 0 #e4dced;
  transform: rotate(-2deg);
}
.sheet-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #706486;
  border-bottom: 1px solid #d4c7e8;
  padding-bottom: 20px;
  gap: 15px;
}
.sheet-copy {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.4;
  letter-spacing: -0.035em;
  padding: 30px 0 35px;
  color: #443654;
}
.sheet-copy mark {
  background: #d4c3ee;
  color: inherit;
  padding: 0 6px;
  margin-left: -6px;
}
.sheet-bottom {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #d4c7e8;
  padding-top: 16px;
  font-size: 0.75rem;
  color: #706486;
}
.sheet-bottom a {
  display: grid;
  place-items: center;
  text-decoration: none;
  width: 44px;
  height: 44px;
  flex: none;
  background: #5b4495;
  border-radius: 50%;
  color: white;
  font-size: 1.4rem;
}
.leo-intro {
  position: absolute;
  bottom: 0;
  right: 4px;
  display: flex;
  align-items: end;
  gap: 6px;
}
.leo-intro img {
  width: 172px;
  height: 182px;
  object-fit: contain;
  filter: drop-shadow(0 9px 10px #43315020);
}
.leo-intro span {
  font-size: 0.75rem;
  text-align: right;
  line-height: 1.7;
  margin-bottom: 18px;
  color: var(--muted);
  background: var(--paper);
  padding: 5px 8px;
}
.leo-intro strong {
  font-weight: 500;
  color: var(--ink);
}
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 29px;
  border-block: 1px solid var(--line);
  gap: 25px;
}
.facts p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.875rem;
}
.facts p + p {
  border-left: 1px solid var(--line);
}
.facts strong,
.fact-symbol {
  font-size: 1.7rem;
  color: var(--purple);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: end;
  margin-bottom: 46px;
}
.section-heading > p {
  max-width: 350px;
  margin-bottom: 5px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.feature {
  border-top: 1px solid var(--line);
  padding-top: 23px;
}
.feature-number {
  font-size: 0.75rem;
  color: var(--purple);
  letter-spacing: 0.1em;
  font-weight: 600;
}
.feature h3 {
  margin: 21px 0 12px;
}
.feature p {
  font-size: 1rem;
  max-width: 330px;
}
.focus-sample,
.comprehension-sample,
.routine-sample {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  height: 94px;
  background: var(--tint);
  margin-top: 27px;
  border-radius: 5px;
  color: #736884;
}
.focus-sample strong {
  background: #ded3f1;
  color: #4a3580;
  padding: 5px 11px;
  border-inline: 1px solid #8871b7;
}
.comprehension-sample {
  background: #edf0f5;
}
.comprehension-sample strong {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: #485975;
}
.routine-sample {
  background: #f2efe9;
  gap: 10px;
}
.routine-sample span {
  display: grid;
  place-items: center;
  background: #e5ded1;
  color: #786745;
  width: 28px;
  height: 30px;
  border-radius: 5px;
  font-size: 0.75rem;
}
.routine-sample span:nth-last-child(-n + 2) {
  background: transparent;
  border: 1px dashed #b6ac96;
}
.demo-section {
  background: #262133;
  color: white;
}
.demo-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 74px;
  align-items: center;
}
.demo-intro .eyebrow {
  color: #c6b5eb;
}
.demo-intro h2 {
  margin-bottom: 24px;
}
.demo-intro > p:not(.eyebrow) {
  color: #c2bbce;
  max-width: 310px;
}
.demo-intro .text-link {
  margin-top: 22px;
  color: #e9defd;
}
.demo-intro .small-note {
  margin-top: 54px;
}
.reader-card {
  background: white;
  color: var(--ink);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}
.reader-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  padding: 9px 15px 0;
  gap: 6px;
}
.reader-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 5px 5px 0 0;
  padding: 14px 12px;
  color: var(--muted);
  font-size: 0.875rem;
  flex: 1;
  white-space: nowrap;
  min-height: 48px;
}
.reader-tabs button[aria-selected="true"] {
  border-bottom-color: var(--purple);
  color: var(--purple);
  background: #f7f4fc;
  font-weight: 600;
}
.reader-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 25px 28px 0;
}
.word-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  padding: 22px 28px;
}
.word-display {
  font-family: var(--serif);
  font-size: 2.8rem;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  max-width: 100%;
  line-height: 1.3;
}
.word-display .pivot {
  color: var(--purple);
  font-weight: 700;
}
.chunk-display {
  font-family: var(--serif);
  font-size: 1.9rem;
  text-align: center;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
.bionic-display {
  height: 220px;
  overflow: auto;
  padding: 26px 28px;
  font-size: 1.125rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.bionic-display strong {
  font-weight: 750;
}
progress {
  display: block;
  width: calc(100% - 56px);
  height: 3px;
  margin: 0 28px;
  appearance: none;
  border: none;
  background: #eeeaf4;
  border-radius: 2px;
}
progress::-webkit-progress-bar {
  background: #eeeaf4;
}
progress::-webkit-progress-value {
  background: var(--purple);
}
progress::-moz-progress-bar {
  background: var(--purple);
}
.reader-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 23px 28px 12px;
}
.reader-controls label {
  font-size: 0.875rem;
  color: var(--muted);
}
select {
  display: block;
  padding: 9px 28px 9px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  color: var(--ink);
  font-size: 0.875rem;
  min-height: 44px;
  margin-top: 4px;
  max-width: 100%;
}
.reader-controls .button-row {
  gap: 8px;
}
.reader-controls .button {
  padding: 11px 20px;
  min-width: 115px;
  min-height: 44px;
}
.icon-button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 6px;
  color: var(--ink);
  font-size: 1.5rem;
  min-height: 44px;
  width: 44px;
}
.reader-status {
  font-size: 0.75rem;
  min-height: 20px;
  padding: 0 28px 20px;
  color: var(--muted);
}
.custom-text {
  border-top: 1px solid var(--line);
  padding: 0 28px;
}
.custom-text summary {
  font-size: 0.875rem;
  padding: 17px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.custom-text form {
  padding-bottom: 22px;
}
.custom-text label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 8px;
}
textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
}
.custom-text-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}
.custom-text-bottom > span {
  font-size: 0.75rem;
  max-width: 210px;
  color: var(--muted);
}
#custom-text-status {
  font-size: 0.875rem;
  padding-top: 8px;
}
.test-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 38px 44px;
}
#test-start {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
#test-start h3 {
  margin: 10px 0;
}
.test-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--purple);
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}
#test-timer {
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
}
#test-passage {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.9;
  padding: 30px 0;
  color: var(--ink);
}
.text-button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 12px;
  min-height: 44px;
}
#test-result-heading {
  font-size: 1.6rem;
  margin-bottom: 24px;
}
.result-unit {
  font-family: var(--sans);
  font-size: 1.125rem;
  color: var(--muted);
}
#test-result .small-note {
  max-width: 680px;
  margin: 16px 0 22px;
}
.app-preview-section {
  padding-top: 0;
}
.preview-short,
.preview-caption {
  display: none;
}
.app-preview-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.app-preview-tabs {
  display: grid;
  gap: 10px;
}
.app-preview-tab {
  display: grid;
  gap: 10px;
  padding: 22px 24px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-left: 3px solid var(--line);
  border-radius: 0 8px 8px 0;
  color: var(--muted);
  transition: background 0.2s;
}
.app-preview-tab strong {
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: -0.025em;
}
.app-preview-tab > span:last-child {
  font-size: 1rem;
  line-height: 1.65;
}
.app-preview-tab[aria-selected="true"] {
  background: var(--tint);
  border-color: var(--line);
  border-left-color: var(--purple);
}
.app-preview-tab:hover {
  background: #f5f2fa;
}
.app-preview-copy > .small-note {
  margin-top: 25px;
  max-width: 395px;
}
.app-preview-stage {
  border-radius: 20px;
  overflow: hidden;
  min-width: 0;
}
.app-preview-stage figure {
  margin: 0;
  text-align: center;
}
.app-preview-stage img {
  display: block;
  height: auto;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 15 / 16;
}
.test-result-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 25px 0;
  border-block: 1px solid var(--line);
  margin-bottom: 22px;
}
.test-result-metrics > div + div {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.result-label {
  font-size: 0.875rem;
  color: var(--muted);
}
.test-result-metrics p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-top: 7px;
}
.test-result-metrics strong {
  font: 400 3.3rem/1.2 var(--serif);
  color: var(--purple);
}
.test-result-metrics .result-unit {
  font-size: 0.875rem;
}
.quiz-intro {
  margin-top: 12px;
}
.quiz-question {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 24px;
  margin: 28px 0;
  min-width: 0;
}
.quiz-question legend {
  font-weight: 600;
  margin-bottom: 16px;
  padding: 0;
  font-size: 1.0625rem;
}
.quiz-option {
  display: flex;
  gap: 12px;
  align-items: start;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-top: 10px;
  cursor: pointer;
  min-height: 50px;
}
.quiz-option input {
  accent-color: var(--purple);
  margin: 6px 0 0;
  width: 18px;
  height: 18px;
  flex: none;
}
.quiz-option:has(input:checked) {
  border-color: var(--purple);
  background: var(--tint);
}
.quiz-option:has(input:focus-visible) {
  outline: 3px solid #9b75e0;
  outline-offset: 3px;
}
.quiz-feedback {
  margin-top: 22px;
  padding: 20px 24px;
  background: var(--tint);
  color: var(--ink);
  border-radius: 6px;
}
.answer-explanations {
  border-bottom: 1px solid var(--line);
}
.answer-explanations summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  padding: 20px 0;
  font-size: 0.9375rem;
  font-weight: 600;
  list-style: none;
}
.answer-explanations ol {
  padding-left: 22px;
  margin: 0 0 24px;
}
.answer-explanations li {
  padding-block: 9px;
}
.answer-explanations p {
  margin-top: 6px;
}
#quiz-error {
  margin-bottom: 20px;
}
@media (max-width: 900px) {
  .app-preview-section {
    padding-top: 0;
  }
  .app-preview-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .app-preview-tab {
    padding: 17px 18px;
  }
  .app-preview-tab[aria-selected="false"] > span:last-child {
    display: none;
  }
  .test-result-metrics {
    gap: 12px;
  }
  .test-result-metrics strong {
    font-size: 2.5rem;
  }
  .test-result-metrics > div + div {
    padding-left: 15px;
  }
  .test-result-metrics p {
    gap: 5px;
  }
  .quiz-option {
    padding: 12px;
  }
}
.approach-section {
  background: #f0edf4;
}
.approach-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
}
.approach-rows article {
  display: flex;
  gap: 26px;
  padding: 26px 0;
  border-bottom: 1px solid #d8d2e3;
}
.approach-rows article:first-child {
  padding-top: 0;
}
.approach-rows article:last-child {
  border: 0;
  padding-bottom: 0;
}
.approach-rows article > span {
  font-size: 0.75rem;
  color: var(--purple);
  padding-top: 5px;
}
.approach-rows h3 {
  font-size: 1.15rem;
  margin-bottom: 9px;
}
.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
}
.faq-layout > div > p:last-child {
  margin-top: 26px;
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list details:first-child {
  border-top: 1px solid var(--line);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-weight: 600;
  line-height: 1.5;
  font-size: 1rem;
}
.faq-list summary span {
  font-size: 1.3rem;
  color: var(--purple);
}
summary::-webkit-details-marker {
  display: none;
}
details[open] > summary > span {
  transform: rotate(45deg);
}
.faq-list details p {
  padding: 0 24px 24px 0;
}
.access-section {
  background: #57418a;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 44px;
  padding: 55px 64px;
  border-radius: 10px;
}
.access-section .eyebrow {
  color: #d6c7ef;
}
.access-section h2 {
  font-size: clamp(2.3rem, 4vw, 3.5rem);
}
.access-section p:not(.eyebrow) {
  color: #e0d7ef;
  margin: 23px 0;
}
.access-section .access-note {
  font-size: 0.75rem;
  margin-bottom: 0;
  max-width: 395px;
}
.access-section > img {
  width: 235px;
  object-fit: contain;
  flex: none;
}
.site-footer {
  padding-top: 60px;
  padding-bottom: 30px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 28px;
}
.footer-top > a:last-child {
  font-size: 0.875rem;
  text-decoration: none;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 23px;
  gap: 24px;
  font-size: 0.75rem;
  color: var(--muted);
}
.footer-bottom nav {
  display: flex;
  gap: 24px;
}
.footer-bottom a {
  text-decoration: none;
}
.footer-bottom a:hover {
  text-decoration: underline;
}
.noscript-note {
  text-align: center;
  padding: 20px;
  background: #eee4fa;
}
.legal-page {
  max-width: 800px;
  padding-block: 65px;
}
.legal-page h1 {
  font-size: 3.5rem;
}
.legal-page h2 {
  font: 600 1.3rem/1.4 var(--sans);
  letter-spacing: -0.02em;
  margin: 34px 0 15px;
}
.legal-page h3 {
  margin: 20px 0 8px;
}
.legal-page p,
.legal-page li {
  line-height: 1.8;
  color: var(--muted);
}
.legal-page ul,
.legal-page ol {
  padding-left: 24px;
}
.legal-page a {
  color: var(--purple);
  overflow-wrap: anywhere;
}
.legal-page .legal-lead {
  font-size: 1.15rem;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.legal-page section {
  margin-block: 32px;
}
.notice {
  background: var(--tint);
  padding: 22px 26px;
  border-left: 3px solid var(--purple);
  border-radius: 4px;
  margin-block: 24px;
}
.auth-shell {
  max-width: 510px;
  margin: 70px auto;
  padding: 38px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.auth-shell h1 {
  font-size: 2.7rem;
  margin-bottom: 20px;
}
.auth-shell p {
  margin-bottom: 22px;
}
.auth-shell label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 20px 0 8px;
}
.password-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding-right: 8px;
}
.password-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 14px;
  color: var(--ink);
  font-size: 1rem;
}
.password-field button {
  font-size: 0.75rem;
  border: 0;
  background: var(--tint);
  border-radius: 4px;
  padding: 8px;
  color: var(--purple);
  min-height: 44px;
}
.auth-shell .button {
  margin-top: 22px;
  width: 100%;
}
.error-message {
  color: #962b39 !important;
  background: #fff0f1;
  padding: 14px;
  border-radius: 6px;
}
.auth-footer {
  text-align: center;
  font-size: 0.875rem;
  padding: 10px 20px 40px;
}
.auth-footer a {
  color: var(--purple);
}
@media (min-width: 1450px) {
  .hero {
    padding-top: 96px;
    padding-bottom: 80px;
  }
}
@media (max-width: 1050px) {
  .container {
    width: calc(100% - 48px);
  }
  .desktop-nav {
    gap: 18px;
    margin-right: 0;
  }
  .hero {
    gap: 32px;
  }
  .hero-copy .button-row {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }
  .hero h1 {
    font-size: 4.5rem;
  }
  .sheet-copy {
    font-size: 2.5rem;
  }
  .hero-visual {
    padding-bottom: 80px;
  }
  .facts {
    gap: 12px;
  }
  .demo-layout {
    gap: 35px;
    grid-template-columns: 0.75fr 1.25fr;
  }
  .reader-tabs {
    padding-inline: 6px;
    gap: 0;
  }
  .reader-tabs button {
    padding-inline: 8px;
  }
  .access-section {
    padding: 45px;
  }
  .footer-bottom > span {
    display: none;
  }
}
@media (max-width: 900px) {
  html {
    scroll-padding-top: 88px;
  }
  .container {
    width: calc(100% - 40px);
  }
  .section {
    padding-block: 64px;
  }
  .header-inner {
    min-height: 74px;
    gap: 12px;
  }
  .brand {
    font-size: 1.7rem;
  }
  .brand img {
    width: 27px;
    height: 33px;
  }
  .desktop-nav {
    display: none;
  }
  .header-inner > .button {
    margin-left: auto;
    font-size: 0.875rem;
    padding: 9px 13px;
    gap: 9px;
  }
  .menu-button {
    display: block;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 47px;
    padding-bottom: 46px;
  }
  .hero h1 {
    font-size: clamp(3.35rem, 11vw, 5rem);
    margin-bottom: 24px;
  }
  .hero .eyebrow {
    margin-bottom: 25px;
  }
  .hero-description {
    font-size: 1rem;
    max-width: 460px;
  }
  .hero-copy .button-row {
    flex-direction: row;
    align-items: center;
    gap: 6px 20px;
  }
  .hero-visual {
    max-width: 470px;
    justify-self: center;
    padding: 0 8px 66px;
  }
  .reading-sheet {
    padding: 25px;
  }
  .sheet-top {
    font-size: 0.75rem;
    letter-spacing: 0;
  }
  .sheet-copy {
    font-size: 2.5rem;
    padding: 25px 0;
  }
  .sheet-bottom {
    max-width: calc(100% - 90px);
    font-size: 0.75rem;
    line-height: 1.5;
    border: 0;
    padding-top: 0;
  }
  .facts {
    grid-template-columns: 1fr 1fr;
    gap: 20px 0;
    padding-block: 25px;
  }
  .facts p {
    justify-content: start;
    gap: 12px;
  }
  .facts p:nth-child(odd) {
    border: 0;
  }
  .facts p:nth-child(even) {
    padding-left: 22px;
  }
  .facts strong,
  .fact-symbol {
    font-size: 1.5rem;
  }
  .section-heading {
    display: block;
    margin-bottom: 34px;
  }
  .section-heading > p {
    max-width: 500px;
    margin-top: 24px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feature {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 0 22px;
  }
  .feature-number,
  .feature h3,
  .feature p {
    grid-column: 1;
  }
  .feature h3 {
    margin: 13px 0 8px;
  }
  .feature p {
    max-width: none;
  }
  .focus-sample,
  .comprehension-sample,
  .routine-sample {
    grid-column: 2;
    grid-row: 1/4;
    height: 100%;
    margin: 0;
    gap: 6px;
    flex-wrap: wrap;
    align-content: center;
    padding: 15px;
    font-size: 0.875rem;
  }
  .focus-sample > span:last-child {
    display: none;
  }
  .comprehension-sample {
    flex-direction: column;
    gap: 2px;
  }
  .comprehension-sample > span:nth-child(2n) {
    display: none;
  }
  .routine-sample span {
    width: 22px;
    height: 25px;
  }
  .demo-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .demo-intro > p:not(.eyebrow) {
    max-width: 500px;
  }
  .demo-intro .small-note {
    margin-top: 15px;
  }
  .demo-intro .text-link {
    margin-top: 10px;
  }
  .reader-tabs button {
    padding: 14px 8px;
  }
  .reader-meta {
    padding: 22px 20px 0;
  }
  .word-stage {
    min-height: 145px;
    padding: 20px;
  }
  .word-display {
    font-size: 2.5rem;
  }
  .chunk-display {
    font-size: 1.6rem;
  }
  .reader-controls {
    padding: 20px 20px 12px;
  }
  .reader-controls .button {
    min-width: 100px;
    padding: 11px 14px;
    gap: 12px;
  }
  .reader-controls select {
    padding-right: 20px;
  }
  .reader-status,
  .custom-text {
    padding-inline: 20px;
  }
  .custom-text-bottom {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .custom-text-bottom > span {
    max-width: none;
  }
  progress {
    width: calc(100% - 40px);
    margin-inline: 20px;
  }
  .test-card {
    padding: 28px 24px;
  }
  #test-start {
    align-items: start;
    flex-direction: column;
    gap: 24px;
  }
  #test-passage {
    font-size: 1.2rem;
  }
  .approach-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .faq-layout > div > p:last-child {
    margin-top: 20px;
  }
  .access-section {
    padding: 35px 28px;
    gap: 16px;
    align-items: start;
    position: relative;
    overflow: hidden;
  }
  .access-section > div {
    position: relative;
    z-index: 1;
  }
  .access-section > img {
    position: absolute;
    right: -24px;
    top: 25px;
    width: 130px;
    opacity: 0.17;
  }
  .access-section h2 {
    font-size: 2.4rem;
  }
  .footer-top {
    gap: 18px;
    flex-wrap: wrap;
  }
  .footer-bottom {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }
  .footer-bottom nav {
    gap: 18px;
    flex-wrap: wrap;
  }
  .site-footer {
    padding-top: 40px;
  }
  .legal-page {
    padding-block: 42px;
  }
  .legal-page h1 {
    font-size: 2.7rem;
  }
  .auth-shell {
    margin: 35px 20px;
    padding: 28px;
  }
}
@media (max-width: 370px) {
  .container {
    width: calc(100% - 32px);
  }
  .header-inner {
    gap: 8px;
  }
  .brand {
    font-size: 1.5rem;
  }
  .brand img {
    display: none;
  }
  .hero h1 {
    font-size: 3.25rem;
  }
  .sheet-copy {
    font-size: 2.1rem;
  }
  .feature {
    grid-template-columns: 1fr;
  }
  .focus-sample,
  .comprehension-sample,
  .routine-sample {
    grid-column: 1;
    grid-row: auto;
    height: 75px;
    flex-direction: row;
    margin-top: 20px;
  }
  .reader-controls {
    align-items: start;
    flex-direction: column;
  }
  .reader-controls .button-row {
    align-self: stretch;
  }
  .reader-controls .button {
    flex: 1;
  }
  .reader-tabs button {
    white-space: normal;
  }
  .facts p:nth-child(even) {
    padding-left: 12px;
  }
}
@media (max-width: 480px) {
  .reader-controls {
    align-items: start;
    flex-direction: column;
  }
  .reader-controls .button-row {
    align-self: stretch;
  }
  .reader-controls .button {
    flex: 1;
  }
  .sheet-copy {
    font-size: 2.05rem;
  }
  .header-inner > .brand + .text-link {
    font-size: 0.875rem;
    margin-left: auto;
  }
}
/* Phone layouts keep primary controls and their content together. */
@media (max-width: 900px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  .container {
    max-width: calc(
      100% - env(safe-area-inset-left) - env(safe-area-inset-right)
    );
  }
  h1,
  h2,
  h3,
  .button,
  .brand,
  .test-card,
  .notice {
    overflow-wrap: anywhere;
  }
  .header-inner {
    flex-wrap: wrap;
    padding-block: 12px;
  }
  .brand,
  .menu-button,
  .icon-button {
    flex-shrink: 0;
  }
  .header-inner .brand {
    min-height: 44px;
  }
  .menu-button {
    min-width: 44px;
    min-height: 44px;
  }
  .mobile-menu {
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .app-preview-section {
    padding-top: 0;
  }
  .app-preview-layout {
    gap: 20px;
  }
  .app-preview-copy {
    display: contents;
  }
  .app-preview-tabs {
    grid-row: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 5px;
    border-radius: 12px;
    background: #eeebf4;
  }
  .app-preview-tab,
  .app-preview-tab[aria-selected="true"] {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    min-height: 48px;
    padding: 10px 5px;
    border: 0;
    border-radius: 8px;
    text-align: center;
    line-height: 1.4;
  }
  .app-preview-tab[aria-selected="true"] {
    background: white;
    color: var(--purple);
    box-shadow: 0 2px 5px #30224410;
  }
  .app-preview-tab > :not(.preview-short) {
    display: none;
  }
  .app-preview-tab .preview-short {
    display: inline;
    font-size: 0.9375rem;
    font-weight: 600;
    overflow-wrap: anywhere;
  }
  .app-preview-stage {
    grid-row: 2;
    border-radius: 0;
    overflow: visible;
    width: 100%;
    max-width: 600px;
    justify-self: center;
  }
  .app-preview-stage img {
    border-radius: 14px;
  }
  .preview-caption {
    display: block;
    padding-top: 23px;
  }
  .preview-caption h3 {
    margin-bottom: 9px;
  }
  .preview-caption p {
    line-height: 1.7;
  }
  .app-preview-copy > .small-note {
    grid-row: 3;
    margin: 0;
    max-width: none;
  }
  .reader-tabs button {
    min-width: 0;
    white-space: normal;
  }
  .reader-meta {
    flex-wrap: wrap;
  }
  input,
  select,
  textarea {
    font-size: 1rem;
  }
  .reader-status,
  .custom-text-bottom > span,
  .access-section .access-note {
    font-size: 0.875rem;
  }
  .reader-status {
    line-height: 1.6;
  }
  .test-card .button-row {
    gap: 10px;
  }
  .test-result-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .test-result-metrics strong {
    white-space: nowrap;
    font-size: clamp(2rem, 9vw, 2.8rem);
  }
  .quiz-option {
    min-height: 52px;
  }
  .quiz-option span {
    min-width: 0;
  }
  .footer-bottom a,
  .footer-top > a:last-child {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.875rem;
  }
  .footer-bottom nav {
    gap: 8px 20px;
  }
  .auth-shell {
    width: calc(100% - 40px);
    margin-inline: auto;
    padding: 26px 22px;
  }
  .auth-shell h1 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }
}
@media (max-width: 480px) {
  .feature {
    display: block;
  }
  .focus-sample,
  .comprehension-sample,
  .routine-sample {
    display: none;
  }
  .feature-grid {
    gap: 26px;
  }
  .hero h1 {
    font-size: clamp(2.75rem, 11vw, 3.9rem);
  }
  .hero-copy .button-row > .button {
    width: 100%;
    justify-content: space-between;
  }
  .reader-controls > div:first-child,
  .reader-controls select {
    width: 100%;
  }
  .test-card {
    padding: 24px 18px;
  }
  .test-card .button-row > .button,
  #test-start-button,
  .custom-text-bottom .button {
    width: 100%;
  }
  .test-card .button-row > .text-button {
    margin-inline: auto;
  }
  .access-section {
    padding: 30px 22px;
  }
  .access-section h2 {
    font-size: clamp(2rem, 9vw, 2.4rem);
  }
  .access-section .button {
    width: 100%;
    padding-inline: 12px;
    gap: 12px;
  }
}
@media (max-width: 900px) and (max-height: 500px) {
  .site-header {
    position: relative;
  }
  .hero {
    padding-top: 28px;
  }
  .hero h1 {
    font-size: 3rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
