/* =====================================================================
   hypnosis.mikee.ai — site-wide styles
   Used by: index.html, course/*, lessons/*, support/*, download/*
   No JavaScript required. No external fonts or tracking.
   ===================================================================== */

/* ── Design tokens ─────────────────────────────────────────────────── */
:root {
  --bg:           #fafaf7;
  --bg-subtle:    #f3f3ef;
  --text:         #1f1f23;
  --muted:        #6a6a72;
  --border:       #ddddd6;
  --accent:       #2c7d7d;
  --accent-dark:  #1f5959;
  --accent-light: #e6f4f4;
  --script-bg:    #f0ede4;
  --code-bg:      #ebebeb;
  --error:        #b03030;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Consolas", "Liberation Mono",
               Menlo, Courier, monospace;

  --radius:     12px;
  --radius-sm:  6px;
  --max-prose:  720px;
  --max-wide:   1100px;
  --transition: 0.18s ease;
}

/* ── Reset & base ───────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
a:hover { color: var(--accent-dark); }

strong { font-weight: 600; }
em { font-style: italic; }

ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1.1em;
}
li { margin-bottom: 0.35em; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* ── Layout containers ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container--prose {
  max-width: var(--max-prose);
}

section {
  padding: 5rem 0;
}

section:nth-child(even) {
  background-color: var(--bg-subtle);
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 14px 26px;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}
.btn--primary:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn--ghost {
  background-color: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn--ghost:hover {
  background-color: var(--accent-light);
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ── Navigation ─────────────────────────────────────────────────────── */
.site-nav {
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  max-width: var(--max-wide);
  margin: 0 auto;
}

.site-nav__brand {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-nav__brand span {
  color: var(--accent);
}
.site-nav__brand:hover { color: var(--text); }

.site-nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav__links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.site-nav__links a:hover { color: var(--accent); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  padding: 7rem 0 5rem;
  background-color: var(--bg);
}

.hero__kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero__headline {
  max-width: 640px;
  margin-bottom: 1.25rem;
}

.hero__sub {
  max-width: 580px;
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2.25rem;
  line-height: 1.65;
}

.hero__small {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ── Feature grid (3-col) ───────────────────────────────────────────── */
.features {
  padding: 5rem 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}

.feature-card__icon {
  font-size: 1.6rem;
  margin-bottom: 0.9rem;
  display: block;
  line-height: 1;
}

.feature-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.feature-card__body {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ── Steps ──────────────────────────────────────────────────────────── */
.steps {
  padding: 5rem 0;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.step {
  position: relative;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.step__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step__body {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Code / terminal blocks ─────────────────────────────────────────── */
pre, code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

code {
  background-color: var(--code-bg);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--accent-dark);
}

pre {
  background-color: #1e1e24;
  color: #d4d4d8;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  overflow-x: auto;
  line-height: 1.6;
  margin: 1.5rem 0;
}

pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: 0.85rem;
  border-radius: 0;
}

.terminal-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

/* ── Curriculum ─────────────────────────────────────────────────────── */
.curriculum {
  padding: 5rem 0;
}

.curriculum__parts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.curriculum-part {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.curriculum-part__header {
  background-color: var(--accent);
  color: #fff;
  padding: 0.85rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.curriculum-part--agent .curriculum-part__header {
  background-color: var(--accent-dark);
}

.curriculum-part__lessons {
  list-style: none;
  padding: 0;
  margin: 0;
}

.curriculum-part__lessons li {
  margin: 0;
  border-bottom: 1px solid var(--border);
}
.curriculum-part__lessons li:last-child {
  border-bottom: none;
}

.curriculum-part__lessons a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--text);
  transition: background-color var(--transition), color var(--transition);
}
.curriculum-part__lessons a:hover {
  background-color: var(--accent-light);
  color: var(--accent-dark);
}

.lesson-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 2rem;
  flex-shrink: 0;
}

/* Full-width last part card */
.curriculum__parts .curriculum-part--full {
  grid-column: 1 / -1;
}

/* ── Essay / why-this-exists ────────────────────────────────────────── */
.essay {
  padding: 5rem 0;
}

.essay__content {
  max-width: var(--max-prose);
  margin: 0 auto;
}

.essay__content h2 {
  margin-bottom: 1.5rem;
}

.essay__content p {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ── Ethics block ───────────────────────────────────────────────────── */
.ethics {
  padding: 5rem 0;
}

.ethics__box {
  max-width: var(--max-prose);
  margin: 2rem auto 0;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  background-color: var(--accent-light);
}

.ethics__box h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-dark);
  margin-bottom: 1.1rem;
}

.ethics__rules {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ethics__rules li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
  color: var(--text);
}
.ethics__rules li:last-child { margin-bottom: 0; }

.ethics__rules li::before {
  content: "–";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* ── Script blockquote (for lesson pages) ───────────────────────────── */
blockquote.script {
  font-style: italic;
  border-left: 3px solid var(--accent);
  background-color: var(--script-bg);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  line-height: 1.8;
}

/* ── Section headings ───────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 0;
}

.section-header h2 {
  margin-bottom: 0.6rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.65;
}

.section-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background-color: var(--text);
  color: #a8a8b0;
  padding: 4rem 0 2.5rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #a8a8b0;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }

.site-footer__bottom {
  border-top: 1px solid #2e2e38;
  padding-top: 1.75rem;
  font-size: 0.8rem;
  color: #606068;
  line-height: 1.7;
}

.site-footer__bottom p { margin-bottom: 0.4em; }
.site-footer__bottom p:last-child { margin-bottom: 0; }

/* ── Lesson page specifics ──────────────────────────────────────────── */
.lesson-header {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}

.lesson-breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.lesson-breadcrumb a { color: var(--muted); }
.lesson-breadcrumb a:hover { color: var(--accent); }

.lesson-body {
  max-width: var(--max-prose);
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.lesson-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

.lesson-nav a {
  font-size: 0.88rem;
  font-weight: 600;
}

/* ── Utility classes ────────────────────────────────────────────────── */
.text-muted    { color: var(--muted); }
.text-accent   { color: var(--accent); }
.text-center   { text-align: center; }
.text-small    { font-size: 0.85rem; }
.mt-1          { margin-top: 0.5rem; }
.mt-2          { margin-top: 1rem; }
.mt-3          { margin-top: 1.5rem; }
.mt-4          { margin-top: 2rem; }
.mb-0          { margin-bottom: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .features__grid,
  .steps__grid,
  .curriculum__parts {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .curriculum__parts .curriculum-part--full {
    grid-column: 1;
  }
}

@media (max-width: 600px) {
  section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 4.5rem 0 3rem;
  }

  .site-nav__links {
    display: none;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }
}
