:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #4b5563;
  --subtle: #6b7280;
  --line: #d9dee8;
  --paper: #f5f7fb;
  --white: #ffffff;
  --blue: #2c4895;
  --green: #50af37;
  --purple: #462e84;
  --magenta: #833084;
  --teal: #328d99;
  --forest: #275c48;
  --red: #d12346;
  --orange: #e37627;
  --yellow: #eac018;
  --fhd-width: 1920px;
  --fhd-height: 1080px;
  --workspace: #d9dee3;
  --canvas: #f5f7fb;
  --page-width: 1552px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  min-height: var(--fhd-height);
  background: var(--workspace);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  min-height: var(--fhd-height);
  background: var(--workspace);
  color: var(--ink);
  font-family: "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  line-height: 1.5;
}

button,
input {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

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

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.fhd-canvas {
  position: relative;
  width: min(var(--fhd-width), 100%);
  min-height: var(--fhd-height);
  margin: 0 auto;
  overflow: hidden;
  background: var(--canvas);
}

.fhd-canvas::before {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: var(--fhd-height);
  border-color: rgba(92, 105, 116, 0.32);
  border-style: solid;
  border-width: 2px 2px 0;
  box-shadow: none;
  content: "";
  pointer-events: none;
}

.page-width {
  width: var(--page-width);
  margin: 0 auto;
}

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

.site-header {
  position: relative;
  z-index: 50;
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr) 350px;
  align-items: center;
  width: 100%;
  height: 88px;
  padding: 0 60px;
  border-bottom: 1px solid #e4e7ec;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.03);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
}

.brand-logo {
  display: block;
  width: 210px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.brand-mark {
  position: relative;
  display: flex;
  width: 24px;
  height: 28px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--blue);
}

.brand-mark i {
  width: 8px;
  height: 100%;
  background: var(--blue);
}

.brand-mark i:nth-child(2) {
  background: var(--green);
}

.brand-mark i:nth-child(3) {
  background: var(--red);
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.brand-name small {
  margin-top: 4px;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 500;
}

.primary-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  height: 100%;
  gap: 38px;
}

.primary-nav > a,
.primary-nav-item > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #374151;
  font-size: 14px;
  font-weight: 650;
}

.primary-nav > a::after,
.primary-nav-item > a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: transparent;
  content: "";
}

.primary-nav > a:hover,
.primary-nav > a[aria-current="page"],
.primary-nav-item > a:hover,
.primary-nav-item > a[aria-current="page"] {
  color: var(--blue);
}

.primary-nav > a[aria-current="page"]::after,
.primary-nav-item > a[aria-current="page"]::after {
  background: var(--blue);
}

.primary-nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
}

.primary-nav-item > a {
  height: 100%;
  gap: 5px;
}

.nav-caret {
  display: inline-block;
  margin-top: -3px;
  color: #7a8492;
  font-size: 14px;
  transition: transform 160ms ease;
}

.primary-submenu {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  z-index: 70;
  width: 218px;
  padding: 8px;
  border: 1px solid #dfe3ea;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(25, 40, 62, 0.14);
  opacity: 0;
  transform: translate(-50%, 8px);
  visibility: hidden;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.primary-submenu a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 4px;
  color: #374151;
  font-size: 13px;
  font-weight: 650;
}

.primary-submenu a:hover,
.primary-submenu a:focus-visible,
.primary-submenu a[aria-current="page"] {
  background: #eef3ff;
  color: var(--blue);
  outline: none;
}

.primary-nav-item:hover .primary-submenu,
.primary-nav-item:focus-within .primary-submenu {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}

.primary-nav-item:hover .nav-caret,
.primary-nav-item:focus-within .nav-caret {
  transform: rotate(180deg);
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-tools > a:first-child {
  margin-right: 10px;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 700;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  background: #f8fafc;
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #334155;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-main {
  min-height: 600px;
}

.cart-tool {
  position: relative;
}

.cart-tool > span {
  position: absolute;
  top: -5px;
  right: -5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
}

.site-messages {
  position: relative;
  z-index: 40;
  width: var(--page-width);
  margin: 18px auto -8px;
}

.site-messages p {
  margin: 0 0 8px;
  padding: 13px 18px;
  border: 1px solid #b9d8c5;
  border-radius: 6px;
  background: #eef9f1;
  color: #176437;
  font-size: 13px;
  font-weight: 700;
}

.site-messages p.error {
  border-color: #efbdc6;
  background: #fff1f3;
  color: #a51933;
}

.bi-stripe {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  width: 100%;
  height: 8px;
}

.bi-stripe i:nth-child(1) { background: var(--blue); }
.bi-stripe i:nth-child(2) { background: var(--green); }
.bi-stripe i:nth-child(3) { background: var(--purple); }
.bi-stripe i:nth-child(4) { background: var(--magenta); }
.bi-stripe i:nth-child(5) { background: var(--teal); }
.bi-stripe i:nth-child(6) { background: var(--forest); }
.bi-stripe i:nth-child(7) { background: var(--red); }
.bi-stripe i:nth-child(8) { background: var(--orange); }
.bi-stripe i:nth-child(9) { background: var(--yellow); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 750;
}

.button.primary {
  background: var(--blue);
  color: var(--white);
}

.button.secondary,
.button.outline {
  border-color: var(--blue);
  background: var(--white);
  color: var(--blue);
}

.button.white {
  background: var(--white);
  color: var(--blue);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid #bcc9e8;
  border-radius: 999px;
  background: var(--white);
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.eyebrow.blue { color: var(--blue); }
.eyebrow.green { color: var(--green); }
.eyebrow.magenta { color: var(--magenta); }

.home-hero {
  position: relative;
  height: 720px;
  overflow: hidden;
  background: #f2f5ff;
}

.home-hero > .bi-stripe {
  position: absolute;
  top: 0;
  left: 0;
}

.hero-grid {
  position: absolute;
  inset: 8px 0 0;
  opacity: 0.5;
}

.hero-grid::before,
.hero-grid::after {
  position: absolute;
  background: #dce3f2;
  content: "";
}

.hero-grid::before {
  top: 152px;
  left: 0;
  width: 100%;
  height: 1px;
  box-shadow: 0 160px 0 #dce3f2, 0 320px 0 #dce3f2;
}

.hero-grid::after {
  top: 0;
  left: 288px;
  width: 1px;
  height: 100%;
  box-shadow: 288px 0 0 #dce3f2, 576px 0 0 #dce3f2, 864px 0 0 #dce3f2, 1152px 0 0 #dce3f2;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 820px 1fr;
  align-items: center;
  height: 100%;
  gap: 124px;
}

.hero-copy .badge {
  margin-bottom: 22px;
}

.hero-copy h1 {
  margin-bottom: 26px;
  font-size: 56px;
  line-height: 1.2;
}

.lede {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.hero-meta {
  margin: 22px 0 0;
  color: var(--subtle);
  font-size: 14px;
  font-weight: 600;
}

.hero-books {
  position: relative;
  width: 620px;
  height: 610px;
  border: 1px solid #d8e0f1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.hero-book {
  position: absolute;
  width: 226px;
  border-radius: 4px;
  box-shadow: 0 16px 24px rgba(17, 24, 39, 0.2);
}

.book-one { top: 132px; left: 40px; transform: rotate(-7deg); }
.book-two { top: 82px; left: 190px; width: 242px; transform: rotate(-2deg); }
.book-three { top: 122px; right: 30px; transform: rotate(5deg); }
.book-four { top: 238px; left: 150px; width: 238px; transform: rotate(2deg); }

.hero-color-blocks {
  position: absolute;
  right: 30px;
  bottom: 38px;
  left: 30px;
  display: grid;
  grid-template-columns: repeat(4, 108px);
  justify-content: space-between;
}

.hero-color-blocks i {
  height: 18px;
  border-radius: 4px;
  background: var(--green);
}

.hero-color-blocks i:nth-child(2) { background: var(--teal); }
.hero-color-blocks i:nth-child(3) { background: var(--orange); }
.hero-color-blocks i:nth-child(4) { background: var(--yellow); }

.section {
  padding: 72px 0;
  background: var(--white);
}

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

.section-heading.compact {
  margin-bottom: 40px;
}

.section-heading h2 {
  margin-bottom: 10px;
  font-size: 34px;
  line-height: 1.3;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.text-link {
  color: var(--blue);
  font-size: 14px;
  font-weight: 750;
}

.home-product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  width: 288px;
  min-height: 282px;
  padding: 24px 18px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--book-soft);
  gap: 18px;
}

.product-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: var(--book-color);
  content: "";
}

.product-card img {
  width: 116px;
  height: 176px;
  border-radius: 3px;
  object-fit: contain;
  box-shadow: 0 8px 14px rgba(17, 24, 39, 0.15);
}

.product-card-copy {
  min-width: 0;
}

.product-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--white);
  color: var(--book-color);
  font-size: 12px;
  font-weight: 800;
}

.product-card h3 {
  margin: 14px 0 8px;
  font-size: 17px;
  line-height: 1.45;
}

.product-card p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.format-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.format-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--white);
  color: var(--book-color);
  font-size: 11px;
  font-weight: 700;
}

.product-card-copy > a {
  position: absolute;
  right: 18px;
  bottom: 17px;
  left: 18px;
  display: flex;
  justify-content: space-between;
  color: var(--book-color);
  font-size: 12px;
  font-weight: 750;
}

.set-link {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
  font-size: 15px;
}

.set-link a {
  color: var(--blue);
  font-weight: 750;
}

.learning-section {
  background: var(--paper);
}

.learning-grid {
  display: grid;
  grid-template-columns: 740px 356px 408px;
  gap: 24px;
}

.continue-card,
.metric-card {
  position: relative;
  height: 326px;
  padding: 30px;
  border-radius: 8px;
}

.continue-card {
  background: var(--blue);
  color: var(--white);
}

.badge.inverted {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
}

.continue-card > p {
  margin: 18px 0 10px;
  color: #bfd0ff;
  font-size: 14px;
  font-weight: 750;
}

.continue-card h3 {
  margin-bottom: 18px;
  font-size: 30px;
  line-height: 1.35;
}

.muted-on-dark {
  color: #dce6ff;
  font-size: 14px;
}

.progress {
  position: absolute;
  bottom: 64px;
  left: 30px;
  width: 500px;
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #6075b2;
}

.progress i {
  display: block;
  height: 100%;
  background: var(--yellow);
}

.progress-label {
  position: absolute;
  right: 190px;
  bottom: 56px;
  font-size: 14px;
}

.continue-card .button {
  position: absolute;
  right: 30px;
  bottom: 28px;
  min-height: 42px;
}

.metric-card {
  border: 1px solid var(--line);
  background: var(--white);
}

.metric-card > span {
  color: var(--blue);
  font-size: 14px;
  font-weight: 750;
}

.metric-card > strong {
  display: block;
  margin: 12px 0;
  font-size: 46px;
  line-height: 1.25;
}

.metric-card > p {
  color: var(--muted);
  font-size: 14px;
}

.metric-card hr {
  margin: 28px 0 20px;
  border: 0;
  border-top: 1px solid var(--line);
}

.metric-card small {
  display: block;
  margin-bottom: 12px;
  color: var(--subtle);
}

.metric-card > a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
}

.weakness > span { color: var(--red); }

.weakness > strong {
  display: inline-block;
  font-size: 42px;
}

.weakness > em {
  float: right;
  margin-top: 26px;
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.bar-row {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr 44px;
  align-items: center;
  margin-top: 20px;
  gap: 10px;
  font-size: 12px;
}

.bar-row b {
  color: var(--muted);
  font-weight: 600;
}

.bar-row i,
.score-bar i {
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: #e6eaf0;
}

.bar-row u,
.score-bar u {
  display: block;
  height: 100%;
  background: var(--red);
  text-decoration: none;
}

.bar-row span {
  color: var(--red);
  font-weight: 750;
  text-align: right;
}

.bar-row.orange u { background: var(--orange); }
.bar-row.orange span { color: var(--orange); }
.bar-row.green u { background: var(--green); }
.bar-row.green span { color: var(--green); }

.resource-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.resource-tile {
  display: flex;
  flex-direction: column;
  height: 240px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e9eefa;
}

.resource-tile.magenta { background: #f5eaf5; color: var(--magenta); }
.resource-tile.red { background: #fbe9ed; color: var(--red); }
.resource-tile.teal { background: #e7f4f5; color: var(--teal); }
.resource-tile.orange { background: #fdf0e5; color: var(--orange); }

.resource-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--white);
  font-size: 23px;
  font-weight: 800;
}

.resource-tile strong {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 18px;
}

.resource-tile p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.resource-tile b {
  margin-top: auto;
  font-size: 12px;
}

.site-footer {
  position: relative;
  min-height: 360px;
  background: #111827;
  color: #cbd5e1;
}

.site-footer .bi-stripe {
  height: 6px;
}

.footer-inner,
.footer-legal {
  width: var(--page-width);
  margin: 0 auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 360px 480px;
  align-items: start;
  padding: 54px 0 42px;
  border-bottom: 1px solid #334155;
  gap: 48px;
}

.footer-brand {
  display: block;
  margin-bottom: 14px;
  color: var(--white);
  font-size: 26px;
}

.footer-inner p,
.footer-legal p {
  margin-bottom: 0;
  color: #8e9aab;
  font-size: 12px;
}

.footer-cs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-cs strong,
.footer-cs b {
  color: var(--white);
}

.footer-cs b {
  font-size: 22px;
}

.footer-cs span {
  color: #8e9aab;
  font-size: 12px;
}

.footer-quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
  color: #d6dce6;
  font-size: 13px;
}

.footer-legal {
  padding-top: 28px;
}

.footer-legal nav {
  display: flex;
  margin-bottom: 20px;
  gap: 28px;
  color: #d6dce6;
  font-size: 12px;
}

.footer-legal p + p {
  margin-top: 5px;
}

.mobile-menu-toggle {
  display: none;
}

@media (max-width: 1500px) {
  :root {
    --fhd-width: 100%;
    --page-width: calc(100% - 48px);
  }

  html,
  body {
    min-width: 0;
    min-height: 100%;
  }

  .fhd-canvas {
    width: 100%;
    min-height: 100vh;
    overflow: visible;
  }

  .fhd-canvas::before {
    display: none;
  }

  .site-header {
    grid-template-columns: 250px minmax(0, 1fr) 250px;
    padding: 0 24px;
  }

  .primary-nav {
    gap: 20px;
  }

  .primary-nav > a,
  .primary-nav-item > a {
    font-size: 13px;
  }

  .header-search input {
    width: 108px;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 500px;
    gap: 48px;
  }

  .hero-books {
    width: 500px;
    transform: scale(.86);
    transform-origin: center;
  }

  .learning-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
  }

  .learning-grid > :last-child {
    grid-column: 1 / -1;
    height: auto;
    min-height: 250px;
  }

  .resource-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr 260px 1fr;
  }
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 210px minmax(0, 1fr) max-content;
  }

  .primary-nav {
    gap: 14px;
  }

  .header-tools > a:first-child,
  .header-search {
    display: none;
  }

  .home-hero {
    height: 650px;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 24px;
  }

  .hero-copy h1 {
    font-size: 46px;
  }

  .hero-books {
    margin-left: -45px;
    transform: scale(.72);
  }

  .footer-inner {
    grid-template-columns: 1fr 240px;
  }

  .footer-quick {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  :root {
    --page-width: calc(100% - 32px);
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  .site-header {
    position: sticky;
    top: 0;
    grid-template-columns: minmax(0, 1fr) max-content max-content;
    height: 64px;
    padding: 0 14px 0 16px;
  }

  .brand {
    max-width: 180px;
  }

  .brand-logo {
    width: 168px;
    height: 40px;
  }

  .brand-mark {
    width: 21px;
    height: 25px;
  }

  .brand-mark i {
    width: 7px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-name small,
  .header-tools > a:first-child,
  .header-search {
    display: none;
  }

  .header-tools {
    grid-column: 2;
    gap: 6px;
  }

  .header-tools .icon-button {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
  }

  .mobile-menu-toggle {
    position: relative;
    z-index: 72;
    display: inline-flex;
    grid-column: 3;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #e4e7ec;
    border-radius: 6px;
    background: #f8fafc;
    gap: 4px;
  }

  .mobile-menu-toggle span {
    width: 18px;
    height: 2px;
    background: #334155;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .site-header.menu-open .mobile-menu-toggle span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header.menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .mobile-menu-toggle span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .primary-nav {
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: calc(100dvh - 64px);
    padding: 12px 20px 32px;
    overflow-y: auto;
    background: rgba(255, 255, 255, .99);
    box-shadow: 0 16px 28px rgba(17, 24, 39, .16);
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    visibility: hidden;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  .site-header.menu-open .primary-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .primary-nav > a,
  .primary-nav-item > a {
    min-height: 50px;
    border-bottom: 1px solid #e9edf3;
    font-size: 15px;
  }

  .primary-nav > a::after,
  .primary-nav-item > a::after {
    display: none;
  }

  .primary-nav-item {
    display: block;
  }

  .primary-nav-item > a {
    width: 100%;
  }

  .primary-submenu {
    position: static;
    display: grid;
    width: 100%;
    padding: 6px 0 10px 14px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .primary-submenu a {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .nav-caret {
    display: none;
  }

  .site-messages {
    width: var(--page-width);
  }

  .home-hero {
    height: auto;
    min-height: 760px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 64px 0 32px;
    gap: 28px;
  }

  .hero-copy h1 {
    margin-bottom: 18px;
    font-size: 38px;
  }

  .lede {
    font-size: 16px;
  }

  .hero-books {
    width: 500px;
    height: 390px;
    margin: -72px auto -96px;
    transform: scale(.62);
  }

  .section {
    padding: 52px 0;
  }

  .section-heading,
  .section-heading.compact {
    align-items: flex-start;
    margin-bottom: 30px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .section-heading p:last-child {
    font-size: 14px;
  }

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

  .product-card {
    width: 100%;
  }

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

  .learning-grid > :last-child {
    grid-column: auto;
  }

  .continue-card,
  .metric-card {
    height: auto;
    min-height: 300px;
  }

  .progress {
    width: calc(100% - 220px);
  }

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

  .site-footer {
    min-height: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 40px 0 32px;
    gap: 28px;
  }

  .footer-quick {
    grid-column: auto;
    justify-content: flex-start;
  }

  .footer-legal {
    padding: 26px 0 36px;
  }

  .footer-legal nav {
    flex-wrap: wrap;
    gap: 12px 20px;
  }
}

@media (max-width: 560px) {
  :root {
    --page-width: calc(100% - 24px);
  }

  .header-tools .icon-button:first-of-type {
    display: none;
  }

  .home-hero {
    min-height: 720px;
  }

  .hero-content {
    padding-top: 44px;
  }

  .hero-copy .badge {
    min-height: 32px;
    margin-bottom: 16px;
    padding: 0 12px;
    font-size: 11px;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .hero-meta {
    font-size: 12px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .actions .button {
    min-height: 46px;
    padding: 0 10px;
    font-size: 13px;
  }

  .hero-books {
    margin-top: -88px;
    margin-left: calc(50% - 250px);
  }

  .section {
    padding: 42px 0;
  }

  .section-heading {
    display: grid;
    gap: 14px;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .home-product-grid,
  .resource-preview-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 230px;
  }

  .set-link {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .continue-card,
  .metric-card {
    min-height: 286px;
    padding: 24px;
  }

  .continue-card h3 {
    font-size: 24px;
  }

  .progress {
    right: 24px;
    bottom: 76px;
    left: 24px;
    width: auto;
  }

  .progress-label {
    right: 24px;
    bottom: 86px;
  }

  .continue-card .button {
    right: 24px;
    bottom: 18px;
    left: 24px;
  }

  .resource-tile {
    height: 200px;
  }

  .footer-brand {
    font-size: 22px;
  }

  .footer-quick,
  .footer-legal nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
