/* Homepage — requires global.css */

/* ── Hero ── */
.hero {
  width: 100%;
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.hero-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 1.75rem;
  text-align: center;
}
h1 {
  font-family: "Crimson Pro", serif;
  font-size: var(--fs-hero);
  font-weight: 500;
  line-height: 1.1;
  max-width: 800px;
  margin: 0 auto 1.75rem;
}
.hero-sub {
  font-size: var(--fs-h3);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 0.75rem;
  line-height: 1.7;
}
.hero-for {
  font-size: var(--fs-base);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

/* ── Waitlist ── */
.waitlist {
  display: flex;
  gap: 0.6rem;
  max-width: 480px;
  margin: 0 auto;
}
.waitlist input[type="email"] {
  flex: 1;
  padding: 0.85rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: var(--fs-base);
  outline: none;
  transition: border-color 0.2s;
}
.waitlist input[type="email"]:focus {
  border-color: var(--primary);
}
.waitlist input[type="email"]::placeholder {
  color: var(--text-muted);
}
.waitlist button {
  padding: 0.85rem 1.6rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: "Sora", sans-serif;
  font-size: var(--fs-base);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.2s,
    opacity 0.2s;
}
.waitlist button:hover {
  background: var(--primary-d);
}
.waitlist button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.form-message {
  margin-top: 0.75rem;
  font-size: var(--fs-sm);
  min-height: 1.2em;
  text-align: center;
}
.form-message.success {
  color: var(--emerald);
}
.form-message.error {
  color: var(--coral);
}
.waitlist-note {
  margin-top: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.waitlist-note a {
  color: var(--text-muted);
  text-decoration: underline;
}
.waitlist-note a:hover {
  color: var(--primary);
}

/* ── Instructor ── */
.instructor {
  width: 100%;
  padding: 6rem 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.instructor .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.instructor-header {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 2rem;
}
.instructor-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.instructor-meta h2 {
  font-family: "Sora", sans-serif;
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.instructor-meta p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.instructor-narrative p {
  font-size: var(--fs-base);
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}
.instructor-narrative p strong {
  color: var(--text);
}

/* ── Stats card ── */
.stats-col {
  padding-top: 2.5rem;
}
.stats-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.stats-card h3 {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.stats-card ul {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}
.stats-card li {
  font-size: var(--fs-base-sm);
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}
.stats-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
}
.stats-card li strong {
  color: var(--gold);
}
.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.credential {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.3rem 0.7rem;
}

/* ── Paths ── */
.paths {
  width: 100%;
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
}
.paths-header {
  margin-bottom: 3rem;
  text-align: center;
}
.paths-header h2 {
  font-family: "Crimson Pro", serif;
  font-size: var(--fs-h1);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.paths-header p {
  font-size: var(--fs-base);
  color: var(--text-muted);
}
.paths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.path-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem 2rem;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
  text-align: left;
}
.path-card:hover,
.path-card.active {
  border-color: var(--primary);
  background: rgba(105, 152, 165, 0.06);
}
.path-card.active .path-number {
  color: var(--primary);
}
.path-number {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  display: block;
}
.path-tier {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.45rem;
  border-radius: 1rem;
  font-size: var(--fs-2xs);
  letter-spacing: 0.06em;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.path-tier-plus {
  color: var(--gold);
  border-color: var(--gold);
}
.path-card h3 {
  font-family: "Crimson Pro", serif;
  font-size: var(--fs-h3);
  font-weight: 500;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}
.path-card .path-audience {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.path-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
.path-chain span {
  font-size: var(--fs-xs);
  font-family: "JetBrains Mono", monospace;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
}
.path-chain span.highlight {
  color: var(--primary);
  border-color: var(--primary-d);
}
.path-chain .arrow {
  font-size: var(--fs-2xs);
  color: var(--border);
  background: none;
  border: none;
  padding: 0;
}
.path-depth {
  display: inline-block;
  margin-top: 1rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}
.depth-foundations {
  background: rgba(74, 157, 124, 0.12);
  color: var(--emerald);
}
.depth-intermediate {
  background: rgba(125, 163, 204, 0.12);
  color: var(--depth-intermediate);
}
.depth-advanced {
  background: rgba(153, 136, 204, 0.12);
  color: var(--depth-advanced);
}
.depth-interview {
  background: rgba(212, 168, 83, 0.12);
  color: var(--gold);
}

/* ── Pricing ── */
.pricing {
  width: 100%;
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
}
.pricing-header {
  margin-bottom: 3rem;
  text-align: center;
}
.pricing-header h2 {
  font-family: "Crimson Pro", serif;
  font-size: var(--fs-h1);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.pricing-header p {
  font-size: var(--fs-base);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 760px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
}
.pricing-card.featured {
  border-color: var(--primary);
}
.pricing-badge {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(105, 152, 165, 0.12);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  margin-bottom: 1.25rem;
}
.pricing-card h3 {
  font-family: "Crimson Pro", serif;
  font-size: var(--fs-h3);
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.pricing-amount {
  margin: 1rem 0;
}
.pricing-amount .price {
  font-size: var(--fs-h1);
  font-weight: 600;
  font-family: "Sora", sans-serif;
  color: var(--text);
  line-height: 1;
}
.pricing-amount .period {
  font-size: var(--fs-base-sm);
  color: var(--text-muted);
  margin-left: 0.25rem;
}
.pricing-save {
  font-size: var(--fs-sm);
  color: var(--emerald);
  margin-top: 0.35rem;
}
.pricing-features {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: grid;
  gap: 0.6rem;
}
.pricing-features li {
  font-size: var(--fs-base-sm);
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}
.pricing-features li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
}
.pricing-cta {
  display: block;
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: "Sora", sans-serif;
  font-size: var(--fs-base);
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.pricing-cta:hover {
  background: var(--primary-d);
}
.pricing-cta.outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.pricing-cta.outline:hover {
  border-color: var(--primary);
  color: var(--text);
  background: transparent;
}
.pricing-note {
  margin-top: 1.5rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .instructor .inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .stats-col {
    padding-top: 0;
  }
  .waitlist {
    flex-direction: column;
  }
  .waitlist button {
    width: 100%;
  }
  .paths-grid {
    grid-template-columns: 1fr;
  }
  .pricing-cards {
    grid-template-columns: 1fr;
  }
}

/* ── Legal pages (terms, privacy) ── */
.legal-page {
  padding: 3rem 2rem;
}

.legal-inner {
  max-width: 42rem;
  margin: 0 auto;
}

.legal-inner h1 {
  font-family: "Crimson Pro", serif;
  font-size: var(--fs-h1);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.legal-updated {
  font-family: "JetBrains Mono", monospace;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.legal-inner h2 {
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-inner h3 {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-inner p {
  font-size: var(--fs-base-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-inner ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-inner li {
  font-size: var(--fs-base-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.legal-inner a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(105, 152, 165, 0.3);
}

.legal-inner a:hover {
  text-decoration-color: var(--primary);
}

/* ── Blog (/blog/…) ── */
.post-page {
  padding: 3rem 2rem;
}

.post-inner {
  max-width: 42rem;
  margin: 0 auto;
}

.post-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.post-inner h1 {
  font-family: "Crimson Pro", serif;
  font-size: var(--fs-h1);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.post-lede {
  font-size: var(--fs-base);
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.post-inner h2 {
  font-family: "Crimson Pro", serif;
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--text);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

.post-inner p {
  font-size: var(--fs-base);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.post-inner ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.post-inner li {
  font-size: var(--fs-base);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.post-inner a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(105, 152, 165, 0.3);
}

.post-inner a:hover {
  text-decoration-color: var(--primary);
}

.post-footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.post-footer p {
  font-size: var(--fs-base-sm);
}

.post-back {
  margin-top: 1.5rem;
  font-size: var(--fs-sm);
}

.blog-list {
  margin-top: 2rem;
}

.blog-list-item {
  margin-bottom: 2rem;
}

.blog-list-item h2 {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.blog-list-item h2 a {
  text-decoration: none;
}

/* ── Appendix playgrounds ── */
.playground {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
  background: var(--bg-card);
}

.playground-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.playground-label {
  font-family: "JetBrains Mono", monospace;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  white-space: nowrap;
}

.playground-slider {
  flex: 1;
  accent-color: var(--primary);
}

.playground-readout {
  font-family: "JetBrains Mono", monospace;
  font-size: var(--fs-base-sm);
  color: var(--text);
  min-width: 5rem;
  text-align: right;
}

.playground-equation {
  margin: 0.5rem 0 0.75rem;
  overflow-x: auto;
}

.playground-verdict {
  font-size: var(--fs-base-sm);
  margin-top: 0.5rem;
}

.playground-toggle {
  font-family: "JetBrains Mono", monospace;
  font-size: var(--fs-sm);
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.playground-toggle.is-active {
  border-color: var(--primary);
  color: var(--text);
}

/* ── Syntax highlighting (Prism — One Dark theme) ── */
code[class*="language-"],
pre[class*="language-"] {
  color: #abb2bf;
  background: none;
  font-family: "JetBrains Mono", monospace;
  font-size: var(--fs-base-sm);
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  line-height: 1.6;
  tab-size: 2;
  hyphens: none;
}

pre[class*="language-"] {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  overflow: auto;
  margin: 1rem 0 1.25rem;
}

:not(pre) > code[class*="language-"] {
  background: var(--bg-alt);
  border-radius: 3px;
  padding: 0.1em 0.3em;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #5c6370;
}

.token.punctuation {
  color: #abb2bf;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol {
  color: #d19a66;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin {
  color: #98c379;
}

.token.operator,
.token.entity,
.token.url,
.token.variable {
  color: #56b6c2;
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: #c678dd;
}

.token.function {
  color: #61afef;
}

.token.regex,
.token.important {
  color: #e5c07b;
}

/* ── Homepage launch: hero CTA + live/coming-soon path cards ──────────────── */
.hero-cta {
  margin: 1.5rem 0 1rem;
}
.btn-primary {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  font-family: "Sora", sans-serif;
  font-size: var(--fs-base);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary:hover {
  background: var(--primary-d);
}

/* Live Path 1 card: a real link, reads as the primary action. */
.path-card.path-live {
  display: block;
  text-decoration: none;
  color: inherit;
  border-color: var(--primary);
}
.path-card.path-live .path-number {
  color: var(--primary);
}
.path-cta {
  display: inline-block;
  margin-top: 1rem;
  font-family: "Sora", sans-serif;
  font-size: var(--fs-base-sm);
  font-weight: 600;
  color: var(--primary);
}

/* Coming-soon cards: visibly not-yet-available, still clickable to the waitlist. */
.path-card.path-soon {
  opacity: 0.72;
}
.path-card.path-soon:hover,
.path-card.path-soon.active {
  opacity: 1;
}
.path-card.path-soon .path-number {
  color: var(--gold);
}

/* ── Hero: single primary CTA, quiet secondary waitlist ───────────────────── */
.btn-lg {
  padding: 1.05rem 2.4rem;
  font-size: var(--fs-base);
}
.hero-cta-note {
  margin-top: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
/* ── Bottom "not ready yet" notify section ────────────────────────────────── */
.home-notify {
  width: 100%;
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.home-notify .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-notify-label {
  font-size: var(--fs-base-sm);
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ── Homepage founding-pricing section ────────────────────────────────────── */
.home-pricing {
  width: 100%;
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
}
/* Content-driven: wraps to one column when two cards no longer fit — no
   viewport breakpoints. min(18rem, 100%) guards tiny screens. */
.home-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 21rem));
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.home-plan {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.home-plan-featured {
  border-color: var(--primary);
}
.home-plan-badge {
  align-self: flex-start;
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
}
.home-plan-name {
  font-family: "Sora", sans-serif;
  font-size: var(--fs-h3);
  font-weight: 600;
}
.home-plan-amount {
  font-size: var(--fs-h1);
  font-weight: 700;
}
.home-plan-period {
  color: var(--text-muted);
  font-size: var(--fs-base-sm);
}
.home-plan-desc {
  color: var(--text-muted);
  font-size: var(--fs-base-sm);
  line-height: 1.5;
  flex-grow: 1;
}
.home-plan .btn-primary {
  text-align: center;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline:hover {
  background: rgba(105, 152, 165, 0.08);
}
.btn-plus {
  background: var(--gold);
}
.home-pricing-footnote {
  margin-top: 1.75rem;
  text-align: center;
  font-size: var(--fs-base-sm);
}
.home-pricing-footnote a {
  color: var(--primary);
}
