:root {
  --bg: #f6f3ed;
  --ink: #17201c;
  --muted: #5b6a62;
  --line: #d8d0c3;
  --panel: #fffdf8;
  --green: #06724f;
  --green-dark: #064d38;
  --blue: #254c7c;
  --gold: #b77816;
  --red: #9d3b33;
  --shadow: 0 18px 45px rgba(35, 31, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

code {
  border: 1px solid rgba(6, 114, 79, 0.16);
  border-radius: 5px;
  background: #eef5ef;
  color: var(--green-dark);
  padding: 0.1rem 0.32rem;
  font-size: 0.92em;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(216, 208, 195, 0.8);
  background: rgba(246, 243, 237, 0.92);
  padding: 1rem clamp(1rem, 4vw, 3.2rem);
  backdrop-filter: blur(14px);
}

.brand {
  display: grid;
  gap: 0.08rem;
  text-decoration: none;
}

.brand span,
.eyebrow,
.level-card span,
.guide-list span {
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand strong {
  font-size: 1rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--green-dark);
}

main {
  overflow: hidden;
}

.hero,
.outcome-strip,
.intro-grid,
.terms,
.alfred,
.levels,
.proof-section,
.sequence,
.integrity,
.parents,
.lab-preview,
.guides,
.page-hero,
.content-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: auto;
  padding: clamp(1.4rem, 4vw, 3.4rem) 0 2rem;
}

.hero-copy {
  max-width: 640px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(3.1rem, 8vw, 6.6rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.15;
}

.dek {
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.value-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.value-pills span {
  border: 1px solid rgba(6, 114, 79, 0.18);
  border-radius: 999px;
  background: #eef6ef;
  color: var(--green-dark);
  padding: 0.42rem 0.65rem;
  font-size: 0.88rem;
  font-weight: 800;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0.78rem 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--green-dark);
  color: white;
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--panel);
}

.hero-visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  background: #111315;
}

figcaption {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.85rem 1rem;
}

.outcome-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  margin-top: 0.6rem;
}

.outcome-strip div {
  background: var(--green-dark);
  color: white;
  padding: clamp(1rem, 2vw, 1.35rem);
}

.outcome-strip strong,
.outcome-strip span {
  display: block;
}

.outcome-strip strong {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.1;
}

.outcome-strip span {
  margin-top: 0.45rem;
  color: #d8eee6;
  font-weight: 650;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.intro-grid article,
.level-card,
.integrity article,
.price-grid article,
.guide-list article,
.guide-card {
  background: var(--panel);
  padding: clamp(1.2rem, 3vw, 1.8rem);
}

.level-card,
.guide-card {
  color: inherit;
  text-decoration: none;
}

.level-card:hover,
.guide-card:hover {
  background: #f9fbf5;
}

.intro-grid h2 {
  font-size: clamp(1.32rem, 2.4vw, 1.85rem);
}

.intro-grid p,
.term-list span,
.level-card p,
.proof-section p,
.proof-grid span,
.sequence p,
.integrity p,
.parents p,
.lab-preview p,
.guide-list p,
.alfred p,
.constitution li {
  color: var(--muted);
}

.terms,
.alfred,
.proof-section,
.sequence,
.integrity,
.parents,
.lab-preview,
.guides {
  padding: clamp(4.5rem, 9vw, 7rem) 0 0;
}

.terms {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 2rem;
  align-items: start;
}

.term-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.term-list div,
.constitution,
.lab-cards div,
.lab-cards a,
.callout,
.workshop-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 1rem;
}

.term-list strong,
.term-list span,
.lab-cards strong,
.lab-cards span,
.lab-cards a {
  display: block;
}

.lab-cards a {
  color: inherit;
  text-decoration: none;
}

.alfred {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
}

.alfred-panel {
  border-radius: 8px;
  background: var(--green-dark);
  color: white;
  padding: clamp(1.4rem, 4vw, 2.4rem);
}

.alfred-panel .eyebrow,
.alfred-panel p {
  color: #d8eee6;
}

.constitution h3 {
  color: var(--green-dark);
}

.constitution ul {
  margin: 0;
  padding-left: 1.2rem;
}

.constitution li + li {
  margin-top: 0.7rem;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 1.4rem;
}

.level-grid,
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.level-card strong {
  display: block;
  margin: 1rem 0 0.3rem;
  color: var(--ink);
}

.proof-section {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: start;
}

.proof-section > div:first-child {
  max-width: 620px;
}

.proof-grid {
  display: grid;
  gap: 0.72rem;
}

.proof-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 1rem;
}

.proof-grid strong,
.proof-grid span {
  display: block;
}

.proof-grid strong {
  color: var(--blue);
  font-size: 1.05rem;
}

.proof-grid span {
  margin-top: 0.3rem;
}

.sequence {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 2rem;
}

.sequence-steps {
  display: grid;
  gap: 0.7rem;
}

.sequence-steps div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 1rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 1rem;
}

.sequence-steps span {
  color: var(--gold);
  font-weight: 900;
}

.sequence-steps p {
  margin-bottom: 0;
}

.integrity {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 2rem;
}

.integrity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.integrity article:nth-child(1) h3 {
  color: var(--green);
}

.integrity article:nth-child(2) h3 {
  color: var(--gold);
}

.integrity article:nth-child(3) h3 {
  color: var(--red);
}

.screenshot-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.parents .section-heading,
.guides .section-heading {
  max-width: 760px;
}

.price-grid h3 {
  color: var(--blue);
}

.lab-preview {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.lab-cards {
  display: grid;
  gap: 0.7rem;
}

.lab-cards strong {
  color: var(--green-dark);
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 2rem;
  color: var(--muted);
}

footer p:first-child {
  color: var(--ink);
  font-weight: 900;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  gap: clamp(1.4rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2.2rem, 6vw, 5rem) 0 clamp(1.8rem, 5vw, 3rem);
}

.page-hero.compact {
  grid-template-columns: 1fr;
  max-width: 900px;
}

.page-hero h1 {
  font-size: clamp(2.7rem, 7vw, 5.6rem);
}

.page-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.page-card.dark {
  background: var(--green-dark);
  color: white;
}

.page-card.dark p,
.page-card.dark li {
  color: #d8eee6;
}

.content-section {
  padding-top: clamp(3.4rem, 7vw, 5.5rem);
}

.section-split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.card-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.workshop-card {
  border-radius: 0;
}

.workshop-card p,
.workshop-card li,
.callout p,
.callout li,
.page-card p,
.page-card li {
  color: var(--muted);
}

.numbered-steps {
  display: grid;
  gap: 0.75rem;
}

.numbered-steps article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 1rem;
}

.numbered-steps span {
  color: var(--gold);
  font-weight: 900;
}

.prompt-box {
  overflow-x: auto;
  border: 1px solid #264036;
  border-radius: 8px;
  background: #111513;
  color: #e9f2ec;
  padding: 1.1rem;
  font: 0.92rem/1.55 "SFMono-Regular", Consolas, monospace;
  white-space: pre-wrap;
}

.artifact-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding-left: 1.1rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.mini-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.mini-nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  padding: 0.45rem 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.screenshot-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

.screenshot-frame img.full-shot {
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  background: #111315;
}

.screenshot-frame img.short-shot {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  background: #111315;
}

.screenshot-frame img.preview-shot {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  background: #111315;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.status-strip div {
  background: var(--panel);
  padding: 1rem;
}

.status-strip strong,
.status-strip span {
  display: block;
}

.status-strip span {
  color: var(--muted);
  margin-top: 0.25rem;
}

@media (max-width: 960px) {
  .hero,
  .terms,
  .alfred,
  .proof-section,
  .sequence,
  .integrity,
  .lab-preview,
  .page-hero,
  .section-split,
  .screenshot-row {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .outcome-strip,
  .level-grid,
  .price-grid,
  .integrity-grid,
  .card-grid,
  .card-grid.two,
  .card-grid.four,
  .status-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    gap: 1.2rem;
    padding-top: 1.2rem;
  }

  h1 {
    font-size: 2.75rem;
    line-height: 0.96;
  }

  .dek {
    font-size: 1.02rem;
  }

  .hero-actions {
    margin-top: 1.1rem;
  }

  .hero-visual figcaption {
    padding: 0.65rem 0.8rem;
    font-size: 0.82rem;
  }

  .intro-grid,
  .outcome-strip,
  .level-grid,
  .price-grid,
  .integrity-grid,
  .term-list,
  .guide-list,
  .card-grid,
  .card-grid.two,
  .card-grid.four,
  .status-strip {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
