/* ==========================================================================
   The Rigor Field Guide — Site Stylesheet (Palette C)
   Layout: one 1120px editorial column; split rows stack below 960px.
   ========================================================================== */

:root {
  --canvas: #F5F3ED;      /* Warm Oatmeal Alabaster */
  --juniper: #1F332C;     /* Deep Juniper Slate */
  --juniper-2: #2A4339;   /* lifted juniper for dark surfaces */
  --rust: #B85D43;        /* Sedona Rust */
  --rust-dark: #9E4B34;
  --sage: #8FA392;        /* Laurel Mist Sage */
  --sage-ink: #566D5B;    /* sage darkened for small text on light surfaces */
  --sage-light: #C9D5CB;  /* sage lightened for text on juniper */
  --white: #FFFFFF;
  --line: #E5E0D5;
  --line-dark: rgba(255, 255, 255, .14);
  --muted: #4E5F58;
  --tint: #EEEBE2;
  --ff-display: "Plus Jakarta Sans", "Nunito", ui-sans-serif, system-ui, sans-serif;
  --ff-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 16px;
  --max: 1120px;
  --shadow: 0 1px 2px rgba(31, 51, 44, .04), 0 8px 24px rgba(31, 51, 44, .06);
  --shadow-lift: 0 2px 4px rgba(31, 51, 44, .05), 0 18px 40px rgba(31, 51, 44, .12);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--juniper);
  font: 400 16px/1.6 var(--ff-body);
  -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px);
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 60;
  background: rgba(245, 243, 237, .92);
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--ff-display); margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--juniper); color: var(--white); padding: 10px 16px; border-radius: 999px;
  font: 600 14px/1 var(--ff-body); text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  max-width: var(--max); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font: 600 11px/1.3 var(--ff-body);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--rust);
}
.eyebrow.sage { color: var(--sage-ink); }
.on-dark .eyebrow, .eyebrow.light { color: #E3A793; }

.h-section { font-weight: 800; letter-spacing: -.025em; line-height: 1.12; font-size: clamp(28px, 3.4vw, 40px); margin-top: 12px; }
.h-page { font-weight: 800; letter-spacing: -.035em; line-height: 1.05; font-size: clamp(36px, 5.6vw, 64px); margin-top: 18px; }
.lede { font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); max-width: 60ch; }
.prose p { color: var(--muted); max-width: 62ch; }
.prose p + p { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 14px/1 var(--ff-body);
  padding: 13px 22px; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s ease, transform .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--rust); color: var(--white); }
.btn-primary:hover { background: var(--rust-dark); }
.btn-ghost { background: transparent; color: var(--juniper); border-color: rgba(31, 51, 44, .22); }
.btn-ghost:hover { border-color: var(--juniper); background: var(--white); }
.btn-light { background: var(--white); color: var(--juniper); }
.btn-light:hover { background: var(--canvas); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(245, 243, 237, .78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(229, 224, 213, .9);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font: 800 18px/1 var(--ff-display); letter-spacing: -.02em;
}
.brand-mark { width: 26px; height: 26px; flex: none; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font: 500 14px/1 var(--ff-body); color: var(--muted); text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--juniper); background: rgba(31, 51, 44, .06); }
.nav-links a[aria-current="page"] { color: var(--juniper); background: rgba(31, 51, 44, .08); }
.nav .btn { padding: 11px 18px; font-size: 13px; }
.menu-btn { display: none; }

/* ---------- Sections ---------- */
.section { padding-block: 72px; border-top: 1px solid var(--line); }
.section.flush { border-top: 0; }
.section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: end; margin-bottom: 40px; }
.section-head > p { color: var(--muted); max-width: 46ch; justify-self: end; }
.page-hero { padding-block: 80px 64px; }
.page-hero.center { text-align: center; }
.page-hero.center .lede { margin-left: auto; margin-right: auto; }
.page-hero .lede { margin-top: 20px; }

/* ---------- Home hero ---------- */
.hero { padding-block: 88px 72px; text-align: center; }
.byline {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  font: 500 12px/1.2 var(--ff-body); color: var(--muted);
}
.byline b {
  font-weight: 600; color: var(--white); background: var(--juniper);
  padding: 5px 9px; border-radius: 999px; letter-spacing: .14em; font-size: 10px; text-transform: uppercase;
}
.hero h1 {
  margin: 28px auto 0; font-weight: 800; letter-spacing: -.035em; line-height: 1.04;
  font-size: clamp(38px, 6.4vw, 72px); max-width: 15ch;
}
.hero h1 em, .h-page em { font-style: normal; color: var(--rust); }
.hero .lede { margin: 24px auto 0; max-width: 58ch; }
.hero .btn-row { justify-content: center; margin-top: 34px; }
.capacity { margin-top: 56px; display: grid; gap: 14px; justify-items: center; }
.capacity-label { font: 500 12px/1.4 var(--ff-body); color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  font: 500 14px/1 var(--ff-body); color: var(--juniper);
  cursor: pointer; text-decoration: none;
  transition: border-color .2s, transform .2s, background-color .2s, color .2s;
}
.pill .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 10px/1 var(--ff-display); color: var(--white); }
.pill[data-track="teacher"] .dot { background: var(--juniper); }
.pill[data-track="coach"] .dot { background: var(--rust); }
.pill[data-track="leadership"] .dot { background: var(--sage); color: var(--juniper); }
.pill:hover { border-color: var(--juniper); transform: translateY(-1px); }
.pill[aria-pressed="true"] { background: var(--juniper); color: var(--white); border-color: var(--juniper); }

/* ---------- Framework cards (home) ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fw-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px; text-decoration: none; color: var(--juniper); box-shadow: var(--shadow);
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s ease, border-color .28s ease, opacity .28s ease;
}
.fw-card:hover, .fw-card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: #D6CFBF; }
.fw-card.is-focus { border-color: var(--juniper); box-shadow: var(--shadow-lift); transform: translateY(-6px); }
.grid-3.has-focus .fw-card:not(.is-focus) { opacity: .55; }
.fw-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fw-num { font: 800 13px/1 var(--ff-display); letter-spacing: .02em; color: var(--muted); }
.track { font: 600 10px/1 var(--ff-body); letter-spacing: .18em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; white-space: nowrap; }
.track.teacher { background: rgba(31, 51, 44, .08); color: var(--juniper); }
.track.coach { background: rgba(184, 93, 67, .12); color: var(--rust-dark); }
.track.leadership { background: rgba(143, 163, 146, .22); color: #3F5645; }
.track.video { background: var(--juniper); color: var(--white); }
.fw-card h3 { margin-top: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.18; font-size: 23px; }
.fw-card .role { margin-top: 6px; font: 500 13px/1.4 var(--ff-body); color: var(--sage-ink); }
.fw-card p.desc { margin-top: 16px; font-size: 15px; color: var(--muted); }
.fw-steps { margin: 22px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.fw-steps li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; line-height: 1.45; }
.fw-steps li span { font: 700 12px/1.6 var(--ff-display); color: var(--rust); font-variant-numeric: tabular-nums; }
.fw-link { margin-top: auto; padding-top: 26px; display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--ff-body); letter-spacing: .02em; color: var(--rust); }
.fw-link .arrow { transition: transform .25s ease; }
.fw-card:hover .fw-link .arrow { transform: translateX(4px); }

/* ---------- Split rows ---------- */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.split.even { grid-template-columns: 1fr 1fr; }
.split > * { min-width: 0; }

/* ---------- Video placeholder ---------- */
.video {
  position: relative; display: block; aspect-ratio: 16 / 9; max-width: 100%;
  border-radius: var(--r); overflow: hidden; text-decoration: none;
  background: var(--juniper); color: var(--white); box-shadow: var(--shadow-lift);
}
.video-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(143, 163, 146, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 163, 146, .10) 1px, transparent 1px);
  background-size: 32px 32px;
}
.video-inner { position: absolute; inset: 0; padding: clamp(18px, 3.4vw, 32px); display: flex; flex-direction: column; justify-content: space-between; }
.video-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.video .tag { font: 600 10px/1 var(--ff-body); letter-spacing: .18em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #DCE4DC; }
.video .rec { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--ff-body); color: #C9D3CA; }
.video .rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rust); }
.video-title { font: 800 clamp(22px, 3.2vw, 34px)/1.08 var(--ff-display); letter-spacing: -.03em; max-width: 13ch; }
.video-sub { margin-top: 10px; font: 500 13px/1.4 var(--ff-body); color: #BFCBC1; }
.video-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.pillar-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pillar-chips span { font: 500 11px/1 var(--ff-body); padding: 7px 9px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .18); color: #E6ECE6; }
.play {
  flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--rust);
  display: grid; place-items: center; transition: transform .25s ease, background-color .25s ease;
  box-shadow: 0 0 0 8px rgba(184, 93, 67, .22);
}
.play svg { width: 22px; height: 22px; margin-left: 3px; }
.video:hover .play { transform: scale(1.07); background: var(--rust-dark); }

/* ---------- Walkthrough copy ---------- */
.walk > p { margin-top: 14px; color: var(--muted); }
.chain { margin: 26px 0 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.chain li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 16px 18px; }
.chain li + li { border-top: 1px solid var(--line); }
.chain .n { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 800 13px/1 var(--ff-display); background: var(--tint); color: var(--juniper); }
.chain h3, .chain h4 { font: 700 15px/1.3 var(--ff-display); letter-spacing: -.01em; }
.chain p { font-size: 14px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.upgrade { margin-top: 18px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.q { border-radius: 12px; padding: 14px; font-size: 13.5px; line-height: 1.5; }
.q .dok { display: block; font: 700 10px/1 var(--ff-body); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.q.before { background: var(--tint); color: var(--muted); }
.q.after { background: var(--juniper); color: var(--white); }
.q.after .dok { color: #E3A793; }
.upgrade .to { display: grid; place-items: center; color: var(--rust); font: 700 18px/1 var(--ff-display); }
.walk .btn-row { margin-top: 26px; }

/* ---------- Lead magnet (home) ---------- */
.magnet {
  display: grid; grid-template-columns: .9fr 1.1fr;
  background: var(--white); border: 1px solid var(--line); border-radius: 24px;
  overflow: hidden; box-shadow: var(--shadow);
}
.magnet-visual {
  position: relative; background: var(--juniper); padding: 56px 32px;
  display: grid; place-items: center; min-height: 420px; perspective: 1200px; overflow: hidden;
}
.magnet-visual::before {
  content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%;
  background: radial-gradient(closest-side, rgba(143, 163, 146, .35), transparent);
}
.milestone {
  position: absolute; top: 22px; left: 24px; right: 24px; display: flex; justify-content: space-between; gap: 12px;
  font: 600 10px/1 var(--ff-body); letter-spacing: .18em; text-transform: uppercase; color: #A9B9AC;
}
.magnet-body { padding: clamp(28px, 4.4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.magnet-body > p { margin-top: 14px; color: var(--muted); max-width: 48ch; }

/* ---------- Book mockup ---------- */
.book-stage { perspective: 1200px; display: grid; place-items: center; }
.book {
  position: relative; width: min(220px, 60vw); aspect-ratio: 3 / 4; max-width: 100%;
  transform: rotateY(-22deg) rotateX(6deg) rotateZ(-2deg); transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.book.lg { width: min(260px, 66vw); }
.magnet:hover .book, .book-stage:hover .book { transform: rotateY(-8deg) rotateX(3deg) rotateZ(-1deg) translateY(-4px); }
.book-cover {
  position: absolute; inset: 0; border-radius: 4px 10px 10px 4px;
  background: linear-gradient(135deg, #C46A50 0%, var(--rust) 45%, #A5513A 100%);
  box-shadow: 20px 26px 40px rgba(0, 0, 0, .28), inset 6px 0 0 rgba(0, 0, 0, .14), inset 8px 0 0 rgba(255, 255, 255, .08);
  padding: 22px 20px 20px 26px; display: flex; flex-direction: column; color: #FBF1EC;
}
.book-pages {
  position: absolute; top: 4px; bottom: 4px; right: -10px; width: 12px;
  background: repeating-linear-gradient(90deg, #F3EEE3 0 1px, #E2DBCC 1px 2px);
  transform: rotateY(90deg); transform-origin: left; border-radius: 0 3px 3px 0;
}
.book-cover .kicker { font: 600 8.5px/1.3 var(--ff-body); letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.book-cover .bt { margin-top: 18px; font: 800 25px/1 var(--ff-display); letter-spacing: -.03em; text-transform: uppercase; }
.book.lg .bt { font-size: 29px; }
.book-cover .rule { margin-top: 16px; width: 40px; height: 2px; background: #FBF1EC; opacity: .8; }
.book-cover .bs { margin-top: 12px; font: 500 10.5px/1.45 var(--ff-body); opacity: .9; max-width: 18ch; }
.book-cover .tracks { margin-top: auto; font: 600 8.5px/1 var(--ff-body); letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.book-cover .author { margin-top: 8px; font: 700 11px/1 var(--ff-display); letter-spacing: .04em; }
.book-caption { margin-top: 28px; font: 500 12px/1.4 var(--ff-body); color: var(--muted); text-align: center; }

/* ---------- Checklists ---------- */
.inside { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.inside li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.inside svg { width: 18px; height: 18px; margin-top: 2px; color: var(--sage-ink); }

/* ---------- Forms ---------- */
.form { margin-top: 28px; display: grid; gap: 8px; }
.form label { font: 600 12px/1 var(--ff-body); color: inherit; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.form input[type="email"], .form input[type="text"] {
  flex: 1 1 240px; min-width: 0;
  font: 400 15px/1 var(--ff-body); color: var(--juniper);
  padding: 14px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--canvas);
  transition: border-color .2s, background-color .2s;
}
.form input::placeholder { color: #7D8983; }
.form input:focus { outline: none; border-color: var(--juniper); background: var(--white); }
.form input:user-invalid { border-color: var(--rust); }
.form .btn { flex: 0 0 auto; }
.form-note { font: 400 12.5px/1.5 var(--ff-body); color: var(--muted); }
.on-dark .form input[type="email"] { background: var(--white); border-color: var(--white); }
.on-dark .form-note { color: var(--sage-light); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Dark banner ---------- */
.banner {
  position: relative; overflow: hidden;
  background: var(--juniper); color: var(--white);
  border-radius: 24px; padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 64px);
  text-align: center;
}
.banner::after {
  content: ""; position: absolute; inset: auto -10% -60% -10%; height: 90%;
  background: radial-gradient(closest-side, rgba(143, 163, 146, .22), transparent); pointer-events: none;
}
.banner > * { position: relative; z-index: 1; }
.banner h2 { font-weight: 800; letter-spacing: -.025em; line-height: 1.12; font-size: clamp(26px, 3.4vw, 38px); margin: 12px auto 0; max-width: 22ch; }
.banner p { color: var(--sage-light); max-width: 56ch; margin: 14px auto 0; }
.banner .btn-row { justify-content: center; margin-top: 28px; }
.banner .form { max-width: 520px; margin: 28px auto 0; text-align: left; }
.banner .contact-line { margin-top: 18px; font: 500 13px/1.5 var(--ff-body); color: var(--sage-light); }
.banner .contact-line span { color: var(--white); user-select: all; }

/* ---------- Frameworks page ---------- */
.fw-row { padding-block: 80px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.fw-row .split { align-items: start; }
.fw-row.reverse .split > :first-child { order: 2; }
.fw-row h2 { font-weight: 800; letter-spacing: -.025em; line-height: 1.12; font-size: clamp(28px, 3.2vw, 38px); margin-top: 14px; }
.fw-row .role { margin-top: 8px; font: 600 14px/1.4 var(--ff-body); color: var(--sage-ink); }
.fw-row .prose { margin-top: 20px; }
.guard { margin-top: 24px; display: grid; gap: 12px; }
.guard div { display: grid; grid-template-columns: 112px 1fr; gap: 14px; font-size: 14.5px; line-height: 1.5; padding-top: 12px; border-top: 1px solid var(--line); }
.guard dt, .guard .k { font: 700 11px/1.6 var(--ff-body); letter-spacing: .14em; text-transform: uppercase; color: var(--sage-ink); }
.fw-row .btn-row { margin-top: 28px; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 28px; }
.panel-label { font: 600 10.5px/1.3 var(--ff-body); letter-spacing: .18em; text-transform: uppercase; color: var(--rust); }
.panel h3 { margin-top: 10px; font: 700 20px/1.25 var(--ff-display); letter-spacing: -.015em; }
.panel .steps { margin: 18px 0 0; padding: 0; list-style: none; }
.panel .steps li { padding-block: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.panel .steps li:first-child { border-top: 0; padding-top: 4px; }
.panel .steps .n { font: 800 22px/1 var(--ff-display); color: var(--rust); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.panel .steps h4 { font: 700 15px/1.35 var(--ff-display); }
.panel .steps p { margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.5; }

.prompt-box { margin-top: 20px; border-radius: 12px; background: var(--juniper); color: #E9EEE9; overflow: hidden; }
.prompt-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line-dark); }
.prompt-bar span { font: 600 10.5px/1 var(--ff-body); letter-spacing: .16em; text-transform: uppercase; color: var(--sage-light); }
.copy-btn {
  font: 600 12px/1 var(--ff-body); color: var(--juniper); background: var(--white);
  border: 0; border-radius: 999px; padding: 8px 12px; cursor: pointer; transition: background-color .2s;
}
.copy-btn:hover { background: var(--canvas); }
.prompt-text { margin: 0; padding: 16px; max-height: 280px; overflow: auto; font: 400 12.5px/1.65 var(--ff-mono); white-space: pre-wrap; word-break: break-word; }
.prompt-text mark { background: rgba(184, 93, 67, .35); color: var(--white); padding: 0 3px; border-radius: 4px; }

.inq-in { background: var(--tint); border-radius: 12px; padding: 16px; margin-top: 16px; }
.inq-in .panel-label { color: var(--sage-ink); }
.inq-in p { margin-top: 8px; font-size: 14px; line-height: 1.55; }
.inq-arrow { display: flex; align-items: center; gap: 10px; margin-block: 14px; font: 600 10.5px/1 var(--ff-body); letter-spacing: .16em; text-transform: uppercase; color: var(--rust); }
.inq-arrow::before, .inq-arrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.inq-out { display: grid; gap: 10px; }
.inq-out p { font-size: 14.5px; line-height: 1.5; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.inq-out p b { display: block; font: 700 10.5px/1.2 var(--ff-body); letter-spacing: .14em; text-transform: uppercase; color: var(--sage-ink); margin-bottom: 4px; }

.heat-wrap { margin-top: 18px; overflow-x: auto; }
.heat { width: 100%; min-width: 360px; border-collapse: separate; border-spacing: 4px; font-variant-numeric: tabular-nums; }
.heat th { font: 600 10.5px/1.2 var(--ff-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 4px 6px; text-align: center; }
.heat th[scope="row"] { text-align: left; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--juniper); white-space: nowrap; }
.heat td { text-align: center; font: 600 13px/1 var(--ff-body); padding: 12px 4px; border-radius: 8px; }
.heat-legend { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font: 500 12px/1.4 var(--ff-body); color: var(--muted); }
.heat-legend .scale { display: inline-flex; gap: 3px; }
.heat-legend .scale i { width: 18px; height: 10px; border-radius: 3px; display: block; }
.stack { margin-top: 18px; }
.stack-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; }
.stack-bar span { display: block; }
.stack-key { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 14px; font: 500 12.5px/1.4 var(--ff-body); color: var(--muted); }
.stack-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.next-move { margin-top: 18px; background: var(--tint); border-radius: 12px; padding: 14px 16px; }
.next-move p { margin-top: 6px; font-size: 14px; line-height: 1.55; }
.sample-note { margin-top: 12px; font: 500 11.5px/1.4 var(--ff-body); color: var(--muted); }

/* ---------- Toolkit page ---------- */
.tk-hero { padding-block: 72px 64px; }
.tk-hero .split { grid-template-columns: .85fr 1.15fr; }
.tk-hero .lede { margin-top: 18px; }
.preview-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.preview-grid > div { border-radius: 12px; padding: 18px; border: 1px solid var(--line); }
.preview-grid .p-in { background: var(--tint); }
.preview-grid .p-filter { background: var(--white); border-color: var(--sage); }
.preview-grid .p-out { background: var(--juniper); color: var(--white); border-color: var(--juniper); }
.preview-grid .panel-label { display: block; }
.preview-grid .p-out .panel-label { color: #E3A793; }
.preview-grid h4 { margin-top: 10px; font: 700 15px/1.3 var(--ff-display); }
.preview-grid p { margin-top: 8px; font-size: 13.5px; line-height: 1.55; }
.preview-grid .p-in p, .preview-grid .p-filter p { color: var(--muted); }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.strip > div { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.strip .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); color: var(--juniper); }
.strip .ic svg { width: 20px; height: 20px; }
.strip h3 { font: 700 15px/1.3 var(--ff-display); }
.strip p { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; }
.info-card h3 { margin-top: 18px; font: 700 20px/1.25 var(--ff-display); letter-spacing: -.015em; }
.info-card p { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.info-card .meta { margin-top: auto; padding-top: 18px; font: 500 12.5px/1.4 var(--ff-body); color: var(--sage-ink); }

/* ---------- About page ---------- */
.about-hero { padding-block: 72px 64px; }
.about-hero .split { grid-template-columns: .8fr 1.2fr; align-items: start; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--r); overflow: hidden;
  background: linear-gradient(160deg, var(--juniper-2), var(--juniper));
  display: grid; place-items: center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .mono { font: 800 clamp(64px, 9vw, 104px)/1 var(--ff-display); letter-spacing: -.04em; color: var(--sage); }
.portrait-caption { margin-top: 14px; font: 600 12px/1.4 var(--ff-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.about-hero .prose { margin-top: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.principle { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; }
.principle .num { font: 800 34px/1 var(--ff-display); letter-spacing: -.03em; color: var(--rust); font-variant-numeric: tabular-nums; }
.principle h3 { margin-top: 18px; font: 700 21px/1.25 var(--ff-display); letter-spacing: -.015em; }
.principle p { margin-top: 10px; font-size: 15px; color: var(--muted); }
.principle .tenet { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font: 600 13.5px/1.45 var(--ff-body); color: var(--juniper); }
.legal-note { padding-block: 40px 8px; }
.legal-note p { font-size: 13px; line-height: 1.65; color: var(--muted); max-width: 72ch; }

/* ---------- Field Notes page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 32px; }
.filter {
  font: 500 14px/1 var(--ff-body); color: var(--juniper);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 16px; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--juniper); }
.filter[aria-pressed="true"] { background: var(--juniper); color: var(--white); border-color: var(--juniper); }
.featured {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow);
}
.featured > * { min-width: 0; }
.featured .video { border-radius: 0; box-shadow: none; height: 100%; aspect-ratio: auto; min-height: 280px; }
.featured-body { padding: clamp(24px, 4vw, 44px); }
.featured-body h2 { margin-top: 14px; font: 800 clamp(24px, 2.8vw, 32px)/1.15 var(--ff-display); letter-spacing: -.025em; }
.featured-body p { margin-top: 12px; color: var(--muted); }
.featured-body .btn-row { margin-top: 24px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.meta-row .time { font: 500 12.5px/1 var(--ff-body); color: var(--muted); }
.notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.note-card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px; box-shadow: var(--shadow);
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s ease;
}
.note-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.note-card .kind { font: 600 10.5px/1 var(--ff-body); letter-spacing: .16em; text-transform: uppercase; color: var(--sage-ink); }
.note-card h3 { margin-top: 16px; font: 700 19px/1.28 var(--ff-display); letter-spacing: -.015em; }
.note-card p { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.note-card .foot { margin-top: auto; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 500 12.5px/1.3 var(--ff-body); color: var(--muted); }
.note-card .soon { font: 600 10.5px/1 var(--ff-body); letter-spacing: .14em; text-transform: uppercase; color: var(--rust-dark); background: rgba(184, 93, 67, .1); padding: 6px 9px; border-radius: 999px; }
.empty-note { text-align: center; color: var(--muted); padding-block: 24px; }

/* ---------- Success / 404 ---------- */
.center-stage { padding-block: 96px 80px; text-align: center; }
.center-stage .lede { margin: 18px auto 0; }
.center-stage .btn-row { justify-content: center; margin-top: 32px; }
.seal {
  width: 64px; height: 64px; margin: 0 auto 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--juniper); color: var(--white);
  box-shadow: 0 0 0 8px rgba(143, 163, 146, .28);
}
.seal svg { width: 28px; height: 28px; }
.next-steps { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: left; }
.next-steps a { text-decoration: none; }

/* ---------- Prompts page ---------- */
.banner .contact-line a { color: var(--white); text-underline-offset: 3px; }
.privacy-card { background: var(--sage); color: var(--juniper); border-radius: var(--r); padding: 26px 28px; align-self: center; }
.privacy-card .panel-label { color: var(--juniper); }
.privacy-card h2 { margin-top: 8px; font: 700 22px/1.25 var(--ff-display); letter-spacing: -.015em; }
.privacy-card ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14.5px; }
.privacy-card li::before { content: "\2014\00a0"; }
.key-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.key-grid > div { padding: 18px 20px; min-width: 0; }
.key-grid > div + div { border-left: 1px solid var(--line); }
.key-grid .panel-label { font-family: var(--ff-mono); letter-spacing: .04em; text-transform: none; font-weight: 500; font-size: 12.5px; }
.key-grid p { margin-top: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.info-card > .prompt-box:first-child { margin-top: 0; }
.info-card .prompt-text { max-height: none; }
.reflect { margin-top: 16px !important; padding-top: 14px; border-top: 1px solid var(--line); font: 600 15px/1.4 var(--ff-display) !important; color: var(--juniper) !important; }
.reflect span { display: block; font: 600 10.5px/1.2 var(--ff-body); letter-spacing: .16em; text-transform: uppercase; color: var(--sage-ink); margin-bottom: 6px; }
.argue { margin-top: 24px; background: var(--juniper); color: var(--white); border-radius: 24px; padding: clamp(26px, 4vw, 44px); }
.argue h3 { margin-top: 10px; font: 800 clamp(24px, 2.8vw, 32px)/1.15 var(--ff-display); letter-spacing: -.02em; }
.argue > p { margin-top: 10px; color: var(--sage-light); max-width: 62ch; }
.argue .prompt-box { background: var(--white); color: var(--juniper); }
.argue .prompt-bar { border-bottom-color: var(--line); }
.argue .prompt-bar span { color: var(--sage-ink); }
.argue .copy-btn { background: var(--juniper); color: var(--white); }
.argue .copy-btn:hover { background: var(--juniper-2); }
.argue .prompt-text mark { background: rgba(184, 93, 67, .16); color: var(--rust-dark); }
.lens-head { display: flex; align-items: center; gap: 14px; }
.lens-key { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--rust); color: var(--white); font: 800 17px/1 var(--ff-display); }
.lens-head h3 { margin-top: 0; }
.lens > p { margin-top: 12px; }
.lens > p b { color: var(--rust-dark); font-weight: 600; }
.lens.wide { grid-column: 1 / -1; }
.lens.wide .lens-key { background: var(--juniper); }
@media (max-width: 760px) {
  .key-grid { grid-template-columns: 1fr; }
  .key-grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 24px; border-top: 1px solid var(--line); padding-block: 56px 40px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 40px; }
.foot-grid > * { min-width: 0; }
.foot-brand { font: 800 18px/1.2 var(--ff-display); letter-spacing: -.02em; }
.foot-tag { margin-top: 8px; font-size: 14px; color: var(--muted); }
.foot-bio { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 40ch; }
.foot-h { font: 600 11px/1 var(--ff-body); letter-spacing: .2em; text-transform: uppercase; color: var(--sage-ink); margin-bottom: 14px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-links a { font-size: 14px; text-decoration: none; color: var(--juniper); }
.foot-links a:hover { color: var(--rust); text-decoration: underline; text-underline-offset: 3px; }
.disclaimer { font-size: 13px; line-height: 1.6; color: var(--muted); }
.foot-base {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font: 500 12px/1.5 var(--ff-body); color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .notes-grid, .next-steps { grid-template-columns: 1fr; }
  .grid-3.has-focus .fw-card:not(.is-focus) { opacity: 1; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .section-head > p { justify-self: start; }
  .split, .split.even, .tk-hero .split, .about-hero .split { grid-template-columns: 1fr; gap: 36px; }
  .fw-row.reverse .split > :first-child { order: 0; }
  .magnet, .featured { grid-template-columns: 1fr; }
  .magnet-visual { min-height: 340px; }
  .featured .video { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
  .strip { grid-template-columns: 1fr; gap: 18px; }
  .preview-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .about-hero .portrait { max-width: 360px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid .foot-col-wide { grid-column: 1 / -1; }
}
@media (min-width: 640px) and (max-width: 960px) {
  .notes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav-links, .nav .btn-header { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px;
    font: 600 13px/1 var(--ff-body); color: var(--juniper);
    background: var(--white); border: 1px solid var(--line); border-radius: 999px;
    padding: 10px 14px; cursor: pointer;
  }
  .mobile-menu { border-top: 1px solid var(--line); padding-block: 12px 18px; display: grid; gap: 4px; }
  .mobile-menu a:not(.btn) { padding: 12px 4px; text-decoration: none; font: 500 16px/1 var(--ff-body); border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 12px; }
  .hero { padding-block: 56px 48px; }
  .section, .fw-row { padding-block: 56px; }
  .page-hero, .tk-hero, .about-hero { padding-block: 48px 40px; }
  .center-stage { padding-block: 64px 56px; }
  .upgrade { grid-template-columns: 1fr; }
  .upgrade .to { transform: rotate(90deg); padding-block: 2px; }
  .guard div { grid-template-columns: 1fr; gap: 4px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .panel, .principle { padding: 22px; }
}
@media (min-width: 761px) { .mobile-menu { display: none !important; } }
@media (max-width: 420px) {
  .video-bottom .pillar-chips { display: none; }
  .form .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .fw-card:hover, .fw-card.is-focus, .pill:hover, .note-card:hover { transform: none; }
  .book, .magnet:hover .book, .book-stage:hover .book { transform: rotateY(-14deg) rotateX(4deg); }
}

/* Prompts page: show the full Master Prompt; keep copy buttons on one line */
#master .prompt-text { max-height: none; }
.copy-btn { white-space: nowrap; flex: none; }
.prompt-bar span { min-width: 0; }
