/* Paid 100 program and public home.
   Scoped away from every Free 10, result, application, and purchase selector. */

.paid-home,
.paid-program,
.paid-chapter,
.paid-review,
.paid-progress {
  width: min(100%, 1120px);
  margin-inline: auto;
}

.paid-home h1,
.paid-program h1,
.paid-chapter h1,
.paid-review h1,
.paid-progress h1 {
  text-wrap: balance;
}

.paid-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
  min-height: 560px;
  padding: clamp(28px, 5vw, 68px) 0;
  border-bottom: 1px solid var(--hairline);
}

.paid-home-copy h1 {
  max-width: 760px;
  margin: 10px 0 20px;
  font-size: clamp(44px, 6.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.paid-home-copy .lede {
  max-width: 690px;
  margin-bottom: 0;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.55;
}

.paid-home-copy > .eyebrow {
  line-height: 1.55;
}

.paid-home-copy > .eyebrow span {
  display: block;
  white-space: nowrap;
}

.paid-home-actions,
.paid-curriculum-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.paid-home-actions button {
  min-height: 54px;
}

.paid-home-actions .paid-home-secondary {
  border-color: #C9B8A8;
}

.paid-home-actions .paid-home-secondary:hover:not(:disabled),
.paid-home-actions .paid-home-secondary:focus-visible {
  border-color: var(--accent);
}

.paid-home-purchase-note {
  margin: 0;
  color: var(--ink-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

.paid-proof-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 690px;
  margin: 38px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--hairline);
  list-style: none;
}

.paid-proof-list li {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding-right: 18px;
}

.paid-proof-list li + li {
  padding-left: 18px;
  border-left: 1px solid var(--hairline);
}

.paid-proof-list strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
}

.paid-proof-list span {
  color: var(--ink-muted);
  font-size: 13px;
}

.paid-offer-card {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.paid-offer-card .eyebrow {
  margin-bottom: 22px;
}

.paid-offer-price {
  display: flex;
  align-items: end;
  gap: 11px;
  margin-bottom: 8px;
}

.paid-offer-price strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
}

.paid-offer-price span {
  padding-bottom: 5px;
  color: var(--ink-muted);
  font-size: 13px;
}

.paid-offer-card h2 {
  margin: 0 0 22px;
  font-size: 21px;
}

.paid-offer-card ul {
  display: grid;
  gap: 0;
  margin: 0 0 24px;
  padding: 0;
  border-top: 1px solid var(--hairline);
  list-style: none;
}

.paid-offer-card li {
  position: relative;
  padding: 11px 0 11px 20px;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
}

.paid-offer-card li::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 2px;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.paid-offer-card .primary-button {
  width: 100%;
}

.paid-offer-card > small {
  display: block;
  margin-top: 11px;
  color: var(--ink-muted);
  font-size: 11px;
  text-align: center;
}

.paid-paths,
.paid-curriculum-preview {
  padding: clamp(56px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--hairline);
}

.paid-section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.paid-section-heading h2 {
  margin: 7px 0 10px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
}

.paid-section-heading > p:last-child {
  color: var(--ink-muted);
}

.paid-path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}

.paid-path-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 24px;
  min-height: 310px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--surface);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.paid-path-number {
  display: grid;
  place-items: center;
  align-self: start;
  min-width: 66px;
  height: 58px;
  padding-inline: 9px;
  color: var(--accent);
  background: var(--selection);
  border: 1px solid #E8D4C3;
  font-family: "IBM Plex Mono", monospace;
  font-size: 23px;
  font-weight: 600;
}

.paid-path-card h3 {
  margin: 5px 0 10px;
  font-size: 24px;
}

.paid-path-card p:last-child {
  max-width: 420px;
  color: var(--ink-muted);
  font-size: 15px;
}

.paid-path-card > button {
  grid-column: 1 / -1;
  justify-self: start;
}

.paid-home-chapters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.paid-home-chapter {
  display: grid;
  align-content: space-between;
  min-height: 190px;
  padding: 20px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #E8D4C3;
  box-shadow: 0 5px 14px rgba(73, 48, 27, 0.07);
}

.paid-home-chapter header {
  display: grid;
  gap: 9px;
}

.paid-home-chapter h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}

.paid-home-chapter ul {
  display: grid;
  gap: 5px;
  margin: 16px 0 0;
  padding-left: 17px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.3;
}

.paid-home-chapter-index {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
}

.paid-home-chapter strong,
.paid-home-chapter small {
  display: block;
}

.paid-home-chapter strong {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.35;
}

.paid-home-chapter small {
  color: var(--ink-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.paid-resource-preview {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(360px, 1.2fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: clamp(42px, 6vw, 68px) 0;
  border-bottom: 1px solid var(--hairline);
}

.paid-resource-heading {
  min-width: 0;
}

.paid-resource-preview h2 {
  max-width: 520px;
  margin: 7px 0 0;
  font-size: clamp(27px, 3.5vw, 39px);
  line-height: 1.1;
}

.paid-resource-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.paid-resource-card {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 86px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #C9B8A8;
  text-align: center;
  text-decoration: none;
}

.paid-resource-card:hover,
.paid-resource-card:focus-visible {
  color: var(--ink);
  background: #FFFBF6;
  border-color: var(--accent);
}

.paid-resource-card-copy {
  display: grid;
  gap: 7px;
  justify-items: center;
  min-width: 0;
}

.paid-resource-card small {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  line-height: 1.3;
}

.paid-resource-card strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
}

.paid-resource-connector {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  justify-self: center;
  color: var(--accent);
}

.paid-resource-arrow {
  display: block;
  width: 29px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.paid-free10-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin: clamp(46px, 7vw, 76px) 0;
  padding: clamp(24px, 4vw, 38px);
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.paid-free10-preview h2 {
  margin: 7px 0 9px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.1;
}

.paid-free10-preview p:last-child {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--ink-muted);
}

.paid-free10-preview > button {
  min-height: 52px;
  white-space: nowrap;
}

/* Member program */
@media (min-width: 901px) {
  .main.program-main {
    padding-top: 24px;
  }
}

.paid-program-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 42px;
  align-items: end;
  padding: 28px 0 38px;
  border-bottom: 1px solid var(--hairline);
}

.paid-program-hero h1 {
  max-width: 740px;
  margin: 8px 0 14px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.04;
}

.paid-program-hero .lede {
  max-width: 760px;
  margin-bottom: 0;
}

.paid-program-total {
  display: grid;
  gap: 5px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.paid-program-total strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 38px;
  line-height: 1;
}

.paid-program-total span {
  color: var(--ink-muted);
  font-size: 12px;
}

.paid-program-total .progress-bar {
  margin-top: 11px;
}

.paid-program-note {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  margin: 24px 0;
  padding: 15px 18px;
  color: var(--ink-muted);
  background: var(--surface);
  border: 1px solid var(--hairline);
  font-size: 13px;
}

.paid-program-note strong {
  color: var(--ink);
}

.paid-program-chapters {
  display: grid;
  border-top: 1px solid var(--hairline);
}

.paid-program-chapter {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 178px;
  padding: 26px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
}

.paid-program-chapter.locked {
  background: var(--surface);
}

.paid-program-index {
  align-self: start;
  padding-top: 5px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 19px;
}

.paid-program-copy {
  min-width: 0;
}

.paid-program-copy header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.paid-program-copy h2 {
  margin: 4px 0 8px;
  font-size: 26px;
}

.paid-program-copy > p {
  max-width: 760px;
  margin-bottom: 12px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.45;
}

.paid-program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin-bottom: 13px;
  color: var(--ink-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.paid-program-meta span + span::before {
  content: "/";
  margin-right: 18px;
  color: var(--hairline);
}

.paid-program-action {
  width: 180px;
  min-width: 180px;
  justify-self: end;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.paid-program .status-chip,
.paid-progress .status-chip {
  color: var(--ink-muted);
  background: var(--surface);
  border: 1px solid var(--hairline);
  font-family: "IBM Plex Mono", monospace;
}

.paid-program .status-chip.current,
.paid-program .status-chip.complete,
.paid-program .status-chip.mastered,
.paid-progress .status-chip.current,
.paid-progress .status-chip.complete,
.paid-progress .status-chip.mastered {
  color: var(--accent-hover);
  background: var(--selection);
  border-color: #E8D4C3;
}

.paid-program .chapter-progress-copy {
  margin: 0 0 5px;
  font-size: 11px;
}

.paid-program .progress-bar,
.paid-progress .progress-bar,
.paid-program-total .progress-bar {
  height: 5px;
  background: var(--progress-track);
  border: 0;
}

.paid-program .progress-bar::-webkit-progress-bar,
.paid-progress .progress-bar::-webkit-progress-bar,
.paid-program-total .progress-bar::-webkit-progress-bar {
  background: var(--progress-track);
}

.paid-program .progress-bar::-webkit-progress-value,
.paid-progress .progress-bar::-webkit-progress-value,
.paid-program-total .progress-bar::-webkit-progress-value {
  background: var(--progress-fill);
}

.paid-program .progress-bar::-moz-progress-bar,
.paid-progress .progress-bar::-moz-progress-bar,
.paid-program-total .progress-bar::-moz-progress-bar {
  background: var(--progress-fill);
}

/* Chapter library */
.paid-chapter-hero {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 180px;
  gap: 22px;
  align-items: start;
  padding: 22px 0 34px;
  border-bottom: 1px solid var(--hairline);
}

.paid-chapter-hero .back-button {
  width: 48px;
  height: 48px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.paid-chapter-hero h1 {
  margin: 6px 0 12px;
  font-size: clamp(36px, 5vw, 52px);
}

.paid-chapter-hero p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.5;
}

.paid-chapter-summary {
  display: grid;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.paid-chapter-summary strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 32px;
  line-height: 1;
}

.paid-chapter-summary span,
.paid-chapter-summary small {
  color: var(--ink-muted);
  font-size: 11px;
}

.paid-chapter-summary span {
  margin: 4px 0 10px;
}

.paid-chapter .chapter-main {
  gap: 24px;
  padding-top: 24px;
}

.paid-chapter .panel {
  padding: clamp(20px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.paid-check-panel {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.paid-check-panel::before {
  display: none;
}

.paid-check-panel .entry-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 64px;
  margin: 0;
  color: var(--accent-hover);
  background: var(--selection);
  border: 1px solid #E8D4C3;
  font-family: "IBM Plex Mono", monospace;
  font-size: 18px;
  transform: none;
}

.paid-check-panel .entry-icon span {
  transform: none;
}

.paid-check-panel h2 {
  margin: 5px 0 7px;
}

.paid-check-panel p:last-of-type {
  margin-bottom: 0;
  color: var(--ink-muted);
}

.paid-check-panel .entry-actions {
  margin-top: 20px;
}

.paid-practice-panel .section-heading {
  align-items: start;
  margin: 0 0 24px;
}

.paid-practice-panel .section-heading h2 {
  margin: 5px 0 7px;
  font-size: 30px;
}

.paid-practice-panel .section-heading p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--ink-muted);
  font-size: 13px;
}

.paid-practice-panel .practice-list {
  gap: 8px;
}

.paid-practice-panel .practice-row {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  min-height: 84px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.paid-practice-panel .practice-row:hover:not(:disabled),
.paid-practice-panel .practice-row.current {
  background: #FCFBF8;
  border-color: var(--accent);
}

.paid-practice-panel .practice-row.done {
  background: var(--selection);
  border-color: #E8D4C3;
}

.paid-practice-panel .practice-row.review {
  background: #FCF5F3;
  border-color: #D7A49C;
}

.paid-practice-panel .practice-row .number {
  width: 42px;
  height: 42px;
  color: var(--accent-hover);
  background: var(--selection);
  border: 1px solid #E8D4C3;
  font-family: "IBM Plex Mono", monospace;
}

.paid-practice-panel .practice-row strong {
  overflow: visible;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: clip;
  white-space: normal;
}

.paid-practice-panel .practice-row small {
  margin-top: 5px;
  font-size: 10px;
}

/* Paid question and answer player. Free 10 uses .diagnostic-main, not .lesson-main. */
.lesson-main .lesson-header {
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: none;
}

.lesson-main .lesson-header .back-button,
.lesson-main .lesson-tools button {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.lesson-main .lesson-meter {
  height: 5px;
  background: var(--progress-track);
}

.lesson-main .lesson-meter::-webkit-progress-bar {
  background: var(--progress-track);
}

.lesson-main .lesson-meter::-webkit-progress-value,
.lesson-main .lesson-meter::-moz-progress-bar {
  background: var(--progress-fill);
}

.lesson-main .player-shell {
  max-width: 1120px;
}

.lesson-main .corpus-question-visual {
  background: var(--circuit-surface);
  border: 1px solid var(--circuit-frame);
}

.lesson-main .mobile-choice {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.lesson-main .mobile-choice:hover:not(:disabled) {
  border-color: var(--accent);
}

.lesson-main .mobile-choice.selected {
  background: var(--selection);
  border-color: var(--accent);
}

.lesson-main .mobile-choice.correct {
  background: #F4F0E8;
  border-color: #736647;
}

.lesson-main .mobile-choice.wrong {
  background: #FCF5F3;
  border-color: var(--urgent);
}

.lesson-main .player-actions {
  background: var(--surface);
  border: 1px solid var(--hairline);
  backdrop-filter: none;
}

.lesson-main .feedback-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.lesson-main .feedback-card.wrong {
  background: #FCF8F6;
  border-color: #D7A49C;
}

.lesson-main .feedback-card.reveal {
  background: #FCFBF8;
  border-color: #D8C7A2;
}

.lesson-main .feedback-title i {
  color: #FFFFFF;
  background: var(--accent);
}

.lesson-main .feedback-card.wrong .feedback-title i {
  background: var(--urgent);
}

.lesson-main .feedback-card.reveal .feedback-title i {
  color: var(--ink);
  background: #E8D4A8;
}

.lesson-main .answer-image {
  background: var(--surface);
  border: 1px solid var(--circuit-frame);
}

.gate-banner {
  color: var(--ink-muted);
  background: #FBF6E9;
  border-bottom-color: #D8C7A2;
}

.gate-result {
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.gate-score {
  color: #FFFFFF;
  background: var(--accent);
  border: 0;
  transform: none;
}

.gate-score span {
  transform: none;
}

/* Review, progress, and member navigation */
.paid-review,
.paid-progress {
  padding-top: 24px;
}

.paid-review .review-empty,
.paid-review .review-row,
.paid-progress .stat-card,
.paid-progress .progress-row {
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.paid-review .empty-icon,
.paid-review .review-index,
.paid-progress .chapter-number {
  color: var(--accent-hover);
  background: var(--selection);
  border: 1px solid #E8D4C3;
  font-family: "IBM Plex Mono", monospace;
}

.paid-review .review-empty {
  min-height: 360px;
}

.paid-review .review-row.required {
  background: #FCF5F3;
  border-color: #D7A49C;
}

.paid-progress .stat-card span,
.paid-progress .stat-card small,
.paid-progress .progress-row small {
  color: var(--ink-muted);
}

.paid-progress .stat-card strong {
  font-family: "IBM Plex Mono", monospace;
}

.bottom-nav {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-bottom: 0;
  backdrop-filter: none;
}

.bottom-nav button {
  color: var(--ink-muted);
  background: transparent;
  border: 1px solid transparent;
}

.bottom-nav button.selected {
  color: var(--accent-hover);
  background: var(--selection);
  border-color: #E8D4C3;
}

.bottom-nav i {
  color: #FFFFFF;
  background: var(--urgent);
  border-color: var(--surface);
}

@media (min-width: 1000px) {
  .bottom-nav {
    background: var(--paper);
  }

  .bottom-nav button {
    color: var(--ink-muted);
  }

  .bottom-nav button.selected {
    color: var(--accent-hover);
    background: var(--selection);
  }
}

@media (max-width: 900px) {
  .paid-home-hero,
  .paid-program-hero {
    grid-template-columns: 1fr;
  }

  .paid-home-hero {
    min-height: 0;
  }

  .paid-offer-card {
    width: min(100%, 560px);
  }

  .paid-home-chapters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .paid-home-chapter:last-child {
    grid-column: 1 / -1;
  }

  .paid-program-total {
    width: min(100%, 300px);
  }

  .paid-program-chapter {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .paid-program-action {
    grid-column: 2;
    justify-self: start;
  }

  .paid-chapter-hero {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .paid-chapter-summary {
    grid-column: 2;
    width: min(100%, 260px);
  }
}

@media (max-width: 620px) {
  .paid-home-hero {
    gap: 36px;
    padding: 34px 0 48px;
  }

  .paid-home-copy h1 {
    font-size: clamp(40px, 11.7vw, 50px);
  }

  .paid-home-actions,
  .paid-curriculum-actions {
    display: grid;
  }

  .paid-home-actions button,
  .paid-curriculum-actions button {
    width: 100%;
  }

  .paid-free10-preview {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .paid-resource-preview {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .paid-resource-links {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .paid-resource-card {
    min-height: 82px;
    padding: 13px 16px;
  }

  .paid-resource-connector {
    min-height: 38px;
  }

  .paid-resource-arrow {
    transform: rotate(90deg);
  }

  .paid-free10-preview > button {
    width: 100%;
  }

  .paid-proof-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .paid-proof-list li,
  .paid-proof-list li + li {
    grid-template-columns: 52px 1fr;
    align-items: baseline;
    padding: 0;
    border: 0;
  }

  .paid-offer-card {
    padding: 24px 20px;
  }

  .paid-paths,
  .paid-curriculum-preview {
    padding: 58px 0;
  }

  .paid-path-grid,
  .paid-home-chapters {
    grid-template-columns: 1fr;
  }

  .paid-home-chapter:last-child {
    grid-column: auto;
  }

  .paid-path-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    min-height: 0;
    padding: 24px 18px;
  }

  .paid-path-number {
    min-width: 54px;
    height: 50px;
    font-size: 20px;
  }

  .paid-home-chapter {
    grid-template-columns: 46px 1fr;
    align-content: center;
    min-height: 92px;
    gap: 12px;
  }

  .paid-program-hero {
    gap: 24px;
    padding-top: 12px;
  }

  .paid-program-hero h1 {
    font-size: 40px;
  }

  .paid-program-note {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .paid-program-chapter {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 24px 0;
  }

  .paid-program-copy header {
    display: grid;
  }

  .paid-program-copy .status-chip {
    justify-self: start;
  }

  .paid-program-meta {
    display: grid;
    gap: 3px;
  }

  .paid-program-meta span + span::before {
    content: none;
  }

  .paid-program-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .paid-chapter-hero {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .paid-chapter-hero .back-button {
    width: 44px;
    height: 44px;
  }

  .paid-chapter-hero h1 {
    font-size: 38px;
  }

  .paid-chapter-summary {
    grid-column: 1 / -1;
    width: 100%;
  }

  .paid-check-panel {
    grid-template-columns: 1fr;
  }

  .paid-check-panel .entry-actions,
  .paid-practice-panel .section-heading {
    display: grid;
  }

  .paid-check-panel .entry-actions button,
  .paid-practice-panel .section-heading button {
    width: 100%;
  }

  .paid-practice-panel .practice-list {
    grid-template-columns: 1fr;
  }

  .paid-practice-panel .practice-row {
    min-height: 82px;
  }

  .paid-review .review-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .paid-review .review-row button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .paid-progress .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .paid-progress .progress-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .paid-progress .progress-row .status-chip {
    grid-column: 2;
    justify-self: start;
  }
}

/* Customer-final account entry and the native paid question player. */
.signin-button {
  min-height: 40px;
  padding: 8px 18px;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  cursor: pointer;
}

.signin-button:hover,
.signin-button:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.sign-in-shell {
  display: grid;
  gap: 12px;
  width: min(92vw, 430px);
}

.sign-in-shell header {
  margin-bottom: 4px;
}

.sign-in-provider,
.sign-in-shell > .primary-button {
  width: 100%;
}

.sign-in-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--ink-muted);
  font-size: 12px;
}

.sign-in-divider::before,
.sign-in-divider::after {
  content: "";
  height: 1px;
  background: var(--hairline);
}

.lesson-main .paid-lesson-context {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.lesson-main .paid-lesson-context > strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-main .paid-lesson-context .lesson-progress {
  min-width: 0;
}

.lesson-main .paid-native-question {
  display: grid;
  gap: 14px;
  width: min(100%, 920px);
  margin: 0;
}

.lesson-main .paid-question-frame {
  min-width: 0;
}

.lesson-main .paid-native-question .corpus-question-visual {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--circuit-frame);
  border-radius: 3px;
  box-shadow: none;
}

.lesson-main .paid-choice-grid {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
}

.lesson-main .paid-choice-grid.paired-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lesson-main .paid-choice-grid.single-column,
.lesson-main .paid-choice-grid.graphic-choices {
  grid-template-columns: 1fr;
}

.lesson-main .paid-choice-tile {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 62px;
  padding: 9px 11px;
  color: var(--ink);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  box-shadow: none;
  cursor: pointer;
  transition: none;
}

.lesson-main .paid-choice-tile:hover:not(:disabled) {
  background: var(--selection);
  border-color: var(--accent);
}

.lesson-main .paid-choice-tile:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.lesson-main .paid-choice-tile.selected {
  background: var(--selection);
  border: 2px solid var(--accent);
  box-shadow: none;
}

.lesson-main .paid-choice-tile:disabled {
  color: var(--ink);
  opacity: 1;
  cursor: default;
}

.lesson-main .paid-choice-tile.correct {
  background: #F7F1E8;
  border-color: #7A684B;
}

.lesson-main .paid-choice-tile.wrong {
  background: #FCF5F3;
  border-color: var(--urgent);
}

.lesson-main .paid-choice-label {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 650;
  background: var(--selection);
  border: 1px solid var(--circuit-frame);
  border-radius: 3px;
}

.lesson-main .paid-choice-tile.selected .paid-choice-label {
  color: #FFFFFF;
  background: var(--accent);
  border-color: var(--accent);
}

.lesson-main .paid-choice-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.lesson-main .paid-choice-figure {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 70px;
  padding: 2px;
  background: #FFFFFF;
}

.lesson-main .paid-choice-figure img {
  display: block;
  width: 100%;
  max-width: 760px;
  max-height: 150px;
  object-fit: contain;
}

.lesson-main .paid-choice-tile .selection-indicator {
  position: static;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--accent);
  font-size: 13px;
  font-style: normal;
  background: transparent;
  border: 0;
}

.lesson-main .paid-choice-tile.wrong .selection-indicator {
  color: var(--urgent);
}

.lesson-main .player-actions {
  position: static;
  justify-content: flex-end;
  width: min(100%, 920px);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.lesson-main .player-shell > .feedback-card {
  width: min(100%, 920px);
  border-radius: 3px;
  box-shadow: none;
}

.lesson-main .answer-image {
  width: 100%;
  border-radius: 3px;
  box-shadow: none;
}

@media (min-width: 900px) {
  .lesson-main .paid-native-question {
    grid-template-columns: minmax(0, 1.16fr) minmax(320px, .84fr);
    align-items: start;
  }
}

@media (max-width: 560px) {
  .signin-button {
    min-height: 38px;
    padding-inline: 14px;
  }

  .lesson-main .lesson-header {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .lesson-main .paid-lesson-context > strong {
    font-size: 12px;
  }

  .lesson-main .paid-choice-grid.paired-columns {
    grid-template-columns: 1fr;
  }

  .lesson-main .paid-choice-tile {
    min-height: 58px;
  }

  .lesson-main .player-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .lesson-main .player-actions > span {
    grid-column: 1 / -1;
  }
}

/* Customer-final public, account, and preview surfaces. */
.header-link,
.account-email {
  min-height: 40px;
  padding: 8px 12px;
  color: var(--ink-muted);
  background: transparent;
  border: 0;
  font-weight: 500;
  cursor: pointer;
}

.header-link:hover,
.account-email:hover {
  color: var(--accent);
}

.account-email {
  max-width: 210px;
  overflow: hidden;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paid-home-chapters {
  gap: 12px;
  border: 0;
}

.paid-home-chapter {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 18px;
  min-height: 270px;
  padding: 22px 18px;
  color: #F8F5EF;
  background: #1C1D20;
  border: 1px solid #35363A;
}

.paid-home-chapter header {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.paid-home-chapter h3 {
  margin: 0;
  color: #FFFFFF;
  font-size: 17px;
  line-height: 1.25;
}

.paid-home-chapter-index {
  flex: none;
  color: #E8A76F;
}

.paid-home-chapter ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.paid-home-chapter li {
  position: relative;
  padding-left: 14px;
  color: #D4D0C9;
  font-size: 13px;
  line-height: 1.4;
}

.paid-home-chapter li::before {
  content: "";
  position: absolute;
  top: .62em;
  left: 0;
  width: 5px;
  height: 5px;
  background: #C77A3A;
}

.paid-proof-list strong {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
}

.paid-free10-state {
  margin-top: 16px;
  padding: 13px 15px;
  background: #FCFBF8;
  border: 1px solid var(--hairline);
}

.paid-free10-state.in-progress {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-height: 178px;
  text-align: center;
}

.paid-free10-state.in-progress > div,
.paid-free10-time {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.paid-free10-state span {
  color: var(--ink-muted);
  font-size: 12px;
}

.paid-free10-time {
  justify-items: center;
}

.paid-free10-time .quiz-timer {
  min-width: 104px;
}

.preview-purchase-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 2px solid var(--accent);
}

.preview-purchase-banner > div {
  display: grid;
  gap: 3px;
}

.preview-purchase-banner span {
  color: var(--ink-muted);
  font-size: 13px;
}

.paid-program-chapter.purchase-locked {
  background: var(--surface);
}

.preview-purchase-footer {
  display: flex;
  justify-content: center;
  padding: 32px 0 12px;
}

.account-page {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - 190px);
  padding: clamp(24px, 6vw, 72px) 0;
}

body.login-page-active .app {
  display: flex;
  flex-direction: column;
}

body.login-page-active .main {
  flex: 1 1 auto;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: visible;
}

body.login-page-active .account-page {
  min-height: 100%;
  padding-block: clamp(16px, 3vh, 32px);
}

@media (max-width: 620px) and (max-height: 700px) {
  body.login-page-active .account-page {
    padding-block: 12px;
  }

  body.login-page-active .account-shell {
    padding-block: 20px;
  }
}

.account-shell {
  width: min(100%, 470px);
  padding: clamp(24px, 5vw, 40px);
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.account-shell h1 {
  margin-bottom: 12px;
  font-size: clamp(32px, 5vw, 44px);
}

.account-intro,
.account-capability {
  color: var(--ink-muted);
  font-size: 14px;
}

.account-capability {
  margin: 8px 0 0;
  text-align: center;
}

.account-provider {
  width: 100%;
  margin-top: 12px;
}

.account-form {
  display: grid;
  gap: 8px;
}

.account-form label {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
}

.account-form input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--hairline);
}

.account-form input[readonly] {
  color: #55504a;
  background: #f5f2ec;
  cursor: default;
}

.password-input-shell {
  position: relative;
}

.account-form .password-input-shell input {
  padding-right: 64px;
}

.password-visibility {
  position: absolute;
  inset: 1px 2px 1px auto;
  min-width: 56px;
  padding: 0 10px;
  color: var(--accent);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.password-visibility:hover,
.password-visibility:active {
  color: var(--accent-hover);
  background: transparent;
}

.password-visibility:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
}

.purchase-account-loading {
  text-align: center;
}

.purchase-entry-spinner {
  display: block;
  width: 30px;
  height: 30px;
  margin: 22px auto 8px;
  border: 3px solid var(--hairline);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}

.account-form small {
  color: var(--ink-muted);
}

.account-form .primary-button {
  width: 100%;
  margin-top: 12px;
}

.account-message {
  min-height: 24px;
  margin: 4px 0 0;
  color: var(--urgent);
  font-size: 13px;
}

.account-links {
  display: grid;
  gap: 5px;
  justify-items: center;
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 13px;
  text-align: center;
}

.account-links .text-button {
  min-height: 38px;
  padding-inline: 4px;
  color: var(--accent);
  background: transparent;
  border: 0;
}

.account-links .text-button:hover:not(:disabled),
.account-links .text-button:active:not(:disabled) {
  color: var(--accent-hover);
  background: transparent;
  border-color: transparent;
}

.account-links a:not(.primary-button),
.account-links a:not(.primary-button):hover {
  color: var(--accent);
  text-decoration: none;
}

.account-links a:not(.primary-button):hover {
  color: var(--accent-hover);
}

.account-links .text-button:focus-visible,
.account-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.diagnostic-intro-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.diagnostic-exit {
  width: auto;
  min-width: 64px;
  padding: 0 12px;
  font-size: 13px;
}

.checkout-scope {
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.lesson-main .feedback-card .answer-image {
  max-height: none;
  object-fit: contain;
  background: #FFFFFF;
}

@media (max-width: 860px) {
  .paid-home-chapters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .paid-home-chapter:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .account-email {
    display: none;
  }

  .top-actions {
    gap: 2px;
  }

  .header-link,
  .signin-button {
    padding-inline: 10px;
    font-size: 13px;
  }

  .paid-home-chapters {
    grid-template-columns: 1fr;
  }

  .paid-home-chapter,
  .paid-home-chapter:last-child {
    grid-column: auto;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 21px 18px;
  }

  .paid-free10-state.in-progress,
  .preview-purchase-banner {
    display: grid;
  }

  .paid-free10-time {
    justify-items: center;
  }

  .preview-purchase-banner .primary-button,
  .preview-purchase-footer .primary-button {
    width: 100%;
  }

  .diagnostic-intro-actions {
    display: grid;
    width: min(100%, 280px);
  }

  .diagnostic-intro-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .paid-home *,
  .paid-program *,
  .paid-chapter *,
  .paid-review *,
  .paid-progress * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Founder-feedback batch 2026-08-02: shared paid assessment shell and
   streamlined chapter entry surfaces. These selectors are deliberately
   scoped to paid/member routes so the locked Free 10 canaries remain intact. */
.paid-home-hero {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  align-items: center;
  min-height: 0;
}

.paid-home-benefits {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--surface);
  border: 1px solid var(--accent);
}

.paid-home-benefits h2 {
  max-width: 360px;
  margin: 5px 0 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
}

.paid-home-benefits ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.paid-home-benefits li {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}

.paid-home-benefits li strong {
  color: var(--accent);
  font-weight: 600;
}

.paid-home-benefits li span,
.paid-home-benefit-meta {
  color: var(--ink-muted);
}

.paid-home-benefit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  line-height: 1.4;
}

.paid-home-offer {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) auto minmax(320px, 1.2fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  margin: 0 0 clamp(24px, 5vw, 56px);
  padding: 22px 26px;
  border-color: var(--accent);
}

.paid-home-offer .eyebrow,
.paid-home-offer h2,
.paid-home-offer .paid-offer-price,
.paid-home-offer ul {
  margin: 0;
}

.paid-home-offer ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 0;
}

.paid-home-offer li {
  padding-block: 7px;
}

.paid-home-offer li::before {
  top: 15px;
}

.paid-home-offer .primary-button {
  width: auto;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .paid-program-chapter:has(.paid-program-action:not(:disabled)):hover {
    background: #FCFBF8;
  }

  .paid-program-chapter:has(.paid-program-action:not(:disabled)):hover .paid-program-action {
    color: #FFFFFF;
    background: var(--accent-hover);
    border-color: var(--accent-hover);
  }
}

.chapter-entry-panels .paid-check-panel,
.chapter-entry-panels .paid-practice-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.chapter-entry-panels .paid-check-panel.in-progress {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.chapter-entry-panels .entry-icon {
  width: 72px;
  height: 64px;
  margin: 0;
  color: var(--ink);
  background: var(--selection);
  border: 1px solid #E8D4C3;
  border-radius: 3px;
  transform: none;
}

.chapter-entry-panels .entry-icon span {
  transform: none;
}

.chapter-entry-panels .entry-panel-copy h2 {
  margin: 5px 0 7px;
}

.chapter-entry-panels .entry-panel-copy p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--ink-muted);
}

.chapter-entry-panels .entry-actions {
  margin: 0;
}

.chapter-entry-panels .entry-actions button {
  width: 272px;
  min-width: 272px;
  height: 50px;
  min-height: 50px;
  max-height: 50px;
  padding-block: 0;
  justify-content: center;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.entry-panel-status {
  display: grid;
  justify-items: end;
  gap: 5px;
  color: var(--ink-muted);
  font-size: 11px;
}

.entry-panel-status .quiz-timer {
  min-width: 104px;
}

body.paid-assessment-active .paid-assessment-shell,
body.paid-assessment-active .paid-assessment-header,
body.paid-assessment-active .diagnostic-player,
body.paid-assessment-active .assessment-layout,
body.paid-assessment-active .assessment-visual-frame,
body.paid-assessment-active .assessment-controls,
body.paid-assessment-active .diagnostic-choice-grid,
body.paid-assessment-active .diagnostic-actions {
  min-width: 0;
  min-height: 0;
}

body.paid-assessment-active .paid-native-question {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

body.paid-assessment-active .corpus-question-visual {
  max-width: 100%;
  max-height: 100%;
  background: #FFFFFF;
  border: 0;
  border-radius: 14px;
}

body.paid-assessment-active .paid-choice-grid,
body.paid-assessment-active .paid-choice-grid.paired-columns,
body.paid-assessment-active .paid-choice-grid.single-column,
body.paid-assessment-active .paid-choice-grid.graphic-choices,
body.paid-assessment-active .diagnostic-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.paid-assessment-active .assessment-layout .paid-choice-tile {
  overflow: hidden;
  min-height: 58px;
  padding: 7px 9px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
}

body.paid-assessment-active .assessment-layout .paid-choice-tile.selected {
  border: 2px solid var(--accent);
}

body.paid-assessment-active .paid-choice-copy {
  font-size: clamp(10px, 1vw, 13px);
  line-height: 1.18;
}

body.paid-assessment-active .paid-choice-figure {
  min-height: 0;
  height: 48px;
  padding: 0;
}

body.paid-assessment-active .paid-choice-figure img {
  max-height: 48px;
}

.lesson-review-toggle {
  box-sizing: border-box;
  width: 140px;
  min-width: 140px;
  max-width: 140px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 6px 9px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
}

.assessment-answer-frame {
  background: #FFFFFF;
}

.assessment-answer-visual {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin: 0;
  background: #FFFFFF;
  border-radius: 14px;
}

.assessment-answer-visual .answer-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #FFFFFF;
  border: 0;
  border-radius: 0;
}

body.paid-assessment-active .answer-side .answer-controls {
  grid-template-rows: minmax(0, 1fr) auto;
}

body.paid-assessment-active .answer-side .diagnostic-actions {
  grid-row: 2;
}

.gate-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.gate-result-actions button {
  min-width: 190px;
}

.gate-status .diagnostic-continue-timer {
  margin-bottom: 22px;
}

.chapter-check-status .diagnostic-continue-timer,
.chapter-check-status .diagnostic-intro-actions {
  justify-self: center;
}

.chapter-check-status .diagnostic-continue-timer {
  width: 120px;
  margin-inline: 0;
}

.chapter-check-status .diagnostic-continue-timer > span,
.chapter-entry-panels .paid-check-panel.in-progress .entry-panel-status > span,
body.paid-assessment-active .guided-practice-shell [data-action="lesson-show-answer"] {
  white-space: nowrap;
}

.chapter-check-status .diagnostic-intro-actions {
  display: grid;
  width: min(100%, 280px);
}

.chapter-check-status .diagnostic-intro-actions button {
  width: 100%;
}

.gate-result .gate-score {
  color: var(--accent-hover);
  background: var(--selection);
  border: 1px solid var(--accent);
}

.gate-result > h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 500;
}

.program-access-card {
  display: grid;
  gap: 9px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid #E8D4C3;
  box-shadow: 0 5px 14px rgba(73, 48, 27, 0.07);
}

.program-access-card > strong {
  font-size: 22px;
  line-height: 1.15;
}

.program-access-card > span {
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.4;
}

.program-access-card .primary-button {
  width: 100%;
  margin-top: 5px;
}

.paid-topic-list {
  display: grid;
  gap: 5px;
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.35;
}

.paid-program-note,
.paid-program-total {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(73, 48, 27, 0.05);
}

.account-provider {
  display: grid;
  place-items: center;
  text-decoration: none;
}

@media (min-width: 900px) {
  body.paid-assessment-active .assessment-layout,
  body.paid-assessment-active .paid-native-question {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    align-items: center;
  }
}

@media (max-width: 900px) {
  .paid-home-hero,
  .paid-home-offer {
    grid-template-columns: minmax(0, 1fr);
  }

  .paid-home-benefits {
    width: min(100%, 620px);
  }

  .paid-home-offer {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .paid-home-offer ul {
    grid-column: 1 / -1;
  }

  .chapter-entry-panels .paid-check-panel.in-progress {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .chapter-entry-panels .paid-check-panel.in-progress .entry-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .paid-home-offer,
  .chapter-entry-panels .paid-check-panel,
  .chapter-entry-panels .paid-check-panel.in-progress,
  .chapter-entry-panels .paid-practice-panel {
    grid-template-columns: 1fr;
  }

  .chapter-entry-panels .paid-check-panel.in-progress .entry-panel-status {
    justify-self: stretch;
    justify-items: center;
    width: 100%;
    text-align: center;
  }

  .paid-program-total,
  .paid-program-note {
    box-sizing: border-box;
    width: 100%;
    min-height: 150px;
    margin: 14px 0;
    padding: 18px;
    align-content: center;
  }

  .paid-program-total {
    justify-self: stretch;
  }

  .program-access-card {
    width: 100%;
  }

  .unified-benefit-list li {
    white-space: nowrap;
  }

  .paid-home-offer ul,
  .chapter-entry-panels .paid-check-panel.in-progress .entry-actions {
    grid-column: auto;
  }

  .paid-home-offer ul {
    grid-template-columns: 1fr;
  }

  .paid-home-offer .primary-button,
  .chapter-entry-panels .entry-actions button {
    width: 100%;
  }

  .chapter-entry-panels .entry-actions button {
    min-width: 0;
    max-width: none;
    height: 50px;
  }

  .chapter-entry-panels .entry-icon {
    width: 60px;
    height: 52px;
  }
}

@media (max-width: 560px) {
  body.paid-assessment-active .answer-side {
    grid-template-rows: minmax(0, 1fr) 48px;
  }

  body.paid-assessment-active .paid-assessment-header:has(.lesson-review-toggle) {
    grid-template-columns: 64px minmax(0, 1fr) minmax(126px, auto);
  }

  body.paid-assessment-active .lesson-review-toggle {
    min-height: 40px;
    padding: 4px 7px;
    font-size: 10px;
    line-height: 1.1;
  }

  body.paid-assessment-active .paid-choice-grid,
  body.paid-assessment-active .paid-choice-grid.paired-columns,
  body.paid-assessment-active .diagnostic-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.paid-assessment-active .assessment-layout .paid-choice-tile {
    grid-template-columns: 24px minmax(0, 1fr) 14px;
    gap: 5px;
    min-height: 52px;
    padding: 4px 5px;
  }

  body.paid-assessment-active .paid-choice-label {
    width: 23px;
    height: 23px;
    font-size: 11px;
  }

  body.paid-assessment-active .paid-choice-copy {
    gap: 1px;
    font-size: 9px;
    line-height: 1.08;
  }

  body.paid-assessment-active .paid-choice-figure,
  body.paid-assessment-active .paid-choice-figure img {
    height: 42px;
    max-height: 42px;
  }
}

/* Reconciled founder-feedback authority: one paper/amber system and one
   collision-free benefit hierarchy. These final overrides intentionally sit
   after the earlier exploratory treatment. */
.paid-home-chapter {
  color: var(--ink);
  background: var(--surface);
  border-color: #E8D4C3;
  box-shadow: 0 5px 14px rgba(73, 48, 27, 0.07);
}

.paid-home-chapter h3 {
  color: var(--ink);
}

.paid-home-chapter-index {
  color: var(--accent);
}

.paid-home-chapter li {
  color: var(--ink-muted);
}

.paid-home-actions {
  align-items: flex-start;
}

.price-cta-group {
  display: grid;
  gap: 6px;
  justify-items: stretch;
}

.paid-curriculum-actions {
  align-items: flex-start;
}

.paid-home-benefits .unified-benefit-list {
  display: grid;
  gap: 9px;
  border-top: 0;
}

.purchase-value-list.unified-benefit-list {
  border-top: 0;
}

.paid-home-benefits .unified-benefit-list li {
  position: relative;
  display: block;
  padding: 0 0 0 24px;
  color: var(--ink);
  border-bottom: 0;
  font-size: 14px;
  line-height: 1.45;
  white-space: nowrap;
}

.purchase-value-list.unified-benefit-list li {
  border-bottom: 0;
  white-space: nowrap;
}

.paid-home-benefits .unified-benefit-list li::before,
.purchase-value-list.unified-benefit-list li::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: auto;
  height: auto;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  background: transparent;
  border-radius: 0;
  transform: translateY(-50%);
}

.checkout-payment-title {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
}

.checkout-purchase-summary {
  display: grid;
  gap: 6px;
  margin: 0 0 22px;
  color: var(--ink);
  text-align: left;
}

.checkout-purchase-total {
  font-family: "IBM Plex Mono", monospace;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.checkout-purchase-term,
.checkout-purchase-options {
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.45;
}

.checkout-submit {
  width: 100%;
}

.purchase-page .wallet-button:disabled {
  opacity: 0.64;
  cursor: default;
}

.purchase-page .apple-pay:disabled {
  color: #FFFFFF;
  background: #050505;
  border-color: #050505;
}

.purchase-page .google-pay:disabled {
  color: #17283B;
  background: #FFFFFF;
  border-color: #BFC8D8;
}

.stripe-embedded-shell {
  position: relative;
  min-height: 430px;
  margin-top: 20px;
}

.stripe-embedded-checkout {
  min-height: 430px;
}

.checkout-loading,
.checkout-error {
  margin: 24px 0;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.checkout-loading[hidden] {
  display: none;
}

.checkout-error {
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 3px;
}

.gate-result .chapter-check-result-score {
  color: var(--accent-hover);
  background: var(--selection);
  border: 1px solid var(--accent);
  transform: none;
}

/* Closed founder batch: one Free 10 choice contract for diagnostic, Chapter Check, and Guided Practice. */
.assessment-choice-grid {
  --assessment-choice-copy-size: 16px;
  --assessment-choice-id-size: 16px;
  --assessment-choice-radius: 9px;
  --assessment-choice-gap: 8px;
  --assessment-choice-pad-y: 9px;
  --assessment-choice-pad-x: 10px;
  --assessment-choice-border: #d8cbbb;
  --assessment-choice-selected-border: #a85c1b;
  --assessment-choice-selected-fill: #f7ede4;
}

#app .assessment-choice {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 24px;
  align-items: center;
  gap: var(--assessment-choice-gap);
  width: 100%;
  min-width: 0;
  min-height: 54px;
  margin: 0;
  padding: var(--assessment-choice-pad-y) var(--assessment-choice-pad-x);
  border: 1px solid var(--assessment-choice-border);
  border-radius: var(--assessment-choice-radius);
  background: #fffdf8;
  box-shadow: none;
  color: #201d19;
  text-align: left;
}

#app .assessment-choice:not(.selected):focus-visible {
  border-color: #b98960;
  background: #fff9f1;
}

@media (hover: hover) and (pointer: fine) {
  #app .assessment-choice:not(.selected):hover:not(:disabled) {
    border-color: #b98960;
    background: #fff9f1;
  }
}

#app .assessment-choice.selected {
  border: 1px solid var(--assessment-choice-selected-border);
  background: var(--assessment-choice-selected-fill);
  box-shadow: none;
  outline: none;
}

#app .assessment-choice-id {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #d8cbbb;
  border-radius: 7px;
  background: #fffaf2;
  color: #6f3c16;
  font: 600 var(--assessment-choice-id-size)/1 "IBM Plex Mono", monospace;
}

#app .assessment-choice-copy {
  min-width: 0;
  color: #201d19;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: var(--assessment-choice-copy-size);
  line-height: 1.26;
}

#app .diagnostic-choice .diagnostic-choice-copy,
#app .diagnostic-choice .diagnostic-choice-label,
#app .paid-choice-tile .paid-choice-copy,
#app .paid-choice-tile .paid-choice-label {
  font-size: var(--assessment-choice-copy-size);
}

#app .diagnostic-choice .diagnostic-choice-label,
#app .paid-choice-tile .paid-choice-label {
  font-family: "IBM Plex Mono", monospace;
  line-height: 1;
}

#app .assessment-choice .selection-indicator {
  position: static;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  font: 700 18px/1 "IBM Plex Sans", sans-serif;
}

#app .assessment-choice.correct .selection-indicator {
  background: #22543d;
  color: #fff;
}

#app .assessment-choice.wrong .selection-indicator {
  background: #9b2c2c;
  color: #fff;
}

#app .paid-choice-grid.ordinary-choices,
#app .paid-choice-grid.compact-choices,
#app .diagnostic-choice-grid.ordinary-choices,
#app .diagnostic-choice-grid.compact-choices,
#app .diagnostic-choice-grid.dense-choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#app .paid-choice-grid.dense-choices,
#app .paid-choice-grid.graphical-choices {
  grid-template-columns: minmax(0, 1fr);
}

#app .paid-native-question .assessment-controls {
  min-height: 0;
}

#app .paid-native-question .paid-choice-grid.graphical-choices,
#app .paid-native-question .paid-choice-grid.dense-choices {
  grid-template-rows: none;
  grid-auto-rows: max-content;
  height: auto;
  min-height: 0;
  max-height: min(62vh, 640px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  align-content: start;
}

#app .paid-choice-grid.graphical-choices .paid-choice-tile {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  min-height: 82px;
  padding: 8px;
}

#app .paid-choice-grid.graphical-choices .paid-choice-label {
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 7px;
  background: rgba(255, 250, 242, 0.96);
}

#app .paid-choice-grid.graphical-choices .selection-indicator {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 9px;
}

#app .paid-choice-grid.graphical-choices .image-choice-copy {
  grid-column: 1;
  width: 100%;
}

#app .paid-choice-copy.image-choice-copy,
#app .paid-choice-graphic,
#app .paid-choice-graphic-full {
  display: block;
  width: 100%;
  max-width: none;
}

#app .paid-choice-graphic {
  min-height: 0;
  height: auto;
  max-height: none;
  padding: 0;
}

#app .paid-choice-graphic-full {
  height: auto;
  max-height: none;
  object-fit: contain;
}

#app .paid-choice-graphic-slices {
  display: none;
}

@media (max-width: 560px) {
  #app .assessment-choice {
    min-height: 56px;
  }

  #app .diagnostic-choice-grid.dense-choices {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-rows: max-content;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    align-content: start;
  }

  #app .paid-choice-grid.ordinary-choices,
  #app .paid-choice-grid.compact-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #app .paid-choice-grid.compact-choices .paid-choice-tile {
    grid-template-columns: 30px minmax(0, 1fr) 18px;
    gap: 5px;
    min-height: 60px;
    padding: 8px 6px;
  }

  #app .paid-choice-grid.compact-choices .paid-choice-copy {
    font-size: 12.5px;
    line-height: 1.16;
    overflow-wrap: anywhere;
  }

  #app .paid-choice-grid.compact-choices .selection-indicator {
    width: 18px;
    height: 18px;
    font-size: 14px;
  }

  #app .paid-choice-grid.dense-choices,
  #app .paid-choice-grid.graphical-choices {
    grid-template-columns: minmax(0, 1fr);
  }

  #app .paid-choice-grid.dense-choices {
    gap: 5px;
    --assessment-choice-pad-y: 7px;
  }

  #app .paid-native-question .paid-choice-grid.dense-choices,
  #app .paid-native-question .paid-choice-grid.graphical-choices {
    max-height: min(38vh, 280px);
  }

  #app .paid-choice-graphic-wide:not(.paid-choice-plot-pair) .paid-choice-graphic-full {
    display: none;
  }

  #app .paid-choice-graphic-wide:not(.paid-choice-plot-pair) .paid-choice-graphic-slices {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    gap: 6px;
  }

  #app .paid-choice-graphic-wide:not(.paid-choice-plot-pair) .paid-choice-graphic-slice {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1.46 / 1;
    overflow: hidden;
    border-radius: 4px;
    background: #fff;
  }

  #app .paid-choice-graphic-wide:not(.paid-choice-plot-pair) .paid-choice-graphic-slice img {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 230%;
    max-width: none;
    height: auto;
    max-height: none;
  }

  #app .paid-choice-graphic-wide:not(.paid-choice-plot-pair) .paid-choice-graphic-slice.slice-right img {
    left: -130%;
  }

  #app .paid-choice-plot-pair .paid-choice-graphic-full {
    display: block;
  }

  #app .paid-choice-compact-circuit {
    width: min(100%, 225px);
    margin-inline: auto;
  }

  #app .paid-choice-compact-circuit .paid-choice-graphic-full {
    width: auto;
    max-width: 100%;
    max-height: 222px;
    margin-inline: auto;
  }
}

.chapter-complete-state {
  width: min(720px, calc(100% - 32px));
  margin: clamp(28px, 7vh, 72px) auto;
  padding: clamp(28px, 6vw, 52px);
  color: #201d19;
  background: #fffaf2;
  border: 1px solid #d8cbbb;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(68, 47, 29, 0.08);
}

.chapter-complete-state h1 {
  margin: 8px 0 6px;
  font-size: clamp(38px, 8vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.chapter-complete-state h2 {
  margin: 0 0 18px;
  color: #6f3c16;
  font-size: clamp(18px, 3vw, 24px);
}

.chapter-complete-actions {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.chapter-complete-actions .primary-button,
.chapter-complete-actions .secondary-button {
  width: 100%;
  min-height: 48px;
}

html.compact-announcement-active,
html.compact-announcement-active body {
  width: 100%;
  height: var(--visual-viewport-height);
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body.compact-announcement-active .app {
  display: flex;
  flex-direction: column;
  height: var(--visual-viewport-height);
  min-height: 0;
  overflow: hidden;
}

body.compact-announcement-active .topbar {
  position: relative;
  flex: 0 0 auto;
  top: auto;
}

body.compact-announcement-active .main {
  display: grid;
  flex: 1 1 auto;
  align-items: center;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 16px;
  overflow: hidden;
}

body.compact-announcement-active .chapter-complete-state {
  max-height: 100%;
  margin: 0 auto;
}

@media (max-width: 999px) {
  body.compact-announcement-active .main {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
}

/* Closed laptop-only founder batch: preserve every accepted phone rule above.
   The resume actions become one centered, equal-size stack without moving the
   continuing card, and paid assessment choices use the otherwise empty control
   area instead of an internal answer scroller. */
@media (min-width: 901px) {
  .diagnostic-intro.is-continuing .diagnostic-intro-actions {
    display: grid;
    justify-self: center;
    width: min(100%, 280px);
    margin-top: 26px;
  }

  .diagnostic-intro.is-continuing .diagnostic-intro-actions > button,
  .diagnostic-intro.is-continuing .diagnostic-start {
    box-sizing: border-box;
    width: 100%;
    height: 56px;
    min-height: 56px;
    margin-top: 0;
  }
}

@media (min-width: 901px) and (min-height: 700px) {
  body.paid-assessment-active #app .assessment-layout.paid-native-question {
    max-width: 1340px;
    grid-template-columns: minmax(0, 1fr) minmax(440px, 500px);
  }

  body.paid-assessment-active #app .assessment-layout.paid-native-question[data-choice-mode="graphic"] {
    grid-template-columns: minmax(0, 1fr) minmax(696px, 716px);
  }

  body.paid-assessment-active #app .paid-native-question .assessment-controls {
    align-self: stretch;
    align-content: stretch;
    height: 100%;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  body.paid-assessment-active #app .paid-native-question .paid-choice-grid,
  body.paid-assessment-active #app .paid-native-question .paid-choice-grid.paired-columns,
  body.paid-assessment-active #app .paid-native-question .paid-choice-grid.single-column,
  body.paid-assessment-active #app .paid-native-question .paid-choice-grid.graphic-choices,
  body.paid-assessment-active #app .paid-native-question .paid-choice-grid.ordinary-choices,
  body.paid-assessment-active #app .paid-native-question .paid-choice-grid.compact-choices,
  body.paid-assessment-active #app .paid-native-question .paid-choice-grid.dense-choices,
  body.paid-assessment-active #app .paid-native-question .paid-choice-grid.graphical-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
    scrollbar-gutter: auto;
    align-content: end;
  }

  body.paid-assessment-active #app .paid-native-question .paid-choice-grid.graphical-choices {
    align-self: stretch;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    grid-auto-rows: unset;
    height: 100%;
    align-content: stretch;
  }

  body.paid-assessment-active #app .paid-choice-grid.graphical-choices .paid-choice-tile {
    height: 100%;
    min-height: 0;
  }

  body.paid-assessment-active #app .paid-choice-grid.graphical-choices .image-choice-copy {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  body.paid-assessment-active #app .paid-choice-grid.graphical-choices .paid-choice-graphic,
  body.paid-assessment-active #app .paid-choice-grid.graphical-choices .paid-choice-figure {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
  }

  body.paid-assessment-active #app .paid-choice-grid.graphical-choices .paid-choice-graphic-full,
  body.paid-assessment-active #app .paid-choice-grid.graphical-choices .paid-choice-figure img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc((var(--visual-viewport-height) - 212px) / 2);
    object-fit: contain;
  }
}

/* Phone-only public-home finish: remove the hidden-nav reserve below the final
   diagnostic card and keep only a compact, safe-area-aware footer ending. */
@media (max-width: 560px) {
  .main:has(> .paid-home) {
    padding-bottom: 32px;
  }

  .paid-home > .paid-free10-preview {
    margin-bottom: 0;
  }

  .app:has(> .main > .paid-home) > .site-footer {
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }
}
