:root {
  --paper: #f6f3ec;
  --paper-deep: #eee8dc;
  --ink: #18213d;
  --muted: #667085;
  --line: #d9d5ca;
  --indigo: #2d3a8c;
  --indigo-dark: #202b70;
  --orange: #e56b3f;
  --orange-soft: #f8d9ca;
  --green: #157457;
  --green-soft: #dbece5;
  --red: #b64545;
  --white: #fffefa;
  --shadow: 0 24px 70px rgba(29, 35, 73, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
select,
textarea {
  font: inherit;
}

button,
a,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--indigo);
  color: white;
  font-size: 20px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-nav a,
.header-cta {
  color: #4c5368;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--indigo);
}

.header-cta {
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  color: var(--ink);
}

.hero {
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 660px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 70px;
  padding: 74px 0 90px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--indigo);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  width: 24px;
  height: 2px;
  margin: 0 9px 3px 0;
  background: var(--orange);
}

.hero h1,
.section-heading h2,
.guide-intro h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(52px, 6.1vw, 84px);
}

.hero h1 em {
  color: var(--indigo);
  font-weight: inherit;
}

.hero-intro {
  max-width: 590px;
  margin: 28px 0 30px;
  color: #535b70;
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions,
.result-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.button {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 20px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--indigo);
  color: white;
  box-shadow: 0 8px 24px rgba(45, 58, 140, 0.2);
}

.button-primary:hover {
  background: var(--indigo-dark);
}

.button-quiet {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.button-quiet:hover {
  border-color: var(--ink);
  background: white;
}

.text-link,
.text-button {
  border: 0;
  background: transparent;
  color: var(--indigo);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  text-underline-offset: 4px;
}

.trust-row {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.trust-row span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--green);
  font-weight: 900;
}

.hero-visual {
  position: relative;
  min-height: 470px;
}

.paper-stack,
.score-paper {
  position: absolute;
  top: 40px;
  left: 50%;
  width: min(360px, 75vw);
  height: 420px;
  border: 1px solid #d8d2c4;
  border-radius: 8px;
  background: var(--white);
}

.paper-stack-back {
  transform: translateX(-50%) rotate(8deg);
  background: var(--orange-soft);
}

.paper-stack-mid {
  transform: translateX(-50%) rotate(-5deg);
  background: #e1e5f6;
}

.score-paper {
  transform: translateX(-50%) rotate(1deg);
  padding: 30px 34px;
  box-shadow: var(--shadow);
}

.paper-topline,
.paper-metric {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.paper-score {
  margin: 34px 0 26px;
  display: flex;
  align-items: baseline;
  gap: 9px;
  color: var(--indigo);
}

.paper-score strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 88px;
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.paper-score span {
  font-size: 13px;
  font-weight: 900;
}

.paper-rule {
  height: 1px;
  margin-bottom: 20px;
  background: var(--line);
}

.paper-metric {
  margin: 12px 0;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.paper-metric strong {
  color: var(--ink);
}

.paper-chart {
  height: 74px;
  margin-top: 26px;
  display: flex;
  align-items: end;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.paper-chart i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--indigo);
  opacity: 0.2;
}

.paper-chart i:nth-last-child(-n + 2) {
  background: var(--orange);
  opacity: 0.8;
}

.score-paper > p {
  margin-top: 23px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-style: italic;
}

.floating-key {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(24, 33, 61, 0.16);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(29, 35, 73, 0.16), inset 0 -4px 0 #e6e1d7;
  color: var(--indigo);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 700;
}

.key-a {
  top: 9px;
  left: 5px;
  width: 64px;
  height: 64px;
  transform: rotate(-11deg);
}

.key-ka {
  right: -2px;
  bottom: 52px;
  width: 72px;
  height: 72px;
  transform: rotate(9deg);
}

.key-space {
  bottom: 1px;
  left: 44px;
  width: 110px;
  height: 46px;
  transform: rotate(5deg);
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.15em;
}

.practice-section,
.exam-guides-section,
.progress-section,
.guide-section {
  scroll-margin-top: 20px;
}

.practice-section {
  padding: 90px max(20px, calc((100vw - var(--max-width)) / 2));
  background: var(--ink);
  color: white;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 38px;
}

.section-heading h2 {
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.04;
}

.section-heading > p {
  max-width: 430px;
  margin: 0 0 4px;
  color: var(--muted);
  line-height: 1.7;
}

.practice-heading > p {
  color: #adb5cc;
}

.practice-section .eyebrow {
  color: #aebaff;
}

.preset-grid {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.preset-card {
  position: relative;
  min-height: 122px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: white;
  cursor: pointer;
  padding: 21px;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.preset-card:hover,
.preset-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.preset-card.is-active {
  border-color: var(--orange);
  background: rgba(229, 107, 63, 0.12);
}

.preset-number {
  position: absolute;
  top: 17px;
  right: 18px;
  color: #79829c;
  font-size: 11px;
  font-weight: 850;
}

.preset-name,
.preset-detail {
  display: block;
}

.preset-name {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 750;
}

.preset-detail {
  margin-top: 5px;
  color: #aeb5c8;
  font-size: 12px;
}

.typing-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.2);
}

.test-toolbar {
  display: flex;
  align-items: end;
  gap: 20px;
  padding: 22px 28px;
  border-bottom: 1px solid #e4e1d8;
  background: #faf8f3;
}

.select-group {
  min-width: 150px;
}

.select-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.select-group select {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
}

.icon-button {
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-size: 20px;
}

.icon-button:hover {
  border-color: var(--indigo);
  color: var(--indigo);
}

.live-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr)) auto;
  align-items: center;
  gap: 24px;
  padding: 25px 30px 18px;
}

.live-stats > div {
  display: grid;
}

.stat-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-stats strong {
  margin-top: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 600;
}

.live-stats strong small,
.overview-stat small {
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.live-stats .goal-chip {
  display: block;
  justify-self: end;
  border-radius: 100px;
  background: var(--green-soft);
  color: var(--green);
  padding: 8px 13px;
  font-size: 11px;
  font-weight: 800;
}

.progress-track {
  height: 3px;
  margin: 0 30px;
  overflow: hidden;
  border-radius: 4px;
  background: #ebe8e0;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--orange);
  transition: width 120ms linear;
}

.passage-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 30px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.passage {
  max-height: 192px;
  overflow: hidden;
  padding: 4px 30px 18px;
  color: #858b9b;
  font-family: Georgia, "Nirmala UI", "Mangal", serif;
  font-size: clamp(20px, 2.1vw, 25px);
  line-height: 1.85;
  white-space: pre-wrap;
}

.passage-char {
  position: relative;
  border-radius: 2px;
}

.passage-char.is-correct {
  color: var(--ink);
}

.passage-char.is-wrong {
  background: #f8dede;
  color: var(--red);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 4px;
}

.passage-char.is-current::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 1px;
  left: -1px;
  width: 2px;
  border-radius: 3px;
  background: var(--orange);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

#typing-input {
  display: block;
  width: calc(100% - 60px);
  min-height: 116px;
  margin: 0 30px;
  resize: vertical;
  border: 1.5px solid #d4d0c7;
  border-radius: 14px;
  outline: 0;
  background: #fbfaf6;
  color: var(--ink);
  padding: 17px 19px;
  font-family: Georgia, "Nirmala UI", "Mangal", serif;
  font-size: 20px;
  line-height: 1.65;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

#typing-input:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(45, 58, 140, 0.1);
}

#typing-input::placeholder {
  color: #9a9eaa;
}

#typing-input:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.test-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 30px 28px;
}

.test-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.results-panel {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: auto;
  padding: 44px;
  background: rgba(255, 254, 250, 0.98);
}

.result-summary h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.result-summary > p:last-child {
  margin: 10px 0 30px;
  color: var(--muted);
}

.result-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.result-grid > div {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border-left: 1px solid var(--line);
}

.result-grid > div:first-child {
  border-left: 0;
}

.result-grid strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 600;
}

.result-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.result-grid .result-primary {
  background: var(--indigo);
  color: white;
}

.result-grid .result-primary strong {
  font-size: 46px;
}

.result-grid .result-primary span {
  color: #cbd2ff;
}

.result-actions {
  margin-top: 26px;
}

.exam-guides-section {
  padding: 100px max(20px, calc((100vw - var(--max-width)) / 2));
}

.exam-guide-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
}

.exam-guide-copy {
  padding: 48px;
}

.verified-label {
  margin: 0 0 16px;
  color: #aebaff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exam-guide-copy h3 {
  max-width: 620px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.exam-guide-copy > p:not(.verified-label) {
  max-width: 600px;
  margin: 20px 0 0;
  color: #b9c1d4;
  line-height: 1.7;
}

.exam-guide-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.exam-guide-card .button-primary {
  background: white;
  color: var(--indigo);
  box-shadow: none;
}

.exam-guide-card .button-primary:hover {
  background: #eceeff;
}

.text-link-light {
  color: white;
}

.exam-guide-facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.035);
}

.exam-guide-facts > div {
  min-height: 152px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.exam-guide-facts dt {
  color: #9da6bd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exam-guide-facts dd {
  margin: 0;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  line-height: 1;
}

.exam-guide-facts small {
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.exam-guide-facts .fact-word {
  font-family: inherit;
  font-size: 20px;
  font-weight: 750;
}

.source-caution {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.exam-guide-page {
  overflow: hidden;
}

.exam-guide-hero {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 34px 0 92px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 72px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb a {
  color: var(--indigo);
  font-weight: 750;
  text-underline-offset: 3px;
}

.exam-guide-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 80px;
}

.exam-guide-hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 6.5vw, 86px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.exam-guide-hero h1 em {
  color: var(--indigo);
  font-weight: inherit;
}

.guide-lede {
  max-width: 720px;
  margin: 28px 0 0;
  color: #535b70;
  font-size: 18px;
  line-height: 1.75;
}

.verification-row {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.verification-row span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.notice-year-card {
  padding: 28px;
  border: 1px solid #ecc7b5;
  border-radius: var(--radius-md);
  background: #fff4ed;
}

.notice-year-card > span {
  color: var(--orange);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.notice-year-card strong {
  display: block;
  margin-top: 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.notice-year-card p {
  margin: 12px 0 0;
  color: #6d5a50;
  font-size: 13px;
  line-height: 1.65;
}

.official-standard {
  padding: 92px max(20px, calc((100vw - var(--max-width)) / 2));
  background: var(--ink);
  color: white;
}

.section-kicker {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: end;
  gap: 40px;
  margin-bottom: 42px;
}

.section-kicker .eyebrow {
  margin: 0;
  color: #aebaff;
}

.section-kicker h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.8vw, 58px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.standard-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
}

.standard-grid > div {
  min-height: 226px;
  padding: 25px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.standard-grid > div:first-child {
  border-left: 0;
}

.standard-grid dt {
  color: #9da6bd;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.standard-grid dd {
  margin: 28px 0 0;
  color: white;
  font-size: 14px;
  font-weight: 750;
}

.standard-grid dd strong {
  margin-right: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  font-weight: 500;
}

.standard-grid dd .standard-word {
  display: block;
  margin-top: 40px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 750;
}

.standard-grid p {
  margin: 23px 0 0;
  color: #9da6bd;
  font-size: 11px;
  line-height: 1.55;
}

.guide-content-grid {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 70px;
  padding: 100px 0;
}

.guide-article > section {
  position: relative;
  padding: 0 0 76px 72px;
}

.guide-article > section + section {
  padding-top: 76px;
  border-top: 1px solid var(--line);
}

.article-number {
  position: absolute;
  top: 4px;
  left: 0;
  margin: 0;
  color: var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.guide-article > section + section .article-number {
  top: 80px;
}

.guide-article h2,
.source-panel h2,
.guide-final-cta h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.guide-article section > p:not(.article-number) {
  margin: 22px 0 0;
  color: #4e566a;
  font-size: 16px;
  line-height: 1.8;
}

.inline-note {
  margin-top: 30px;
  padding: 22px 24px;
  border-left: 3px solid var(--orange);
  background: var(--paper-deep);
}

.inline-note strong {
  font-size: 14px;
}

.inline-note p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.practice-choice-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.practice-choice-grid a {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.practice-choice-grid a:hover,
.practice-choice-grid a:focus-visible {
  border-color: var(--indigo);
  transform: translateY(-2px);
  box-shadow: 0 15px 36px rgba(29, 35, 73, 0.08);
}

.practice-choice-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.practice-choice-grid strong {
  font-family: Georgia, "Nirmala UI", "Mangal", serif;
  font-size: 22px;
}

.practice-choice-grid em {
  color: var(--indigo);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.training-plan {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.training-plan li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 22px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.training-plan li:last-child {
  border-bottom: 1px solid var(--line);
}

.training-plan > li > span {
  color: var(--indigo);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.training-plan strong {
  font-size: 15px;
}

.training-plan p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.faq-list {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 36px 20px 0;
  font-size: 15px;
  font-weight: 750;
}

.faq-list details p {
  margin: -7px 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.source-panel {
  position: sticky;
  top: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.source-panel .eyebrow {
  margin-bottom: 12px;
}

.source-panel h2 {
  font-size: 32px;
}

.source-panel dl {
  margin: 27px 0;
}

.source-panel dl > div {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.source-panel dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.source-panel dd {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.source-panel .button {
  width: 100%;
  font-size: 13px;
}

.source-home-link {
  display: block;
  margin-top: 15px;
  color: var(--indigo);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
  text-underline-offset: 3px;
}

.source-disclaimer {
  margin: 22px 0 0;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.guide-final-cta {
  margin: 0 max(20px, calc((100vw - var(--max-width)) / 2)) 100px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding: 42px;
  border-radius: var(--radius-lg);
  background: var(--paper-deep);
}

.guide-final-cta .eyebrow {
  margin-bottom: 10px;
}

.guide-final-cta > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-outline {
  border: 1px solid var(--indigo);
  background: transparent;
  color: var(--indigo);
}

.button-outline:hover {
  background: white;
}

.progress-section {
  padding: 100px max(20px, calc((100vw - var(--max-width)) / 2));
}

.progress-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 24px;
}

.progress-overview,
.history-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.progress-overview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.overview-stat {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.overview-stat:first-child {
  grid-row: span 2;
  border-top: 0;
  border-left: 0;
  background: var(--indigo);
  color: white;
}

.overview-stat:nth-child(2) {
  border-top: 0;
}

.overview-stat > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.overview-stat:first-child > span {
  color: #cbd2ff;
}

.overview-stat strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 500;
}

.overview-stat:first-child strong {
  font-size: 58px;
}

.history-card {
  min-height: 320px;
  padding: 24px;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.history-header h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
}

.empty-state {
  min-height: 225px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.empty-state > span {
  color: var(--orange);
  font-size: 34px;
}

.empty-state p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 13px;
}

.empty-state a {
  margin-top: 5px;
  color: var(--indigo);
  font-size: 12px;
  font-weight: 800;
  text-underline-offset: 3px;
}

.history-list {
  max-height: 264px;
  overflow: auto;
}

.history-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.5fr) repeat(3, 0.7fr);
  align-items: center;
  gap: 12px;
  min-height: 65px;
  border-bottom: 1px solid #ebe8e1;
  font-size: 13px;
}

.history-row:last-child {
  border-bottom: 0;
}

.history-row p,
.history-row span {
  margin: 0;
}

.history-row p {
  font-weight: 750;
}

.history-row p span,
.history-row > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.history-row strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.guide-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  padding: 100px max(20px, calc((100vw - var(--max-width)) / 2));
  background: var(--paper-deep);
}

.guide-intro h2 {
  font-size: clamp(44px, 5.3vw, 64px);
}

.guide-intro > p:last-child {
  max-width: 430px;
  margin-top: 26px;
  color: var(--muted);
  line-height: 1.7;
}

.guide-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-steps li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  padding: 25px 0;
  border-top: 1px solid #cbc6bb;
}

.guide-steps li:last-child {
  border-bottom: 1px solid #cbc6bb;
}

.guide-steps > li > span {
  color: var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.guide-steps h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.guide-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.exam-note {
  grid-column: 2;
  padding: 20px 22px;
  border-left: 3px solid var(--orange);
  background: rgba(255, 255, 255, 0.45);
}

.exam-note strong {
  font-size: 13px;
}

.exam-note p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.site-footer {
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 40px max(20px, calc((100vw - var(--max-width)) / 2));
  background: #11182c;
  color: white;
}

.footer-brand {
  color: white;
}

.site-footer p {
  max-width: 390px;
  margin: 9px 0 0;
  color: #9da6bd;
  font-size: 12px;
}

.site-footer > p {
  margin: 0;
  text-align: right;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

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

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 60px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-visual {
    min-height: 490px;
  }

  .preset-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading,
  .guide-section {
    display: block;
  }

  .section-heading > p {
    margin-top: 20px;
  }

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

  .exam-guide-card,
  .exam-guide-hero-grid,
  .guide-content-grid {
    grid-template-columns: 1fr;
  }

  .exam-guide-facts {
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    border-left: 0;
  }

  .exam-guide-hero-grid,
  .guide-content-grid {
    gap: 42px;
  }

  .notice-year-card {
    max-width: 600px;
  }

  .standard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .standard-grid > div:nth-child(3) {
    border-left: 0;
  }

  .standard-grid > div:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .source-panel {
    position: static;
    max-width: 600px;
  }

  .guide-steps {
    margin-top: 44px;
  }

  .exam-note {
    margin-top: 28px;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 72px;
  }

  .header-cta {
    padding: 8px 12px;
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    padding: 54px 0 64px;
  }

  .hero h1 {
    font-size: clamp(45px, 13vw, 64px);
  }

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

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .hero-visual {
    min-height: 410px;
  }

  .paper-stack,
  .score-paper {
    top: 24px;
    width: min(300px, 78vw);
    height: 360px;
  }

  .score-paper {
    padding: 26px;
  }

  .paper-score {
    margin: 28px 0 22px;
  }

  .paper-score strong {
    font-size: 72px;
  }

  .paper-chart {
    height: 58px;
    margin-top: 20px;
  }

  .key-a {
    left: -4px;
  }

  .key-ka {
    right: -5px;
  }

  .key-space {
    display: none;
  }

  .practice-section,
  .exam-guides-section,
  .progress-section,
  .guide-section {
    padding-top: 66px;
    padding-bottom: 66px;
  }

  .exam-guide-copy {
    padding: 30px 24px;
  }

  .exam-guide-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .exam-guide-facts > div {
    min-height: 126px;
    padding: 22px;
  }

  .exam-guide-facts dd {
    font-size: 40px;
  }

  .exam-guide-hero {
    padding: 24px 0 64px;
  }

  .breadcrumb {
    margin-bottom: 48px;
  }

  .exam-guide-hero h1 {
    font-size: clamp(45px, 13vw, 64px);
  }

  .section-kicker {
    display: block;
  }

  .section-kicker h2 {
    margin-top: 18px;
  }

  .official-standard {
    padding-top: 66px;
    padding-bottom: 66px;
  }

  .standard-grid {
    grid-template-columns: 1fr;
  }

  .standard-grid > div {
    min-height: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 0;
  }

  .standard-grid > div:first-child {
    border-top: 0;
  }

  .guide-content-grid {
    padding: 66px 0;
  }

  .guide-article > section,
  .guide-article > section + section {
    padding-right: 0;
    padding-bottom: 58px;
    padding-left: 0;
  }

  .guide-article > section + section {
    padding-top: 58px;
  }

  .article-number,
  .guide-article > section + section .article-number {
    position: static;
    margin-bottom: 10px;
  }

  .practice-choice-grid {
    grid-template-columns: 1fr;
  }

  .guide-final-cta {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 66px;
    padding: 28px 24px;
  }

  .guide-final-cta > div:last-child,
  .guide-final-cta .button {
    width: 100%;
  }

  .preset-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }

  .preset-grid::-webkit-scrollbar {
    display: none;
  }

  .preset-card {
    min-width: 218px;
    scroll-snap-align: start;
  }

  .test-toolbar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
  }

  .select-group {
    min-width: 0;
  }

  .icon-button {
    position: absolute;
    top: 15px;
    right: 15px;
  }

  .select-group:first-child {
    padding-right: 48px;
  }

  .live-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 20px 18px 14px;
  }

  .live-stats .goal-chip {
    display: none;
  }

  .live-stats strong {
    font-size: 22px;
  }

  .progress-track {
    margin: 0 18px;
  }

  .passage-meta {
    padding: 18px 20px 8px;
  }

  .passage-meta span:last-child {
    display: none;
  }

  .passage {
    max-height: 176px;
    padding: 3px 20px 16px;
    font-size: 20px;
  }

  #typing-input {
    width: calc(100% - 40px);
    margin: 0 20px;
    font-size: 18px;
  }

  .test-footer {
    align-items: stretch;
    flex-direction: column;
    padding: 15px 20px 22px;
  }

  .test-footer .button {
    width: 100%;
  }

  .results-panel {
    padding: 28px 20px;
  }

  .result-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .result-grid > div {
    min-height: 86px;
    border-top: 1px solid var(--line);
  }

  .result-grid > div:nth-child(odd) {
    border-left: 0;
  }

  .result-grid .result-primary {
    grid-column: span 2;
    border-top: 0;
  }

  .result-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

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

  .overview-stat {
    min-height: 120px;
    padding: 18px;
  }

  .overview-stat:first-child {
    grid-column: span 2;
    grid-row: auto;
  }

  .overview-stat:first-child strong {
    font-size: 48px;
  }

  .history-card {
    padding: 18px;
  }

  .history-row {
    grid-template-columns: 1.3fr repeat(2, 0.7fr);
  }

  .history-row > span:last-child {
    display: none;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    min-height: 200px;
  }

  .site-footer > p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
