:root {
  --ink: #102d35;
  --ink-2: #173f49;
  --paper: #f5f1e8;
  --paper-2: #fffdf8;
  --lime: #d8ff63;
  --coral: #ff765f;
  --blue: #7fc8ff;
  --yellow: #ffd86b;
  --muted: #66757a;
  --line: rgba(16, 45, 53, 0.16);
  --shadow: 0 20px 50px rgba(16, 45, 53, 0.12);
  --radius: 22px;
  --page: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
select,
input {
  font: inherit;
}

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

a {
  color: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid #1a84d2;
  outline-offset: 3px;
}

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

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 72px;
  padding: 10px max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(245, 241, 232, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand strong {
  letter-spacing: 0.08em;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.35em;
}

.brand-mark {
  display: inline-grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
}

.brand-mark span {
  font-family: inherit;
  font-size: 13px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 38px);
}

.main-nav a {
  position: relative;
  color: #294850;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.main-nav a::after {
  position: absolute;
  right: 50%;
  bottom: -7px;
  left: 50%;
  height: 2px;
  background: var(--ink);
  content: "";
  transition: left 180ms ease, right 180ms ease;
}

.main-nav a:hover::after {
  right: 0;
  left: 0;
}

.header-stat {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  cursor: default;
  font-size: 13px;
}

.header-stat span {
  margin-right: 5px;
  color: var(--coral);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  gap: 36px;
  min-height: 680px;
  padding: 88px max(20px, calc((100vw - 1180px) / 2)) 76px;
  overflow: hidden;
  background: var(--paper-2);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image: linear-gradient(rgba(16, 45, 53, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 45, 53, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, black, transparent 82%);
}

.hero::after {
  position: absolute;
  top: 40px;
  right: -90px;
  width: 460px;
  height: 460px;
  border: 100px solid rgba(216, 255, 99, 0.42);
  border-radius: 50%;
  content: "";
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 2;
}

.eyebrow,
.kicker {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  margin-right: 9px;
  padding: 6px 10px;
  border-radius: 99px;
  background: var(--ink);
  color: white;
  letter-spacing: 0.12em;
}

.hero h1 {
  max-width: 710px;
  margin: 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(54px, 6.2vw, 88px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.hero h1 span,
.cta-section h2 span {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.hero h1 span::after,
.cta-section h2 span::after {
  position: absolute;
  z-index: -1;
  right: -4px;
  bottom: 0.08em;
  left: -3px;
  height: 0.22em;
  background: var(--coral);
  content: "";
  transform: rotate(-1.2deg);
}

.hero-intro {
  max-width: 650px;
  margin: 28px 0 0;
  color: #425b61;
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

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

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

.button-primary {
  gap: 34px;
  border-color: var(--ink);
  background: var(--ink);
  color: white;
  box-shadow: 5px 5px 0 var(--lime);
}

.button-primary:hover {
  box-shadow: 7px 7px 0 var(--lime);
}

.button-ghost {
  background: transparent;
}

.button-lime {
  gap: 24px;
  background: var(--lime);
  color: var(--ink);
}

.hero-proof {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  color: #62747a;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.hero-proof span {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.hero-proof b {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 24px;
}

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

.score-card,
.audio-card,
.clock-card,
.hero-sticker {
  position: absolute;
  box-shadow: var(--shadow);
}

.score-card {
  top: 20px;
  left: 5%;
  display: flex;
  width: 270px;
  min-height: 230px;
  padding: 27px;
  flex-direction: column;
  border: 2px solid var(--ink);
  border-radius: 26px;
  background: var(--coral);
}

.score-card > span {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.score-card strong {
  margin-top: 8px;
  font-family: Georgia, serif;
  font-size: 110px;
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.95;
}

.score-card small {
  margin-top: auto;
  font-weight: 700;
}

.audio-card {
  top: 180px;
  right: 3%;
  width: 305px;
  padding: 25px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: var(--ink);
  color: white;
}

.mini-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.waveform {
  display: flex;
  height: 80px;
  margin: 20px 0;
  align-items: center;
  justify-content: space-between;
}

.waveform i {
  display: block;
  width: 10px;
  height: 24%;
  border-radius: 99px;
  background: var(--lime);
}

.waveform i:nth-child(2) { height: 72%; }
.waveform i:nth-child(3) { height: 42%; }
.waveform i:nth-child(4) { height: 92%; }
.waveform i:nth-child(5) { height: 62%; }
.waveform i:nth-child(6) { height: 34%; }
.waveform i:nth-child(7) { height: 78%; }
.waveform i:nth-child(8) { height: 54%; }
.waveform i:nth-child(9) { height: 26%; }

.audio-line {
  display: flex;
  justify-content: space-between;
  color: #d7e4e7;
  font-size: 12px;
}

.audio-line b {
  color: var(--lime);
}

.clock-card {
  bottom: 5px;
  left: 8%;
  display: flex;
  width: 260px;
  min-height: 150px;
  padding: 25px;
  flex-direction: column;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: var(--blue);
  transform: rotate(2deg);
}

.clock-card span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.clock-card strong {
  margin-top: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 48px;
  line-height: 1;
}

.clock-card small {
  margin-top: auto;
  font-weight: 700;
}

.hero-sticker {
  right: 0;
  bottom: 5px;
  display: grid;
  width: 120px;
  height: 120px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  text-align: center;
  transform: rotate(-8deg);
}

.section {
  width: var(--page);
  margin: 0 auto;
  padding: 100px 0;
}

.dashboard-section {
  padding-top: 92px;
}

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

.section-heading h2 {
  max-width: 790px;
  margin: 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.kicker {
  color: #567077;
}

.split-heading > p {
  max-width: 370px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.target-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.target-control label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.target-control small {
  color: var(--muted);
  font-size: 10px;
}

.target-control select {
  min-height: 46px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 700;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.75fr;
  gap: 18px;
}

.panel,
.panel-dark {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}

.panel {
  background: var(--paper-2);
}

.panel-dark {
  background: var(--ink);
  color: white;
}

.today-card {
  grid-row: span 2;
  display: flex;
  min-height: 518px;
  padding: 32px;
  flex-direction: column;
  box-shadow: 8px 8px 0 var(--blue);
}

.today-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #bed1d4;
  font-size: 13px;
  font-weight: 700;
}

.pill {
  display: inline-flex;
  min-height: 28px;
  padding: 0 11px;
  align-items: center;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.lime {
  background: var(--lime);
  color: var(--ink);
}

.today-card h3 {
  max-width: 520px;
  margin: 34px 0 10px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 500;
  line-height: 1.2;
}

.today-card > p {
  margin: 0;
  color: #c9d9dc;
}

.today-card .today-note {
  margin: 0 0 14px;
  color: #9fb6ba;
  font-size: 11px;
}

.today-tasks {
  display: grid;
  gap: 10px;
  margin: 30px 0;
}

.today-task {
  display: flex;
  padding: 14px 0;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.13);
  font-size: 14px;
}

.today-task i {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  color: var(--lime);
  font-style: normal;
  font-size: 11px;
}

.today-task span:last-child {
  margin-left: auto;
  color: #8fa8ad;
  font-size: 12px;
}

.today-card .button {
  margin-top: auto;
}

.card-label {
  color: #4c666d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.progress-main {
  display: flex;
  margin-top: 25px;
  align-items: center;
  gap: 24px;
}

.progress-ring {
  position: relative;
  display: grid;
  width: 132px;
  height: 132px;
  flex: 0 0 132px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--coral) var(--progress), #e8e5dd var(--progress));
}

.progress-ring::before {
  position: absolute;
  width: 101px;
  height: 101px;
  border-radius: 50%;
  background: var(--paper-2);
  content: "";
}

.progress-ring > div {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.progress-ring strong {
  font-family: Georgia, serif;
  font-size: 30px;
}

.progress-ring span {
  color: var(--muted);
  font-size: 10px;
}

.progress-copy strong {
  font-size: 24px;
}

.progress-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.text-button {
  display: inline-flex;
  margin-top: 20px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.metric-card {
  display: flex;
  flex-direction: column;
}

.coral-panel {
  background: var(--coral);
}

.blue-panel {
  background: var(--blue);
}

.big-metric {
  margin-top: 18px;
  font-family: Georgia, serif;
  font-size: 63px;
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
}

.big-metric span {
  margin-left: 3px;
  font-family: inherit;
  font-size: 22px;
}

.metric-card p {
  margin: 12px 0 0;
  font-size: 12px;
}

.metric-card .text-button {
  margin-top: auto;
  align-self: flex-start;
}

.dark-text {
  color: var(--ink);
}

.exam-section {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100vw - 1180px) / 2));
  padding-left: max(20px, calc((100vw - 1180px) / 2));
  background: var(--paper-2);
}

.exam-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid var(--ink);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 12px 12px 0 var(--ink);
}

.exam-half {
  padding: 32px;
}

.exam-half + .exam-half {
  border-left: 2px solid var(--ink);
}

.listening-half {
  background: var(--blue);
}

.reading-half {
  background: var(--lime);
}

.exam-half header {
  display: flex;
  margin-bottom: 24px;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.exam-half header span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.exam-half header strong {
  font-family: Georgia, serif;
  font-size: 20px;
}

.part-list {
  border-top: 1px solid var(--ink);
}

.part-list > div {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  padding: 14px 0;
  align-items: center;
  border-bottom: 1px solid rgba(16,45,53,0.42);
}

.part-list b {
  font-size: 12px;
}

.part-list span {
  font-weight: 650;
}

.part-list strong {
  font-family: Georgia, serif;
  font-size: 26px;
}

.exam-tip {
  margin: 24px 0 0;
  font-size: 13px;
}

.exam-tip span {
  display: inline-block;
  margin-right: 6px;
  padding: 3px 7px;
  border: 1px solid var(--ink);
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.practice-card {
  position: relative;
  display: flex;
  min-height: 360px;
  padding: 28px;
  flex-direction: column;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-2);
}

.featured-practice {
  grid-column: span 2;
  min-height: 410px;
  background: var(--yellow);
}

.featured-practice > div:nth-of-type(2) {
  max-width: 68%;
  margin-top: auto;
}

.listening-practice { background: var(--blue); }
.grammar-practice { background: var(--coral); }
.reading-practice { background: var(--lime); }

.practice-number {
  font-family: Georgia, serif;
  font-size: 18px;
}

.dark-pill {
  position: absolute;
  top: 28px;
  right: 28px;
  background: var(--ink);
  color: white;
}

.practice-card > div:not(.practice-number):not(.practice-meta) {
  margin-top: auto;
}

.practice-type {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.practice-card h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 32px;
  font-weight: 550;
  letter-spacing: -0.035em;
}

.practice-card p:last-child {
  max-width: 470px;
  margin-bottom: 0;
  font-size: 14px;
}

.practice-meta {
  display: flex;
  margin-top: 28px;
  gap: 20px;
  font-size: 11px;
  font-weight: 750;
}

.circle-button {
  position: absolute;
  right: 26px;
  bottom: 26px;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-size: 25px;
  transition: transform 180ms ease;
}

.circle-button:hover {
  transform: rotate(-18deg) scale(1.06);
}

.plan-section {
  padding-bottom: 110px;
}

.week-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--ink);
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}

.week-tabs button {
  min-height: 58px;
  padding: 10px;
  border: 0;
  border-right: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.week-tabs button:last-child {
  border-right: 0;
}

.week-tabs button[aria-selected="true"] {
  background: var(--ink);
  color: white;
}

.week-panel {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}

.day-card {
  position: relative;
  display: flex;
  min-height: 290px;
  padding: 18px 15px;
  flex-direction: column;
  border-right: 1px solid var(--ink);
  background: var(--paper-2);
}

.day-card:last-child {
  border-right: 0;
}

.day-card.current {
  background: var(--blue);
}

.day-card.completed {
  background: #e4fac1;
}

.day-card .day-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.day-card h3 {
  margin: 30px 0 10px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.day-card p {
  margin: 0;
  color: #4c6268;
  font-size: 12px;
}

.day-card small {
  margin-top: 14px;
  color: #63787c;
}

.day-check {
  display: grid;
  width: 36px;
  height: 36px;
  margin-top: auto;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
}

.day-card.completed .day-check {
  background: var(--ink);
  color: var(--lime);
}

.vocab-section {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100vw - 1180px) / 2));
  padding-left: max(20px, calc((100vw - 1180px) / 2));
  background: var(--ink);
  color: white;
}

.vocab-section .kicker,
.vocab-section .split-heading > p {
  color: #b7cbcf;
}

.vocab-stage {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 34px 70px;
  align-items: center;
}

.vocab-context span {
  color: var(--lime);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.vocab-context h3 {
  margin: 14px 0 6px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 36px;
  font-weight: 500;
}

.vocab-context p {
  color: #a9c0c4;
  font-size: 13px;
}

.flashcard {
  position: relative;
  min-height: 330px;
  padding: 42px;
  border: 2px solid white;
  border-radius: 28px;
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 12px 12px 0 var(--coral);
  text-align: left;
  transform-style: preserve-3d;
}

.flashcard-front,
.flashcard-back {
  position: absolute;
  inset: 42px;
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
  transition: transform 380ms ease, opacity 250ms ease;
}

.flashcard-back {
  opacity: 0;
  transform: rotateY(180deg);
}

.flashcard.flipped .flashcard-front {
  opacity: 0;
  transform: rotateY(-180deg);
}

.flashcard.flipped .flashcard-back {
  opacity: 1;
  transform: rotateY(0deg);
}

.flashcard small {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.flashcard strong {
  margin: auto 0;
  font-family: Georgia, serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.flashcard-back strong {
  margin: 25px 0 16px;
  font-family: inherit;
  font-size: 34px;
  font-weight: 750;
}

.flashcard-back p {
  max-width: 600px;
  font-family: Georgia, serif;
  font-size: 20px;
  font-style: italic;
  line-height: 1.6;
}

.flashcard em {
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.vocab-actions {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.light-ghost {
  border-color: rgba(255,255,255,0.5);
  color: white;
}

.vocab-actions > span {
  color: #b7cbcf;
  font-size: 13px;
}

.vocab-actions > span b {
  color: white;
}

.timeline {
  display: flex;
  min-height: 155px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
}

.timeline-block {
  display: flex;
  width: calc(var(--width) * 1%);
  min-width: 0;
  padding: 20px;
  flex-direction: column;
  border-right: 2px solid var(--ink);
}

.timeline-block:last-child {
  border-right: 0;
}

.timeline-block span {
  font-size: 11px;
  font-weight: 900;
}

.timeline-block strong {
  margin: auto 0 2px;
  font-family: Georgia, serif;
  font-size: 26px;
}

.timeline-block small {
  font-size: 11px;
}

.block-five { background: var(--coral); }
.block-six { background: var(--yellow); }
.block-seven { background: var(--blue); }
.block-check { background: var(--lime); }

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 50px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.strategy-grid article {
  min-height: 270px;
  padding: 25px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-2);
}

.strategy-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  font-family: Georgia, "Noto Serif SC", serif;
  font-weight: 800;
}

.strategy-grid h3 {
  margin: 44px 0 12px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 21px;
  line-height: 1.3;
}

.strategy-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.cta-section {
  display: flex;
  min-height: 390px;
  padding: 72px max(20px, calc((100vw - 1180px) / 2));
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: var(--coral);
}

.light-kicker {
  color: var(--ink);
}

.cta-section h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 550;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.cta-section h2 span::after {
  background: var(--lime);
}

.big-cta {
  min-width: 280px;
  min-height: 70px;
  box-shadow: 7px 7px 0 var(--ink);
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  padding: 46px max(20px, calc((100vw - 1180px) / 2));
  align-items: center;
  background: var(--paper-2);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer > p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
}

.quiz-dialog,
.mistakes-dialog {
  width: min(920px, calc(100% - 28px));
  max-width: 920px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 24px;
  background: var(--paper-2);
  box-shadow: 0 30px 90px rgba(0,0,0,0.3);
  color: var(--ink);
}

.quiz-dialog::backdrop,
.mistakes-dialog::backdrop {
  background: rgba(5, 26, 32, 0.76);
  backdrop-filter: blur(6px);
}

.quiz-shell {
  min-height: min(720px, 88vh);
}

.quiz-header,
.mistakes-shell > header {
  display: flex;
  padding: 24px 28px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.quiz-header h2,
.mistakes-shell h2 {
  margin: 2px 0 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 30px;
}

.quiz-kicker {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.quiz-status {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.quiz-status button,
.mistakes-shell header > button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 25px;
}

.quiz-progress {
  height: 5px;
  background: #e7e4dc;
}

.quiz-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--coral);
  transition: width 250ms ease;
}

.quiz-body {
  min-height: 480px;
  padding: 36px clamp(24px, 6vw, 62px);
}

.question-type {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.question-prompt {
  margin: 0 0 28px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 550;
  line-height: 1.4;
}

.passage {
  max-height: 220px;
  margin: 0 0 24px;
  padding: 22px;
  overflow-y: auto;
  border-left: 5px solid var(--blue);
  background: #eef6f8;
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.75;
  white-space: pre-line;
}

.audio-prompt {
  display: flex;
  margin: 10px 0 28px;
  padding: 22px;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--ink);
  border-radius: 16px;
  background: var(--ink);
  color: white;
}

.audio-prompt button {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  cursor: pointer;
  font-size: 19px;
}

.audio-prompt div {
  flex: 1;
}

.audio-prompt strong {
  display: block;
  font-size: 14px;
}

.audio-prompt small {
  color: #bdd0d3;
}

.options-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  border: 0;
}

.option-label {
  display: grid;
  grid-template-columns: 38px 1fr;
  min-height: 58px;
  padding: 10px 14px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: transform 130ms ease, background 130ms ease;
}

.option-label:hover {
  transform: translateX(3px);
}

.option-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-label input:focus-visible + .option-letter {
  outline: 3px solid #1a84d2;
  outline-offset: 3px;
}

.option-letter {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.option-label.selected {
  background: #e9f7ff;
  box-shadow: 4px 4px 0 var(--blue);
}

.option-label.correct {
  background: #e2fac1;
  box-shadow: 4px 4px 0 #86b73d;
}

.option-label.wrong {
  background: #ffe4df;
  box-shadow: 4px 4px 0 var(--coral);
}

.feedback-box {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--yellow);
}

.feedback-box.correct-feedback {
  background: #e2fac1;
}

.feedback-box h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.feedback-box p {
  margin: 0;
  font-size: 14px;
}

.transcript {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px solid rgba(16,45,53,0.2);
  color: #4a6268;
}

.quiz-footer {
  display: flex;
  padding: 18px 28px;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
}

.quiz-footer button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.results-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.results-score {
  display: grid;
  width: 150px;
  height: 150px;
  margin-bottom: 22px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 8px 8px 0 var(--ink);
}

.results-score strong {
  font-family: Georgia, serif;
  font-size: 52px;
  line-height: 1;
}

.results-score span {
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.results-card h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 32px;
}

.results-card p {
  max-width: 580px;
  color: var(--muted);
}

.results-actions {
  display: flex;
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.mistakes-dialog {
  max-width: 760px;
}

.mistakes-shell {
  max-height: 85vh;
  overflow: auto;
}

.mistakes-list {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.mistake-item {
  padding: 20px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: white;
}

.mistake-item > span {
  color: var(--coral);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.mistake-item h3 {
  margin: 7px 0;
  font-size: 17px;
}

.mistake-item p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  padding: 60px 20px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 13px 18px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr 0.75fr;
  }

  .score-card { left: 0; }
  .audio-card { right: -40px; }
  .hero-sticker { right: -10px; }

  .dashboard-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .today-card {
    grid-row: span 2;
  }

  .metric-card {
    min-height: 245px;
  }

  .week-panel {
    grid-template-columns: repeat(4, 1fr);
  }

  .day-card {
    border-bottom: 1px solid var(--ink);
  }

  .day-card:nth-child(4n) {
    border-right: 0;
  }

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

  .site-footer {
    grid-template-columns: auto 1fr;
  }

  .footer-links {
    grid-column: 2;
  }
}

@media (max-width: 800px) {
  :root {
    --page: min(100% - 28px, 680px);
  }

  body {
    padding-bottom: 78px;
  }

  .site-header {
    grid-template-columns: auto 1fr;
    min-height: 66px;
    padding: 9px 14px;
    background: rgba(245, 241, 232, 0.98);
    backdrop-filter: none;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .main-nav {
    position: fixed;
    z-index: 60;
    right: 14px;
    bottom: 10px;
    left: 14px;
    display: flex;
    padding: 10px 7px;
    justify-content: space-around;
    gap: 0;
    border: 1px solid var(--ink);
    border-radius: 14px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: 0 12px 40px rgba(16,45,53,0.18);
    backdrop-filter: blur(16px);
  }

  .main-nav a {
    padding: 3px 5px;
    font-size: 11px;
  }

  .header-stat {
    justify-self: end;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 64px 20px 58px;
  }

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

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

  .hero-visual {
    min-height: 450px;
    margin-top: 16px;
  }

  .score-card {
    left: 2%;
    width: 235px;
    min-height: 205px;
  }

  .score-card strong {
    font-size: 88px;
  }

  .audio-card {
    top: 154px;
    right: 1%;
    width: min(290px, 74%);
  }

  .clock-card {
    bottom: 0;
    left: 4%;
    width: 220px;
  }

  .hero-sticker {
    right: 2%;
    bottom: 0;
    width: 100px;
    height: 100px;
  }

  .section {
    padding: 76px 0;
  }

  .exam-section,
  .vocab-section {
    padding: 76px 14px;
  }

  .section-heading,
  .split-heading {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }

  .section-heading h2 {
    font-size: clamp(36px, 9vw, 50px);
  }

  .target-control {
    width: 100%;
  }

  .target-control select {
    width: 100%;
  }

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

  .today-card {
    grid-row: auto;
    min-height: 500px;
  }

  .exam-overview {
    grid-template-columns: 1fr;
    box-shadow: 7px 7px 0 var(--ink);
  }

  .exam-half + .exam-half {
    border-top: 2px solid var(--ink);
    border-left: 0;
  }

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

  .featured-practice {
    grid-column: span 2;
  }

  .week-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .week-tabs button:nth-child(2) {
    border-right: 0;
  }

  .week-tabs button:nth-child(-n+2) {
    border-bottom: 1px solid var(--ink);
  }

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

  .day-card,
  .day-card:nth-child(4n) {
    border-right: 1px solid var(--ink);
  }

  .day-card:nth-child(2n) {
    border-right: 0;
  }

  .vocab-stage {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .flashcard {
    min-height: 320px;
  }

  .vocab-actions {
    grid-column: 1;
  }

  .timeline {
    overflow-x: auto;
  }

  .timeline-block {
    width: auto;
    flex: 0 0 200px;
  }

  .cta-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-column: 1;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-proof {
    gap: 16px;
    flex-wrap: wrap;
  }

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

  .score-card {
    width: 205px;
    min-height: 185px;
    padding: 22px;
  }

  .score-card strong {
    font-size: 75px;
  }

  .audio-card {
    top: 145px;
    right: -5px;
    width: 245px;
    padding: 19px;
  }

  .waveform {
    height: 65px;
  }

  .clock-card {
    bottom: 0;
    left: 0;
    width: 205px;
    min-height: 135px;
  }

  .clock-card strong {
    font-size: 40px;
  }

  .hero-sticker {
    right: -2px;
    bottom: 10px;
    width: 86px;
    height: 86px;
    font-size: 12px;
  }

  .progress-main {
    align-items: flex-start;
  }

  .progress-ring {
    width: 108px;
    height: 108px;
    flex-basis: 108px;
  }

  .progress-ring::before {
    width: 80px;
    height: 80px;
  }

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

  .featured-practice {
    grid-column: auto;
  }

  .featured-practice > div:nth-of-type(2) {
    max-width: 100%;
  }

  .practice-card {
    min-height: 330px;
  }

  .week-tabs {
    grid-template-columns: 1fr;
  }

  .week-tabs button,
  .week-tabs button:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .week-tabs button:last-child {
    border-bottom: 0;
  }

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

  .day-card,
  .day-card:nth-child(2n),
  .day-card:nth-child(4n) {
    min-height: 240px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

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

  .vocab-actions {
    flex-wrap: wrap;
  }

  .vocab-actions .button {
    flex: 1 1 140px;
  }

  .vocab-actions > span {
    order: 3;
    width: 100%;
    text-align: center;
  }

  .flashcard {
    min-height: 300px;
    padding: 28px;
  }

  .flashcard-front,
  .flashcard-back {
    inset: 28px;
  }

  .flashcard strong {
    font-size: 42px;
  }

  .flashcard-back strong {
    font-size: 28px;
  }

  .quiz-header,
  .mistakes-shell > header {
    padding: 17px;
  }

  .quiz-status {
    gap: 9px;
  }

  .quiz-body {
    padding: 25px 17px;
  }

  .quiz-footer {
    padding: 14px 17px;
  }

  .option-label {
    min-height: 64px;
  }

  .site-footer {
    padding: 40px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
