/* Styles for Engineering Manager++ */

h1, h2, h4 {
  font-family: 'EB Garamond', Georgia, serif;
}

/* ── Site-wide background texture ───────────────────────────────
   Faint purple grid + a soft top-right glow, applied to the whole
   page (not just the hero) so the texture never cuts off into flat
   white below the fold. background-color comes from shared.css; we
   only layer the image on top. Scoped to emplusplus because this
   stylesheet only loads for that course. */
body {
  background-image:
    radial-gradient(60rem 40rem at 92% 7rem, rgba(109, 40, 217, 0.09) 0%, transparent 60%),
    linear-gradient(rgba(109, 40, 217, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 40, 217, 0.045) 1px, transparent 1px);
  background-repeat: no-repeat, repeat, repeat;
  background-size: auto, 60px 60px, 60px 60px;
}

/* Dark mode: purple lines vanish on the dark bg — use faint light lines
   and a dimmer glow instead. */
html.dark body {
  background-image:
    radial-gradient(60rem 40rem at 92% 7rem, rgba(167, 139, 250, 0.08) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* ── Presale hero ──────────────────────────────────────────────
   Converted from the Figma Make "Hero" React component. The grid
   texture/glow now live on the page background (above); the hero just
   handles layout + headline styling. */
.emcc-hero {
  padding-block: 1rem 2rem;
}

.emcc-hero__badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: rgba(109, 40, 217, 0.10);
  color: var(--color-link);
}

.emcc-hero__headline {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #0d0d14;
  margin: 0 0 1.25rem;
}
html.dark .emcc-hero__headline { color: var(--color-heading); }
.emcc-hero__headline .accent { color: var(--color-link); }

.emcc-hero__subhead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-body);
  max-width: 32rem;
  margin: 0 0 2.5rem;
}

.emcc-hero__fineprint {
  font-size: 0.875rem;
  color: var(--color-muted-functional);
}

/* CTA — enlarges the shared .btn .btn-primary to match the design */
.emcc-hero__cta {
  padding: 16px 40px;
  font-size: 1.125rem;
  border-radius: 12px;
}
.emcc-hero__cta-form { margin: 1.25rem 0 0; }

/* book mockup */
.emcc-hero__book-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* soft purple brand glow behind the book */
.emcc-hero__book-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at center, rgba(109, 40, 217, 0.10) 0%, transparent 70%);
  transform: scale(1.15);
  filter: blur(24px);
}
.emcc-hero__book {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;       /* ~500–600px on desktop */
  height: auto;           /* scale proportionally (intrinsic 700×715) */
  /* image has a baked-in shadow; keep this extra one very soft */
  filter: drop-shadow(0 25px 50px rgba(28, 23, 23, 0.15));
}

/* mobile: book sits below the text, smaller and centered */
@media (max-width: 767px) {
  .emcc-hero__book { max-width: 340px; }
}

/* ── Homepage sections (Bio / Problem / Curriculum / What You Get / FAQ /
   Final CTA) ── Converted from the Figma landing export. Sections are
   full-bleed bands that break out of the constrained <main>, with
   alternating backgrounds; inner content is centered at a fixed width.
   Tokens map to the light/dark palettes; the curriculum band is
   intentionally dark in both modes. */
body { overflow-x: hidden; } /* guard against the 100vw full-bleed trick */

.emcc-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding-block: 6.5rem;
}
.emcc-section--tinted  { background: var(--color-bg); border-block: 1px solid var(--color-border); }
.emcc-section--surface { background: var(--color-surface); }
.emcc-section--dark    { background: #1E1E2E; }
.emcc-section__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 2.5rem;
}

/* eyebrow label */
.emcc-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-link);
  margin: 0 0 1.4rem;
}
.emcc-eyebrow--accent { color: var(--color-accent); }

/* body prose */
.emcc-prose {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-muted-functional);
  margin: 0 0 1.25rem;
  max-width: 40rem;
}
.emcc-prose--lead { font-size: 1.1875rem; }

/* shared headline base (h2 inherits EB Garamond; .emcc-section__title is
   also reused by the checkout success page) */
.emcc-section__title,
.emcc-bio__title,
.emcc-problem__title,
.emcc-curriculum__title,
.emcc-wyg__title,
.emcc-faq__title,
.emcc-final__title,
.emcc-newsletter__title {
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-heading);
  margin: 0 0 1.5rem;
}

/* ── Bio ── */
.emcc-bio__grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 900px) { .emcc-bio__grid { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; } }
.emcc-bio__photo-col { display: flex; justify-content: center; }
.emcc-bio__photo {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 60px rgba(109, 40, 217, 0.12), 0 4px 20px rgba(0, 0, 0, 0.06);
}
.emcc-bio__title { font-size: clamp(2rem, 4vw, 3rem); max-width: 32rem; }
.emcc-bio__quote {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.45;
  color: var(--color-heading);
  margin: 0 0 2.25rem;
  max-width: 35rem;
  border-left: 2px solid var(--color-link);
  padding-left: 1.5rem;
}
.emcc-bio__creds { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.875rem 2rem; max-width: 35rem; }
@media (min-width: 600px) { .emcc-bio__creds { grid-template-columns: 1fr 1fr; } }
.emcc-bio__creds li { display: flex; gap: 0.625rem; align-items: baseline; font-size: 0.875rem; color: var(--color-body); }
.emcc-bio__plus { color: var(--color-link); font-weight: 600; }

/* ── Problem ── */
.emcc-problem__head { max-width: 48rem; margin-bottom: 3.5rem; }
.emcc-problem__title { font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
.emcc-problem__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
}
@media (max-width: 768px) { .emcc-problem__cards { grid-template-columns: 1fr; } }
.emcc-problem__card { background: var(--color-surface); padding: 2.375rem 2rem; }
.emcc-problem__card-num { font-size: 0.875rem; font-weight: 600; color: var(--color-link); margin-bottom: 1rem; }
.emcc-problem__card p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--color-heading); }

/* ── Curriculum (dark band) ── */
.emcc-curriculum__head { max-width: 45rem; margin-bottom: 4.5rem; }
.emcc-curriculum__title { font-size: clamp(2.25rem, 4.5vw, 3.5rem); color: #FAFAFB; }
.emcc-curriculum__lede { font-size: 1.125rem; line-height: 1.7; color: #9a99a8; margin: 0; max-width: 37rem; }
.emcc-curriculum__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #2C2C40;
  border: 1px solid #2C2C40;
  border-radius: 18px;
  overflow: hidden;
}
@media (max-width: 768px) { .emcc-curriculum__grid { grid-template-columns: 1fr; } }
.emcc-layer { background: #1E1E2E; padding: 2.625rem 2.375rem; }
.emcc-layer__num { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 1.125rem; }
.emcc-layer__title { font-family: 'EB Garamond', Georgia, serif; font-weight: 600; font-size: 2rem; letter-spacing: -0.01em; color: #FAFAFB; margin: 0 0 0.625rem; }
.emcc-layer__sub { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: #7a7a8c; font-weight: 500; margin-bottom: 1rem; }
.emcc-layer__desc { font-size: 0.9375rem; line-height: 1.65; color: #9a99a8; margin: 0; }

/* ── What You Get ── */
.emcc-wyg__grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 900px) { .emcc-wyg__grid { grid-template-columns: 0.9fr 1.1fr; gap: 5rem; } }
.emcc-wyg__title { font-size: clamp(2rem, 4vw, 3.125rem); }
.emcc-wyg__item { display: flex; align-items: baseline; gap: 1.25rem; padding: 1.375rem 0; border-bottom: 1px solid var(--color-border); }
.emcc-wyg__num { font-size: 0.875rem; font-weight: 600; color: var(--color-link); min-width: 2.75rem; }
.emcc-wyg__item-title { font-size: 1.125rem; font-weight: 600; color: var(--color-heading); }
.emcc-wyg__item-desc { font-size: 0.9375rem; color: var(--color-muted-functional); margin-top: 0.2rem; }
.emcc-wyg__bonus {
  display: flex; align-items: baseline; gap: 1.25rem;
  padding: 1.5rem; margin-top: 0.875rem;
  background: rgba(109, 40, 217, 0.06);
  border: 1px solid rgba(109, 40, 217, 0.18);
  border-radius: 14px;
}
.emcc-wyg__star { color: var(--color-link); min-width: 2.75rem; }

/* ── FAQ ── */
.emcc-faq__inner { max-width: 52rem; }
.emcc-faq__title { font-size: clamp(2rem, 4vw, 3.125rem); margin-bottom: 3rem; }
.emcc-faq__item { border-bottom: 1px solid var(--color-border); }
.emcc-faq__q {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.625rem 0;
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 600; font-size: 1.1875rem; color: var(--color-heading);
  cursor: pointer; list-style: none;
}
.emcc-faq__q::-webkit-details-marker { display: none; }
.emcc-faq__plus { font-size: 1.5rem; color: var(--color-link); line-height: 1; transition: transform 0.2s ease; flex-shrink: 0; }
.emcc-faq__item[open] .emcc-faq__plus { transform: rotate(45deg); }
.emcc-faq__a { font-size: 1rem; line-height: 1.7; color: var(--color-muted-functional); margin: 0; padding: 0 0 1.75rem; max-width: 40rem; }

/* ── Final CTA ── */
.emcc-final__inner { text-align: center; }
.emcc-final__title { font-size: clamp(2.5rem, 5vw, 4rem); max-width: 42rem; margin: 0 auto 2.875rem; }
.emcc-final__card {
  display: inline-flex; flex-direction: column; align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 2.875rem 3.5rem;
  box-shadow: 0 1px 3px rgba(13, 13, 20, 0.06);
}
.emcc-final__price-row { display: flex; align-items: baseline; gap: 0.875rem; margin-bottom: 0.5rem; }
.emcc-final__price { font-family: 'EB Garamond', Georgia, serif; font-weight: 600; font-size: 4.125rem; line-height: 1; color: var(--color-heading); }
.emcc-final__price-old { font-family: 'EB Garamond', Georgia, serif; font-size: 2.125rem; color: var(--color-muted); text-decoration: line-through; }
.emcc-final__price-note { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-link); margin-bottom: 1.875rem; }
.emcc-final__form { margin: 0; }
.emcc-final__cta { padding: 17px 44px; font-size: 1.0625rem; border-radius: 12px; }
.emcc-final__fineprint { font-size: 0.875rem; color: var(--color-muted); margin-top: 1.25rem; }

/* ── Newsletter / "stay in the loop" CTA ── */
.emcc-newsletter__inner { max-width: 48rem; text-align: center; }
.emcc-newsletter__title { font-size: clamp(1.75rem, 3.5vw, 2.25rem); }
.emcc-newsletter__sub { margin: 0 auto 1.875rem; }

/* ── Checkout success / thank-you page ──────────────────────────
   Converted from the Figma "Thank You" export. Reuses the shared
   tokens + existing classes (.emcc-eyebrow, .emcc-section__title,
   .emcc-prose, .btn); only success-specific structure lives here.
   Header/footer/grid come from the layout, not duplicated here. */
.emcc-success {
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem 0 3rem;
  text-align: center;
}

/* heading-tinted variant of the eyebrow (vs the default purple) */
.emcc-eyebrow--ink { color: var(--color-heading); letter-spacing: 0.14em; }

/* larger, lighter headline for the success moment */
.emcc-success .emcc-section__title {
  font-size: clamp(2.75rem, 6vw, 3.875rem);
  font-weight: 600;
}

.emcc-success__subhead { max-width: 27.5rem; margin-inline: auto; }

/* animated check badge */
.emcc-success__badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-link);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2.25rem;
  box-shadow: 0 12px 30px -10px rgba(109, 40, 217, 0.5);
  animation: emcc-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes emcc-pop {
  0%   { transform: scale(0.6); opacity: 0; }
  60%  { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .emcc-success__badge { animation: none; }
}

/* receipt card */
.emcc-success__receipt {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 1.75rem 1.875rem;
  text-align: left;
  margin: 0 0 2.75rem;
}
.emcc-success__receipt-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}
.emcc-success__receipt-title { font-weight: 600; color: var(--color-heading); }
.emcc-success__receipt-sub { font-size: 0.875rem; color: var(--color-body); margin-top: 0.2rem; }
.emcc-success__receipt-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding-top: 1rem;
  font-size: 0.8125rem;
  color: var(--color-body);
}
.emcc-success__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #16a34a; display: inline-block;
}

/* "Confirmed" pill — reuses the purple-pill look */
.emcc-pill {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-link);
  background: rgba(109, 40, 217, 0.08);
  border: 1px solid rgba(109, 40, 217, 0.18);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

/* what-happens-next steps */
.emcc-success__steps { text-align: left; max-width: 480px; margin: 0 auto 2.75rem; }
.emcc-success__step {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--color-border);
}
.emcc-success__step:last-child { border-bottom: none; }
.emcc-success__step-num {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-link);
  min-width: 24px;
}
.emcc-success__step p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--color-body); }

/* actions row */
.emcc-success__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.375rem;
  flex-wrap: wrap;
}
.emcc-success__link {
  font-size: 0.9375rem;
  color: var(--color-body);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.emcc-success__link:hover { color: var(--color-heading); border-bottom-color: var(--color-link); }
