/* Landing page only. */

/* =========================================================
   Landing
   ========================================================= */

.hero {
  padding-block: var(--space-xl) var(--space-2xl);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 66rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    gap: var(--space-2xl);
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: var(--space-s);
}

.hero__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--violet) 50%, transparent);
  animation: pulse 2.4s var(--ease-out) infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--violet) 45%, transparent); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero__title {
  font-size: clamp(2.4rem, 1.4rem + 3.8vw, 5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-m);
  max-width: 17ch;
}

.hero__mark {
  background: linear-gradient(transparent 60%, color-mix(in srgb, var(--brand-gold) 70%, transparent) 60%, color-mix(in srgb, var(--brand-gold) 70%, transparent) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: 0.06em;
}

@media (prefers-color-scheme: dark) {
  .hero__mark {
    /* On dark paper a thin bright stroke reads better than a muddy band. */
    background: linear-gradient(transparent 86%, var(--brand-gold) 86%, var(--brand-gold) 95%, transparent 95%);
  }
}

.hero__lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: var(--space-m);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-m);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: var(--space-s) 0 0;
  list-style: none;
  border-top: 1px dashed var(--line-strong);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-soft);
}

.hero__facts .annot {
  color: var(--violet-text);
  margin-right: 0.3rem;
}

.hero__demo {
  margin: 0;
  padding: var(--space-m);
}

@media (min-width: 66rem) {
  .hero__demo {
    transform: rotate(0.6deg);
  }
}

.hero__demo-cap {
  display: grid;
  gap: 0.25rem;
  margin-bottom: var(--space-xs);
}

.hero__demo-title {
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
}

/* The demo is a real diagram block; drop its own frame inside the hero sheet. */
.hero__demo .block--diagram {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: none;
}

.hero__demo .block__head {
  display: none;
}

.hero__demo-skeleton {
  height: 18rem;
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--space-2xl);
}

.section__head {
  max-width: 46rem;
  margin-bottom: var(--space-l);
}

.section__head .annot {
  display: block;
  margin-bottom: var(--space-2xs);
}

.section__lede {
  font-size: var(--step-1);
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ---------- Bento: how a lesson works ---------- */

.bento {
  display: grid;
  gap: var(--space-s);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 42rem) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__tile--wide { grid-column: span 2; }
}

@media (min-width: 66rem) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.bento__tile {
  --tile-accent: var(--ink-soft);
  display: flex;
  flex-direction: column;
  padding: var(--space-m);
  background: var(--sheet);
  border: 1px solid var(--line);
  border-top: 3px solid var(--tile-accent);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) ease;
}

.bento__tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
}

.bento__tile h3 {
  font-size: var(--step-2);
  margin-bottom: 0.4rem;
}

.bento__tile p:last-child {
  margin: 0;
  color: var(--ink-soft);
}

.bento__tile .annot {
  margin: 0 0 0.3rem;
}

.tone-violet { --tile-accent: var(--violet); }
.tone-ai { --tile-accent: var(--ai-stroke); }
.tone-key { --tile-accent: var(--key-stroke); }

.bento__art {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  height: 7.5rem;
  margin-bottom: var(--space-s);
  padding: var(--space-s);
  border-radius: var(--radius-m);
  background-color: var(--sheet-sunk);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px);
  background-size: 16px 16px;
  overflow: hidden;
}

/* A: boxes and arrows */
.art-steps {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  align-content: center;
  gap: 0;
}

.art-steps__box {
  width: clamp(3rem, 8vw, 5rem);
  height: 2.4rem;
  border-radius: 8px;
  border: 2px solid var(--app-stroke);
  background: var(--app-tint);
  opacity: 0.45;
}

.art-steps__box.is-on {
  opacity: 1;
  border-color: var(--ai-stroke);
  background: var(--ai-tint);
  box-shadow: 4px 4px 0 var(--violet);
}

.art-steps__line {
  width: clamp(1.25rem, 4vw, 3rem);
  height: 2px;
  background: var(--ink-faint);
  opacity: 0.45;
}

.art-steps__line.is-on {
  opacity: 1;
  background: repeating-linear-gradient(90deg, var(--violet) 0 7px, transparent 7px 11px);
}

.art-steps__dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin-top: 0.9rem;
}

.art-steps__dots i {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--sheet);
}

.art-steps__dots i.is-on {
  border-color: var(--violet);
  background: var(--violet);
}

/* B: code lines */
.art-code span {
  display: block;
  height: 0.55rem;
  width: 80%;
  border-radius: 3px;
  background: var(--line-strong);
}

.art-code span:nth-child(2) { width: 60%; }
.art-code span:nth-child(5) { width: 45%; }

.art-code span.is-lit {
  width: 92%;
  height: 0.95rem;
  background: var(--violet-tint);
  border-left: 3px solid var(--violet);
}

.art-code span.is-lit.is-short { width: 70%; }

/* C: run */
.art-run {
  background: #0e1828;
  background-image: none;
}

.art-run__code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #e6ecf6;
}

.art-run__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.art-run__btn,
.art-run__ok {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
}

.art-run__btn { background: var(--brand-violet); color: #fff; }
.art-run__ok { color: #86efac; border: 1px solid #86efac; }

/* D: quiz */
.art-quiz__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: var(--sheet);
  font-size: 0.85rem;
  font-weight: 600;
}

.art-quiz__row i {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
}

.art-quiz__row.is-right {
  border-color: var(--ok);
  background: var(--ok-tint);
  color: var(--ok);
}

.art-quiz__row.is-right i {
  border-color: var(--ok);
  background: var(--ok);
}

/* E: explain */
.art-explain span {
  display: block;
  height: 0.5rem;
  width: 85%;
  border-radius: 3px;
  background: var(--line-strong);
}

.art-explain span.is-short { width: 55%; }

.art-explain .art-explain__q {
  height: auto;
  width: auto;
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  background: var(--key-tint);
  border: 1px solid var(--key-stroke);
  color: var(--key);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

/* ---------- Course card + 10-week path ---------- */

.course-card {
  padding: var(--space-l);
  border-radius: var(--radius-l);
}

@media (max-width: 30rem) {
  .course-card { padding: var(--space-m) var(--space-s); }
}

.course-card__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-m);
  margin-bottom: var(--space-l);
}

@media (min-width: 56rem) {
  .course-card__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

.course-card__title {
  font-size: var(--step-4);
  font-weight: 800;
  margin-bottom: var(--space-2xs);
}

.course-card__tagline {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0;
  line-height: 1.45;
}

.course-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.course-card__stats > div {
  padding: var(--space-xs) clamp(0.6rem, 2vw, 1rem);
  border-left: 1px solid var(--line);
  min-width: 0;
}

@media (min-width: 56rem) {
  .course-card__stats > div {
    min-width: 7rem;
  }
}

.course-card__stats > div:first-child {
  border-left: 0;
}

.course-card__stats dd {
  margin: 0.1rem 0 0;
  font-family: var(--font-mono);
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.course-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  margin-top: var(--space-l);
  padding-top: var(--space-m);
  border-top: 1px dashed var(--line-strong);
}

.course-card__note {
  margin: 0;
  font-size: var(--step--1);
  color: var(--ink-soft);
  line-height: 2;
}

/* The path: vertical on phones, a 5-column route map on wide screens. */
.path {
  --marker: 2.75rem;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.path__item {
  position: relative;
  display: grid;
  grid-template-columns: var(--marker) minmax(0, 1fr);
  gap: var(--space-s);
  padding-bottom: var(--space-m);
}

/* Connecting line (vertical) */
.path__item::before {
  content: "";
  position: absolute;
  left: calc(var(--marker) / 2 - 1px);
  top: var(--marker);
  bottom: 0;
  width: 2px;
  background: var(--line-strong);
}

.path__item:last-child::before {
  display: none;
}

.path__item.is-soon::before {
  background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 11px);
}

.path__marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--marker);
  height: var(--marker);
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--sheet);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.path__item.is-free .path__marker {
  border-color: var(--ok);
  color: var(--ok);
  background: var(--ok-tint);
}

.path__item.is-pro .path__marker,
.path__item.is-open .path__marker {
  border-color: var(--violet);
  color: var(--violet-text);
  background: var(--violet-tint);
}

.path__item.is-soon .path__marker {
  border-style: dashed;
}

.path__item.is-here .path__marker {
  background: var(--violet);
  border-color: var(--violet);
  color: var(--on-accent);
  animation: pulse 2.4s var(--ease-out) infinite;
}

.path__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin: 0.55rem 0 0.25rem;
}

.path__title {
  font-size: var(--step-1);
  margin-bottom: 0.25rem;
}

.path__summary {
  margin: 0 0 0.35rem;
  color: var(--ink-soft);
  font-size: var(--step--1);
  line-height: 1.5;
}

.path__item.is-soon .path__title {
  color: var(--ink-soft);
}

.path__meta {
  margin: 0;
}

@media (min-width: 66rem) {
  .path {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    row-gap: var(--space-l);
  }

  .path__item {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--marker) auto;
    gap: var(--space-xs);
    padding: 0 var(--space-s) 0 0;
  }

  /* Connecting line (horizontal) through the markers, ending at the end of each row. */
  .path__item::before {
    left: var(--marker);
    right: 0;
    top: calc(var(--marker) / 2 - 1px);
    bottom: auto;
    width: auto;
    height: 2px;
    display: block;
  }

  .path__item.is-soon::before {
    background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 11px);
  }

  .path__item:nth-child(5n)::before,
  .path__item:last-child::before {
    display: none;
  }
}

.path__loading {
  display: grid;
  gap: var(--space-s);
}

.path__loading .skeleton {
  height: 4rem;
}

/* ---------- Who teaches this ---------- */

.who {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 56rem) {
  .who {
    grid-template-columns: minmax(14rem, 20rem) minmax(0, 40rem);
    justify-content: center;
  }
}

.who__card {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: var(--space-l) var(--space-m);
  text-align: center;
  transform: rotate(-1.5deg);
  max-width: 20rem;
  justify-self: center;
}

.who__logo {
  width: auto;
  height: 7rem;
  margin-bottom: var(--space-s);
}

.who__name {
  margin: 0;
  font-size: var(--step-2);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.who__text .annot {
  display: block;
  margin-bottom: var(--space-2xs);
}

.who__text > p:not(.annot) {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
}

.who__list {
  display: grid;
  gap: 0.6rem;
  margin: var(--space-m) 0 0;
  padding: 0;
  list-style: none;
}

.who__list li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  align-items: baseline;
  font-weight: 600;
}

.who__tick {
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--ok-tint);
  color: var(--ok);
  font-size: 0.8rem;
}

.who__tick.is-no {
  background: var(--bad-tint);
  color: var(--bad);
}

/* ---------- CTA band ---------- */

.cta-band {
  margin-top: var(--space-xl);
  padding-block: var(--space-xl);
  background-color: var(--brand-ink);
  background-image:
    linear-gradient(rgb(255 255 255 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  color: #f2f5fb;
}

@media (prefers-color-scheme: dark) {
  .cta-band {
    background-color: #050b16;
    border-block: 1px solid var(--line);
  }
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
}

.cta-band h2 {
  margin: 0;
  max-width: 24ch;
}

.cta-band__annot {
  color: #c4b5fd;
  margin: 0 0 0.4rem;
}

.cta-band .btn--primary {
  box-shadow: 3px 3px 0 #000;
}

.page-home .site-footer {
  margin-top: 0;
}
