:root {
  color-scheme: dark;
  --background: #0f1113;
  --surface: #1c1d20;
  --line: #ffffff12;
  --text: #f7f7f8;
  --muted: #a2a4a6;
  --lime: #d1fe17;
  --pink: #ff005b;
  background: var(--background);
  color: var(--text);
  font: 400 14px/1.45 Inter, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, summary { font: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip {
  position: fixed;
  z-index: 5;
  top: 8px;
  left: 12px;
  transform: translateY(-150%);
  border-radius: 8px;
  padding: 10px 14px;
  color: #141714;
  background: var(--lime);
}
.skip:focus { transform: none; }

.masthead {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 22px;
  min-height: 54px;
  padding: 8px 16px;
  background: var(--background);
}
.wordmark {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  color: #f7f7f8;
  font: 700 16px/1 'Space Grotesk', Inter, Arial, sans-serif;
  letter-spacing: -.035em;
}
.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: #fafafa;
  color: #1a1a1a;
  font: 700 24px/1 'Space Grotesk', Inter, Arial, sans-serif;
}
.masthead nav, .site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.masthead nav a, .site-footer nav a { color: #a3a4a4; }
.masthead nav a:hover, .site-footer nav a:hover { color: #fff; }
.masthead .nav-tariffs {
  padding: 7px 11px;
  border-radius: 10px;
  color: #f2f2f2;
  background: #ffffff0a;
  box-shadow: inset 0 1px 1px #ffffff10;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0 14px;
  min-height: 36px;
  border: 1px solid #ffffff12;
  border-radius: 10px;
  font: 600 13px/1.2 Inter, Arial, sans-serif;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease, background-color .15s ease;
}
.button:hover { filter: brightness(1.1); }
.button:active { transform: translateY(1px); }
.button-lime {
  border-color: #e5ff5540;
  color: #161913;
  background: var(--lime);
  box-shadow: inset 0 -2px 0 #0003;
}
.header-cta { margin-left: auto; white-space: nowrap; }
.course-hero {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: start center;
  padding: 48px clamp(13px, 2.4vw, 44px) 40px;
  text-align: center;
  background:
    linear-gradient(180deg, var(--background) 0%, #0b0c0d00 27%, #0b0c0d00 69%, var(--background) 100%),
    radial-gradient(ellipse 49% 57% at 50% 42%, #ff2a775c 0%, #4f0926a0 32%, transparent 75%),
    #0b0c0d;
}
.course-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  background:
    url('assets/hero-grid.png'),
    linear-gradient(155deg, transparent 39%, #ff2a7744 41%, transparent 43% 46%, #ff2a7752 48%, transparent 51%);
  background-position: center 3px;
  background-size: 67px 67px, 100% 100%;
  mask-image: radial-gradient(ellipse 62% 59% at 50% 44%, #000 8%, #0005 65%, transparent 99%);
}

.hero-content { width: min(100%, 1380px); }
.hero-title { position: relative; isolation: isolate; }

.hero-heading,
.hero-echo {
  font-family: 'Space Grotesk', Inter, Arial, sans-serif;
  font-size: max(36px, min(calc((100vw - 56px) * .156), 71.04px));
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: .8;
  text-transform: uppercase;
  overflow-wrap: normal;
}

.hero-heading { position: relative; z-index: 1; }
.hero-heading > span,
.hero-echo > span {
  display: block;
  text-wrap: balance;
}
.hero-heading > span {
  background: radial-gradient(ellipse at 50% 35%, #fff 35%, #ffdbe8 63%, #ffa3bb 100%);
  background-clip: text;
  color: transparent;
}
.hero-echoes { position: absolute; inset: 0; pointer-events: none; }
.hero-echo {
  position: absolute;
  inset: 0;
  transform: scale(var(--echo-scale));
  color: transparent;
  -webkit-text-stroke: 1px var(--echo-color);
}
.hero-glow {
  color: #ff2a77;
  opacity: .8;
  filter: blur(.12em);
  mix-blend-mode: screen;
  -webkit-text-stroke: 0;
}
.screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.countdown { margin-top: 28px; }
.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.countdown-tile {
  position: relative;
  isolation: isolate;
  width: 80px;
  height: 84px;
  border-radius: 14px;
  perspective: 320px;
  background: #180b10;
  box-shadow: 0 12px 32px #ff2a7752, 0 2px 8px #ff2a7740;
  font: 700 46px/1 'Space Grotesk', Inter, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1.2px;
}
.countdown-tile::before,
.countdown-tile::after {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  content: '';
}
.countdown-tile::before {
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 -1px #ff5a968c, inset 0 0 0 1px #ff2a7738;
}
.countdown-tile::after { inset: 50% 0 auto; border-top: 1px solid #0b0709; }
.countdown-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
  backface-visibility: hidden;
  transform-origin: center;
}
.countdown-upper {
  clip-path: inset(0 0 50% 0 round 14px 14px 0 0);
  background: linear-gradient(#1d1013, #180b10 50%);
}
.countdown-lower {
  clip-path: inset(50% 0 0 0 round 0 0 14px 14px);
  background: linear-gradient(#1a0a10 50%, #24091a);
}
.countdown-face > span {
  background: linear-gradient(180deg, #fff 40%, #ffb3cf);
  background-clip: text;
  color: transparent;
}
.countdown-leaf { z-index: 2; }
.countdown-label {
  display: block;
  margin-top: 8px;
  color: #ffa8ccc7;
  font: 500 12px/14px Inter, Arial, sans-serif;
  letter-spacing: .1px;
}

@media (max-width: 639px) {
  .course-hero { padding-inline: 7px; padding-bottom: 43px; }
  .course-hero::before { background-size: 59px 59px, 100% 100%; }
  .hero-heading, .hero-echo { letter-spacing: -.068em; }
  .countdown-grid { gap: 8px; }
  .countdown-tile { width: 60px; height: 64px; border-radius: 10px; font-size: 34px; }
  .countdown-upper { clip-path: inset(0 0 50% 0 round 10px 10px 0 0); }
  .countdown-lower { clip-path: inset(50% 0 0 0 round 0 0 10px 10px); }
}

.shell { width: min(1072px, calc(100% - 48px)); margin-inline: auto; }
#program, #main-content { scroll-margin-top: 76px; }
.section-head h2 {
  font-size: clamp(29px, 3.5vw, 40px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.035em;
  color: #f1f1f2;
}
.section-head p { margin-top: 10px; max-width: 570px; color: var(--muted); }
.overview, .program { padding-block: clamp(34px, 5.6vw, 76px); border-top: 1px solid var(--line); }
.outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}
.outcomes article {
  padding: 19px;
  border: 1px solid #ffffff0f;
  border-radius: 16px;
  background: #1b1d1f;
}
.outcomes h3 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.outcomes p, .lesson-body { margin-top: 7px; color: var(--muted); }

.lessons {
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: lesson;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #17191b;
}
.lesson { counter-increment: lesson; }
.lesson + .lesson { border-top: 1px solid var(--line); }
.lesson summary {
  display: grid;
  grid-template-columns: 28px 1fr 16px;
  align-items: center;
  gap: 11px;
  padding: 16px;
  min-height: 52px;
  list-style: none;
  cursor: pointer;
  transition: background .15s ease;
}
.lesson summary::-webkit-details-marker { display: none; }
.lesson summary:focus-visible { outline-offset: -3px; }
.lesson summary:hover { background: #ffffff09; }
.lesson summary::before {
  content: counter(lesson, decimal-leading-zero);
  color: #b3b4b5;
  font-size: 12px;
}
.lesson summary::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #d5d6d6;
  border-bottom: 1.5px solid #d5d6d6;
  transform: rotate(45deg);
}
.lesson details[open] summary::after { transform: rotate(225deg); }
.lesson-body { margin: 0; padding: 0 16px 17px 55px; }
.lesson-body p + p { margin-top: 7px; }
.lesson-body strong { color: #e4e4e4; font-weight: 600; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  border-top: 1px solid var(--line);
  padding-block: 18px 24px;
}
.site-footer .brand-mark { width: 27px; height: 27px; font-size: 19px; }
.site-footer nav a { font-size: 13px; }

.plan-dialog {
  width: min(464px, calc(100% - 32px));
  border: 1px solid #ffffff11;
  border-radius: 24px;
  padding: 0;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 26px 90px #000b;
}
.plan-dialog::backdrop { background: #000c; }
.dialog-panel { position: relative; padding: 30px 28px 27px; }
.dialog-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 29px;
  height: 29px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: #ffffff10;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.dialog-x:hover { background: #ffffff25; }
.dialog-panel h2 { margin-right: 24px; font-size: 27px; font-weight: 600; letter-spacing: -.045em; }
.dialog-price { margin-top: 6px; color: var(--lime); font-size: 25px; font-weight: 650; letter-spacing: -.045em; }
#selected-description { margin-top: 18px; color: var(--muted); }
.dialog-done { width: 100%; min-height: 44px; margin-top: 20px; }

@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .masthead { gap: 13px; min-height: 50px; padding-inline: 12px; }
  .masthead .wordmark { font-size: 14px; }
  .masthead nav { margin-left: auto; gap: 7px; font-size: 12px; }
  .masthead .nav-tariffs { padding-inline: 8px; }
  .header-cta { display: none; }
  .outcomes { grid-template-columns: 1fr; gap: 9px; margin-top: 17px; }
  .outcomes article { padding: 13px 14px; border-radius: 12px; }
  .lesson summary { padding-inline: 12px; grid-template-columns: 22px 1fr 11px; gap: 9px; }
  .lesson-body { padding-left: 43px; }
  .plan-dialog {
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #0a0a0a;
  }
  .dialog-panel { display: flex; min-height: 100%; flex-direction: column; justify-content: center; padding-inline: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.tariffs.shell {
  width: min(1072px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: 0 clamp(76px, 9vw, 132px);
  scroll-margin-top: 82px;
}

.tariffs .section-head {
  margin: 0 0 clamp(27px, 3.2vw, 47px);
}

.tariffs .section-head h2 {
  font-size: clamp(31px, 3.3vw, 40px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.03em;
  background: linear-gradient(180deg, #fff, #ffffffb3);
  background-clip: text;
  color: transparent;
}

.tariffs .section-head p {
  margin: 10px 0 0;
  color: #9b9d9f;
  font-size: 15px;
  line-height: 1.55;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.plan {
  --plan-accent: #f7f7f7;
  min-width: 0;
  color: #f5f5f5;
}

.plan-featured { --plan-accent: #d6ff00; }
.plan-year { --plan-accent: #ff087c; }

.plan-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 250px;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(145deg, #242626, #191b1c 65%, #292c2e);
}

.plan-featured .plan-head {
  background: radial-gradient(ellipse at 50% 0%, #f5ff88, #dfff3e 30%, #94b120 65%, #475b0a);
  box-shadow: 0 3px 9px -2px #8eb62580, inset 0 -3px 7px #5d771c91;
}

.plan-year .plan-head {
  background: linear-gradient(170deg, #ff8cd6, #ff4297 42%, #cc1d64 69%, #681638);
  box-shadow: 0 3px 9px -2px #e3317966, inset 0 -4px 8px #5912298c;
}

.plan-head h3 {
  margin: 0 2px;
  font-size: clamp(24px, 2.55vw, 36px);
  font-weight: 500;
  letter-spacing: -.058em;
  line-height: 1.1;
}

.plan-description {
  margin: 7px 2px 0;
  font-size: 14px;
  line-height: 1.4;
  color: #a4a5a7;
}

.plan-featured .plan-description,
.plan-year .plan-description { color: #ffffffd6; }

.plan-price {
  margin: auto 2px 10px;
  padding-top: 16px;
  color: #fff;
  font-size: clamp(26px, 2.7vw, 36px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.plan-button {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  border: 1px solid #f1f1f1;
  border-radius: 12px;
  background: linear-gradient(180deg, #fafafa, #fff 65%, #f4f4f4);
  box-shadow: 0 4px 16px #0000001f, inset -1px -2px 6px #0003;
  color: #181818;
  font: 600 14px/1.2 Inter, Arial, sans-serif;
  padding: 8px 12px;
  cursor: pointer;
  transition: filter 160ms ease, transform 160ms ease;
}

.plan-button:hover { filter: brightness(.93); }
.plan-button:active { transform: translateY(1px); }
.plan-button:focus-visible, .plan-more > summary:focus-visible {
  outline: 2px solid #d6ff00;
  outline-offset: 3px;
}

.plan-includes {
  padding: 18px 16px 0;
  font-size: 14px;
  line-height: 1.45;
}

.plan-label {
  margin: 0 0 10px;
  color: #8a8c8d;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.plan-lessons {
  position: relative;
  margin-top: 22px;
  padding-top: 17px;
}

.plan-lessons::before {
  position: absolute;
  inset: 0 -16px auto;
  border-top: 1px solid #222426;
  content: '';
}

.plan-features {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-features li {
  position: relative;
  min-height: 19px;
  padding-inline-start: 30px;
}

.plan-features li::before {
  position: absolute;
  top: 3px;
  left: 6px;
  width: 6px;
  height: 11px;
  border-right: 1.6px solid #85878a;
  border-bottom: 1.6px solid #85878a;
  transform: rotate(42deg);
  content: '';
}

.plan-features strong { font-weight: 600; }
.plan-features:not(.plan-curriculum) li:first-child strong { color: var(--plan-accent); }
.plan-featured .plan-features:not(.plan-curriculum) li:first-child::before,
.plan-year .plan-features:not(.plan-curriculum) li:first-child::before { border-color: var(--plan-accent); }

.plan-more {
  align-self: start;
  margin: 16px 0 0;
  color: #b9babb;
}

.plan-more > summary {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid #2b2d2e;
  border-radius: 12px;
  color: #f7f7f7;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.plan-more > summary::-webkit-details-marker { display: none; }

.plan-more > summary::after {
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  content: '';
}

.plan-more[open] > summary::after { transform: translateY(3px) rotate(225deg); }

.plan-more > summary:hover {
  background: #212325;
  border-color: #3e4042;
}

.plan-more ol,
.plan-more ul {
  margin: 13px 0 0;
  padding-inline-start: 21px;
}

.plan-more li + li { margin-top: 8px; }

@media (max-width: 960px) {
  .plans { gap: 18px; }
  .plan-head h3 { font-size: clamp(22px, 3vw, 32px); }
}

@media (max-width: 760px) {
  .tariffs.shell { width: min(100% - 12px, 490px); }
  .tariffs .section-head { padding-inline: 16px; }
  .tariffs .section-head p { margin-top: 13px; font-size: 14px; }

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

  .plan {
    padding: 17px 16px 13px;
    border: 1px solid #282a2b;
    border-radius: 20px;
    background: #1b1d1e;
    box-shadow: 0 0 0 4px #141617;
  }

  .plan-featured {
    background: radial-gradient(140% 70% at 50% 100%, #d1fe1733, transparent), #1b1d1e;
    border-color: #373d25;
  }

  .plan-year {
    background: radial-gradient(140% 70% at 50% 100%, #ff005b33, transparent), #1b1d1e;
    border-color: #482b3b;
  }

  .plan .plan-head {
    min-height: 0;
    padding: 0;
    background: none;
    box-shadow: none;
  }

  .plan-head h3 {
    margin: 0;
    font-family: 'Space Grotesk', Inter, Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.04em;
    text-transform: uppercase;
  }

  .plan .plan-description {
    margin: 6px 0 0;
    color: #a3a5a6;
    font-size: 12px;
  }

  .plan-price {
    margin: 12px 0 11px;
    padding-top: 0;
    font: 700 28px/32px 'Space Grotesk', Inter, Arial, sans-serif;
  }

  .plan-button {
    min-height: 48px;
    border-radius: 8px;
    font: 600 16px/20px Inter, Arial, sans-serif;
    letter-spacing: -.025em;
  }

  .plan-featured .plan-button {
    border-color: #d1fe17;
    background: linear-gradient(180deg, #d1fe17, #ffff14);
    box-shadow: inset 0 -3px 1px #a7b800, 0 2px 3px #0003;
  }

  .plan-year .plan-button {
    border-color: #ff087c;
    background: linear-gradient(182.4deg, transparent 12.7%, #fa4ae7 75.8%), #ff005b;
    box-shadow: inset 0 -3px 1px #a91c70, 0 2px 3px #0003;
    color: #fff;
  }

  .plan-includes { padding: 13px 0 0; font-size: 13px; }
  .plan-label { margin-bottom: 8px; font-size: 12px; }
  .plan-lessons { margin-top: 15px; padding-top: 12px; }
  .plan-lessons::before { inset-inline: 0; border-color: #ffffff15; }
  .plan-features { gap: 7px; }
  .plan-features li { padding-inline-start: 20px; }
  .plan-features li::before { left: 4px; width: 4px; height: 8px; border-width: 1px; }

  .plan-more { margin-top: 11px; }
  .plan-more > summary {
    justify-content: flex-start;
    flex-direction: row-reverse;
    width: max-content;
    max-width: 100%;
    padding-inline: 4px;
    border: 0;
    color: #9b9d9f;
    font-weight: 500;
  }
  .plan-more > summary:hover { background: transparent; color: #f5f5f5; }
}

@media (prefers-reduced-motion: reduce) {
  .plan-button, .plan-more > summary { transition: none; }
}

.plan-more-close, .plan-more[open] .plan-more-open { display: none; }
.plan-more[open] .plan-more-close { display: inline; }
.plan-lesson-details p { margin-top: 4px; color: #a7a8a9; }

@supports (grid-template-rows: subgrid) {
  @media (min-width: 761px) {
    .plans { row-gap: 0; align-items: stretch; }
    .plan, .plan-includes {
      display: grid;
      grid-template-rows: subgrid;
      row-gap: 0;
    }
    .plan { grid-row: span 4; }
    .plan-includes { grid-row: span 3; }
  }
}
