:root {
  --primary: #0b5cab;
  --primary-dark: #073b75;
  --cyan: #13a8d8;
  --accent: #f59e0b;
  --accent-dark: #d97900;
  --surface: #ffffff;
  --background: #f4f7fb;
  --soft-blue: #eaf4ff;
  --text: #162033;
  --muted: #667085;
  --border: #dfe7f1;
  --success: #158463;
  --danger: #c94040;
  --shadow: 0 20px 50px rgba(24, 55, 91, 0.12);
  --shell: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

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

button {
  color: inherit;
}

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

.shell {
  width: var(--shell);
  margin-inline: 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;
}

.demo-ribbon {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 7px 20px;
  color: #fff;
  background: var(--primary-dark);
  font-size: 12px;
}

.demo-ribbon span {
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.demo-ribbon p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.topbar {
  color: #fff;
  background: var(--primary);
  font-size: 12px;
}

.topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar__contact {
  display: flex;
  gap: 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 20px rgba(31, 58, 91, 0.06);
  backdrop-filter: blur(14px);
}

.header-main {
  min-height: 86px;
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr) auto;
  align-items: center;
  gap: 34px;
}

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

.brand__mark {
  position: relative;
  width: 46px;
  height: 42px;
  display: inline-block;
  transform: skewY(-7deg);
}

.brand__mark i {
  position: absolute;
  bottom: 5px;
  width: 13px;
  border-radius: 2px 9px 2px 2px;
  background: linear-gradient(180deg, var(--cyan), var(--primary));
}

.brand__mark i:nth-child(1) {
  left: 3px;
  height: 24px;
}

.brand__mark i:nth-child(2) {
  left: 18px;
  height: 34px;
}

.brand__mark i:nth-child(3) {
  left: 33px;
  height: 27px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--primary-dark);
  font-size: 19px;
  letter-spacing: 0.02em;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.global-search {
  height: 48px;
  display: flex;
  padding: 4px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.global-search:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(19, 168, 216, 0.12);
}

.global-search input {
  min-width: 0;
  flex: 1;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
}

.global-search button,
.cart-summary button {
  padding: 0 20px;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}

.header-actions {
  display: flex;
  gap: 22px;
}

.icon-action {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.icon-action__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--soft-blue);
  border-radius: 12px;
  font-size: 20px;
}

.icon-action small,
.icon-action b {
  display: block;
}

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

.icon-action b {
  font-size: 12px;
}

.icon-action--cart {
  position: relative;
  padding: 6px 9px;
  margin: -6px -9px;
  border-radius: 13px;
}

.icon-action--cart:hover,
.icon-action--cart[aria-expanded="true"] {
  background: var(--soft-blue);
}

.icon-action--cart.is-bumped .icon-action__icon {
  animation: cart-bump 0.36s ease;
}

.primary-nav {
  border-top: 1px solid var(--border);
}

.primary-nav__inner {
  min-height: 49px;
  display: flex;
  align-items: stretch;
}

.primary-nav a,
.primary-nav button {
  display: inline-flex;
  align-items: center;
  padding: 0 17px;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.primary-nav a:hover,
.primary-nav button:hover,
.primary-nav .active {
  color: var(--primary);
  background: var(--soft-blue);
}

.primary-nav .student-login {
  align-self: center;
  height: 34px;
  color: #fff;
  background: var(--primary);
  border-radius: 9px;
}

.primary-nav .student-login:hover {
  color: #fff;
  background: var(--primary-dark);
}

.nav-spacer {
  flex: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 75% 15%, rgba(25, 182, 225, 0.36), transparent 32%),
    linear-gradient(120deg, #062f61, #0b5cab 62%, #087da5);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -190px;
  height: 300px;
  border-radius: 50% 50% 0 0;
  background: rgba(255, 255, 255, 0.045);
}

.hero__grid {
  position: relative;
  z-index: 1;
  min-height: 545px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 72px;
  padding-block: 65px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #85e4ff;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

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

.hero h1 {
  max-width: 620px;
  margin: 0 0 20px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero h1 em {
  color: #86e8ff;
  font-style: normal;
}

.hero__copy > p {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 850;
  cursor: pointer;
}

.button--primary {
  color: #172033;
  background: var(--accent);
  border: 1px solid var(--accent);
}

.button--primary:hover {
  background: #ffb52b;
}

.button--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero__metrics {
  display: flex;
  gap: 30px;
  margin-top: 36px;
}

.hero__metrics div {
  display: grid;
}

.hero__metrics strong {
  font-size: 19px;
}

.hero__metrics span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
}

.hero__visual {
  position: relative;
  height: 430px;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.hero-orbit--one {
  inset: 5% 0 0 8%;
}

.hero-orbit--two {
  inset: 17% 12% 11% 21%;
}

.book-stack {
  position: absolute;
  inset: 25px 32px 42px 64px;
}

.hero-book {
  position: absolute;
  bottom: 24px;
  width: 225px;
  height: 318px;
  padding: 34px 27px;
  border: 3px solid rgba(255, 255, 255, 0.55);
  border-radius: 9px 18px 18px 9px;
  box-shadow: 20px 30px 45px rgba(2, 20, 47, 0.36);
  transform-origin: bottom center;
}

.hero-book::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 15px;
  width: 2px;
  background: rgba(255, 255, 255, 0.3);
}

.hero-book small,
.hero-book strong,
.hero-book span {
  display: block;
}

.hero-book small {
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.hero-book strong {
  margin-top: 52px;
  font-size: 25px;
  line-height: 1.1;
}

.hero-book span {
  position: absolute;
  bottom: 31px;
  font-size: 11px;
}

.hero-book--back {
  left: 22px;
  background: linear-gradient(150deg, #ef772c, #a62945);
  transform: rotate(-10deg) scale(0.9);
}

.hero-book--middle {
  left: 136px;
  background: linear-gradient(150deg, #12a7a4, #075b8d);
  transform: rotate(4deg) scale(0.96);
}

.hero-book--front {
  right: 3px;
  z-index: 2;
  background: linear-gradient(150deg, #2567bd, #092f68);
  transform: rotate(10deg);
}

.discount-seal {
  position: absolute;
  top: 48px;
  right: -10px;
  z-index: 3;
  width: 104px;
  height: 104px;
  display: grid;
  place-content: center;
  color: #172033;
  background: var(--accent);
  border: 7px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  text-align: center;
  transform: rotate(8deg);
}

.discount-seal strong,
.discount-seal span {
  display: block;
}

.discount-seal strong {
  font-size: 25px;
}

.discount-seal span {
  font-size: 10px;
}

.availability-card {
  position: absolute;
  right: 8px;
  bottom: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 17px;
  color: var(--text);
  background: #fff;
  border-radius: 13px;
  box-shadow: var(--shadow);
}

.availability-card i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--success);
  border-radius: 50%;
  font-style: normal;
}

.availability-card small,
.availability-card strong {
  display: block;
}

.availability-card small {
  color: var(--muted);
  font-size: 9px;
}

.availability-card strong {
  font-size: 11px;
}

.quick-paths {
  position: relative;
  z-index: 3;
  margin-top: -27px;
}

.quick-paths__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.quick-paths button,
.quick-paths a {
  min-height: 98px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px;
  border: 0;
  border-right: 1px solid var(--border);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.quick-paths > *:last-child {
  border-right: 0;
}

.quick-paths button:hover,
.quick-paths a:hover {
  background: var(--background);
}

.quick-paths__icon {
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 20px;
}

.quick-paths__icon--blue { color: var(--primary); background: #e7f1ff; }
.quick-paths__icon--cyan { color: #087c91; background: #dcf8fc; }
.quick-paths__icon--orange { color: #b66200; background: #fff0d4; }
.quick-paths__icon--violet { color: #6542a6; background: #f0eaff; }

.quick-paths strong,
.quick-paths small {
  display: block;
}

.quick-paths strong {
  font-size: 13px;
}

.quick-paths small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.quick-paths b {
  margin-left: auto;
  color: var(--primary);
}

.section {
  padding-block: 92px;
}

.catalog {
  background: var(--background);
}

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

.section-heading--center {
  justify-content: center;
  text-align: center;
}

.section-heading h2,
.journey h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 43px);
  line-height: 1.13;
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 9px 0 0;
  color: var(--muted);
}

.segmented {
  display: flex;
  padding: 4px;
  background: #e8eef6;
  border-radius: 12px;
}

.segmented button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.segmented button.active {
  color: var(--primary);
  background: #fff;
  box-shadow: 0 3px 10px rgba(37, 62, 91, 0.08);
}

.category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.category-strip button {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.category-strip button.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.catalog-toolbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

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

.catalog-toolbar select {
  padding: 8px 28px 8px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font-size: 11px;
}

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

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(37, 70, 107, 0.11);
}

.product-card__cover-wrap {
  position: relative;
  min-height: 242px;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 42%),
    #eef3f8;
}

.book-cover {
  position: relative;
  width: 142px;
  aspect-ratio: 0.7;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 17px;
  overflow: hidden;
  color: #fff;
  background: var(--cover, var(--primary));
  border-radius: 3px 10px 10px 3px;
  box-shadow: 12px 15px 24px rgba(35, 49, 67, 0.28);
}

.book-cover::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 10px;
  width: 2px;
  background: rgba(255, 255, 255, 0.26);
}

.book-cover small {
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.book-cover strong {
  font-size: 16px;
  line-height: 1.15;
}

.book-cover span {
  font-size: 8px;
  opacity: 0.78;
}

.product-badge,
.product-type {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
}

.product-badge {
  left: 12px;
  color: #704200;
  background: #ffe2a5;
}

.product-type {
  right: 12px;
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--border);
}

.product-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.product-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card h3 {
  margin: 9px 0 7px;
  font-size: 15px;
  line-height: 1.32;
}

.product-card__author {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.product-card__stock {
  margin: 11px 0 0;
  color: var(--success);
  font-size: 10px;
  font-weight: 800;
}

.product-card__stock.low {
  color: var(--accent-dark);
}

.product-card__stock.out {
  color: var(--danger);
}

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.product-card__price strong {
  color: var(--primary);
  font-size: 18px;
}

.product-card__price del {
  color: #98a2b3;
  font-size: 10px;
}

.product-card__actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 13px;
}

.product-card__actions button {
  min-height: 39px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.add-cart {
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
}

.view-detail {
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--border);
}

.loading-card {
  min-height: 410px;
  border-radius: 18px;
  background: linear-gradient(100deg, #e9eef4 20%, #f7f9fb 40%, #e9eef4 60%);
  background-size: 300% 100%;
  animation: loading 1.2s infinite;
}

.loading-card--package {
  min-height: 340px;
}

@keyframes loading {
  to { background-position: -150% 0; }
}

.catalog-empty {
  padding: 70px 20px;
  text-align: center;
}

.catalog-empty span {
  color: var(--primary);
  font-size: 50px;
}

.catalog-empty h3 {
  margin: 12px 0 5px;
}

.catalog-empty p {
  margin: 0 0 18px;
  color: var(--muted);
}

.catalog-empty button {
  padding: 10px 16px;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.packages {
  background: #fff;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.package-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
}

.package-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--package-accent, var(--primary));
}

.package-card.featured {
  color: #fff;
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.package-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.package-card__code {
  color: var(--package-accent, var(--primary));
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.package-card.featured .package-card__code {
  color: #8deaff;
}

.package-card__tag {
  padding: 5px 8px;
  color: var(--primary);
  background: var(--soft-blue);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
}

.package-card h3 {
  margin: 18px 0 7px;
  font-size: 25px;
}

.package-card p {
  min-height: 48px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.package-card.featured p {
  color: rgba(255, 255, 255, 0.68);
}

.package-card__price {
  margin-top: 20px;
}

.package-card__price strong {
  font-size: 30px;
}

.package-card__price span {
  color: var(--muted);
  font-size: 11px;
}

.package-card.featured .package-card__price span {
  color: rgba(255, 255, 255, 0.65);
}

.package-features {
  display: grid;
  gap: 10px;
  margin: 21px 0;
  padding: 20px 0;
  border-block: 1px solid var(--border);
  font-size: 11px;
}

.package-card.featured .package-features {
  border-color: rgba(255, 255, 255, 0.15);
}

.package-card button {
  width: 100%;
  min-height: 43px;
  color: var(--primary);
  background: var(--soft-blue);
  border: 0;
  border-radius: 11px;
  font-weight: 850;
  cursor: pointer;
}

.package-card.featured button {
  color: #172033;
  background: var(--accent);
}

.journey {
  color: #fff;
  background:
    radial-gradient(circle at 8% 100%, rgba(19, 168, 216, 0.28), transparent 35%),
    var(--primary-dark);
}

.journey__header {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  align-items: end;
  gap: 50px;
}

.journey__header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.67);
}

.journey__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.journey__steps article {
  position: relative;
  min-height: 230px;
  padding: 28px 22px;
  background: rgba(6, 47, 97, 0.92);
}

.journey__steps article > span {
  position: absolute;
  top: 17px;
  right: 17px;
  color: rgba(255, 255, 255, 0.26);
  font-size: 10px;
  font-weight: 850;
}

.journey__steps i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  color: #172033;
  background: var(--accent);
  border-radius: 14px;
  font-style: normal;
  font-size: 20px;
}

.journey__steps h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.journey__steps p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
}

.site-footer {
  color: #dfe9f6;
  background: #041f42;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 0.7fr);
  gap: 40px;
  padding-block: 60px 40px;
}

.brand--footer strong {
  color: #fff;
}

.footer-grid > div > p {
  max-width: 350px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.footer-grid > div > strong {
  display: block;
  margin-bottom: 14px;
  color: #fff;
  font-size: 12px;
}

.footer-grid > div > a,
.footer-grid > div > span {
  display: block;
  margin: 9px 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-block: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(6, 24, 48, 0.55);
  backdrop-filter: blur(4px);
}

.cart-drawer {
  position: fixed;
  top: var(--cart-popup-top, 96px);
  right: var(--cart-popup-right, 24px);
  z-index: 80;
  width: min(410px, calc(100vw - 28px));
  max-height: min(650px, calc(100dvh - var(--cart-popup-top, 96px) - 14px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid #d8e3ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 65px rgba(4, 31, 66, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.cart-drawer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 19px 14px;
  border-bottom: 1px solid var(--border);
}

.drawer-header h2 {
  margin: -4px 0 0;
  font-size: 23px;
}

.close-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  font-size: 24px;
  cursor: pointer;
}

.cart-items {
  flex: 0 1 auto;
  max-height: 290px;
  overflow-y: auto;
  padding: 0 19px;
}

.cart-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item__cover {
  height: 68px;
  border-radius: 4px 8px 8px 4px;
  background: var(--cover, var(--primary));
}

.cart-item h4 {
  margin: 0;
  font-size: 12px;
}

.cart-item p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 9px;
}

.cart-item strong {
  font-size: 11px;
}

.cart-item button {
  align-self: start;
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
}

.cart-empty {
  min-height: 190px;
  display: grid;
  place-content: center;
  padding: 25px;
  text-align: center;
}

.cart-empty span {
  font-size: 45px;
}

.cart-empty h3 {
  margin: 15px 0 5px;
}

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

.cart-summary {
  padding: 15px 19px 18px;
  border-top: 1px solid var(--border);
  background: #fbfdff;
}

.cart-summary > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cart-summary .discount-line {
  color: var(--success);
  font-size: 10px;
}

.cart-summary button {
  width: 100%;
  height: 48px;
  margin-top: 10px;
}

.cart-summary > small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  text-align: center;
  font-size: 9px;
}

.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 90;
  width: min(850px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 34px;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -46%) scale(0.98);
  transition: 0.2s ease;
}

.product-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.product-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.modal-product {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 38px;
}

.modal-product__visual {
  min-height: 390px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--background);
}

.modal-product__visual .book-cover {
  width: 190px;
}

.modal-product__content {
  padding-top: 14px;
}

.modal-product__content h2 {
  margin: 8px 0 10px;
  font-size: 30px;
  line-height: 1.15;
}

.modal-product__content > p {
  color: var(--muted);
  font-size: 12px;
}

.modal-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.modal-meta div {
  padding: 11px;
  background: var(--background);
  border-radius: 10px;
}

.modal-meta small,
.modal-meta strong {
  display: block;
}

.modal-meta small {
  color: var(--muted);
  font-size: 9px;
}

.modal-meta strong {
  margin-top: 3px;
  font-size: 11px;
}

.modal-product__buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.modal-product__buy strong {
  color: var(--primary);
  font-size: 27px;
}

.modal-product__buy button {
  min-height: 44px;
  padding: 0 20px;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 11px;
  font-weight: 850;
  cursor: pointer;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 110;
  max-width: 360px;
  padding: 14px 17px;
  color: #fff;
  background: #173557;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes cart-bump {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.16) rotate(-7deg); }
}

@media (max-width: 1050px) {
  .header-main {
    grid-template-columns: auto 1fr auto;
    gap: 18px;
  }

  .header-actions .icon-action:first-child {
    display: none;
  }

  .primary-nav a,
  .primary-nav button {
    padding-inline: 11px;
  }

  .hero__grid {
    gap: 20px;
  }

  .hero__visual {
    transform: scale(0.85);
  }

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

  .journey__steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .demo-ribbon p,
  .topbar__contact span:nth-child(2) {
    display: none;
  }

  .topbar__inner {
    justify-content: center;
  }

  .site-header {
    position: relative;
  }

  .header-main {
    min-height: auto;
    grid-template-columns: 1fr auto;
    padding-block: 16px;
  }

  .global-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .header-actions {
    gap: 0;
  }

  .icon-action span:last-child {
    display: none;
  }

  .cart-drawer {
    right: 12px;
    width: min(410px, calc(100vw - 24px));
  }

  .primary-nav {
    overflow-x: auto;
  }

  .primary-nav__inner {
    width: max-content;
    min-width: 100%;
  }

  .nav-spacer,
  .student-login {
    display: none !important;
  }

  .hero__grid {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 54px;
  }

  .hero__visual {
    display: none;
  }

  .hero__metrics {
    flex-wrap: wrap;
  }

  .quick-paths {
    margin-top: 0;
    padding-top: 14px;
  }

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

  .quick-paths button,
  .quick-paths a {
    border-bottom: 1px solid var(--border);
  }

  .section {
    padding-block: 64px;
  }

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

  .segmented {
    width: max-content;
    margin-top: 20px;
  }

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

  .package-card.featured {
    transform: none;
  }

  .journey__header > p {
    margin-top: 14px;
  }

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

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

@media (max-width: 540px) {
  .hero h1 {
    font-size: 41px;
  }

  .hero__actions {
    display: grid;
  }

  .quick-paths__grid,
  .product-grid,
  .package-grid,
  .journey__steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quick-paths button,
  .quick-paths a {
    min-height: 82px;
    border-right: 0;
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .product-card__cover-wrap {
    min-height: 270px;
  }

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

  .modal-product__visual {
    min-height: 320px;
  }

  .modal-product__content h2 {
    font-size: 25px;
  }

  .modal-product__buy {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* Customer journey: pricing, checkout, order tracking, library and reader demo. */
.quick-paths__grid {
  grid-template-columns: repeat(5, 1fr);
}

.quick-paths__icon--green {
  color: #08745a;
  background: #def8ec;
}

.student-policy {
  padding: 28px 0 0;
}

.student-policy__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 23px 26px;
  background: linear-gradient(115deg, #eef8ff, #fff9e8);
  border: 1px solid #cfe2f6;
  border-radius: 18px;
}

.student-policy__icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border: 7px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(11, 92, 171, 0.2);
  font-size: 19px;
  font-weight: 900;
}

.student-policy .eyebrow {
  margin-bottom: 4px;
}

.student-policy h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.student-policy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.student-policy__inner > button,
.tracker-search button,
.order-action {
  min-height: 42px;
  padding: 0 16px;
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--primary);
  border-radius: 11px;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.product-card__price small {
  display: block;
  color: var(--success);
  font-size: 9px;
}

.price-policy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 9px;
  color: #08745a;
  background: #e8f8f2;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 750;
}

.cart-item {
  align-items: start;
}

.cart-item__controls {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 5px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.cart-item__controls button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--soft-blue);
  border-radius: 6px;
  font-weight: 900;
}

.cart-item__controls button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cart-item__remove {
  font-size: 18px;
}

.cart-summary .cart-total-line {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 16px;
}

.cart-summary .cart-total-line strong {
  color: var(--primary);
}

.flow-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 95;
  width: min(980px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  overflow: hidden;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(4, 31, 66, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -46%) scale(0.98);
  transition: 0.2s ease;
}

.flow-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.flow-modal__header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

.flow-modal__header .eyebrow {
  margin-bottom: 4px;
}

.flow-modal__header h2 {
  margin: 0;
  font-size: 23px;
}

.flow-modal__body {
  max-height: calc(100vh - 250px);
  overflow-y: auto;
  padding: 24px;
}

.flow-modal__footer {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  background: #fafcff;
  border-top: 1px solid var(--border);
}

.button--secondary {
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--border);
}

.flow-modal__footer .button--primary {
  min-width: 150px;
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 14px 24px;
  background: #f7faff;
  border-bottom: 1px solid var(--border);
}

.checkout-steps span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8b96a7;
  font-size: 11px;
  font-weight: 800;
}

.checkout-steps span::after {
  content: "";
  position: absolute;
  top: 15px;
  right: 10px;
  left: 45px;
  height: 2px;
  background: #dce5f0;
}

.checkout-steps span:last-child::after {
  display: none;
}

.checkout-steps b {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #7a8798;
  background: #fff;
  border: 1px solid #d2dce8;
  border-radius: 50%;
}

.checkout-steps span.active,
.checkout-steps span.done {
  color: var(--primary);
}

.checkout-steps span.active b,
.checkout-steps span.done b {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.checkout-steps span.done::after {
  background: var(--primary);
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
}

.checkout-panel,
.summary-panel,
.status-card,
.library-card,
.subscription-card,
.notification-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.checkout-panel h3,
.summary-panel h3,
.account-content h3 {
  margin: 0 0 5px;
}

.checkout-panel > p,
.summary-panel > p {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 11px;
}

.checkout-line {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.checkout-line:last-child {
  border-bottom: 0;
}

.checkout-line__cover {
  width: 40px;
  height: 54px;
  background: var(--cover);
  border-radius: 3px 7px 7px 3px;
}

.checkout-line strong,
.checkout-line small {
  display: block;
}

.checkout-line strong {
  font-size: 11px;
}

.checkout-line small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 11px;
}

.summary-row strong {
  color: var(--text);
}

.summary-row.discount {
  color: var(--success);
}

.summary-row.discount strong {
  color: var(--success);
}

.summary-row.total {
  margin-top: 14px;
  padding-top: 14px;
  color: var(--text);
  border-top: 1px dashed var(--border);
  font-size: 15px;
  font-weight: 850;
}

.summary-row.total strong {
  color: var(--primary);
  font-size: 20px;
}

.policy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  color: #17664f;
  background: #ecf9f4;
  border-radius: 10px;
  font-size: 10px;
}

.policy-check input {
  margin-top: 2px;
  accent-color: var(--success);
}

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

.field {
  display: grid;
  gap: 6px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.tracker-search > label {
  font-size: 10px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea,
.tracker-search input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
}

.field textarea {
  min-height: 76px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.tracker-search input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(19, 168, 216, 0.1);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
}

.choice-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}

.choice-card:has(input:checked) {
  background: #eff7ff;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(11, 92, 171, 0.08);
}

.choice-card input {
  margin-top: 4px;
  accent-color: var(--primary);
}

.choice-card strong,
.choice-card small {
  display: block;
}

.choice-card strong {
  font-size: 11px;
}

.choice-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.checkout-note {
  margin-top: 15px;
  padding: 12px;
  color: #6b4e13;
  background: #fff8e3;
  border: 1px solid #f4df9e;
  border-radius: 10px;
  font-size: 10px;
}

.order-success {
  text-align: center;
}

.order-success__icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  color: #fff;
  background: var(--success);
  border-radius: 50%;
  font-size: 30px;
}

.order-success h3 {
  margin: 0;
  font-size: 25px;
}

.order-success > p {
  max-width: 620px;
  margin: 8px auto 20px;
  color: var(--muted);
  font-size: 12px;
}

.order-code {
  display: inline-flex;
  gap: 8px;
  padding: 10px 14px;
  color: var(--primary-dark);
  background: var(--soft-blue);
  border-radius: 10px;
  font-weight: 900;
}

.fulfillment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
  text-align: left;
}

.fulfillment-grid article {
  min-height: 120px;
  padding: 15px;
  background: #f8fbff;
  border: 1px solid var(--border);
  border-radius: 13px;
}

.fulfillment-grid span,
.fulfillment-grid strong,
.fulfillment-grid small {
  display: block;
}

.fulfillment-grid span {
  margin-bottom: 7px;
  color: var(--primary);
  font-size: 20px;
}

.fulfillment-grid strong {
  font-size: 11px;
}

.fulfillment-grid small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.account-modal {
  width: min(1120px, calc(100% - 32px));
}

.account-layout {
  min-height: 580px;
  display: grid;
  grid-template-columns: 220px 1fr;
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 14px;
  background: #f6f9fd;
  border-right: 1px solid var(--border);
}

.account-nav button {
  min-height: 44px;
  padding: 0 13px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.account-nav button.active {
  color: var(--primary);
  background: #fff;
  box-shadow: 0 5px 18px rgba(24, 55, 91, 0.07);
}

.account-content {
  max-height: calc(100vh - 124px);
  overflow-y: auto;
  padding: 24px;
}

.account-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.account-hero h3 {
  font-size: 25px;
}

.account-hero p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.account-badge {
  padding: 8px 11px;
  color: #6b4e13;
  background: #fff4ce;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
}

.library-filters {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
  overflow-x: auto;
}

.library-filters button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.library-filters button.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

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

.library-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 13px;
  padding: 14px;
}

.library-card__cover {
  width: 60px;
  height: 84px;
  background: var(--cover);
  border-radius: 3px 8px 8px 3px;
}

.library-card__content h4 {
  margin: 0;
  font-size: 12px;
}

.library-card__content > small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.status-pill {
  display: inline-block;
  margin-top: 7px;
  padding: 4px 7px;
  color: #126048;
  background: #e5f7f0;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 850;
}

.status-pill.expiring {
  color: #805a07;
  background: #fff4d7;
}

.status-pill.expired {
  color: #8c3b3b;
  background: #fdecec;
}

.progress-bar {
  height: 6px;
  margin: 9px 0 6px;
  overflow: hidden;
  background: #e7edf5;
  border-radius: 99px;
}

.progress-bar i {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: inherit;
}

.library-card__actions {
  display: flex;
  gap: 6px;
  margin-top: 9px;
}

.library-card__actions button {
  min-height: 31px;
  padding: 0 10px;
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 8px;
  font-weight: 850;
  cursor: pointer;
}

.library-card__actions button:first-child {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.library-card__actions button:disabled {
  color: #8b96a7;
  background: #eef1f5;
  cursor: not-allowed;
}

.account-order-list,
.notification-list {
  display: grid;
  gap: 10px;
}

.account-order,
.notification-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 15px 17px;
  border: 1px solid var(--border);
  border-radius: 13px;
}

.account-order h4,
.notification-card h4 {
  margin: 0;
  font-size: 11px;
}

.account-order p,
.notification-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.account-order__side {
  text-align: right;
}

.account-order__side strong,
.account-order__side small {
  display: block;
}

.account-order__side strong {
  font-size: 11px;
}

.account-order__side small {
  margin-top: 3px;
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
}

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

.subscription-card {
  position: relative;
}

.subscription-card--active {
  color: #fff;
  background: linear-gradient(135deg, #0b5cab, #073b75);
  border-color: transparent;
}

.subscription-card h4 {
  margin: 0;
  font-size: 19px;
}

.subscription-card p {
  color: var(--muted);
  font-size: 10px;
}

.subscription-card--active p {
  color: rgba(255, 255, 255, 0.7);
}

.tracker-modal {
  width: min(760px, calc(100% - 32px));
}

.tracker-search > div {
  display: flex;
  gap: 8px;
  margin-top: 7px;
}

.tracker-search button {
  flex: 0 0 auto;
}

.tracker-search > small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
}

.tracker-search > small button {
  min-height: auto;
  padding: 0;
  border: 0;
  color: var(--primary);
}

.tracker-result {
  margin-top: 22px;
}

.empty-state {
  padding: 36px;
  color: var(--muted);
  background: #f8fbff;
  border: 1px dashed #cbd8e7;
  border-radius: 14px;
  text-align: center;
}

.empty-state span {
  font-size: 30px;
}

.empty-state h3 {
  margin: 8px 0 4px;
  color: var(--text);
}

.empty-state p {
  margin: 0;
  font-size: 10px;
}

.tracking-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px;
  background: #f7faff;
  border-radius: 13px;
}

.tracking-head small,
.tracking-head strong {
  display: block;
}

.tracking-head strong {
  margin-top: 3px;
}

.tracking-head > div:last-child {
  text-align: right;
}

.tracking-timeline {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}

.tracking-event {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.tracking-event > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
}

.tracking-event.pending > span {
  color: #667085;
  background: #e7edf5;
}

.tracking-event strong,
.tracking-event small {
  display: block;
}

.tracking-event strong {
  font-size: 11px;
}

.tracking-event small {
  color: var(--muted);
  font-size: 9px;
}

.reader-modal {
  z-index: 100;
  width: min(1180px, calc(100% - 24px));
  color: #e8eef7;
  background: #1b2430;
}

.reader-toolbar {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 18px;
  background: #111821;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reader-toolbar small,
.reader-toolbar strong {
  display: block;
}

.reader-toolbar small {
  color: #8fa2b8;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.reader-tools {
  display: flex;
  gap: 6px;
}

.reader-tools button {
  min-height: 35px;
  padding: 0 10px;
  color: #dce6f2;
  background: #263342;
  border: 1px solid #344355;
  border-radius: 8px;
  font-size: 9px;
  cursor: pointer;
}

.reader-tools .close-button {
  width: 35px;
  padding: 0;
  font-size: 20px;
}

.reader-workspace {
  min-height: 610px;
  display: grid;
  grid-template-columns: 220px 1fr;
}

.reader-workspace aside {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px 12px;
  background: #151e28;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.reader-workspace aside strong {
  padding: 0 8px 10px;
  font-size: 11px;
}

.reader-workspace aside button {
  min-height: 38px;
  padding: 0 9px;
  color: #9fb0c3;
  background: transparent;
  border: 0;
  border-radius: 8px;
  text-align: left;
  font-size: 9px;
  cursor: pointer;
}

.reader-workspace aside button:hover {
  color: #fff;
  background: #263342;
}

.reader-page {
  position: relative;
  width: min(690px, calc(100% - 50px));
  min-height: 550px;
  margin: 28px auto;
  padding: 70px 75px;
  overflow: hidden;
  color: #283441;
  background: #fffdf8;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.reader-page > small {
  color: var(--primary);
  font-weight: 850;
}

.reader-page h2 {
  margin: 12px 0 22px;
  font-family: Georgia, serif;
  font-size: 30px;
}

.reader-page p,
.reader-page blockquote {
  font-family: Georgia, serif;
  font-size: 15px;
  line-height: 1.85;
}

.reader-page blockquote {
  margin: 24px 0;
  padding: 14px 18px;
  background: #eef7ff;
  border-left: 4px solid var(--primary);
}

.reader-highlight {
  background: linear-gradient(transparent 15%, #fff09b 15%, #fff09b 88%, transparent 88%);
}

.reader-watermark {
  position: absolute;
  top: 47%;
  left: 16%;
  color: rgba(11, 92, 171, 0.08);
  font-size: 20px;
  font-weight: 900;
  transform: rotate(-28deg);
}

.reader-status {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 8px 18px;
  color: #93a6bb;
  background: #111821;
  font-size: 9px;
}

.reader-status input {
  width: 56px;
  min-height: 30px;
  padding: 4px;
  color: #fff;
  background: #263342;
  border: 1px solid #405267;
  border-radius: 6px;
  text-align: center;
}

/* Readable storefront typography scale */
body { font-size: 16px; }
.demo-ribbon,
.topbar { font-size: 13px; }
.brand strong { font-size: 21px; }
.brand small { font-size: 12.5px; }
.global-search input,
.global-search button,
.cart-summary button { font-size: 14px; }
.icon-action small { font-size: 11.5px; }
.icon-action b { font-size: 13.5px; }
.primary-nav a,
.primary-nav button { font-size: 14px; }
.eyebrow { font-size: 12px; }
.hero__copy > p { font-size: 18px; }
.button { font-size: 15px; }
.hero__metrics strong { font-size: 21px; }
.hero__metrics span { font-size: 13px; }
.availability-card small { font-size: 11px; }
.availability-card strong { font-size: 13px; }
.quick-paths strong { font-size: 15px; }
.quick-paths small { font-size: 12px; }
.section-heading p,
.journey__header p { font-size: 16px; }
.segmented button { font-size: 13.5px; }
.category-strip button { font-size: 13px; }
.catalog-toolbar p,
.catalog-toolbar select { font-size: 13px; }
.product-card__meta { font-size: 11px; }
.product-card h3 { font-size: 18px; }
.product-card__author,
.product-card__stock { font-size: 13px; }
.product-card__price strong { font-size: 21px; }
.product-card__price del { font-size: 12px; }
.product-card__actions button { font-size: 12.5px; }
.package-card__code { font-size: 13.5px; }
.package-card__tag { font-size: 11px; }
.package-card h3 { font-size: 27px; }
.package-card p { font-size: 14px; }
.package-card__price span { font-size: 13px; }
.package-features { font-size: 13px; }
.package-card button { font-size: 14px; }
.journey__steps article > span { font-size: 11.5px; }
.journey__steps h3 { font-size: 17px; }
.journey__steps p { font-size: 13px; }
.footer-grid > div > p,
.footer-grid > div > strong { font-size: 14px; }
.footer-grid > div > a,
.footer-grid > div > span { font-size: 13px; }
.footer-bottom { font-size: 12px; }
.cart-item h4 { font-size: 14px; }
.cart-item p { font-size: 11.5px; }
.cart-item strong { font-size: 13px; }
.cart-summary .discount-line { font-size: 12px; }
.cart-summary > small { font-size: 11.5px; }
.modal-product__content > p { font-size: 14px; }
.modal-meta small { font-size: 11px; }
.modal-meta strong { font-size: 13px; }
.toast { font-size: 14px; }
.student-policy h2 { font-size: 23px; }
.student-policy p { font-size: 14px; }
.student-policy__inner > button,
.tracker-search button,
.order-action { font-size: 13px; }
.product-card__price small { font-size: 11px; }
.price-policy { font-size: 12px; }
.flow-modal__header h2 { font-size: 26px; }
.checkout-steps span { font-size: 13px; }
.checkout-panel h3,
.summary-panel h3,
.account-content h3 { font-size: 18px; }
.checkout-panel > p,
.summary-panel > p { font-size: 13px; }
.checkout-line strong { font-size: 13.5px; }
.checkout-line small { font-size: 11.5px; }
.summary-row { font-size: 13px; }
.summary-row.total { font-size: 17px; }
.summary-row.total strong { font-size: 22px; }
.policy-check { font-size: 12.5px; }
.field label,
.tracker-search > label { font-size: 12.5px; }
.field input,
.field select,
.field textarea,
.tracker-search input { font-size: 14px; }
.choice-card strong { font-size: 13.5px; }
.choice-card small { font-size: 11.5px; }
.checkout-note { font-size: 12.5px; }
.order-success h3 { font-size: 28px; }
.order-success > p { font-size: 14px; }
.fulfillment-grid strong { font-size: 13px; }
.fulfillment-grid small { font-size: 11.5px; }
.account-nav button { font-size: 13px; }
.account-hero h3 { font-size: 28px; }
.account-hero p { font-size: 13px; }
.account-badge { font-size: 11.5px; }
.library-filters button { font-size: 11.5px; }
.library-card__content h4 { font-size: 14px; }
.library-card__content > small { font-size: 11.5px; }
.status-pill { font-size: 10.5px; }
.library-card__actions button { font-size: 10.5px; }
.account-order h4,
.notification-card h4 { font-size: 13px; }
.account-order p,
.notification-card p { font-size: 11.5px; }
.account-order__side strong { font-size: 13px; }
.account-order__side small { font-size: 11px; }
.subscription-card p { font-size: 12.5px; }
.tracker-search > small { font-size: 11.5px; }
.empty-state p { font-size: 12px; }
.tracking-event strong { font-size: 13px; }
.tracking-event small { font-size: 11px; }
.reader-toolbar small { font-size: 10.5px; }
.reader-tools button { font-size: 11px; }
.reader-workspace aside strong { font-size: 13px; }
.reader-workspace aside button { font-size: 11.5px; }
.reader-page h2 { font-size: 32px; }
.reader-page p,
.reader-page blockquote { font-size: 16.5px; }
.reader-status { font-size: 11.5px; }

@media (max-width: 1120px) {
  .quick-paths__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .quick-paths button,
  .quick-paths a {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 800px) {
  .student-policy__inner {
    grid-template-columns: auto 1fr;
  }

  .student-policy__inner > button {
    grid-column: 1 / -1;
  }

  .checkout-grid,
  .account-layout,
  .reader-workspace {
    grid-template-columns: 1fr;
  }

  .checkout-grid .summary-panel {
    grid-row: 1;
  }

  .account-nav {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .account-nav button {
    flex: 0 0 auto;
  }

  .account-layout {
    min-height: auto;
  }

  .account-content {
    max-height: calc(100vh - 185px);
  }

  .reader-workspace aside {
    display: none;
  }

  .reader-page {
    min-height: 520px;
  }
}

@media (max-width: 620px) {
  .quick-paths__grid {
    grid-template-columns: 1fr;
  }

  .student-policy__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .student-policy__icon {
    margin-inline: auto;
  }

  .flow-modal {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }

  .flow-modal__header {
    min-height: 76px;
    padding: 13px 15px;
  }

  .flow-modal__header h2 {
    font-size: 22px;
  }

  .flow-modal__body {
    max-height: calc(100dvh - 216px);
    padding: 15px;
  }

  .checkout-steps {
    padding: 10px 15px;
  }

  .checkout-steps span {
    justify-content: center;
    font-size: 0;
  }

  .checkout-steps span::after {
    right: -16px;
    left: calc(50% + 20px);
  }

  .flow-modal__footer {
    min-height: 66px;
    padding: 9px 15px;
  }

  .form-grid,
  .choice-grid,
  .fulfillment-grid,
  .library-grid,
  .subscription-grid {
    grid-template-columns: 1fr;
  }

  .account-content {
    max-height: calc(100dvh - 137px);
    padding: 15px;
  }

  .account-hero {
    display: block;
  }

  .account-badge {
    display: inline-block;
    margin-top: 10px;
  }

  .reader-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .reader-tools {
    width: 100%;
    overflow-x: auto;
  }

  .reader-workspace {
    min-height: calc(100dvh - 166px);
  }

  .reader-page {
    width: calc(100% - 24px);
    min-height: 76vh;
    margin: 12px auto;
    padding: 48px 28px;
  }

  .reader-status {
    flex-wrap: wrap;
  }
}
