:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --surface-muted: #f1ede6;
  --ink: #16212d;
  --ink-muted: #5d6873;
  --navy: #17324d;
  --navy-strong: #0d2236;
  --gold: #d3a24f;
  --gold-soft: #f4ead7;
  --line: rgba(22, 33, 45, 0.12);
  --success: #1d7a57;
  --success-soft: #dff3e8;
  --danger: #b24747;
  --danger-soft: #f9e3e3;
  --shadow: 0 24px 60px rgba(23, 50, 77, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(211, 162, 79, 0.18), transparent 32%),
    linear-gradient(180deg, #fbfaf8 0%, var(--bg) 100%);
}

.beta-banner {
  width: min(1200px, calc(100% - 48px));
  min-height: 46px;
  margin: 14px auto 0;
  padding: 10px 16px;
  border: 1px solid rgba(211, 162, 79, 0.35);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(244, 234, 215, 0.88);
}

.beta-banner span {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: white;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.beta-banner p {
  margin: 0;
  color: var(--ink-muted);
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
.site-footer,
main {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header.compact {
  height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--navy), #244f72);
  box-shadow: 0 12px 24px rgba(23, 50, 77, 0.22);
}

.brand-mark-image {
  width: 44px;
  height: 44px;
  display: block;
  flex: 0 0 auto;
  filter: drop-shadow(0 12px 24px rgba(23, 50, 77, 0.22));
}

.brand-seal {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--navy);
  box-shadow: 0 12px 24px rgba(23, 50, 77, 0.22);
}

.brand-seal::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 2px solid var(--gold);
  border-radius: 999px;
}

.brand-seal::after {
  content: "W";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--surface);
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
}

.logo-shell {
  padding-bottom: 64px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.logo-option {
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.logo-option img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: white;
}

.logo-option h2 {
  margin: 18px 0 8px;
}

.logo-option p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.6;
}

.desktop-nav {
  display: flex;
  gap: 28px;
  color: var(--ink-muted);
}

.desktop-nav a:hover {
  color: var(--ink);
}

.button {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  transition: 180ms ease;
}

.button-small {
  min-height: 42px;
  padding: 0 18px;
}

.button-primary {
  color: white;
  background: var(--navy);
  box-shadow: 0 16px 30px rgba(23, 50, 77, 0.18);
}

.button-primary:hover {
  transform: translateY(-1px);
  background: var(--navy-strong);
}

.button-secondary {
  color: var(--navy);
  background: white;
  border: 1px solid var(--line);
}

.button-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(23, 50, 77, 0.25);
}

.eyebrow {
  margin: 0 0 14px;
  color: #8a6a32;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
}

.hero {
  min-height: 580px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 48px;
  align-items: center;
  padding: 48px 0 72px;
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(2.35rem, 4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-text {
  max-width: 620px;
  margin: 0 0 30px;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-preview-card,
.hero-product-card {
  padding: 24px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(23, 50, 77, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-product-card h2 {
  margin: 0 0 22px;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.product-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-feature-grid article {
  min-height: 118px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  background: var(--surface-muted);
}

.product-feature-grid strong {
  font-size: 18px;
}

.product-feature-grid span {
  color: var(--ink-muted);
  line-height: 1.5;
}

.preview-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--ink-muted);
  font-size: 14px;
}

.preview-topline strong {
  color: var(--ink);
}

.preview-labels {
  margin-bottom: 16px;
}

.hero-preview-card h2 {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.35;
}

.preview-choices {
  display: grid;
  gap: 10px;
}

.preview-choice {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.preview-choice span {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-muted);
  font-weight: 800;
}

.preview-choice.correct {
  border-color: rgba(29, 122, 87, 0.35);
  background: var(--success-soft);
}

.preview-choice.incorrect {
  border-color: rgba(178, 71, 71, 0.35);
  background: var(--danger-soft);
}

.preview-explanation {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.preview-explanation strong.correct {
  color: var(--success);
}

.preview-explanation strong.incorrect {
  color: var(--danger);
}

.preview-explanation p {
  margin: 10px 0 0;
  color: var(--ink-muted);
  line-height: 1.6;
}

.trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip p {
  margin: 0;
  font-weight: 700;
}

.trust-strip div {
  display: flex;
  gap: 24px;
  color: var(--ink-muted);
}

.section-block {
  padding: 96px 0 0;
}

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

.section-heading.narrow {
  max-width: 620px;
}

.section-heading h2,
.split-block h2,
.cta-band h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p:last-child {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.7;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.section-card {
  min-height: 220px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.section-card.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: 180ms ease;
}

.section-card.card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 50, 77, 0.22);
  box-shadow: var(--shadow);
}

.section-card.available {
  background: linear-gradient(180deg, #ffffff 0%, #fbf5ea 100%);
  border-color: rgba(211, 162, 79, 0.35);
}

.section-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.section-code {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #ece9e3;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
}

.status-pill.available {
  color: #76551d;
  background: var(--gold-soft);
}

.section-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.section-card p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.6;
}

.card-link-label {
  display: inline-block;
  margin-top: 20px;
  color: var(--navy);
  font-weight: 800;
}

.split-block {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 40px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 18px;
}

.feature-list article {
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.feature-list h3 {
  margin: 0 0 8px;
}

.feature-list p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.65;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.steps-grid article {
  padding: 24px;
  border-radius: 24px;
  background: var(--navy);
  color: white;
}

.steps-grid span {
  display: inline-block;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
}

.steps-grid h3 {
  margin: 0 0 10px;
}

.steps-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.6;
}

.beta-block {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.guide-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: stretch;
}

.guide-block h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.guide-block p {
  margin: 0;
  max-width: 620px;
  color: var(--ink-muted);
  line-height: 1.7;
}

.guide-card {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 26px;
  border-radius: 28px;
  border: 1px solid rgba(23, 50, 77, 0.14);
  background: rgba(255, 255, 255, 0.8);
}

.guide-card span {
  color: #8a6a32;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.guide-card strong {
  font-size: 24px;
}

.guide-card p {
  max-width: none;
}

.guide-shell {
  padding-bottom: 64px;
}

.guide-hero {
  max-width: 760px;
  padding: 36px 0 28px;
}

.guide-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.guide-hero p:last-child {
  margin: 0;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 1.7;
}

.guide-panel {
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
}

.table-wrap {
  overflow-x: auto;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
}

.guide-table th,
.guide-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.guide-table th {
  color: var(--ink-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.guide-table td:first-child {
  font-weight: 800;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.date-list,
.window-list {
  display: grid;
  gap: 12px;
}

.date-list div,
.window-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.date-list span,
.window-list span,
.guide-note {
  color: var(--ink-muted);
}

.guide-note {
  margin: 18px 0 0;
  line-height: 1.7;
}

.decision-panel {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.decision-panel h2 {
  margin: 0 0 14px;
}

.decision-panel p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.7;
}

.beta-block h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.beta-block p {
  margin: 0;
  max-width: 620px;
  color: var(--ink-muted);
  line-height: 1.7;
}

.beta-card {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 26px;
  border-radius: 28px;
  border: 1px solid rgba(211, 162, 79, 0.35);
  background: linear-gradient(180deg, #fffaf1 0%, #f7eddc 100%);
}

.beta-card span {
  color: #8a6a32;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.beta-card strong {
  font-size: 24px;
  line-height: 1.3;
}

.beta-card .button {
  width: fit-content;
  margin-top: 6px;
}

.feedback-shell {
  padding-bottom: 54px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.simple-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--ink-muted);
  line-height: 1.8;
}

.feedback-button {
  margin-top: 20px;
}

.cta-band {
  margin: 96px 0 0;
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(135deg, #1a3552, #102437);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h2 {
  margin-bottom: 0;
}

.site-footer {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-muted);
  font-size: 14px;
}

.app-shell {
  padding: 28px 0 64px;
}

.app-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.app-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.045em;
}

.section-hero {
  align-items: start;
}

.hero-subcopy {
  max-width: 720px;
  color: var(--ink-muted);
  line-height: 1.7;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  font-weight: 700;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card,
.panel,
.tool-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
}

.stat-card {
  padding: 22px;
  border-radius: 22px;
}

.stat-card span {
  display: block;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.stat-card strong {
  font-size: 30px;
}

.app-grid {
  display: grid;
  gap: 18px;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  border-radius: 28px;
  padding: 24px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 24px;
}

.section-time-list,
.activity-list,
.coverage-list,
.bookmark-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.section-time-row,
.activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.activity-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
}

.activity-row span,
.activity-row small {
  color: var(--ink-muted);
}

.section-panel {
  margin-top: 18px;
}

.app-section-grid {
  margin-top: 18px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.tool-card {
  padding: 24px;
  border-radius: 24px;
}

.tool-card span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--ink-muted);
}

.tool-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.tool-card p,
.empty-copy {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.6;
}

.coverage-row {
  display: grid;
  grid-template-columns: 140px 1fr 48px;
  gap: 14px;
  align-items: center;
}

.coverage-row div:first-child span {
  display: block;
  color: var(--ink-muted);
  font-size: 13px;
}

.progress-bar {
  height: 10px;
  background: #e8e2d8;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #c58e34);
}

.coverage-row em {
  font-style: normal;
  color: var(--ink-muted);
}

.recommendation-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--ink-muted);
  line-height: 1.8;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flashcard-shell {
  max-width: 1100px;
}

.flashcard-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
}

.flashcard-card {
  min-height: 360px;
  padding: 30px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: 180ms ease;
}

.flashcard-card:hover,
.flashcard-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(23, 50, 77, 0.22);
  outline: none;
}

.flashcard-side-label {
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 800;
}

.flashcard-card h2 {
  margin-bottom: 24px;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.flashcard-back {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.flashcard-back p:last-child {
  color: var(--ink-muted);
  line-height: 1.7;
}

.flashcard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}

.flashcard-navigation {
  display: flex;
  gap: 10px;
}

.confidence-actions {
  display: flex;
  gap: 10px;
}

.bookmark-card {
  padding: 22px;
  border-radius: 22px;
  background: var(--surface-muted);
}

.bookmark-card h2 {
  font-size: 22px;
}

.bookmark-card p {
  color: var(--ink-muted);
  line-height: 1.7;
}

.practice-focus-layout {
  width: min(960px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.practice-main-wide {
  width: 100%;
}

.focus-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.focus-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.focus-summary span {
  min-height: 38px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  color: var(--ink-muted);
}

.focus-summary strong {
  color: var(--ink);
}

.set-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 22px;
  padding: 22px;
  margin-bottom: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.set-panel h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.set-panel p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.6;
}

.set-panel-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.filter-group {
  margin-bottom: 16px;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--ink);
}

.sidebar-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-muted);
}

.sidebar-card span {
  display: block;
  color: inherit;
  opacity: 0.74;
  font-size: 13px;
}

.sidebar-card strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
}

.practice-main {
  min-width: 0;
}

.question-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--ink-muted);
}

.question-toolbar strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--navy);
  cursor: pointer;
  transition: 180ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(23, 50, 77, 0.25);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button.is-bookmarked {
  color: #8a6a32;
  background: var(--gold-soft);
  border-color: rgba(211, 162, 79, 0.45);
}

.icon-button.is-bookmarked svg {
  fill: currentColor;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--navy);
  font-weight: 800;
}

.subtle-link {
  margin-top: 0;
  color: var(--ink-muted);
}

.subtle-link:hover {
  color: var(--ink);
}

.question-card {
  padding: 30px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.question-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.question-labels span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
}

.question-card h2 {
  max-width: 860px;
  margin: 0 0 24px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.35;
}

.choices {
  display: grid;
  gap: 14px;
}

.choice {
  width: 100%;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: 180ms ease;
}

.choice:hover {
  border-color: rgba(23, 50, 77, 0.28);
  transform: translateY(-1px);
}

.choice-letter {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-muted);
  font-weight: 800;
}

.choice.correct {
  border-color: rgba(29, 122, 87, 0.35);
  background: var(--success-soft);
}

.choice.incorrect {
  border-color: rgba(178, 71, 71, 0.35);
  background: var(--danger-soft);
}

.choice.disabled {
  cursor: default;
}

.explanation-panel {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hidden {
  display: none;
}

.result-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.result-row strong.correct {
  color: var(--success);
}

.result-row strong.incorrect {
  color: var(--danger);
}

.explanation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.explanation-grid article {
  padding: 20px;
  border-radius: 20px;
  background: var(--surface-muted);
}

.explanation-grid h3 {
  margin-top: 0;
}

.explanation-grid p,
.explanation-grid li {
  color: var(--ink-muted);
  line-height: 1.65;
}

.explanation-grid ul {
  margin: 0;
  padding-left: 18px;
}

.question-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

@media (max-width: 960px) {
  .desktop-nav {
    display: none;
  }

  .hero,
  .split-block,
  .flashcard-layout,
  .two-column,
  .beta-block,
  .feedback-grid,
  .guide-block,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .section-grid,
  .steps-grid,
  .explanation-grid,
  .dashboard-grid,
  .tool-grid,
  .logo-grid,
  .set-panel {
    grid-template-columns: 1fr;
  }

  .set-panel-controls {
    grid-template-columns: 1fr;
  }

  .trust-strip,
  .cta-band,
  .site-footer,
  .app-hero,
  .flashcard-actions,
  .flashcard-navigation,
  .focus-bar,
  .decision-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 28px, 1200px);
  }

  .site-header {
    height: auto;
    gap: 18px;
    padding: 18px 0;
    flex-wrap: wrap;
  }

  .beta-banner {
    border-radius: 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    gap: 26px;
  }

  .product-feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 2.25rem;
  }

  .hero-text {
    font-size: 16px;
  }

  .trust-strip div {
    flex-direction: column;
    gap: 10px;
  }

  .question-card {
    padding: 22px;
  }

  .question-actions {
    flex-direction: column-reverse;
  }
}
