/* ============================================================
   Prompting for Impact — toolkit.helenmillar.com
   Foundation Edition · v1.0
   ============================================================ */

:root {
  /* Palette */
  --ink: #1a1a1a;
  --body: #2a2a2a;
  --muted: #5a5a5a;
  --soft: #888;
  --heading: #0d3a52;
  --heading-deep: #082a3a;
  --accent: #b58c4f;
  --accent-deep: #8e6c39;
  --accent-soft: #f3e9d5;
  --rule: #d8d2c4;
  --rule-soft: #ece7d9;
  --bg: #fdfcf8;
  --bg-alt: #f7f2e6;
  --bg-deep: #0d3a52;
  --bg-card: #ffffff;
  --code-bg: #f5f1e8;
  --code-border: #e2dac5;
  --shadow-sm: 0 1px 2px rgba(13, 58, 82, 0.04), 0 2px 6px rgba(13, 58, 82, 0.04);
  --shadow-md: 0 4px 12px rgba(13, 58, 82, 0.06), 0 12px 36px rgba(13, 58, 82, 0.06);
  --shadow-lg: 0 8px 24px rgba(13, 58, 82, 0.10), 0 24px 64px rgba(13, 58, 82, 0.08);

  /* Type */
  --serif: "Vollkorn", Georgia, Cambria, "Times New Roman", serif;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  /* Spacing */
  --container: 1140px;
  --container-narrow: 760px;
  --pad-x: clamp(1.2rem, 3.5vw, 2.5rem);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sans);
  color: var(--heading);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

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

a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted currentColor; transition: color 0.15s var(--ease); }
a:hover { color: var(--accent-deep); }

strong, b { font-weight: 600; color: var(--ink); }
em { font-style: italic; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--code-bg);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  border: 1px solid var(--code-border);
}

pre {
  font-family: var(--mono);
  font-size: 0.9rem;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  line-height: 1.55;
  margin: 0 0 1rem 0;
}

pre code {
  background: none;
  border: none;
  padding: 0;
}

/* ============================================================
   Layout primitives
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

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

.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section + .section { border-top: 1px solid var(--rule-soft); }
.section-intro + .section-fourcs,
.section-builder,
.section-check,
.section-promptbook,
.section-scorer,
.section-card,
.section-downloads { border-top: 1px solid var(--rule-soft); }

.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 0.8rem 0;
}

.kicker.light { color: var(--accent-soft); }

.display {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin-bottom: 1rem;
}

.display.light { color: #fff; }

.lead-secondary {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 2.5rem;
}

.lead-secondary.light { color: rgba(255, 255, 255, 0.85); }

.tip {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 1.5rem;
}

.callout {
  margin-top: 3rem;
  padding: 1.2rem 1.5rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-size: 1rem;
}

.callout strong { color: var(--accent-deep); }

/* ============================================================
   Navigation
   ============================================================ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 248, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule-soft);
  transition: box-shadow 0.2s var(--ease);
}

.site-nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.85rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-weight: 700;
  color: var(--heading);
  border-bottom: none;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  background: var(--heading);
  color: #fff;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.brand-text { letter-spacing: -0.01em; }

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-menu a {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--body);
  border-bottom: none;
  transition: color 0.15s var(--ease);
}

.nav-menu a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  flex-direction: column;
  justify-content: space-around;
  cursor: pointer;
  padding: 4px 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}

@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: 60px;
    right: 0;
    left: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    padding: 1rem var(--pad-x) 2rem;
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    transition: transform 0.3s var(--ease);
    align-items: flex-start;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    display: block;
    padding: 0.8rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--rule-soft);
  }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: clamp(540px, 78vh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 58, 82, 0.05) 0%, rgba(13, 58, 82, 0.2) 50%, rgba(8, 30, 42, 0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 4rem var(--pad-x) 4.5rem;
  color: #fff;
}

.hero-content .eyebrow {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-soft);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.1s forwards;
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
  max-width: 16ch;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-content .lead {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  max-width: 56ch;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.35s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
}

.hero-meta {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.65s forwards;
}

.scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  z-index: 3;
  border-bottom: none;
  opacity: 0.8;
}

.scroll-cue span {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scrollHint 1.8s ease-in-out infinite;
}

@keyframes scrollHint {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.8; }
  50% { transform: translate(-50%, 12px); opacity: 0.2; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: all 0.2s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.section:not(.section-closing) .btn-ghost {
  color: var(--heading);
  border-color: var(--rule);
}

.section:not(.section-closing) .btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-deep);
}

/* ============================================================
   Section: Intro
   ============================================================ */

.section-intro {
  background: var(--bg-alt);
  text-align: left;
}

.section-intro .container {
  text-align: left;
}

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

.three-up-item {
  padding: 0;
}

.three-up-num {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.three-up-item h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.three-up-item p {
  color: var(--muted);
  font-size: 1rem;
}

@media (max-width: 760px) {
  .three-up { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ============================================================
   Section: 4Cs
   ============================================================ */

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

@media (max-width: 760px) {
  .cs-grid { grid-template-columns: 1fr; }
}

.c-card {
  background: var(--bg-card);
  border: 1px solid var(--rule-soft);
  border-radius: 10px;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.c-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.c-mark {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

.c-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.4rem;
}

.c-q {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

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

.c-bullets li {
  padding: 0.4rem 0;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.95rem;
  color: var(--body);
}

.c-bullets li:first-child { border-top: none; }

/* ============================================================
   Section: Context block builder
   ============================================================ */

.section-builder {
  background: var(--bg-alt);
}

.orientation {
  background: linear-gradient(135deg, #fff 0%, var(--accent-soft) 100%);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  margin: 2rem 0 0;
  box-shadow: var(--shadow-sm);
}

.orientation-kicker {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--accent-deep);
  margin: 0 0 1rem 0;
}

.orientation-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.orientation-body > div {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--body);
}

.orientation-body strong {
  color: var(--heading);
  font-family: var(--sans);
  font-weight: 600;
}

.orientation-body em {
  background: rgba(13, 58, 82, 0.08);
  padding: 0.05em 0.35em;
  border-radius: 3px;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.92em;
  font-weight: 500;
  color: var(--heading);
}

@media (max-width: 900px) {
  .orientation-body { grid-template-columns: 1fr; gap: 0.9rem; }
}

.builder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .builder-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.builder-form .field { margin-bottom: 1.2rem; }

.builder-form label {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
  margin-bottom: 0.4rem;
}

.builder-form input,
.builder-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  resize: vertical;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.builder-form input:focus,
.builder-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(181, 140, 79, 0.2);
}

.builder-output {
  background: var(--heading);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 88px;
  align-self: start;
}

.builder-output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.builder-output-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-soft);
}

.builder-output pre {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem;
  line-height: 1.6;
  max-height: 360px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.builder-tip {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 1rem 0 0 0;
}

@media (max-width: 900px) {
  .builder-output { position: static; }
}

/* ============================================================
   Copy button
   ============================================================ */

.copy-btn {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.8rem;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}

.copy-btn:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.copy-btn.copied {
  background: #2d7d4f;
  border-color: #2d7d4f;
}

.copy-btn.small {
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
}

/* ============================================================
   Section: 30-second check
   ============================================================ */

.check-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  counter-reset: chk;
}

.check-list li {
  counter-increment: chk;
  background: var(--bg-card);
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  padding: 1rem 1.3rem 1rem 3.5rem;
  margin-bottom: 0.6rem;
  font-size: 1rem;
  position: relative;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.check-list li::before {
  content: counter(chk);
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: var(--bg-alt);
  color: var(--muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
}

.check-list li.done {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.check-list li.done::before {
  background: var(--accent);
  color: #fff;
  content: "✓";
}

.check-c {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--heading);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-right: 0.6rem;
}

/* ============================================================
   Section: Advanced Moves
   ============================================================ */

.section-advanced {
  padding-top: 0;
  background: var(--bg);
}

.advanced-hero,
.compliance-hero,
.rollout-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  margin-bottom: 4rem;
}

.advanced-hero-overlay,
.compliance-hero-overlay,
.rollout-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 58, 82, 0.1) 0%, rgba(13, 58, 82, 0.4) 50%, rgba(8, 30, 42, 0.9) 100%);
}

.advanced-hero .container,
.compliance-hero .container,
.rollout-hero .container {
  position: relative;
  padding-top: 6rem;
  padding-bottom: 3rem;
}

.advanced-hero .display,
.compliance-hero .display,
.rollout-hero .display { margin-bottom: 1rem; }

.moves-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

@media (max-width: 760px) {
  .moves-grid { grid-template-columns: 1fr; }
}

.move-card {
  background: var(--bg-card);
  border: 1px solid var(--rule-soft);
  border-radius: 10px;
  padding: 1.8rem;
  position: relative;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.move-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--rule);
}

.move-num {
  position: absolute;
  top: -16px;
  left: 1.6rem;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.move-card h3 {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
  font-size: 1.25rem;
}

.move-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.8rem;
}

.move-card p {
  font-size: 0.97rem;
  color: var(--body);
  margin-bottom: 1rem;
}

.move-card details {
  font-family: var(--sans);
  font-size: 0.85rem;
  cursor: pointer;
}

.move-card details summary {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.6rem;
  list-style: none;
  padding: 0.3rem 0;
  border-top: 1px solid var(--rule-soft);
  padding-top: 0.8rem;
}

.move-card details summary::-webkit-details-marker { display: none; }
.move-card details summary::before {
  content: "▸ ";
  display: inline-block;
  margin-right: 0.3rem;
  transition: transform 0.2s var(--ease);
}

.move-card details[open] summary::before {
  transform: rotate(90deg);
}

.template-block {
  position: relative;
  margin-top: 0.6rem;
}

.template-block pre {
  font-size: 0.82rem;
  padding: 0.8rem 0.9rem;
  margin-bottom: 0;
}

.template-block .copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

/* ============================================================
   Section: Compliance
   ============================================================ */

.section-compliance {
  padding-top: 0;
}

.compliance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 980px) {
  .compliance-grid { grid-template-columns: 1fr; }
}

.compliance-block {
  background: var(--bg-card);
  border: 1px solid var(--rule-soft);
  border-radius: 10px;
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}

.compliance-block h3 {
  font-size: 1.15rem;
  color: var(--heading);
  margin-bottom: 0.8rem;
}

.compliance-block p {
  font-size: 0.95rem;
  color: var(--body);
  margin-bottom: 0.8rem;
}

.compliance-block ul,
.compliance-block ol {
  padding-left: 1.2rem;
  margin: 0.6rem 0;
}

.compliance-block li {
  font-size: 0.92rem;
  color: var(--body);
  margin-bottom: 0.35rem;
  line-height: 1.5;
}

.compliance-block .rule {
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
  font-size: 0.95rem;
}

.compliance-steps {
  counter-reset: cstep;
  list-style: none;
  padding-left: 0;
}

.compliance-steps li {
  counter-increment: cstep;
  padding-left: 2.2rem;
  position: relative;
  margin-bottom: 0.8rem;
  font-size: 0.92rem;
}

.compliance-steps li::before {
  content: counter(cstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--heading);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.78rem;
}

/* ============================================================
   Section: Promptbook
   ============================================================ */

.section-promptbook { background: var(--bg-alt); }

.prompts-list {
  margin-top: 2rem;
  display: grid;
  gap: 0.8rem;
}

.prompt-item {
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s var(--ease);
}

.prompt-item:hover { box-shadow: var(--shadow-sm); }

.prompt-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  user-select: none;
}

.prompt-num {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  width: 32px;
}

.prompt-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--heading);
  flex: 1;
}

.prompt-toggle {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}

.prompt-item.open .prompt-toggle {
  transform: rotate(90deg);
}

.prompt-body {
  display: none;
  padding: 0 1.4rem 1.4rem;
  border-top: 1px solid var(--rule-soft);
}

.prompt-item.open .prompt-body {
  display: block;
}

.prompt-use {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 1rem 0 0.6rem;
}

.prompt-template {
  position: relative;
  margin-top: 0.6rem;
}

.prompt-template pre {
  font-size: 0.85rem;
  background: var(--code-bg);
  padding: 1rem 1.2rem;
  border-radius: 6px;
  margin: 0;
}

.prompt-template .copy-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
}

.prompt-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.8rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--rule-soft);
}

/* ============================================================
   Section: Scorer
   ============================================================ */

.scorer {
  margin-top: 2rem;
}

.scorer textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  resize: vertical;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.scorer textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(181, 140, 79, 0.2);
}

.scorer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.scorer-results {
  margin-top: 2rem;
}

.scorer-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 760px) {
  .scorer-summary { grid-template-columns: repeat(2, 1fr); }
}

.score-cell {
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.score-cell-name {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.score-cell-value {
  font-family: var(--sans);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.score-cell-value .of {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 400;
}

.score-cell-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

.score-cell.s1 .score-cell-label, .score-cell.s2 .score-cell-label { color: #b03030; }
.score-cell.s3 .score-cell-label { color: #b58c4f; }
.score-cell.s4 .score-cell-label, .score-cell.s5 .score-cell-label { color: #2d7d4f; }

.scorer-feedback {
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.scorer-feedback h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--heading);
}

.scorer-feedback .fb-section {
  padding: 0.8rem 0;
  border-top: 1px solid var(--rule-soft);
}

.scorer-feedback .fb-section:first-child { border-top: none; padding-top: 0; }

.scorer-feedback .fb-section .fb-c {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.scorer-feedback .fb-section p {
  font-size: 0.92rem;
  color: var(--body);
  margin: 0;
}

.scorer-feedback ul {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.4rem 0 0 1.2rem;
  padding: 0;
}

.scorer-feedback li { margin-bottom: 0.2rem; }

/* ============================================================
   Section: Rollout
   ============================================================ */

.section-rollout {
  padding-top: 0;
}

.weeks {
  list-style: none;
  padding: 0;
  margin: 2rem 0 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  counter-reset: w;
}

@media (max-width: 900px) { .weeks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .weeks { grid-template-columns: 1fr; } }

.weeks li {
  counter-increment: w;
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  padding: 1.4rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease);
}

.weeks li:hover { box-shadow: var(--shadow-md); }

.weeks li::before {
  content: counter(w);
  position: absolute;
  top: -14px;
  left: 1.2rem;
  width: 28px;
  height: 28px;
  background: var(--heading);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.85rem;
}

.week-num {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
}

.week-focus {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--heading);
  margin-bottom: 0.4rem;
}

.week-outcome {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

.maturity {
  margin-top: 4rem;
}

.maturity h3 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 2rem;
}

.maturity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

@media (max-width: 760px) { .maturity-grid { grid-template-columns: 1fr; } }

.tier {
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.tier-label {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule-soft);
}

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

.tier li {
  padding: 0.3rem 0 0.3rem 1.4rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--body);
}

.tier li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ============================================================
   Section: Pocket card
   ============================================================ */

.section-card {
  background: var(--bg-alt);
}

.pocket-card-preview {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow-lg);
  margin: 2rem auto;
  max-width: 560px;
}

.pocket-card-preview .card-header {
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 2px double var(--accent);
  margin-bottom: 1.2rem;
}

.pocket-card-preview .card-header h3 {
  font-size: 1.4rem;
  color: var(--heading);
  margin-bottom: 0.2rem;
}

.pocket-card-preview .card-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.pocket-card-preview .card-section {
  margin-bottom: 1.2rem;
}

.pocket-card-preview .card-section h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 0.6rem 0;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--rule-soft);
}

.card-fourcs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.card-fourcs div strong {
  display: block;
  color: var(--heading);
  font-family: var(--sans);
}

.pocket-card-preview ol {
  padding-left: 1.2rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.pocket-card-preview ol li {
  margin-bottom: 0.3rem;
}

.pocket-card-preview ol strong { color: var(--heading); }

.card-three-habits {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.2rem;
  border-radius: 0 6px 6px 0;
}

.card-three-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
  margin: 0 0 0.5rem 0;
}

.card-three-habits ol {
  padding-left: 1.4rem;
  margin: 0;
  font-size: 0.9rem;
}

.card-three-habits ol li {
  color: var(--heading);
  font-weight: 500;
}

.card-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ============================================================
   Section: Downloads
   ============================================================ */

.downloads-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .downloads-grid { grid-template-columns: 1fr; }
}

.download-card.primary {
  background: var(--heading);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  border-bottom: none;
  grid-row: span 5;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.download-card.primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.download-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.download-card.primary h3 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.download-card.primary p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.download-meta {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: rgba(181, 140, 79, 0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  align-self: flex-start;
}

.download-row {
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.6rem;
}

.download-row-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--heading);
}

.download-row p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.download-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.download-formats a {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  border-bottom: none;
  transition: all 0.15s var(--ease);
}

.download-formats a:hover {
  background: var(--accent);
  color: #fff;
}

/* ============================================================
   Closing
   ============================================================ */

.section-closing {
  position: relative;
  padding: 8rem 0;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.closing-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.closing-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 58, 82, 0.55), rgba(8, 30, 42, 0.85));
  z-index: 1;
}

.section-closing .container {
  position: relative;
  z-index: 2;
}

.closing-content h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 700;
}

.closing-content p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 32ch;
  margin: 0 auto;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--heading-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
  font-size: 0.92rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr; gap: 1.5rem; } }

.footer-brand {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.footer-meta {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer-title {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-soft);
  margin: 0 0 0.6rem 0;
}

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

.site-footer ul li { margin-bottom: 0.3rem; }

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  border-bottom: none;
  font-size: 0.9rem;
  transition: color 0.15s var(--ease);
}

.site-footer a:hover { color: #fff; }

.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.footer-bottom a { color: var(--accent-soft); }

/* ============================================================
   Reveal animation (set by JS)
   ============================================================ */

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

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

/* ============================================================
   Toast (clipboard feedback)
   ============================================================ */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--heading);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.2s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   Print styles
   ============================================================ */

@media print {
  .site-nav, .scroll-cue, .nav-toggle, .hero-actions, .scorer-actions, .card-actions, .download-card, .downloads-grid, .site-footer { display: none !important; }
  .hero { min-height: auto; }
  .hero-image, .hero-overlay { display: none; }
  .hero-content { color: var(--ink); }
  .hero-content h1, .hero-content .lead, .hero-content .eyebrow, .hero-content .hero-meta { color: var(--ink) !important; -webkit-text-fill-color: var(--ink); }
  .section { padding: 1rem 0; page-break-inside: avoid; }
  body { background: #fff; }
  pre, .c-card, .move-card, .compliance-block, .prompt-item, .weeks li, .tier { page-break-inside: avoid; }
}
