/* Community Builder, the marketing side: the book come alive. Generous, colourful and soft-cornered. See DESIGN.md. */
:root {
  --pink-deep: #D8136A;
  --measure: 680px;
  --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --shadow-object: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(0 0 0 / .06);
  --shadow-lift: 0 2px 4px rgb(40 10 60 / .06), 0 24px 56px rgb(40 10 60 / .14);
  --round: 20px;
  --cover-from: var(--pink); --cover-to: var(--pink-deep);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font-sans); font-size: 17px; line-height: 28px; font-weight: 500;
  min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

h1 { font-size: 38px; line-height: 46px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 var(--space-3); }
h2 { font-size: 24px; line-height: 32px; font-weight: 700; margin: var(--space-6) 0 var(--space-3); }
h3 { font-size: 17px; line-height: 24px; font-weight: 700; margin: var(--space-5) 0 var(--space-2); }
p { margin: 0 0 var(--space-3); }
.lead { font-size: 20px; line-height: 30px; }
.small, .muted { font-size: 14px; line-height: 22px; color: var(--muted); }
ul, ol { padding-left: 20px; margin: 0 0 var(--space-3); }
li { margin-bottom: var(--space-1); }

.brand-strip { display: flex; height: 4px; }
.brand-strip span { flex: 1; }
.brand-strip span:nth-child(1) { background: var(--pink); }
.brand-strip span:nth-child(2) { background: var(--magenta); }
.brand-strip span:nth-child(3) { background: var(--violet); }

.topbar {
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
  padding: var(--space-4) clamp(16px, 4vw, 56px); background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand-mark { fill: var(--pink); flex: none; }
.tone-pink .topbar .brand-mark { fill: var(--on-accent); }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 800; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); text-decoration: none; margin-right: auto; }
.topbar-sprint { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; flex: 1 1 auto; justify-content: flex-end; }
.topbar-sentence { font-size: 13px; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: var(--space-4); font-size: 14px; }
.topbar-actions a:not(.btn-secondary) { color: var(--ink); text-decoration: none; }
.topbar-actions a:not(.btn-secondary):hover { text-decoration: underline; }

main { max-width: 760px; margin: 0 auto; padding: var(--space-7) var(--space-5) var(--space-9); }
main.wide { max-width: 1040px; }
.footer { padding: var(--space-7) var(--space-5); background: var(--surface-strong); color: var(--on-strong); font-size: 14px; line-height: 22px; text-align: center; font-variant-numeric: lining-nums; }
.footer-links { display: flex; gap: var(--space-3) var(--space-6); flex-wrap: wrap; justify-content: center; margin: 0 0 var(--space-4); }
.footer-seller { margin: 0; color: #C9C7C0; }
.footer a { color: var(--on-strong); }
.footer a:hover { color: var(--on-strong); text-decoration-thickness: 2px; }
.footer :focus-visible { outline-color: var(--on-strong); }

.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  border-radius: var(--radius-md); text-decoration: none; cursor: pointer; font-family: inherit;
  min-height: 48px; padding: 10px 22px;
}
.btn-primary { background: var(--yellow); color: var(--on-yellow); border: 1px solid transparent; font-size: 18px; font-weight: 700; }
.btn-primary:hover { background: var(--yellow-hover); color: var(--on-yellow); }
.btn-primary[disabled] { opacity: 0.6; cursor: progress; }
.btn-secondary {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong);
  font-size: 15px; font-weight: 600; min-height: 40px; padding: 8px 16px;
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-link { background: none; border: none; color: var(--link); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: var(--space-5); margin-bottom: var(--space-4); }
.card > :last-child { margin-bottom: 0; }
.chip { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-md); }
.chip-good { background: var(--pink); color: #1C1C1A; }
.chip-weak { background: var(--pink-20); color: #1C1C1A; }
.chip-none { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.notice { background: var(--surface-sunk); border-radius: var(--radius-lg); padding: var(--space-4); margin-bottom: var(--space-4); }
.notice-warn { background: var(--weak-tint); color: var(--ink); }
.actions { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; margin-top: var(--space-5); }

/* The conversation */
.conversation { display: flex; flex-direction: column; gap: var(--space-6); margin-bottom: var(--space-7); border-left: 2px solid var(--pink); padding: var(--space-2) 0 var(--space-2) var(--space-6); }
.coach { font-size: 24px; line-height: 36px; font-weight: 300; }
.coach p, .coach ul, .coach ol { margin: 0 0 var(--space-3); }
.coach > :last-child { margin-bottom: 0; }
.coach h3 { font-size: 24px; line-height: 36px; }
.coach strong { font-weight: 600; }
.me { font-size: 14px; line-height: 24px; color: var(--muted); padding-left: var(--space-6); white-space: pre-wrap; }
.me::before { content: "You"; display: block; font-size: 12px; line-height: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: var(--space-1); }
.thinking { font-size: 15px; color: var(--muted); }
.composer { display: flex; flex-direction: column; gap: var(--space-3); }
.composer label { font-size: 14px; font-weight: 600; color: var(--muted); }
textarea, input[type="text"], input[type="number"], select {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 10px 12px; width: 100%;
}
textarea:focus, input:focus, select:focus { border-color: var(--violet); }
input[type="file"] { font: inherit; font-size: 15px; max-width: 100%; }
textarea { min-height: 110px; resize: vertical; }
.error { color: var(--weak-ink); }

/* Forms */
fieldset { border: none; border-bottom: 1px solid var(--line); padding: 0 0 var(--space-5); margin: 0 0 var(--space-5); min-width: 0; }
legend { font-weight: 600; margin-bottom: var(--space-3); padding: 0; }
.legend-block { display: block; font-size: 13px; line-height: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--link); margin-bottom: var(--space-1); }
.field { margin-bottom: var(--space-4); }
.field label { display: block; font-weight: 600; margin-bottom: var(--space-1); }
.scale { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.scale label {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 500; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 6px 12px; background: var(--surface);
}
.scale label:hover { border-color: var(--ink); }
.scale label:has(input:checked) { background: var(--good-tint); border-color: var(--violet); color: var(--good-ink); font-weight: 600; }
.scale label:has(input:focus-visible) { outline: 2px solid var(--violet); outline-offset: 2px; }
.scale input { accent-color: var(--violet); }

/* Pyramid */
.pyramid { display: block; max-width: 100%; height: auto; }
.pyramid-interactive polygon[data-block] { cursor: pointer; outline: none; }
.pyramid-interactive polygon[data-block]:focus-visible { stroke: var(--violet); stroke-width: 4; }
/* Hovering shades the whole block from a shape drawn on top (.pyramid-hover), so a block's tip is never covered by the block beside it. */
.pyramid-hover { fill: var(--pink-20); stroke: none; }
/* The selected block's outline is its own shape on top (.pyramid-top), so the blocks beside it never cover a corner. */
.pyramid-top { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.pyramid-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.pyramid-detail[hidden] { display: none; }
.pyramid-detail h2 { margin-top: 0; }
.mini-pyramid { display: block; flex-shrink: 0; }

.takeaways { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.takeaways li { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); margin: 0; }
.takeaways code { font-size: 14px; font-weight: 600; }
code { font-family: var(--font-mono); font-size: 0.9em; overflow-wrap: anywhere; }
.confidence { font-size: 56px; line-height: 60px; font-weight: 300; font-variant-numeric: lining-nums; margin-top: var(--space-5); }
.bar { height: 8px; background: var(--surface-sunk); border-radius: var(--radius-sm); margin: var(--space-2) 0 var(--space-4); }
.bar span { display: block; height: 8px; background: var(--violet); border-radius: var(--radius-sm); }

@media (max-width: 720px) {
  .topbar { padding: var(--space-3) var(--space-4); }
  main { padding: var(--space-5) var(--space-4) 48px; }
  h1 { font-size: 28px; line-height: 36px; }
  .coach { font-size: 20px; line-height: 30px; }
  .me { padding-left: var(--space-4); }
  .conversation { padding-left: var(--space-4); }
  .pyramid-layout { grid-template-columns: minmax(0, 1fr); }
  .takeaways li { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
  .topbar-sentence { display: none; }
  .topbar-sprint { flex: 1 1 100%; justify-content: space-between; flex-wrap: nowrap; }
  .topbar-actions { gap: var(--space-3); }
  .topbar > .topbar-actions { flex-wrap: wrap; row-gap: var(--space-2); }
  .topbar-actions a { white-space: nowrap; }
  .topbar-resume { min-height: 36px; padding: 6px 12px; font-size: 14px; }
}

.visually-quiet { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
details.card summary { cursor: pointer; }
details.card[open] summary { margin-bottom: var(--space-3); }

/* Pages outside the sprint: the pink book cover with a paper sheet laid on it. */
.tone-pink {
  background: var(--cover-to) linear-gradient(165deg, var(--cover-from) 0%, var(--cover-to) 900px) no-repeat;
  position: relative;
}
/* The pyramid, drawn huge in white line behind the cover. */
.tone-pink::before {
  content: ""; position: absolute; top: 0; right: 0; width: min(940px, 100%); height: 960px; pointer-events: none; opacity: .16;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 438 394' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M219 9 425 385H12z'/%3E%3Cpath d='M77 268h283M143 147h151M117 268l64 117M249 268l65 117M183 147l66 121'/%3E%3C/svg%3E") no-repeat 0 -40px / 1100px auto;
}
.tone-pink > * { position: relative; }
.tone-pink .topbar { background: transparent; border-bottom: none; position: relative; z-index: 2; }
.tone-pink .topbar-actions a:not(.btn-secondary) { font-weight: 600; font-size: 15px; }
.tone-pink .brand-strip { display: none; }
.tone-pink .brand, .tone-pink .topbar-actions a:not(.btn-secondary) { color: var(--on-accent); }
.tone-pink .topbar :focus-visible, .tone-pink .hero :focus-visible, .cover-head :focus-visible, .cta-band :focus-visible { outline-color: var(--on-accent); }
.tone-pink main.wide { max-width: 1120px; padding-top: var(--space-7); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: var(--space-8); align-items: center; padding-bottom: var(--space-9); color: var(--on-accent); min-height: min(820px, calc(100vh - 72px)); }
.eyebrow { font-size: 13px; line-height: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 var(--space-4); }
.hero .eyebrow, .cover-head .eyebrow { font-size: 19px; line-height: 26px; text-transform: none; letter-spacing: 0; }
.cover-head .eyebrow::before { content: ""; display: block; width: 40px; height: 4px; background: var(--on-accent); margin-bottom: var(--space-4); }
.display { font-size: clamp(44px, 6.2vw, 88px); line-height: 1.02; font-weight: 900; letter-spacing: -0.03em; margin: 0 0 var(--space-6); max-width: 20ch; text-wrap: balance; }
.cover-head .display { font-size: clamp(40px, 5vw, 68px); line-height: 1.06; }
.hero-lead { font-size: 22px; line-height: 34px; font-weight: 500; max-width: 44ch; margin-bottom: var(--space-6); }
.quiet-link { font-weight: 600; text-decoration: none; }
.hero .quiet-link { color: var(--on-accent); }
.quiet-link:hover { text-decoration: underline; }
.hero .quiet-link:hover { color: var(--on-accent); }
.book3d { --w: 380px; --t: 30px; perspective: 1400px; width: var(--w); margin: 0 auto; padding: var(--space-3) 0; }
.book { position: relative; width: var(--w); aspect-ratio: 1126 / 1808; transform-style: preserve-3d; transform: rotateY(-28deg) rotateX(3deg); transition: transform .4s ease; }
.book img { position: absolute; inset: 0; width: 100%; height: 100%; transform: translateZ(calc(var(--t) / 2)); border-radius: 2px 4px 4px 2px; }
.book::after { content: ""; position: absolute; inset: 0; transform: translateZ(calc(var(--t) / 2 + 1px)); border-radius: 2px 4px 4px 2px; pointer-events: none;
  background: linear-gradient(90deg, rgb(0 0 0 / .22) 0, rgb(255 255 255 / .28) 1.2%, rgb(0 0 0 / .08) 2.6%, transparent 5%, transparent 92%, rgb(255 255 255 / .12) 100%); }
.book-pages { position: absolute; top: 4px; height: calc(100% - 8px); width: var(--t); left: calc(var(--w) - var(--t) / 2 - 3px); transform: rotateY(90deg);
  background: repeating-linear-gradient(90deg, #FBF8F1 0 2px, #E3DDCF 2px 3px); }
.book-back { position: absolute; inset: 0; background: var(--pink-deep); transform: translateZ(calc(var(--t) / -2)); border-radius: 4px 2px 2px 4px; box-shadow: -24px 28px 56px rgb(60 0 30 / .45), -6px 8px 14px rgb(60 0 30 / .25); }
@media (prefers-reduced-motion: reduce) { .book { transition: none; } }

.sheet { background: var(--ground); border-radius: 28px; padding: var(--space-9) var(--space-8); box-shadow: 0 30px 80px rgb(90 0 40 / .35); }
.sheet-reading { padding-left: clamp(24px, 12%, 160px); padding-right: clamp(24px, 12%, 160px); }
.sheet.chaptered > h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.pack { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-object); overflow: hidden; }
.pack-head { font-family: ui-monospace, Menlo, monospace; font-size: 14px; font-weight: 600; padding: var(--space-3) var(--space-5); margin: 0; border-bottom: 1px solid var(--line); background: var(--surface-sunk); }
.pack .takeaways { gap: 0; margin: 0; }
.pack .takeaways li { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: var(--space-3) var(--space-5); }
.pack .takeaways li:last-child { border-bottom: none; }
.pack .takeaways span { font-size: 14px; line-height: 22px; color: var(--muted); }
.cta-band { text-align: center; color: var(--on-accent); padding: 128px var(--space-4); position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.05; font-weight: 900; letter-spacing: -0.03em; margin: 0 0 var(--space-4); text-wrap: balance; }
.cta-band p { font-size: 22px; line-height: 32px; font-weight: 600; max-width: 40ch; margin: 0 auto var(--space-6); }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: var(--space-6); }
  .hero { min-height: 0; }
}
@media (max-width: 720px) {
  .tone-pink main.wide { padding: var(--space-6) 0 0; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 0 var(--space-4) var(--space-8); gap: var(--space-7); }
  .hero-lead { font-size: 20px; line-height: 30px; font-weight: 600; }
  .sheet { border-radius: 0; padding: var(--space-8) var(--space-4); }
  .cta-band { padding: var(--space-8) var(--space-4); }
}

/* Notebook pages */
.kicker { font-variant-numeric: lining-nums; font-size: 13px; line-height: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--link); margin: 0 0 var(--space-3); }
h1 + .lead { margin-bottom: var(--space-6); }
.paper { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: var(--space-5); box-shadow: var(--shadow-object); }
.chaptered > h2 { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.chaptered > p, .chaptered > ul { max-width: var(--measure); }
.danger-zone { margin-top: var(--space-8); padding: var(--space-5); border: 1px solid var(--pink-30); border-radius: var(--radius-xl); }
.danger-zone h2 { margin-top: 0; }
details.card summary { list-style-position: outside; }
.cover-head { color: var(--on-accent); padding-bottom: var(--space-8); max-width: 820px; }
.cover-head .display { margin-bottom: var(--space-4); }
.tone-pink .sheet .pyramid-layout { margin-bottom: var(--space-4); }
@media (max-width: 720px) {
  .cover-head { padding: 0 var(--space-4) var(--space-7); }
  .chaptered > h2 { margin-top: var(--space-7); }
  .confidence { font-size: 44px; line-height: 48px; }
}

/* The diagnostic: mix of modes, sliders and claim tips */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; padding: 0; border: none; cursor: pointer; --thumb: var(--pink); }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: var(--radius-sm); background: var(--line); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: var(--radius-sm); background: var(--line); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: var(--thumb); border: none; box-shadow: none; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--thumb); border: none; box-shadow: none; }
input[type="range"]:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }
input[type="range"]:disabled { cursor: not-allowed; --thumb: var(--line-strong); opacity: .6; }

.mix { border-bottom: none; padding: var(--space-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); margin-bottom: var(--space-6); }
.mix legend { float: left; width: 100%; font-size: 17px; margin-bottom: var(--space-1); }
.mix legend + * { clear: both; }
.mix-bar { display: flex; height: 10px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-sunk); margin: var(--space-4) 0 var(--space-5); }
.mix-bar span { display: block; height: 100%; transition: width .15s ease; }
.mix-bar .mix-informationSharing { background: var(--line-strong); }
.mix-bar .mix-coaches { background: var(--pink); }
.mix-bar .mix-facilitators { background: var(--violet); }
.mix-row { padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.mix-row label { font-weight: 700; display: block; }
.mix-row .small { margin: 0 0 var(--space-1); }
.mix-row.mix-informationSharing input { --thumb: var(--muted); }
.mix-row.mix-facilitators input { --thumb: var(--violet); }
.mix-input { display: grid; grid-template-columns: minmax(0, 1fr) 56px; gap: var(--space-3); align-items: center; }
.mix-input output { font-weight: 700; text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.mix-total { margin: var(--space-3) 0 0; padding-top: var(--space-3); border-top: 1px solid var(--line); font-weight: 700; font-variant-numeric: lining-nums; }
.mix-total.mix-off { color: var(--weak-ink); }

.claim { padding: var(--space-5) 0; border-bottom: 1px solid var(--line); }
.claim-head { display: flex; gap: var(--space-3); align-items: flex-start; }
.claim-text { font-size: 19px; line-height: 28px; font-weight: 600; margin: 0; flex: 1; }
.info-btn { flex: 0 0 auto; width: 28px; height: 28px; margin-top: 1px; border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); font: 700 15px/1 var(--font-sans); font-style: italic; cursor: pointer; }
.info-btn:hover, .info-btn[aria-expanded="true"] { border-color: var(--ink); color: var(--ink); background: var(--surface-sunk); }
.tip { margin: var(--space-3) 0 0; padding: var(--space-3) var(--space-4); background: var(--surface-sunk); border-left: 3px solid var(--pink); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: 15px; line-height: 24px; }
.slider { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; margin-top: var(--space-4); }
.slider-end { font-size: 14px; color: var(--muted); font-weight: 600; }
.slider-value { margin: var(--space-1) 0 var(--space-2); text-align: center; font-weight: 600; color: var(--ink); }
.claim.is-unknown .slider-value { color: var(--muted); }
.unknown { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 15px; cursor: pointer; }
.unknown input { width: 18px; height: 18px; accent-color: var(--violet); }
@media (max-width: 720px) {
  .mix { padding: var(--space-4); }
  .slider { grid-template-columns: 1fr 1fr; gap: 0; }
  .slider input { grid-column: 1 / -1; grid-row: 1; }
  .slider .slider-end { grid-row: 2; font-size: 13px; }
  .slider .slider-end:last-child { text-align: right; }
  .slider-value { text-align: left; }
}

/* The front page: full-width bands on paper between a pink cover and a pink close. See DESIGN.md, "Front page". */
:root { --band-alt: var(--surface-sunk); }
main.bleed { max-width: none; padding: 0; }
.band { background: var(--ground); padding: 128px 0; }
.band-sunk { background: var(--band-alt); }
.band-white { background: var(--surface); }
.band-tint { background: var(--pink-10); }
.band.band-night { background: var(--night); color: #FFFFFF; }
.band.band-night .eyebrow { color: #FF8DB8; }
.band-cover { background: transparent; color: var(--on-accent); }
.frame { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px); }
.band .eyebrow { color: var(--link); }
.band-cover .eyebrow { color: var(--on-accent); }
.section-title { font-size: clamp(30px, 3.8vw, 54px); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; max-width: 20ch; margin: 0 0 var(--space-7); text-wrap: balance; }
.section-lead { font-size: 20px; line-height: 30px; max-width: var(--measure); margin: var(--space-7) 0 0; }

.band-cover .hero { padding-top: var(--space-7); padding-bottom: var(--space-9); }
.hero .display { max-width: 18ch; }
.hero .btn-primary, .cta-band .btn-primary { min-height: 60px; padding: 0 32px; font-size: 20px; border-radius: 10px; box-shadow: 0 10px 30px rgb(90 0 40 / .3); transition: transform .15s ease, box-shadow .15s ease; }
.hero .btn-primary:hover, .cta-band .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgb(90 0 40 / .36); }
@media (prefers-reduced-motion: reduce) { .hero .btn-primary, .cta-band .btn-primary { transition: none; transform: none !important; } }

/* The hero fits the first screen of a laptop. The cover section is one screen tall under the top bar, and the headline,
   lead and button are sized by the window height, so the button shows in full from 600px up. */
@media (min-width: 721px) {
  .band-cover:not(.cta-band) { padding: 0; }
}
@media (min-width: 961px) {
  .band-cover .hero {
    --bar: 80px; /* the top bar */
    min-height: min(calc(88vh - var(--bar)), 700px); /* a little under one screen, so the next section shows below */
    padding-top: clamp(8px, 3vh, 48px); padding-bottom: clamp(24px, 6vh, 80px);
  }
  .hero .eyebrow { margin-bottom: clamp(8px, 2vh, 16px); }
  .hero .display { font-size: clamp(32px, min(4.4vw, 7.4vh), 62px); line-height: 1.06; max-width: 20ch; margin-bottom: clamp(12px, 2.4vh, 24px); }
  .hero-lead { font-size: clamp(17px, 2.5vh, 20px); line-height: 1.55; max-width: 50ch; margin-bottom: clamp(16px, 3vh, 28px); }
  .hero .btn-primary { min-height: clamp(48px, 7vh, 60px); }
}


.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; }
.split-text > p { max-width: 52ch; }
.pyramid-figure { margin: 0; }
.pyramid-figure .pyramid { width: 100%; max-width: 520px; margin: 0 auto; }
.model-split .pyramid-figure { background: var(--surface); border-radius: 28px; padding: var(--space-8) var(--space-7); box-shadow: var(--shadow-lift); }
.pyramid-figure figcaption { margin-top: var(--space-4); text-align: center; }
.block-details { min-height: 176px; margin: var(--space-5) 0; padding-left: var(--space-5); border-left: 2px solid var(--pink); }
.block-detail[hidden] { display: none; }
.block-name { font-size: 20px; line-height: 28px; font-weight: 700; margin: 0 0 var(--space-2); display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.block-detail > p:last-child { margin: 0; }


.fan { position: relative; height: 250px; margin-top: var(--space-6); background: var(--pink); border-radius: var(--radius-xl); overflow: hidden; }
.md-card {
  position: absolute; left: 50%; top: 30px; width: 120px; height: 164px; padding: var(--space-3); background: #fff; border-radius: var(--radius-xl);
  box-shadow: 0 6px 16px rgb(90 10 46 / .28); display: flex; flex-direction: column; gap: 10px;
  transform: translateX(calc(-50% + (var(--i) - 2.5) * 74px)) rotate(var(--turn));
  transition: transform .8s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * 60ms);
}
.md-card:nth-child(even) { top: 74px; z-index: 1; }
.md-card code { font-size: 11px; font-weight: 700; color: #1C1C1A; margin-bottom: 4px; }
.md-card span { display: block; height: 5px; border-radius: 3px; background: #C9C7C0; }
.md-card span:nth-child(2) { width: 90%; } .md-card span:nth-child(3) { width: 70%; } .md-card span:nth-child(4) { width: 84%; } .md-card span:nth-child(5) { width: 56%; }
.motion .fan:not(.is-in) .md-card { transform: translateX(-50%) rotate(0deg); }

.tiers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); align-items: stretch; }
.tier { margin: 0; padding: var(--space-7) var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--round); display: flex; flex-direction: column; }
.tier h3 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 800; }
.price { font-size: 72px; line-height: 80px; font-weight: 900; letter-spacing: -0.04em; font-variant-numeric: lining-nums; margin: var(--space-3) 0 var(--space-5); }
.tier ul { list-style: none; padding: var(--space-5) 0 0; margin: 0; border-top: 1px solid var(--line); flex: 1; }
/* What to do with each price: the free one starts here, the paid ones are chosen later. */
.tier-action { margin: var(--space-5) 0 0; }
.tier-action .btn-primary { width: 100%; text-align: center; font-size: 16px; padding: 10px 12px; }
.tier-later { font-size: 14px; line-height: 22px; font-weight: 600; color: var(--muted); }
.tier-main .tier-later { color: #C9C4D6; }
.tiers-note { margin: var(--space-7) 0 0; max-width: none; text-align: center; font-variant-numeric: lining-nums; }
.tier li { position: relative; padding-left: var(--space-5); margin-bottom: var(--space-3); font-size: 16px; line-height: 24px; }
.tier li::before { content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 8px; background: var(--pink); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
/* The coaching tier is the one the page is about: night violet, lifted. */
.tier.tier-main { background: var(--night); color: #FFFFFF; border-color: var(--night); box-shadow: var(--shadow-lift); margin: calc(-1 * var(--space-4)) 0; padding-top: calc(var(--space-7) + var(--space-4)); }
.tier-main ul { border-top-color: rgb(255 255 255 / .2); }
.tier-main .price { color: var(--yellow); }

.who { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); }
.who-for, .who-not { padding: var(--space-7); border-radius: var(--round); }
.who-for { background: var(--surface); box-shadow: var(--shadow-lift); }
.who-not { border: 2px dashed var(--line-strong); }
.who h3 { margin: 0 0 var(--space-3); font-size: 40px; line-height: 48px; font-weight: 800; letter-spacing: -0.02em; }
.who-not h3 { color: var(--muted); }
.who p { margin: 0; max-width: 52ch; }

.band-cover.cta-band { background: var(--cover-to); text-align: center; padding: 144px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 50%; top: 24px; width: 760px; height: 680px; transform: translateX(-50%); pointer-events: none; opacity: .14; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 438 394' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M219 9 425 385H12z'/%3E%3Cpath d='M77 268h283M143 147h151M117 268l64 117M249 268l65 117M183 147l66 121'/%3E%3C/svg%3E") no-repeat center / contain; }
.cta-band > * { position: relative; }
.cta-note { font-size: 15px !important; line-height: 24px !important; font-weight: 600; max-width: 62ch !important; margin: var(--space-6) auto 0 !important; }
.cta-band a:not(.btn-primary) { color: var(--on-accent); }
.cta-band a:not(.btn-primary):hover { color: var(--on-accent); text-decoration-thickness: 2px; }

/* Motion: only when landing.js has run and the reader hasn't asked for less motion. */
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.motion .reveal.is-in { opacity: 1; transform: none; }
.motion .pyramid-build polygon[data-block] { opacity: 0; }
.motion .pyramid-build.is-in polygon[data-block] { animation: block-in .5s ease forwards; }
.motion .pyramid-build.is-in [data-block="trust"] { animation-delay: .15s; }
.motion .pyramid-build.is-in [data-block="purpose"] { animation-delay: .3s; }
.motion .pyramid-build.is-in [data-block="sharing"] { animation-delay: .5s; }
.motion .pyramid-build.is-in [data-block="ownership"] { animation-delay: .65s; }
.motion .pyramid-build.is-in [data-block="identity"] { animation-delay: .85s; }
@keyframes block-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .md-card { transition: none; } }

@media (max-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .tier.tier-main { margin: 0; padding-top: var(--space-7); }
}
@media (max-width: 720px) {
  .band { padding: var(--space-8) 0; }
  .frame { padding: 0 var(--space-4); }
  .band-cover .hero { padding: var(--space-5) var(--space-4) var(--space-8); }
  .section-title { font-size: 28px; line-height: 36px; margin-bottom: var(--space-5); }
  .who { grid-template-columns: minmax(0, 1fr); }
  .who-for, .who-not { padding: var(--space-5); }
  .who h3 { font-size: 36px; line-height: 44px; }
  .section-lead { font-size: 18px; line-height: 28px; margin-top: var(--space-6); }
  .fan { height: 220px; }
  .md-card { width: 100px; height: 136px; top: 26px; transform: translateX(calc(-50% + (var(--i) - 2.5) * 50px)) rotate(var(--turn)); }
  .md-card:nth-child(even) { top: 66px; }
  .md-card code { font-size: 10px; }
  .price { font-size: 52px; line-height: 60px; }
}

/* The model: audience, network, community first, then the plain pyramid. */
.section-intro { font-size: 20px; line-height: 30px; max-width: var(--measure); margin: 0 0 var(--space-7); }
.spectrum { margin: 0 0 var(--space-9); }
.spectrum-art { display: block; width: 100%; max-width: 960px; height: auto; color: var(--ink); }
.spectrum-art .links line { stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 4 3; }
.spectrum-art .dot { fill: var(--surface); stroke: currentColor; stroke-width: 3; }
.spectrum-art .dot-lead { fill: var(--pink); stroke: var(--pink); stroke-width: 3; }
.spectrum-art .axis { fill: none; stroke: currentColor; stroke-width: 4; }
.spectrum-list { list-style: none; padding: 0; margin: var(--space-4) 0 0; max-width: 960px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.spectrum-list li { margin: 0; }
.spectrum-list h3 { font-size: 20px; line-height: 28px; font-weight: 800; margin: 0 0 var(--space-1); text-align: center; }
.spectrum-list p { font-size: 15px; line-height: 24px; margin: 0; }
.model-split .section-title { font-size: 30px; line-height: 38px; }
.block-empty { margin: 0; color: var(--muted); }
.block-empty[hidden] { display: none; }
.pyramid-plain polygon[data-block] { fill: var(--surface) !important; }
.pyramid-plain polygon[data-block]:hover { fill: var(--pink-10) !important; }
.pyramid-plain polygon[data-block].selected { fill: var(--pink-20) !important; }
.pyramid-plain .pyramid-top { fill: var(--pink-20); }
@media (max-width: 720px) {
  .spectrum { margin-bottom: var(--space-8); }
  .spectrum-list { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .spectrum-list h3 { text-align: left; }
  .section-intro { font-size: 18px; line-height: 28px; }
  .model-split .section-title { font-size: 24px; line-height: 32px; }
}

/* What you take away: plain words, the package that opens, a peek inside, the AI using it, and the contents. */
.take-steps { list-style: none; counter-reset: take; padding: 0; margin: 0; }
.take-steps li { counter-increment: take; position: relative; padding: var(--space-3) 0 var(--space-3) 48px; border-top: 1px solid var(--line); font-size: 18px; line-height: 28px; }
.take-steps li:last-child { border-bottom: 1px solid var(--line); }
.take-steps li::before { content: counter(take); position: absolute; left: 0; top: 14px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--pink); color: var(--on-accent); font-size: 15px; font-weight: 800; font-variant-numeric: lining-nums; }

/* The package: a folder in deep pink, with the .md files rising out of it. */
.package { position: relative; height: 380px; max-width: 440px; width: 100%; margin: 0 auto; }
.folder-back { position: absolute; left: 50%; bottom: 0; width: 320px; height: 200px; transform: translateX(-50%); background: var(--pink-30); border: 3px solid var(--ink); border-radius: var(--radius-md) var(--radius-xl) var(--radius-xl) var(--radius-xl); }
.folder-back::before { content: ""; position: absolute; left: -3px; top: -25px; width: 120px; height: 26px; background: var(--pink-30); border: 3px solid var(--ink); border-bottom: none; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.folder-front { position: absolute; left: 50%; bottom: 0; z-index: 3; width: 340px; height: 160px; transform: translateX(-50%); background: var(--pink); border: 3px solid var(--ink); border-radius: var(--radius-xl); display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-5); color: var(--ink); }
.folder-name { font-family: ui-monospace, Menlo, monospace; font-size: 18px; font-weight: 700; }
.folder-meta { font-size: 14px; font-weight: 600; opacity: .9; margin-top: 2px; }
.package .md-icon { position: absolute; left: 50%; top: 40px; z-index: 2; width: 128px; height: auto; transition: transform .9s cubic-bezier(.2, .7, .2, 1);  }
.package .md-icon:nth-of-type(1) { transform: translateX(-50%) translate(-96px, 34px) rotate(-12deg); }
.package .md-icon:nth-of-type(2) { transform: translateX(-50%) translate(96px, 34px) rotate(12deg); }
.package .md-icon:nth-of-type(3) { transform: translateX(-50%); }
.motion .package:not(.is-in) .md-icon { transform: translateX(-50%) translateY(150px); }
.package.is-in .md-icon:nth-of-type(1) { transition-delay: .15s; }
.package.is-in .md-icon:nth-of-type(2) { transition-delay: .3s; }
.md-page { fill: #F4F4F2; stroke: #1C1C1A; stroke-width: 3; }
.md-fold { fill: #E2E2DE; stroke: #1C1C1A; stroke-width: 3; stroke-linejoin: round; }
.md-lines { stroke: #1C1C1A; stroke-width: 4; }
.md-icon text { font-family: var(--font-sans); font-weight: 800; font-size: 30px; fill: #1C1C1A; }

/* A peek inside one file, and the AI using the pack. Both are fixed-colour objects that read the same in both themes. */
/* A page with its top-right corner folded down, like the .md file icons: the corner is cut on the diagonal and the fold drawn over it. */

.pack-title { font-size: 24px; line-height: 32px; font-weight: 800; margin: var(--space-8) 0 var(--space-5); }
.pack-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.pack-grid li { margin: 0; padding: var(--space-5); background: var(--surface); border-radius: var(--round); display: flex; flex-direction: column; }
.pack-grid li:nth-child(6) { background: var(--night); color: #FFFFFF; }
.pack-grid li:nth-child(6) code { color: #FFFFFF; opacity: .8; }
.pack-grid p { margin: 0 0 var(--space-2); font-size: 15px; line-height: 24px; }
.pack-grid .pack-name { font-size: 17px; font-weight: 800; margin-bottom: var(--space-1); }
.pack-grid code { margin-top: auto; padding-top: var(--space-3); font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.pack-note { margin: var(--space-6) 0 0; }
@media (prefers-reduced-motion: reduce) { .package .md-icon { transition: none; } }
@media (max-width: 960px) {
  .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .package { height: 300px; }
  .folder-back { width: 260px; height: 160px; }
  .folder-front { width: 280px; height: 128px; padding: var(--space-4); }
  .folder-name { font-size: 16px; }
  .package .md-icon { width: 100px; top: 30px; }
  .package .md-icon:nth-of-type(1) { transform: translateX(-50%) translate(-74px, 28px) rotate(-12deg); }
  .package .md-icon:nth-of-type(2) { transform: translateX(-50%) translate(74px, 28px) rotate(12deg); }
  .pack-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .take-steps li { font-size: 17px; }
}

/* The hero shows the agent at work: a chat window in the reader's own AI. */

/* What the agent is made of: three sources, added up, become the files. */
.sources { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--space-4); align-items: stretch; }
.source { background: var(--surface); border-radius: var(--round); padding: var(--space-6); display: flex; flex-direction: column; }
.source-art { height: 128px; display: flex; align-items: center; margin-bottom: var(--space-5); }
.source-svg { height: 120px; width: auto; color: var(--ink); }
.source-svg .links line { stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 4 3; }
.source-svg .dot { fill: var(--surface); stroke: currentColor; stroke-width: 3; }
.source-svg .dot-lead { fill: var(--pink); stroke: currentColor; stroke-width: 3; }
.source-svg .draw { stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.source-svg .fill-white { fill: #fff; } .source-svg .fill-pink { fill: var(--pink); } .source-svg .fill-none { fill: none; }
.source-svg .dashed { stroke-width: 2; stroke-dasharray: 3 5; }
.source-kind { font-size: 13px; line-height: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--link); margin: 0 0 var(--space-2); }
.source h3 { font-size: 26px; line-height: 32px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 var(--space-3); }
.source p { font-size: 16px; line-height: 26px; margin: 0; }
.source .source-how { margin-top: auto; padding-top: var(--space-4); font-size: 14px; line-height: 22px; font-weight: 600; color: var(--muted); }
.sources-op, .sources-join { font-size: 44px; line-height: 1; font-weight: 300; color: var(--link); }
.sources-op { align-self: center; }
.sources-join { text-align: center; margin: var(--space-4) 0; }
.agent-card { background: var(--night); color: #FFFFFF; border-radius: 28px; padding: var(--space-7); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-7); align-items: center; box-shadow: var(--shadow-lift); }
.agent-card .source-kind { color: #FF8DB8; }
.agent-card h3 { font-size: 32px; line-height: 40px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 var(--space-3); max-width: 22ch; text-wrap: balance; }
.agent-card p { margin: 0; max-width: 56ch; }
.agent-card a { color: #FFFFFF; font-weight: 700; white-space: nowrap; }
.agent-files { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.agent-files li { margin: 0; }
.agent-files code { display: block; font-size: 14px; font-weight: 600; color: #FFFFFF; background: rgb(255 255 255 / .12); border-radius: var(--radius-md); padding: 6px 12px; }


/* Things you can say to the agent, beside the peek into one file. */

@media (max-width: 960px) {
  .sources { grid-template-columns: minmax(0, 1fr); }
  .sources-op { justify-self: center; }
  .agent-card { grid-template-columns: minmax(0, 1fr); padding: var(--space-6); }
}
@media (max-width: 720px) {
  .agent-card h3 { font-size: 26px; line-height: 34px; }
}

/* The book behind it: the cover standing on the night band, with a short word on what the book is. */
.book-split { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: var(--space-9); align-items: center; }
.book-figure { margin: 0; }
.book-figure .book3d { --w: 300px; --t: 24px; }
.book-figure .book-back { box-shadow: -24px 28px 56px rgb(0 0 0 / .55), -6px 8px 14px rgb(0 0 0 / .35); }
@media (hover: hover) { .book-figure:hover .book { transform: rotateY(-18deg) rotateX(2deg); } }
.book-text .section-title { margin-bottom: var(--space-3); }
.book-text .section-title em { font-style: normal; }
.book-text p { font-size: 19px; line-height: 30px; max-width: 52ch; margin: 0 0 var(--space-4); }
.book-text .book-sub { font-size: 22px; line-height: 32px; font-weight: 600; color: #FF8DB8; margin-bottom: var(--space-6); }
.book-link { color: #FFFFFF; font-weight: 700; }
.book-link:hover { color: #FFFFFF; text-decoration-thickness: 2px; }
@media (max-width: 960px) {
  .book-split { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
  .book-figure .book3d { --w: 200px; --t: 16px; }
}

/* The front page after the visitor review: how long it takes, and what plan confidence means. */
.pack-join { font-size: 30px; line-height: 38px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 var(--space-3); max-width: 22ch; text-wrap: balance; }

/* The error page: one sentence and one way back, on the cover. */
.error-page { padding-bottom: var(--space-9); }
.error-page .actions { margin-top: var(--space-6); }
.error-help { font-size: 15px; line-height: 24px; font-weight: 600; margin: var(--space-5) 0 0; color: var(--on-accent); }
.error-help a, .error-help a:hover { color: var(--on-accent); }

.sheet-reading { font-variant-numeric: lining-nums; }

.btn-primary, .btn-secondary { text-align: center; }

/* The method page's book plug: a night panel under the sheet, with the standing cover and a buy button. */
.book-panel { background: var(--night); color: #FFFFFF; border-radius: 28px; padding: var(--space-9) var(--space-8); margin-top: var(--space-8); box-shadow: 0 30px 80px rgb(40 0 30 / .4); }
.book-panel .eyebrow { color: #FF8DB8; }
.book-panel .btn-primary { margin-top: var(--space-3); }
@media (max-width: 720px) { .book-panel { border-radius: 0; padding: var(--space-8) var(--space-4); margin-top: 0; } }

/* A chapter laid across the sheet: the heading on the left, its text on the right, so the full width is used. */
.chapter-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-8); margin-top: var(--space-8); padding-top: var(--space-7); border-top: 1px solid var(--line); }
.chapter-row h2 { margin: 0; font-size: 28px; line-height: 36px; text-wrap: balance; }
.chapter-row p, .chapter-row li { font-size: 18px; line-height: 30px; }
.chapter-row > div > :last-child { margin-bottom: 0; }
@media (max-width: 960px) { .chapter-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); margin-top: var(--space-7); padding-top: var(--space-6); } }

/* The hint under the method page's pyramid: centred on the pyramid, in the brand pink. */
.pyramid-hint { max-width: 420px; margin: var(--space-3) 0 0; text-align: center; font-size: 15px; line-height: 24px; font-weight: 700; color: var(--link); }

/* Questions and answers: the title on the left, the list on the right. One answer is open at a time. */
.faq-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-8); align-items: start; }
.faq-split .section-title { margin-bottom: 0; }
.faq { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding: var(--space-5) 0; font-size: 22px; line-height: 30px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: 0 0 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--pink-10); color: var(--link); font-size: 26px; line-height: 1; font-weight: 400; transition: transform .2s ease, background .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--pink); color: var(--on-accent); }
.faq-item summary:hover { color: var(--link); }
.faq-answer { padding: 0 var(--space-9) var(--space-5) 0; }
.faq-answer p { font-size: 18px; line-height: 30px; max-width: 62ch; margin: 0 0 var(--space-3); }
.faq-answer > :last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }
@media (max-width: 960px) {
  .faq-split { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .faq-item summary { font-size: 19px; line-height: 28px; }
  .faq-answer { padding-right: 0; }
}

/* How it works: four large rings joined by a thin line, left to right, with an arrow into the last one. Each has a short text under it.
   The numbers are Montserrat, whose figures all stand on the baseline (Raleway's drop below it). */
.timeline { --node: 116px; --r: calc(var(--node) / 2); --col-gap: var(--space-6); list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap); }
.tl-step { position: relative; margin: 0; display: flex; flex-direction: column; }
.tl-node { align-self: center; position: relative; z-index: 1; width: var(--node); height: var(--node); margin-bottom: var(--space-6); border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 4px solid var(--ink); color: var(--ink); transition: background-color .25s ease, color .25s ease; }
.tl-num { font-family: Montserrat, Raleway, sans-serif; font-size: 58px; line-height: 1; font-weight: 600; font-variant-numeric: lining-nums; }
.tl-step:hover .tl-node { background: var(--ink); color: var(--surface); }
/* The line from the ring before to this one; the last one ends in an arrow. */
.tl-step + .tl-step::before { content: ""; position: absolute; top: calc(var(--r) - 1px); left: calc(-50% - var(--col-gap) + var(--r)); width: calc(100% + var(--col-gap) - 2 * var(--r)); height: 2px; background: var(--ink); transform-origin: left center; }
.tl-step:last-child::after { content: ""; position: absolute; top: calc(var(--r) - 8px); left: calc(50% - var(--r) - 18px); width: 14px; height: 14px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: rotate(45deg); transform-origin: center; }
.tl-step h3 { margin: 0 0 var(--space-1); font-size: 24px; line-height: 32px; font-weight: 700; }
.tl-step > p { margin: 0; font-size: 16px; line-height: 24px; max-width: 34ch; }
.tl-step .tl-when { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--link); margin-bottom: var(--space-3); }

/* The one authored moment: when the section comes into view each ring lands in turn, the line draws on to the next, and the text follows.
   Nothing is hidden unless the script runs (html.motion); reduced motion shows it all at once. */
.motion .timeline.reveal { opacity: 1; transform: none; transition: none; }
.motion .tl-node, .motion .tl-step > :not(.tl-node), .motion .tl-step::before, .motion .tl-step::after { transition-duration: .7s; transition-timing-function: cubic-bezier(.22, 1, .36, 1); }
.motion .tl-node { transition-property: opacity, transform, background-color, color; transition-delay: calc(var(--s) * .6s); }
.motion .tl-step > :not(.tl-node) { transition-property: opacity, transform; transition-delay: calc(var(--s) * .6s + .2s); }
.motion .tl-step::before { transition-property: transform; transition-duration: .6s; transition-delay: calc(var(--s) * .6s - .45s); }
.motion .tl-step::after { transition-property: opacity; transition-delay: calc(var(--s) * .6s + .1s); }
.motion .timeline:not(.is-in) .tl-node { opacity: 0; transform: scale(.7); }
.motion .timeline:not(.is-in) .tl-step > :not(.tl-node) { opacity: 0; transform: translateY(12px); }
.motion .timeline:not(.is-in) .tl-step::before { transform: scaleX(0); }
.motion .timeline:not(.is-in) .tl-step::after { opacity: 0; }
.motion .tl-step:hover .tl-node { transition-delay: 0s; transition-duration: .25s; }

@media (max-width: 960px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
  .timeline { --node: 76px; }
  .tl-step + .tl-step::before, .tl-step:last-child::after { display: none; }
  .tl-node { align-self: flex-start; margin-bottom: var(--space-4); }
  .tl-num { font-size: 38px; }
}

/* Questions you can put to your sparring partner, floating around the headline. */
/* The topics: a night band, a big headline, and bold cards that bob around it, each at its own tilt and its own pace. They pop in one after another
   and straighten up when you point at them. */
.band-ask { padding: 112px 0 128px; overflow: hidden; }
.ask-stage { position: relative; min-height: 680px; display: grid; place-items: center; }
.ask-center { position: relative; z-index: 2; text-align: center; }
.ask-title { margin: 0 auto; max-width: 13ch; font-size: clamp(40px, 5.1vw, 76px); line-height: 1.02; font-weight: 900; letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.ask-title em { font-style: normal; color: #FF8DB8; }
.ask-note { max-width: 32ch; margin: var(--space-5) auto 0; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.3; font-weight: 700; color: #FF8DB8; text-wrap: balance; }
.ask-cloud { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; }
.ask-bubble { position: absolute; z-index: 1; width: min(280px, 24%); margin: 0; }
.ask-bubble span { display: block; padding: 18px 24px 20px; background: #fff; color: var(--ink); border-radius: 20px 20px 20px 4px; font-size: 19px; line-height: 27px; font-weight: 700; box-shadow: 0 22px 44px rgb(0 0 0 / .4), 0 4px 10px rgb(0 0 0 / .25); rotate: var(--r); transition: scale .25s cubic-bezier(.22, 1, .36, 1), rotate .25s cubic-bezier(.22, 1, .36, 1); animation: ask-bob var(--f) ease-in-out infinite alternate; animation-delay: calc(var(--d) * -1); cursor: default; }
.ask-bubble:nth-child(even) span { border-radius: 20px 20px 4px 20px; }
.ask-bubble:nth-child(3n+1) span { background: var(--pink-deep); color: #fff; }
.ask-bubble:nth-child(4n+3) span { background: var(--violet); color: #fff; }
.ask-bubble:nth-child(5n+2) span { background: var(--pink-20); color: var(--ink); }
.ask-bubble:hover span { scale: 1.07; rotate: 0deg; animation-play-state: paused; z-index: 3; }
@keyframes ask-bob { from { transform: translateY(-12px); } to { transform: translateY(12px); } }
.motion .ask-bubble.reveal { transform: translateY(40px) scale(.8); transition: opacity .6s ease, transform .8s cubic-bezier(.22, 1, .36, 1); transition-delay: calc(var(--k) * .09s); }
.motion .ask-bubble.reveal.is-in { transform: none; }
.motion .ask-bubble:not(.is-in) span { animation-play-state: paused; }
.ask-1 { left: 2%; top: 3%; }
.ask-2 { left: 36%; top: -1%; }
.ask-3 { right: 1%; top: 5%; }
.ask-4 { left: 0; top: 31%; }
.ask-5 { right: 0; top: 34%; }
.ask-6 { left: 5%; top: 61%; }
.ask-7 { right: 5%; top: 63%; }
.ask-8 { left: 30%; bottom: 0; }
.ask-9 { right: 12%; bottom: 0; }
.ask-10 { left: 1%; bottom: -2%; }
@media (prefers-reduced-motion: reduce) { .ask-bubble span { animation: none; } .motion .ask-bubble.reveal { transition: none; } }
@media (max-width: 960px) {
  .band-ask { padding: 72px 0; }
  .ask-stage { display: block; min-height: 0; }
  .ask-title { max-width: none; margin: 0 0 var(--space-4); text-align: left; }
  .ask-note { margin: 0 0 var(--space-7); text-align: left; max-width: none; }
  .ask-center { text-align: left; }
  .ask-cloud { position: static; display: flex; flex-direction: column; gap: var(--space-4); }
  .ask-bubble { position: static; width: auto; max-width: 440px; }
  .ask-bubble span { animation: none; }
  .ask-bubble:nth-child(even) { align-self: flex-end; }
}

/* The example pack: the list of files beside the open file. */
.example-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.example-files { position: sticky; top: var(--space-5); }
.example-files ul { list-style: none; margin: var(--space-3) 0 0; padding: 0; border-top: 1px solid var(--line); }
.example-files li { border-bottom: 1px solid var(--line); }
.example-files a { display: block; padding: var(--space-3) var(--space-3); text-decoration: none; color: var(--ink); border-left: 3px solid transparent; }
.example-files a:hover { background: var(--surface-sunk); }
.example-files a[aria-current] { border-left-color: var(--pink); background: var(--surface-sunk); }
.example-name { display: block; font-weight: 700; margin: 0; }
.example-files code, .example-path code { font-family: var(--font-mono); font-size: 12px; color: var(--muted); background: none; padding: 0; }
.example-method { margin-top: var(--space-5); padding: 0 var(--space-3); }
.example-method .small { margin: var(--space-1) 0 0; }
.example-doc { min-width: 0; max-width: 72ch; scroll-margin-top: var(--space-5); font-variant-numeric: lining-nums; }
.example-path { margin: 0 0 var(--space-2); }
.example-doc > h2 { margin: 0 0 var(--space-2); font-size: 36px; line-height: 44px; }
.example-what { color: var(--muted); margin: 0 0 var(--space-6); padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); }
.example-text h3 { margin: var(--space-6) 0 var(--space-2); font-size: 22px; line-height: 30px; }
.example-text p, .example-text li { font-size: 17px; line-height: 28px; }
.example-text li { margin-bottom: var(--space-2); }
.example-front { font-family: var(--font-mono); font-size: 13px; line-height: 20px; background: var(--surface-sunk); border-radius: var(--radius-md); padding: var(--space-4); white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 var(--space-5); }
.pack-example { margin: var(--space-6) 0 0; }
.tiers-example { margin: var(--space-6) 0 0; font-weight: 600; text-align: center; max-width: none; }
.tiers-example + .tiers-note { margin-top: var(--space-4); }
@media (max-width: 960px) {
  .example-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .example-files { position: static; }
}

/* The author page: his books as cards on the pink ground. */
.about-first { margin-top: 0; padding-top: 0; border-top: none; }
.about-books { color: var(--on-accent); padding: var(--space-9) 0 0; }
.about-books .eyebrow { color: var(--on-accent); }
.about-book-list { list-style: none; margin: var(--space-7) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.about-book { background: var(--ground); color: var(--ink); border-radius: 20px; padding: var(--space-6); display: flex; flex-direction: column; }
.about-cover { display: block; width: 100%; height: 220px; object-fit: contain; object-position: left center; margin-bottom: var(--space-5); }
.about-cover-wide { border-radius: 4px; }
.about-book h3 { margin: 0; font-size: 24px; line-height: 30px; }
.about-book-sub { font-weight: 600; margin: var(--space-1) 0 var(--space-2); }
.about-book p { margin: 0 0 var(--space-3); }
.about-book .about-book-get { margin: auto 0 0; padding-top: var(--space-2); font-weight: 700; }
.about-also { font-size: 19px; line-height: 30px; max-width: 60ch; margin: var(--space-6) 0 0; }
@media (max-width: 960px) { .about-book-list { grid-template-columns: minmax(0, 1fr); } .about-books { padding: var(--space-8) var(--space-4) 0; } }
.about-photo { display: block; width: 100%; max-width: 280px; height: auto; border-radius: 20px; margin-top: var(--space-5); }

/* The hero: the book floats on the pink, with the pyramid drawn behind it in moving white line. Few words, plenty of air. */
.band-hero { position: relative; overflow: hidden; }
.tone-pink:has(.hero-lines)::before { display: none; }
/* The lines are the pyramid's own: its outline, its two rules and its two dotted dividers. They draw themselves, hold, and rub out again, in a loop,
   while the dotted ones march slowly. Only the stroke offset and opacity change. */
.hero-lines { --loop: 15s; position: absolute; top: -40px; right: -6%; width: min(1000px, 92%); height: auto; color: #fff; opacity: .26; pointer-events: none; transform-origin: 50% 90%; animation: lines-breathe 16s ease-in-out infinite alternate; }
.hero-lines .hl { stroke-width: 2; }
.hero-lines .hl-outline { stroke-width: 3.2; }
.hl-outline, .hl-h1, .hl-h2 { stroke-dasharray: 1; animation: line-loop var(--loop) cubic-bezier(.45, 0, .2, 1) infinite both; }
.hl-h1 { animation-delay: 1.2s; }
.hl-h2 { animation-delay: 1.8s; }
.hl-dash { stroke-width: 1.6; stroke-dasharray: 3 2.4; opacity: 0; animation: dash-march 2.4s linear infinite, dash-fade var(--loop) ease-in-out infinite; }
.hl-d1 { animation-delay: 0s, 2.4s; }
.hl-d2 { animation-delay: 0s, 3s; }
@keyframes line-loop { 0% { stroke-dashoffset: 1; } 22%, 78% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
@keyframes dash-march { to { stroke-dashoffset: -5.4; } }
@keyframes dash-fade { 0%, 4% { opacity: 0; } 18%, 74% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes lines-breathe { from { transform: translateY(0) scale(1); } to { transform: translateY(-14px) scale(1.025); } }

.band-hero .hero { position: relative; z-index: 1; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(48px, 8vw, 128px); }
.hero-text { max-width: 640px; }
.band-hero .hero .display { line-height: 1.08; margin-bottom: clamp(20px, 3.4vh, 36px); }
.band-hero .hero .eyebrow { margin-bottom: clamp(16px, 3vh, 28px); }
.band-hero .hero-lead { max-width: 40ch; margin-bottom: clamp(28px, 5vh, 48px); }

.hero-book { position: relative; margin: 0; display: grid; justify-items: center; }
/* Light behind the book, so its pink cover does not melt into the pink ground. */
.hero-book::before { content: ""; position: absolute; left: 50%; top: 46%; width: 140%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgb(255 255 255 / .5), rgb(255 255 255 / .22) 52%, rgb(255 255 255 / 0)); animation: back-light 7s ease-in-out infinite alternate; }
.hero-book .book3d { position: relative; z-index: 1; }
@keyframes back-light { from { opacity: .8; } to { opacity: 1; } }
.hero-book .book3d { --w: clamp(240px, calc((100vh - 270px) * .6228), 420px); --t: 30px; animation: book-float 7s ease-in-out infinite alternate; }
.hero-book .book-back { box-shadow: none; }
@media (hover: hover) { .hero-book:hover .book { transform: rotateY(-14deg) rotateX(3deg); } }
.hero-book-shadow { width: 62%; height: 30px; margin-top: 18px; border-radius: 50%; background: rgb(60 0 30 / .4); filter: blur(18px); animation: shadow-float 7s ease-in-out infinite alternate; }
@keyframes book-float { from { transform: translateY(-12px); } to { transform: translateY(12px); } }
@keyframes shadow-float { from { transform: scaleX(1); opacity: .9; } to { transform: scaleX(.82); opacity: .6; } }

/* The plate that says where the method comes from: translucent, floating a little in front of the cover. */
.book-shade { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: 2px 4px 4px 2px; transform: translateZ(calc(var(--t) / 2 + 2px)); }
.book-shade i { position: absolute; left: -20%; top: 59%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: rgb(27 16 48 / .2); filter: blur(11px); }
.book-badge { position: absolute; z-index: 2; left: -22%; top: 55%; width: 46%; aspect-ratio: 1; margin: 0; padding: 0 6%; display: grid; place-items: center; text-align: center; border-radius: 50%; background: rgb(255 255 255 / .62); color: var(--ink); font-size: clamp(15px, calc(var(--w) * .066), 26px); line-height: 1.12; font-weight: 700; letter-spacing: -.005em; text-wrap: balance; transform: translateZ(calc(var(--t) / 2 + 60px)) rotateY(28deg) rotateX(-3deg); }

@media (prefers-reduced-motion: reduce) {
  .hero-lines, .hl, .hero-book .book3d, .hero-book-shadow, .hero-book::before { animation: none; }
  .hl-dash { opacity: 1; }
}
@media (min-width: 961px) {
  /* The hero is the whole first screen: the top bar and the hero together fill the window. */
  .band-hero .hero { --bar: 60px; min-height: calc(100vh - var(--bar)); min-height: calc(100svh - var(--bar)); }
}
@media (max-width: 960px) {
  .band-hero .hero { grid-template-columns: minmax(0, 1fr); text-align: left; gap: var(--space-8); }
  .hero-book .book3d { --w: 240px; --t: 20px; }
  .hero-lines { width: 140%; right: -30%; }
}
