:root {
  color-scheme: light;
  --navy: #071d43;
  --ink: #082047;
  --paper: #fff7e8;
  --card: rgba(255, 252, 244, 0.9);
  --line: rgba(7, 29, 67, 0.15);
  --gold: #f1b51d;
  --sun: #ffd86b;
  --olive: #6d7f43;
  --teal: #1f9fa3;
  --aqua: #d7f4ef;
  --coral: #ee7b58;
  --rose: #f8d9cf;
  --leaf: #94b447;
  --lime: #bfe95d;
  --pink: #ff9fbd;
  --berry: #d95f95;
  --orange: #ffad42;
  --sky: #cfe7ff;
  --muted: #607087;
  --shadow: 0 22px 70px rgba(7, 29, 67, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(115deg, rgba(255, 216, 107, 0.38) 0%, transparent 32%),
    linear-gradient(245deg, rgba(31, 159, 163, 0.26) 0%, transparent 34%),
    linear-gradient(25deg, rgba(255, 159, 189, 0.16) 0%, transparent 42%),
    linear-gradient(135deg, #fff7e8 0%, #fff2d9 30%, #e9f8ef 64%, #eaf5ff 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.shell {
  width: min(1500px, calc(100% - 1rem));
  margin: 0.5rem auto;
  overflow: hidden;
  border: 1px solid rgba(7, 29, 67, 0.11);
  border-radius: 1.75rem;
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.78), rgba(255, 250, 240, 0.92)),
    linear-gradient(120deg, rgba(255, 216, 107, 0.16), rgba(215, 244, 239, 0.24), rgba(255, 159, 189, 0.12));
  box-shadow: var(--shadow);
}

.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3.5rem);
  border-bottom: 1px solid rgba(7, 29, 67, 0.08);
  background:
    linear-gradient(90deg, rgba(255, 216, 107, 0.2), rgba(215, 244, 239, 0.2), rgba(255, 159, 189, 0.13)),
    rgba(255, 252, 244, 0.72);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand img {
  width: 82px;
  height: 56px;
  object-fit: contain;
}

.brand-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-links a {
  position: relative;
  color: rgba(8, 32, 71, 0.78);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 2px;
  content: "";
  opacity: 0;
  transform: scaleX(0.55);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  gap: 0.5rem;
  border: 1px solid rgba(7, 29, 67, 0.15);
  border-radius: 999px;
  padding: 0.78rem 1.45rem;
  background: #fffaf0;
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(7, 29, 67, 0.08);
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 159, 163, 0.35);
  box-shadow: 0 16px 34px rgba(7, 29, 67, 0.12);
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--navy), #0d3973 62%, #1f9fa3);
  color: white;
}

.button.gold {
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold), var(--sun));
  color: var(--navy);
}

.button.mini {
  min-height: 2.2rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
}

.hero {
  position: relative;
  display: grid;
  min-height: 680px;
  align-items: center;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3.5rem);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 247, 232, 0.98) 0%, rgba(255, 247, 232, 0.88) 28%, rgba(255, 247, 232, 0.32) 61%, rgba(255, 247, 232, 0.04) 100%),
    linear-gradient(180deg, rgba(255, 216, 107, 0.25) 0%, transparent 42%, rgba(215, 244, 239, 0.54) 100%),
    linear-gradient(135deg, rgba(255, 159, 189, 0.18), transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 43rem;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.hero h1 {
  margin-top: 1.3rem;
  max-width: 52rem;
  font-size: clamp(3.3rem, 7vw, 6rem);
  line-height: 1.02;
  text-shadow: 0 10px 34px rgba(7, 29, 67, 0.09);
}

.hero h1 span {
  display: block;
  color: var(--teal);
}

.hero p {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.85;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.section {
  padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3.5rem);
}

.section.center {
  border-top: 1px solid rgba(7, 29, 67, 0.08);
  background:
    linear-gradient(115deg, rgba(215, 244, 239, 0.45), transparent 46%),
    linear-gradient(245deg, rgba(255, 216, 107, 0.35), transparent 44%),
    linear-gradient(180deg, rgba(255, 252, 244, 0.7), rgba(255, 250, 240, 0.35));
  text-align: center;
}

.section-heading {
  max-width: 46rem;
  margin: 0 auto 3rem;
}

.section-heading h2 {
  margin-top: 1rem;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  line-height: 1.08;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.8;
}

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

.card {
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--card);
  box-shadow: 0 18px 44px rgba(7, 29, 67, 0.08);
}

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 1.55rem;
  background:
    linear-gradient(160deg, rgba(255, 216, 107, 0.42), rgba(255, 252, 244, 0.92) 58%),
    var(--card);
  box-shadow: 0 22px 48px rgba(7, 29, 67, 0.1);
}

.feature-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 0.42rem;
  content: "";
  background: linear-gradient(90deg, var(--gold), var(--orange));
}

.feature-card::after {
  position: absolute;
  right: -1.7rem;
  bottom: -1.3rem;
  width: 8rem;
  height: 8rem;
  content: "";
  background:
    linear-gradient(135deg, transparent 0 36%, rgba(255, 255, 255, 0.38) 36% 48%, transparent 48%),
    linear-gradient(45deg, transparent 0 42%, rgba(255, 255, 255, 0.34) 42% 54%, transparent 54%);
  opacity: 0.95;
}

.feature-card:nth-child(2) {
  background:
    linear-gradient(160deg, rgba(215, 244, 239, 0.76), rgba(255, 252, 244, 0.92) 60%),
    var(--card);
}

.feature-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--teal), var(--lime));
}

.feature-card:nth-child(3) {
  background:
    linear-gradient(160deg, rgba(255, 159, 189, 0.4), rgba(255, 252, 244, 0.92) 60%),
    var(--card);
}

.feature-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--berry), var(--coral));
}

.feature-card:nth-child(4) {
  background:
    linear-gradient(160deg, rgba(207, 231, 255, 0.82), rgba(255, 252, 244, 0.92) 60%),
    var(--card);
}

.feature-card:nth-child(4)::before {
  background: linear-gradient(90deg, #4f9fd8, var(--teal));
}

.feature-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.9rem;
  border: 1px solid rgba(31, 159, 163, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.feature-card h3,
.feature-card p {
  position: relative;
  z-index: 1;
}

.feature-card h3,
.listing-card h3,
.faq-card h3 {
  font-size: 1.55rem;
}

.feature-card p,
.listing-card p,
.faq-card p,
.muted {
  color: var(--muted);
  line-height: 1.75;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 216, 107, 0.26), rgba(31, 159, 163, 0.15)),
    linear-gradient(245deg, rgba(255, 159, 189, 0.13), transparent 52%),
    rgba(255, 252, 244, 0.35);
}

.split h2,
.page-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1.06;
}

.page-hero {
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 3.5rem);
  border-top: 1px solid rgba(7, 29, 67, 0.08);
  border-bottom: 1px solid rgba(7, 29, 67, 0.08);
  background:
    linear-gradient(120deg, rgba(255, 216, 107, 0.16), transparent 36%),
    linear-gradient(250deg, rgba(31, 159, 163, 0.12), transparent 38%);
}

.page-hero p {
  max-width: 46rem;
  color: var(--muted);
  line-height: 1.8;
}

.preview-section {
  padding-top: clamp(1.8rem, 4vw, 3.2rem);
  background:
    linear-gradient(115deg, rgba(255, 216, 107, 0.18), transparent 38%),
    linear-gradient(245deg, rgba(215, 244, 239, 0.34), transparent 46%);
}

.audience-switcher,
.subject-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: rgba(255, 250, 240, 0.72);
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.pill[aria-pressed="true"] {
  border-color: rgba(241, 181, 29, 0.8);
  background: linear-gradient(135deg, rgba(241, 181, 29, 0.24), rgba(31, 159, 163, 0.14));
}

.pill:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 159, 163, 0.38);
}

.pill small {
  margin-left: 0.35rem;
  border-radius: 999px;
  padding: 0.12rem 0.42rem;
  background: rgba(7, 29, 67, 0.08);
  color: var(--muted);
  font-size: 0.72rem;
}

.subject-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

.listing-card,
.faq-card {
  padding: 1.4rem;
}

.status-panel,
.empty-panel {
  grid-column: 1 / -1;
  border: 1px dashed rgba(7, 29, 67, 0.18);
  border-radius: 1.6rem;
  padding: 3rem;
  background: rgba(255, 252, 244, 0.72);
  text-align: center;
}

.loading-panel {
  border-style: solid;
  border-color: rgba(31, 159, 163, 0.2);
  background: linear-gradient(135deg, rgba(215, 244, 239, 0.66), rgba(255, 250, 240, 0.82));
}

.loading-panel::before {
  display: block;
  width: 2.2rem;
  height: 2.2rem;
  margin: 0 auto 1rem;
  border: 3px solid rgba(31, 159, 163, 0.18);
  border-top-color: var(--teal);
  border-radius: 999px;
  content: "";
  animation: spin 900ms linear infinite;
}

.warning-panel {
  border-style: solid;
  border-color: rgba(238, 123, 88, 0.28);
  background: linear-gradient(135deg, rgba(248, 217, 207, 0.62), rgba(255, 250, 240, 0.82));
}

.explorer-panel {
  display: grid;
  gap: 1.5rem;
}

.listing-grid > .explorer-panel {
  grid-column: 1 / -1;
}

.explorer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(7, 29, 67, 0.1);
  border-radius: 1.25rem;
  padding: 0.9rem 1rem;
  background:
    linear-gradient(135deg, rgba(215, 244, 239, 0.52), rgba(255, 250, 240, 0.8)),
    rgba(255, 252, 244, 0.72);
}

.explorer-toolbar .eyebrow {
  margin: 0 0 0.22rem;
  font-size: 0.62rem;
}

.explorer-toolbar strong {
  display: block;
  font-size: 1rem;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.explorer-heading {
  max-width: 44rem;
}

.explorer-heading h2,
.subject-stage h2 {
  margin-top: 0.7rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
}

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

.audience-card {
  position: relative;
  display: grid;
  min-height: 14rem;
  align-content: space-between;
  gap: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(7, 29, 67, 0.12);
  border-radius: 1.5rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  background:
    linear-gradient(135deg, rgba(255, 216, 107, 0.28), rgba(255, 252, 244, 0.88) 44%, rgba(215, 244, 239, 0.72)),
    var(--card);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 20px 48px rgba(7, 29, 67, 0.09);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.audience-card:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(207, 231, 255, 0.72), rgba(255, 252, 244, 0.88) 48%, rgba(248, 217, 207, 0.74)),
    var(--card);
}

.audience-card:hover,
.audience-card.selected {
  transform: translateY(-2px);
  border-color: rgba(31, 159, 163, 0.38);
  box-shadow: 0 26px 62px rgba(7, 29, 67, 0.14);
}

.audience-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
}

.audience-card span {
  position: relative;
  z-index: 1;
}

.audience-card-kicker {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.audience-card-meta {
  width: fit-content;
  border-radius: 999px;
  padding: 0.48rem 0.78rem;
  background: rgba(255, 255, 255, 0.66);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.subject-card {
  position: relative;
  display: grid;
  min-height: 12rem;
  align-content: space-between;
  gap: 0.9rem;
  overflow: hidden;
  width: 100%;
  border: 1px solid rgba(7, 29, 67, 0.12);
  border-radius: 1.35rem;
  padding: clamp(1.1rem, 2.4vw, 1.55rem);
  background:
    linear-gradient(145deg, rgba(255, 216, 107, 0.33), rgba(255, 252, 244, 0.92) 54%, rgba(215, 244, 239, 0.62)),
    var(--card);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: 0 18px 42px rgba(7, 29, 67, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.subject-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 0.4rem;
  content: "";
  background: linear-gradient(90deg, var(--gold), var(--teal));
}

.subject-card::after {
  position: absolute;
  right: -1.8rem;
  bottom: -1.8rem;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 999px;
  content: "";
  background: rgba(255, 255, 255, 0.33);
}

.subject-card:nth-child(3n + 2) {
  background:
    linear-gradient(145deg, rgba(207, 231, 255, 0.74), rgba(255, 252, 244, 0.92) 54%, rgba(248, 217, 207, 0.58)),
    var(--card);
}

.subject-card:nth-child(3n + 2)::before {
  background: linear-gradient(90deg, #4f9fd8, var(--berry));
}

.subject-card:nth-child(3n + 3) {
  background:
    linear-gradient(145deg, rgba(215, 244, 239, 0.78), rgba(255, 252, 244, 0.92) 55%, rgba(255, 216, 107, 0.34)),
    var(--card);
}

.subject-card:nth-child(3n + 3)::before {
  background: linear-gradient(90deg, var(--teal), var(--lime));
}

.subject-card:hover,
.subject-card[aria-pressed="true"] {
  transform: translateY(-2px);
  border-color: rgba(31, 159, 163, 0.38);
  box-shadow: 0 24px 56px rgba(7, 29, 67, 0.13);
}

.subject-card > * {
  position: relative;
  z-index: 1;
}

.subject-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  font-weight: 500;
  line-height: 1.05;
}

.subject-card-kicker {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.subject-card-meta {
  width: fit-content;
  border-radius: 999px;
  padding: 0.42rem 0.68rem;
  background: rgba(255, 255, 255, 0.68);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.subject-card-action {
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 850;
}

.subject-stage {
  display: grid;
  grid-template-columns: minmax(16rem, 0.55fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  border: 1px solid rgba(7, 29, 67, 0.1);
  border-radius: 1.5rem;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  background: rgba(255, 252, 244, 0.65);
}

.subject-list {
  margin-top: 0;
}

.result-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border-top: 1px solid rgba(7, 29, 67, 0.09);
  padding-top: 0.4rem;
}

.result-summary strong {
  font-size: 1rem;
}

.result-summary span {
  color: var(--muted);
  font-weight: 700;
}

.filtered-list {
  align-items: stretch;
}

.learning-card {
  position: relative;
  display: grid;
  min-height: 18rem;
  gap: 0.9rem;
  align-content: start;
  overflow: hidden;
  width: 100%;
  border: 1px solid rgba(7, 29, 67, 0.12);
  border-radius: 1.35rem;
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.94), rgba(255, 247, 232, 0.86)),
    var(--card);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.learning-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 0.4rem;
  content: "";
  background: linear-gradient(90deg, var(--gold), var(--teal), var(--coral));
}

.learning-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 159, 163, 0.34);
  box-shadow: 0 24px 58px rgba(7, 29, 67, 0.14);
}

.card-kicker {
  width: fit-content;
  border-radius: 999px;
  padding: 0.36rem 0.65rem;
  background: rgba(31, 159, 163, 0.12);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.learning-card h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.12;
}

.learning-card p {
  display: -webkit-box;
  min-height: 5.4rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-meta-row,
.price-row,
.feature-chips,
.dialog-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-meta-row span,
.price-row span,
.feature-chips small,
.dialog-details span {
  border-radius: 999px;
  padding: 0.42rem 0.62rem;
  background: rgba(7, 29, 67, 0.07);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.price-row {
  align-items: center;
  justify-content: space-between;
}

.price-row strong {
  color: var(--navy);
  font-size: 1.45rem;
}

.feature-chips small {
  background: rgba(241, 181, 29, 0.18);
  color: #806217;
}

.card-action {
  align-self: end;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 850;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(7, 29, 67, 0.38);
}

.dialog-backdrop[hidden] {
  display: none;
}

.dialog-open {
  overflow: hidden;
}

.learning-dialog {
  position: relative;
  width: min(42rem, 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1.45rem;
  padding: clamp(1.5rem, 4vw, 2.3rem);
  background:
    linear-gradient(135deg, rgba(255, 216, 107, 0.2), transparent 38%),
    linear-gradient(225deg, rgba(31, 159, 163, 0.18), transparent 42%),
    #fffaf0;
  box-shadow: 0 34px 90px rgba(7, 29, 67, 0.34);
}

.learning-dialog h2 {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.dialog-preview-note {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.65;
}

.dialog-description-block {
  margin: 1rem 0 1.2rem;
  border: 1px solid rgba(31, 159, 163, 0.2);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  background:
    linear-gradient(135deg, rgba(255, 216, 107, 0.22), transparent 46%),
    rgba(255, 255, 255, 0.72);
}

.dialog-description-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dialog-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  white-space: pre-line;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(7, 29, 67, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.45);
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 3.5rem) 1.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(18rem, 1.35fr) repeat(3, minmax(8rem, 0.55fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 68px;
  height: 56px;
  object-fit: contain;
}

.footer-brand strong {
  display: block;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.footer-brand p {
  max-width: 22rem;
  margin: 0.45rem 0 0;
  line-height: 1.65;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 0.58rem;
}

.footer-heading {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.22rem;
}

.footer button {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
  text-align: left;
}

.footer button:hover {
  text-decoration: underline;
  text-underline-offset: 0.22rem;
}

.cookie-consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  max-width: min(50rem, calc(100vw - 2rem));
  border: 1px solid rgba(7, 29, 67, 0.16);
  border-radius: 1.25rem;
  background:
    linear-gradient(135deg, rgba(255, 216, 107, 0.18), transparent 42%),
    #fffaf0;
  box-shadow: 0 24px 72px rgba(7, 29, 67, 0.24);
  padding: 1rem;
}

.cookie-consent h2,
.cookie-modal h2,
.cookie-option strong {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

.cookie-consent p,
.cookie-option span,
.cookie-modal .muted {
  margin: 0.25rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.cookie-consent a {
  display: inline-flex;
  margin-top: 0.35rem;
  color: var(--teal);
  font-weight: 800;
}

.cookie-consent-actions,
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(7, 29, 67, 0.42);
  padding: 1rem;
}

.cookie-modal {
  position: relative;
  display: grid;
  width: min(38rem, 100%);
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 1.45rem;
  background:
    linear-gradient(135deg, rgba(255, 216, 107, 0.16), transparent 42%),
    linear-gradient(225deg, rgba(31, 159, 163, 0.14), transparent 42%),
    #fffaf0;
  box-shadow: 0 34px 90px rgba(7, 29, 67, 0.34);
  padding: clamp(1.4rem, 4vw, 2rem);
}

.cookie-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(7, 29, 67, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(7, 29, 67, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.56);
  padding: 1rem;
}

.cookie-option > span,
.cookie-option > div {
  display: grid;
  gap: 0.25rem;
}

.cookie-option input {
  width: 1.25rem;
  height: 1.25rem;
}

.cookie-option em {
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(31, 159, 163, 0.12);
  color: var(--teal);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 850;
  padding: 0.42rem 0.65rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(7, 29, 67, 0.1);
  padding-top: 1.1rem;
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links,
  .nav-actions {
    flex-wrap: wrap;
  }

  .feature-grid,
  .listing-grid,
  .split,
  .audience-grid,
  .subject-stage {
    grid-template-columns: 1fr;
  }

  .subject-stage {
    gap: 1rem;
  }

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

@media (max-width: 640px) {
  .brand img {
    width: 58px;
  }

  .brand-title {
    font-size: 1.45rem;
  }

  .hero {
    min-height: 600px;
  }

  .section {
    padding-inline: 1rem;
  }

  .audience-card {
    min-height: 12rem;
  }

  .subject-card-grid {
    grid-template-columns: 1fr;
  }

  .subject-card {
    min-height: 10rem;
  }

  .status-panel,
  .empty-panel {
    padding: 2rem 1.25rem;
  }

  .learning-card {
    min-height: 16rem;
  }

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

  .cookie-consent {
    left: 1rem;
    grid-template-columns: 1fr;
  }

  .cookie-consent-actions,
  .cookie-modal-actions {
    justify-content: stretch;
  }

  .cookie-consent-actions > *,
  .cookie-modal-actions > * {
    flex: 1 1 100%;
  }
}

@media (max-width: 720px) {
  .footer-main,
  .footer-bottom {
    display: grid;
    grid-template-columns: 1fr;
  }
}
