:root {
  --bg: #fffdf5;
  --text: #2f2a3b;
  --muted: #7a7483;
  --accent: #6c63ff;
  --accent-soft: #ffd58c;
  --card: #ffffff;
  --shadow: 0 25px 60px rgba(26, 18, 49, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.sticky-actions {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 999;
}

.sticky-apple {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: transparent;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sticky-apple::before {
  content: "";
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05), inset 0 1px 4px rgba(255, 255, 255, 0.08);
}

.sticky-apple:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.sticky-menu {
  position: absolute;
  top: 84px;
  right: 0;
  display: grid;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 1rem;
  padding: 0.75rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  min-width: 160px;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sticky-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.sticky-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.8rem;
  border: none;
  background: rgba(108, 99, 255, 0.08);
  color: #1d1a26;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.sticky-link:hover {
  transform: translateY(-1px);
  background: rgba(108, 99, 255, 0.14);
  box-shadow: 0 8px 16px rgba(108, 99, 255, 0.2);
}

@media (max-width: 640px) {
  .sticky-actions {
    top: 1rem;
    right: 1rem;
  }

  .sticky-apple {
    width: 56px;
    height: 56px;
    border-width: 2px;
  }

  .sticky-apple::before {
    width: 40px;
    height: 40px;
  }

  .sticky-menu {
    top: 68px;
    min-width: 140px;
  }
}

[hidden] {
  display: none !important;
}

.back-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.back-link.top-right {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  font-size: 0.95rem;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: clamp(2rem, 6vw, 4rem);
  min-height: 60vh;
  align-items: center;
  position: relative;
}

.hero-content .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  margin: 0.5rem 0 1rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tag {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(108, 99, 255, 0.12);
  color: var(--accent);
}

.tag-outline {
  background: transparent;
  border: 1px solid rgba(108, 99, 255, 0.4);
}

.hero-content button {
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.hero-highlights {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.hero-highlights li {
  background: var(--card);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow);
}

.highlight-heading {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.25rem;
}

.hero-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(47, 42, 59, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--text);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-highlights h3 {
  font-size: 1rem;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-microcopy {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-image {
  width: 100%;
  min-height: 320px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(20, 16, 43, 0.85), rgba(108, 99, 255, 0.5));
  z-index: 0;
}

.hero-image {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-stats {
  position: absolute;
  inset: auto 1.5rem 1.5rem 1.5rem;
  color: #fff;
  display: grid;
  gap: 0.5rem;
  z-index: 1;
}

.hero-stats span {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
}

main {
  padding: clamp(1.5rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.snapshot-card {
  margin: 0 clamp(1.5rem, 5vw, 4rem);
  background: var(--card);
  border-radius: 999px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  padding: 1rem 1.5rem;
}

.snapshot-card article {
  display: flex;
  flex-direction: column;
  text-align: center;
  border-left: 1px solid rgba(47, 42, 59, 0.08);
}

.snapshot-card article:first-child {
  border-left: none;
}

.snapshot-card p {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--muted);
}

.snapshot-card h3 {
  font-size: 1.3rem;
  margin-top: 0.2rem;
}

.details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.details article {
  background: var(--card);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow);
}

.details p {
  color: var(--muted);
  font-size: 0.9rem;
}

.details small {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.value-prop {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

.value-list {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.value-list li {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}

.value-list li::before {
  content: "✓";
  margin-right: 0.5rem;
  color: var(--accent);
  font-weight: 600;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.value-grid article {
  border-radius: 18px;
  background: var(--card);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.heading-subcopy {
  max-width: 460px;
  color: var(--muted);
  font-size: 0.95rem;
}

.lessons h2 {
  margin-bottom: 1rem;
}

#topics-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.topic-card {
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 1rem 1.25rem;
  border: 1px solid rgba(47, 42, 59, 0.05);
}

.topic-card.locked {
  opacity: 0.7;
  border-style: dashed;
  cursor: not-allowed;
}

.topic-card.locked summary {
  cursor: not-allowed;
}

.topic-card summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
}

.topic-card summary::-webkit-details-marker {
  display: none;
}

.topic-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(108, 99, 255, 0.12);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.topic-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.topic-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
}

.lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  background: rgba(225, 99, 71, 0.15);
  color: #d14343;
  font-size: 0.75rem;
  font-weight: 600;
  width: fit-content;
}

.topic-card[open] {
  border-color: rgba(108, 99, 255, 0.3);
}

.journey {
  background: var(--card);
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.journey-steps article {
  background: rgba(108, 99, 255, 0.08);
  border-radius: 18px;
  padding: 1rem 1.2rem;
}

.topic-card ul {
  margin-top: 0.8rem;
  list-style: disc inside;
  color: var(--muted);
}

.support {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  background: rgba(108, 99, 255, 0.07);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 32px;
}

.support-card,
.testimonial {
  border-radius: 24px;
  background: var(--card);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}

.support-card h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 0.3rem;
}

.support-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.support-grid article {
  background: #f9f8ff;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(47, 42, 59, 0.08);
}

.testimonial blockquote {
  font-size: 1.1rem;
  margin: 1rem 0;
  font-weight: 600;
}

.testimonial .author {
  color: var(--muted);
}

.cta {
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.cta button {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  background: #fff;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 15px 40px rgba(26, 18, 49, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
}

.floating-cta svg {
  width: 26px;
  height: 26px;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.floating-cta:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.difficulty-view {
  padding: clamp(2rem, 6vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.difficulty-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.pathway-section {
  border-radius: 28px;
  background: var(--card);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pathway-heading {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.pathway-grid article {
  border-radius: 20px;
  border: 1px solid rgba(47, 42, 59, 0.08);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pathway-grid ul {
  list-style: none;
  margin-top: 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.pathway-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  counter-reset: stage;
}

.pathway-steps li {
  border-radius: 18px;
  border: 1px solid rgba(108, 99, 255, 0.2);
  padding: 1.25rem;
  position: relative;
}

.pathway-steps li::before {
  counter-increment: stage;
  content: counter(stage);
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.6;
}

.pathway-steps h3 {
  margin-bottom: 0.3rem;
}

.ibdp-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.split-column {
  border-radius: 28px;
  background: var(--card);
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: var(--shadow);
  border: 1px solid rgba(47, 42, 59, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.split-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.split-pill {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.split-grid {
  margin-top: 0.5rem;
}

.split-grid.difficulty-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.split-empty {
  text-align: center;
  color: var(--muted);
}

.difficulty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.difficulty-card {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.difficulty-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.difficulty-card .card-body {
  padding: 1.3rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.difficulty-card .chip-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.difficulty-card .chip-row span {
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: rgba(108, 99, 255, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
}

.difficulty-card a {
  align-self: flex-start;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  margin-top: auto;
}

.difficulty-empty {
  text-align: center;
  color: var(--muted);
}

@media (max-width: 600px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 1.5rem;
  }

  .hero-image {
    min-height: 220px;
  }

  .hero-stats {
    position: static;
    margin-top: auto;
  }

  .snapshot-card {
    border-radius: 24px;
    margin: 1.5rem;
  }

  .snapshot-card article {
    border: none;
  }

  #topics-list {
    grid-template-columns: 1fr;
  }

  .floating-cta {
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .difficulty-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .pathway-steps {
    grid-template-columns: 1fr;
  }
}
