/* Headless 101 — layout rhythm & components */

.h101-page {
  --h101-section-y: clamp(4.5rem, 10vw, 7rem);
  --h101-gap-lg: clamp(2rem, 4vw, 3rem);
  --h101-gap-md: 1.5rem;
  --h101-gap-sm: 1rem;
  --h101-content: 42rem;
  --h101-wide: 56rem;
}

/* ── Sections ───────────────────────────────────────────── */

.h101-section {
  padding: var(--h101-section-y) 0;
  position: relative;
}

.h101-section + .h101-section {
  border-top: 1px solid var(--border);
}

.h101-section--hero {
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 5rem);
  border-top: none;
}

.h101-section--enroll {
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: clamp(4.5rem, 9vw, 6.5rem);
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

#enroll {
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

.h101-section--enroll::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 55% at 50% 100%,
    var(--sf-blue-glow),
    transparent 72%
  );
  pointer-events: none;
}

.h101-section--enroll > .container {
  position: relative;
  z-index: 1;
}

.h101-section-header {
  max-width: var(--h101-content);
  margin-bottom: var(--h101-gap-lg);
}

.h101-section-header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.h101-section-header--center .h101-section-lead {
  margin-left: auto;
  margin-right: auto;
}

.h101-section-lead {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 36rem;
  margin-top: 0.75rem;
}

/* ── Hero ───────────────────────────────────────────────── */

.h101-hero {
  text-align: center;
  position: relative;
}

.h101-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 90% 55% at 50% -15%,
    var(--sf-blue-glow),
    transparent 68%
  );
  pointer-events: none;
}

.h101-hero > .container {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.h101-hero__badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cta);
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.h101-hero__title {
  font-weight: 800;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.h101-hero__title .accent {
  color: var(--cta);
}

.h101-hero__sub {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: var(--h101-gap-md);
}

.h101-hero__scarcity {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.55;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.22);
  margin-bottom: var(--h101-gap-md);
  text-align: left;
}

.h101-hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.h101-hero__note {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.h101-hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.h101-hero__trust span {
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.h101-buildathon-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sf-blue-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.h101-buildathon-link:hover {
  color: var(--text);
}

/* ── What / intro split ─────────────────────────────────── */

.h101-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: var(--h101-gap-lg);
  align-items: start;
}

.h101-intro__prose h2 {
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.h101-intro__prose p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.h101-intro__prose p:last-child {
  margin-bottom: 0;
}

.h101-stats {
  display: grid;
  gap: 0.75rem;
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
}

.h101-stat {
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--sf-blue);
}

.h101-stat--accent {
  border-left-color: var(--cta);
}

.h101-stat__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
}

.h101-stat__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ── Outcome cards ──────────────────────────────────────── */

.h101-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--h101-gap-md);
  margin-top: var(--h101-gap-lg);
  padding-top: var(--h101-gap-lg);
  border-top: 1px solid var(--border);
}

.h101-outcome-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.75rem 1.5rem;
}

.h101-outcome-card h3 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sf-blue-bright);
  margin-bottom: 1.25rem;
}

.h101-outcome-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.h101-outcome-card li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.55;
  align-items: flex-start;
}

.h101-outcome-card li span:first-child {
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 700;
  margin-top: 0.1rem;
}

/* ── Curriculum ─────────────────────────────────────────── */

.h101-lessons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: var(--h101-wide);
  margin: 0 auto;
}

.h101-lesson {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1.5rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
}

.h101-lesson__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 3.5rem;
}

.h101-lesson__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--sf-blue-muted);
  border: 1px solid var(--sf-blue-border);
  color: var(--sf-blue-bright);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
}

.h101-lesson__label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: none;
}

.h101-lesson__body {
  min-width: 0;
}

.h101-lesson__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.h101-lesson__text {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 52ch;
}

.h101-lesson--featured {
  border-color: rgba(249, 115, 22, 0.35);
  background: linear-gradient(
    135deg,
    rgba(249, 115, 22, 0.06) 0%,
    var(--surface) 45%
  );
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.h101-lesson--featured .h101-lesson__num {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.35);
  color: var(--cta);
}

.h101-lesson--featured .h101-lesson__title {
  font-size: 1.25rem;
}

/* ── Who it's for ───────────────────────────────────────── */

.h101-who-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--h101-gap-md);
  max-width: var(--h101-wide);
  margin: 0 auto;
}

.h101-who-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.h101-who-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.h101-who-card--yes h3 {
  color: var(--sf-blue-bright);
}

.h101-who-card--no h3 {
  color: var(--muted);
}

.h101-who-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.h101-who-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.55;
  align-items: flex-start;
}

.h101-who-item span:first-child {
  flex-shrink: 0;
  font-weight: 700;
  width: 1.25rem;
  text-align: center;
}

.h101-who-card--yes .h101-who-item span:first-child {
  color: var(--accent);
}

.h101-who-card--no .h101-who-item span:first-child {
  color: var(--muted);
}

/* ── Host ───────────────────────────────────────────────── */

.h101-host-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: start;
  max-width: var(--h101-wide);
  margin: 0 auto;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.h101-host__photo {
  width: 12rem;
  height: 12rem;
  border-radius: var(--radius-md);
  object-fit: cover;
  object-position: center 15%;
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.h101-host__content h2 {
  font-weight: 700;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.h101-host__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.h101-host__role {
  font-size: 0.875rem;
  color: var(--sf-blue-bright);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.h101-host__bio {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.h101-host__bio p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
}

.h101-host__quote {
  margin-top: 0.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--cta);
  background: rgba(249, 115, 22, 0.08);
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
}

/* ── Enrollment ─────────────────────────────────────────── */

.h101-enroll-header {
  max-width: 32rem;
  margin: 0 auto var(--h101-gap-lg);
  text-align: center;
}

.h101-enroll__title {
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.h101-enroll__sub {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.h101-enroll__meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.h101-enroll__scarcity,
.h101-enroll__tip {
  font-size: 0.875rem;
  line-height: 1.55;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
}

.h101-enroll__scarcity {
  color: var(--cta);
  font-weight: 600;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.22);
}

.h101-enroll__tip {
  color: var(--muted);
  background: rgba(1, 118, 211, 0.08);
  border: 1px solid rgba(1, 118, 211, 0.2);
}

.h101-form-card {
  max-width: 28rem;
  margin: 0 auto;
  padding: 2.25rem;
  text-align: left;
}

.h101-access-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.h101-access-card .surface-card__subtitle {
  margin-bottom: 0.5rem;
}

.h101-access-card .btn-cta {
  width: 100%;
  max-width: 20rem;
  margin-top: 0.5rem;
}

#kajabi-embed-host {
  display: none !important;
}

.h101-form-card .signup-form__field {
  margin-bottom: 0;
}

.h101-form__error {
  display: none;
  margin-bottom: 1rem;
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius-sm);
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
  font-size: 0.875rem;
  line-height: 1.45;
}

.h101-form__error.is-visible {
  display: block;
}

.h101-field-error {
  font-size: 0.75rem;
  color: #f87171;
  margin-top: 0.35rem;
}

.h101-enroll__fine {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

/* ── FAQ ────────────────────────────────────────────────── */

.h101-faq-wrap {
  max-width: 36rem;
  margin: 0 auto;
}

.h101-faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.h101-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.h101-faq-q {
  width: 100%;
  padding: 1.15rem 1.35rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.15s;
}

.h101-faq-q:hover {
  background: rgba(255, 255, 255, 0.03);
}

.h101-faq-q::after {
  content: "+";
  color: var(--sf-blue-bright);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.h101-faq-item.is-open .h101-faq-q::after {
  content: "−";
}

.h101-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
  padding: 0 1.35rem;
}

.h101-faq-item.is-open .h101-faq-a {
  max-height: 20rem;
  padding: 0 1.35rem 1.25rem;
}

/* ── Mobile sticky CTA ──────────────────────────────────── */

.h101-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 0.75rem 1rem;
  background: rgba(13, 15, 20, 0.95);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.h101-mobile-cta .btn-cta {
  width: 100%;
}

/* ── Reveal animation ───────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 900px) {
  .h101-intro,
  .h101-outcomes-grid,
  .h101-who-grid,
  .h101-host-card {
    grid-template-columns: 1fr;
  }

  .h101-stats {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

  .h101-stat--accent {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .nav__inner .btn-cta--nav {
    display: none;
  }

  .h101-mobile-cta.is-visible {
    display: block;
  }

  body.h101-page {
    padding-bottom: 4.5rem;
  }

  .h101-stats {
    grid-template-columns: 1fr;
  }

  .h101-lesson {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }

  .h101-lesson__aside {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }

  .h101-host-card {
    padding: 1.75rem;
    gap: 1.5rem;
  }

  .h101-host__photo {
    width: 8rem;
    height: 8rem;
  }
}

@media (max-width: 520px) {
  .h101-who-card,
  .h101-outcome-card {
    padding: 1.5rem;
  }
}

/* ── Thank you (post-signup) ─────────────────────────────── */

.h101-page--thanks {
  background: var(--bg);
}

.h101-thanks-steps {
  padding-bottom: clamp(4.5rem, 9vw, 6.5rem);
}

.h101-thanks-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: var(--h101-wide);
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}

.h101-thanks-step--now {
  border-color: rgba(1, 118, 211, 0.32);
  box-shadow: 0 12px 40px rgba(1, 118, 211, 0.1);
}

.h101-thanks-step--now .h101-lesson__num {
  background: var(--sf-blue-muted);
  border-color: var(--sf-blue-border);
  color: var(--sf-blue-bright);
}

.h101-thanks-step--next {
  border-color: rgba(249, 115, 22, 0.32);
  background: linear-gradient(
    135deg,
    rgba(249, 115, 22, 0.05) 0%,
    var(--surface) 48%
  );
}

.h101-thanks-step--next .h101-lesson__num {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.35);
  color: var(--cta);
}

.h101-thanks-step__badge {
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.h101-thanks-step--now .h101-thanks-step__badge {
  color: var(--sf-blue-bright);
}

.h101-thanks-step--next .h101-thanks-step__badge {
  color: var(--cta);
}

.h101-thanks-step__email-tag {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.h101-thanks-step--now .h101-thanks-step__email-tag {
  color: var(--sf-blue-bright);
}

.h101-thanks-step--next .h101-thanks-step__email-tag {
  color: var(--cta);
}

.h101-thanks-step__checklist {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.h101-thanks-step__checklist li {
  display: flex;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.5;
  align-items: flex-start;
}

.h101-thanks-step__checklist li span:first-child {
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 700;
}

.h101-thanks-flow__connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0 0.75rem;
}

.h101-thanks-flow__line {
  display: block;
  width: 2px;
  height: 2rem;
  background: linear-gradient(
    180deg,
    var(--sf-blue-border),
    rgba(249, 115, 22, 0.45)
  );
  border-radius: 1px;
}

.h101-thanks-flow__label {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.h101-thanks-cta-card {
  max-width: var(--h101-content);
  margin: 0 auto;
  padding: 2rem 2.25rem;
  text-align: center;
}

.h101-thanks-cta-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.h101-thanks-cta-card__text {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.h101-thanks-cta-card__text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.h101-thanks-cta-card__text a:hover {
  color: var(--text);
}

.h101-thanks-buildathon {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--muted);
  margin-top: 2rem;
}

.h101-thanks-buildathon a {
  color: var(--cta);
  font-weight: 600;
}

.h101-thanks-buildathon a:hover {
  color: var(--cta-hover);
}

@media (max-width: 640px) {
  .h101-thanks-cta-card {
    padding: 1.5rem 1.25rem;
  }

  .h101-lesson.h101-thanks-step {
    padding: 1.5rem 1.25rem;
    gap: 0 1rem;
  }
}
