/* Kontrollkedjan – site styles.
   Owner's UI rules: font weight <= 600, radii <= 6 px on the site's own UI, no pastel pills, no emoji.
   Colours only as tokens below. Motion lives in js/main.js; every element here is styled in its END state, so the
   page reads complete without JS and with prefers-reduced-motion: reduce. */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plex-5.3.0/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plex-5.3.0/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plex-5.3.0/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plex-5.3.0/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plex-5.3.0/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --paper: #F4F5F2;
  --paper-2: #EAECE7;
  --sheet: #FFFFFF;
  --ink: #14181D;
  --ink-2: #2D343B;
  --steel: #59626B;
  --mute: #636B73;
  --rule: #D7DBD6;
  --rule-2: #B8BEB9;
  --grid: #E3E6E1;
  --signal: #0B7A52;
  --signal-2: #086040;
  --error: #A3372A;
  --night: #15191E;
  --night-2: #1D2329;
  --night-rule: #323A42;
  --night-text: #E7EAE6;
  --night-mute: #929CA5;
  --signal-night: #46C08D;

  --r-sm: 3px;
  --r: 4px;
  --r-lg: 6px;
  --shadow-sheet: 0 1px 2px rgba(20, 24, 29, .06), 0 18px 40px -22px rgba(20, 24, 29, .30);
  --shadow-soft: 0 1px 2px rgba(20, 24, 29, .05), 0 10px 24px -16px rgba(20, 24, 29, .22);

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --section: clamp(80px, 10vw, 144px);
  --header-h: 64px;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
/* Smooth scrolling only for in-page links after load: a page that opens on #boka (the no-JS form errors) must
   land there at once instead of animating down the whole page. kk-ready is set by main.js. */
@media (prefers-reduced-motion: no-preference) { html.kk-ready { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, p, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 500; }
img { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: var(--r-sm); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r); }
.skip:focus { top: 12px; }

.section { padding-block: var(--section); }
.section-head { max-width: 780px; margin-bottom: clamp(44px, 6vw, 80px); }
.section h2, .section-head h2 {
  font-size: clamp(2rem, 1.3rem + 2.5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.section-head .lead { margin-top: 20px; }
.lead { font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.note { font-size: 14.5px; line-height: 1.55; color: var(--steel); margin-top: 22px; max-width: 58ch; }
.caption { font-size: 13.5px; color: var(--steel); margin-top: 18px; }

.facts { list-style: none; padding: 0; margin: 16px 0; }
.facts li { position: relative; padding-left: 24px; margin: 7px 0; }
.facts li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--r);
  font: 500 15.5px/1 var(--sans); letter-spacing: 0; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-2); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-quiet:hover { border-color: var(--ink); }
.btn-small { min-height: 38px; padding: 0 15px; font-size: 14.5px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ------------------------------------------------------------------ mark + header */
.wordmark { display: inline-flex; align-items: center; gap: 10px; }
.mark { width: 36px; height: auto; flex: none; overflow: visible; }
.mark-start { fill: var(--ink); }
.mark-link { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.mark-kp { fill: var(--ink); }
.mark-end { fill: var(--signal); }
.wordmark-text { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 245, 242, .92);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { text-decoration: none; color: var(--ink); }
.header-nav { display: flex; gap: 26px; margin-left: auto; }
.header-nav a { font-size: 15px; color: var(--ink-2); text-decoration: none; }
.header-nav a:hover { color: var(--ink); text-decoration: underline; }
.header-inner > .btn { margin-left: 0; }
@media (max-width: 900px) {
  .header-nav { display: none; }
  .header-inner > .btn { margin-left: auto; }
}

/* ------------------------------------------------------------------ hero */
.hero { padding-top: clamp(44px, 7vw, 96px); padding-bottom: clamp(64px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: start; }
.hero-title {
  grid-column: 1 / span 7;
  font-size: clamp(2.35rem, 1.1rem + 4.4vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.hero-side { grid-column: 9 / span 4; padding-top: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pilot-note { display: flex; align-items: baseline; gap: 10px; margin-top: 22px; font-size: 14px; line-height: 1.45; color: var(--steel); }
.pilot-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); flex: none; transform: translateY(-1px); }
@media (max-width: 1023px) {
  .hero-title, .hero-side { grid-column: 1 / -1; }
  .hero-title { max-width: 15ch; }
}

/* the chain */
.chain { list-style: none; margin: clamp(52px, 7vw, 96px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.chain-node { position: relative; padding: 38px 18px 0 0; }
.chain-dot { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--rule-2); z-index: 2; }
.chain-dot-on { position: absolute; inset: 0; border-radius: inherit; background: var(--signal); }
.is-start .chain-dot, .is-start .chain-dot-on { border-radius: 2px; }
.is-start .chain-dot-on { background: var(--ink); }
.is-end .chain-dot { width: 19px; height: 19px; top: -2px; left: -2px; }
.is-end .chain-dot-on { background: var(--signal); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5.5px var(--signal); }
.chain-seg { position: absolute; top: 6.5px; left: 15px; right: 0; height: 2px; background: var(--rule); overflow: hidden; z-index: 1; }
.chain-seg-fill { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; }
.chain-spark { position: absolute; inset: 0; opacity: 0; background: linear-gradient(90deg, transparent 0%, transparent 25%, var(--signal) 50%, transparent 75%, transparent 100%); }
.chain-kp { display: flex; gap: 10px; font-size: 12.5px; color: var(--steel); }
.chain-when { color: var(--mute); }
.chain-label { font-weight: 500; font-size: 16.5px; line-height: 1.3; margin-top: 3px; letter-spacing: -0.005em; }
.chain-text { font-size: 14px; line-height: 1.45; color: var(--steel); margin-top: 5px; max-width: 22ch; }
.chain-ticks { list-style: none; padding: 0; margin: 11px 0 0; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--ink-2); }
.chain-ticks li { display: flex; align-items: center; gap: 8px; }

.tick { width: 15px; height: 15px; flex: none; }
.tick-ring { fill: var(--signal); }
.tick-check { fill: none; stroke: var(--sheet); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 899px) {
  .chain { grid-template-columns: 1fr; }
  .chain-node { padding: 0 0 26px 36px; }
  .chain-node.is-end { padding-bottom: 0; }
  .chain-seg { top: 15px; left: 6.5px; right: auto; bottom: 0; width: 2px; height: auto; }
  .chain-seg-fill { transform-origin: 50% 0; }
  .chain-spark { background: linear-gradient(180deg, transparent 0%, transparent 25%, var(--signal) 50%, transparent 75%, transparent 100%); }
  .chain-kp { padding-top: 0; }
  .chain-ticks { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
  .chain-text { max-width: 40ch; }
}

/* pre-hide hero motion targets until main.js has set their start state (no flash of the end state).
   Fails safe: shown after 2.5 s if the script never runs. Only when scripting is on and motion is welcome. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  html:not(.kk-ready) .pre { opacity: 0; animation: kk-failsafe 0s linear 2.5s forwards; }
}
@keyframes kk-failsafe { to { opacity: 1; } }

/* ------------------------------------------------------------------ rules (timeline) */
.rules { background: var(--paper-2); }
.rules-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; }
.rules-intro { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 48px); align-self: start; }
.rules-intro .lead { margin-top: 20px; }
.bbr { margin-top: clamp(32px, 5vw, 56px); }
.bbr-word { position: relative; display: inline-block; font-size: clamp(5rem, 2.5rem + 8vw, 9.5rem); font-weight: 500; letter-spacing: -0.045em; line-height: .9; padding-right: .04em; }
.bbr-text { display: inline-block; opacity: .3; }
.bbr-strike { position: absolute; left: -6%; right: -6%; top: 50%; height: .06em; margin-top: -.03em; background: var(--ink); transform-origin: 0 50%; }
.bbr figcaption { font-size: 14px; color: var(--steel); margin-top: 16px; max-width: 34ch; }

.timeline { grid-column: 7 / span 6; }
.timeline-list { list-style: none; margin: 0; padding: 0 0 0 40px; }
.timeline-item { position: relative; padding-bottom: clamp(40px, 5vw, 64px); }
.timeline-item.is-last { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -40px; top: 5px; width: 15px; height: 15px; border-radius: 50%; background: var(--paper-2); box-shadow: inset 0 0 0 1.5px var(--rule-2); }
.timeline-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ink); transform: scale(1); transition: transform .35s ease; }
.timeline-item.is-last .timeline-dot::after { background: var(--signal); }
.timeline.tl-armed .timeline-item:not(.is-on) .timeline-dot::after { transform: scale(0); }
.timeline-seg { position: absolute; left: -33.5px; top: 22px; bottom: 2px; width: 2px; background: var(--rule-2); overflow: hidden; }
.timeline-seg-fill { position: absolute; inset: 0; background: var(--ink); transform-origin: 50% 0; }
.timeline-item time { font-size: 14px; color: var(--steel); }
.timeline-item h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); line-height: 1.25; letter-spacing: -0.01em; margin: 6px 0 10px; }
.timeline-item p { color: var(--ink-2); max-width: 52ch; }
.quote { margin: clamp(40px, 5vw, 64px) 0 0 40px; padding-top: 22px; border-top: 1px solid var(--rule-2); }
.quote p { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.45; max-width: 40ch; }
.quote footer { margin-top: 10px; font-size: 14px; color: var(--steel); }
@media (max-width: 1023px) {
  .rules-intro, .timeline { grid-column: 1 / -1; }
  .rules-intro { position: static; }
}

/* ------------------------------------------------------------------ problem */
.problem-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; align-items: center; }
.problem-text { grid-column: 1 / span 5; }
.pains { margin-top: 32px; }
.pain { padding: 16px 0; border-top: 1px solid var(--rule); }
.pain dt { font-weight: 600; }
.pain dd { margin-top: 3px; color: var(--ink-2); font-size: 16px; }
.desk {
  grid-column: 7 / span 6;
  position: relative; height: 560px; overflow: hidden;
  border: 1px solid var(--rule); border-radius: var(--r-lg);
  background-color: #F8F9F6;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
}
.desk-chaos { position: absolute; inset: 0; }
.scrap {
  position: absolute; opacity: 0; visibility: hidden;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 10px 12px; font-size: 13.5px; line-height: 1.35; color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.scrap-meta { display: block; font-size: 11px; color: var(--steel); margin-top: 6px; }
.photo { display: block; height: 92px; border-radius: 2px; background-color: #C3C9C4; background-image: linear-gradient(#A8AFAA 1.5px, transparent 1.5px), linear-gradient(90deg, #A8AFAA 1.5px, transparent 1.5px); background-size: 20px 20px; }
.photo-b { background-color: #B9BDB5; background-image: linear-gradient(#9DA39B 1.5px, transparent 1.5px), linear-gradient(90deg, #9DA39B 1.5px, transparent 1.5px); background-size: 26px 13px; }
.scrap-photo { width: 156px; padding: 6px; }
.scrap-msg { max-width: 220px; border-radius: 6px 6px 6px 2px; }
.scrap-msg.is-out { background: var(--ink); color: var(--paper); border-color: var(--ink); border-radius: 6px 6px 2px 6px; }
.scrap-file { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.file-ext { font-size: 10.5px; color: var(--ink-2); border: 1px solid var(--rule-2); border-radius: 2px; padding: 2px 4px; }
.scrap-cal { width: 86px; padding: 0; overflow: hidden; text-align: center; }
.cal-head { display: block; background: var(--ink); color: var(--paper); font-size: 11px; padding: 4px 0; }
.cal-num { display: block; font-size: 32px; font-weight: 500; padding: 4px 0 6px; }
.scrap-mail { width: 230px; }
.mail-subject { display: block; font-weight: 600; }
.mail-meta { display: block; font-size: 12px; color: var(--steel); margin-top: 2px; }
.s0 { left: 5%; top: 7%; transform: rotate(-6deg); }
.s1 { left: 42%; top: 6%; transform: rotate(3deg); }
.s2 { left: 8%; top: 41%; transform: rotate(-2deg); }
.s3 { left: 76%; top: 25%; transform: rotate(6deg); }
.s4 { left: 37%; top: 25%; transform: rotate(-3deg); }
.s5 { left: 46%; top: 58%; transform: rotate(2deg); }
.s6 { left: 5%; top: 73%; transform: rotate(3deg); }
.s7 { left: 73%; top: 70%; transform: rotate(-5deg); }

.desk-order {
  position: absolute; inset: 0; margin: auto; height: max-content; width: min(88%, 460px);
  list-style: none; padding: 6px 20px;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow-sheet);
}
.order-row { display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.order-row:first-child { border-top: 0; }
.order-kp { font-size: 13px; color: var(--steel); }
.order-ev { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); }
@media (max-width: 1023px) {
  .problem-text, .desk { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .desk { height: 470px; }
  .scrap { font-size: 12px; padding: 8px 10px; }
  .scrap-photo { width: 118px; }
  .photo { height: 64px; }
  .scrap-msg { max-width: 170px; }
  .scrap-mail { width: 180px; }
  .scrap-file { font-size: 11.5px; max-width: 220px; }
  .s3 { left: 70%; top: 22%; }
  .s4 { left: 30%; top: 26%; }
  .s5 { left: 34%; top: 56%; }
  .s7 { left: 64%; top: 74%; }
  .order-row { grid-template-columns: 42px 1fr auto; font-size: 14px; gap: 8px; }
  .desk-order { padding: 4px 14px; width: 92%; }
}

/* ------------------------------------------------------------------ modules */
.module { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--rule); align-items: start; }
.modules-after .module:first-child { border-top: 0; padding-top: 0; }
.module-text { grid-column: 1 / span 5; }
.module-visual { grid-column: 7 / span 6; }
.module-title { font-size: clamp(1.65rem, 1.2rem + 1.5vw, 2.4rem); line-height: 1.12; letter-spacing: -0.022em; margin: 18px 0 16px; text-wrap: balance; }
.module-text > p { color: var(--ink-2); }
.module-text > p + p { margin-top: 14px; }
@media (max-width: 1023px) {
  .module-text, .module-visual { grid-column: 1 / -1; }
}

.minichain { display: flex; align-items: center; gap: 16px; }
.mc-nr { font-size: 14px; color: var(--ink); }
.mc-of { color: var(--mute); }
.mc { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.mc li { position: relative; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--rule-2); margin-right: 16px; }
.mc li:last-child { margin-right: 0; }
.mc li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 4px; width: 12px; height: 2px; background: var(--rule); }
.mc li.is-done { background: var(--ink); box-shadow: none; }
.mc li.is-done::after { background: var(--ink); }
.mc li.is-current { background: var(--signal); box-shadow: none; }
.minichain.is-dark .mc-nr { color: var(--night-text); }
.minichain.is-dark .mc li { box-shadow: inset 0 0 0 1.5px var(--night-rule); }
.minichain.is-dark .mc li::after { background: var(--night-rule); }
.minichain.is-dark .mc li.is-done { background: var(--night-text); box-shadow: none; }
.minichain.is-dark .mc li.is-done::after { background: var(--night-text); }
.minichain.is-dark .mc li.is-current { background: var(--signal-night); box-shadow: none; }

.docs { margin-top: 22px; }
.docs > div { padding: 12px 0; border-top: 1px solid var(--rule); }
.docs dt { font-weight: 600; }
.docs dd { margin-top: 3px; color: var(--ink-2); font-size: 16px; }

/* module 1: the form and the three PDFs. The pages fan out beside and below the form, never over its fields. */
.m1 { position: relative; height: 740px; }
.app-window { position: absolute; left: 0; top: 0; width: 52%; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); overflow: hidden; z-index: 1; }
.app-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--rule); font-size: 13px; font-weight: 600; background: #FAFBF9; }
.app-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }
.f-wide { grid-column: 1 / -1; }
.f-label { display: block; font-size: 11.5px; color: var(--steel); margin-bottom: 4px; }
.f-input { display: block; height: 34px; line-height: 32px; padding: 0 10px; border: 1px solid var(--rule-2); border-radius: var(--r-sm); font-size: 14px; white-space: nowrap; overflow: hidden; }
.f-input.is-typing { border-color: var(--ink); }
.f-input.is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 16px; margin-left: 1px; vertical-align: -3px; background: var(--ink); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.f-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 7px; font-size: 13px; }
.f-checks li { display: flex; gap: 8px; align-items: center; }
.box { width: 16px; height: 16px; border: 1.5px solid var(--rule-2); border-radius: var(--r-sm); display: inline-grid; place-items: center; flex: none; }
.box svg { width: 11px; height: 11px; }
.box svg path { fill: none; stroke: var(--sheet); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.is-checked .box { background: var(--ink); border-color: var(--ink); }
.f-checks li:not(.is-checked) .box svg { visibility: hidden; }
.app-btn { grid-column: 1 / -1; justify-self: start; background: var(--ink); color: var(--paper); font-size: 13.5px; font-weight: 500; padding: 10px 14px; border-radius: var(--r); }
.pages { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.page { position: absolute; margin: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: 2px; box-shadow: var(--shadow-sheet); overflow: hidden; }
.page img { display: block; width: 100%; height: auto; }
.page-risk { width: 33%; right: 14%; top: 10px; transform: rotate(-3deg); }
.page-avf { width: 33%; right: 0; top: 54px; transform: rotate(2.5deg); }
.page-kp { width: 64%; right: 1%; bottom: 0; transform: rotate(-1deg); }
@media (min-width: 1024px) and (max-width: 1199px) {
  .m1 { height: 800px; }
  .app-window { width: 56%; }
  .app-form { grid-template-columns: 1fr; gap: 8px; }
  .page-risk { width: 38%; right: 4%; top: 0; }
  .page-avf { width: 38%; right: 0; top: 150px; }
  .page-kp { width: 70%; }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .m1 { height: 640px; }
  .app-window { width: 50%; }
  .page-risk { width: 26%; right: 23%; }
  .page-avf { width: 26%; right: 0; top: 40px; }
  .page-kp { width: 50%; }
}
@media (max-width: 599px) {
  .m1 { height: auto; }
  .app-window { position: relative; width: 100%; }
  .app-form { gap: 10px; padding: 14px; }
  .pages { position: relative; height: 300px; margin-top: 18px; }
  .page-risk { width: 40%; left: 2%; right: auto; top: 0; }
  .page-avf { width: 40%; right: 2%; top: 14px; }
  .page-kp { width: 84%; right: 8%; bottom: 0; }
}

/* ------------------------------------------------------------------ module 2: the phone (dark band) */
.phone-band { background: var(--night); color: var(--night-text); padding-block: clamp(72px, 9vw, 120px); }
.phone-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; align-items: center; }
.phone-text { grid-column: 1 / span 5; }
.phone-text .module-title { color: var(--night-text); }
.phone-text > p { color: #C3CBC6; }
.phone-text .note { color: var(--night-mute); }
.phone-stage { grid-column: 7 / span 6; display: flex; justify-content: center; }
.steps { list-style: none; padding: 0; margin: 26px 0 0; }
.step { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--night-rule); color: #C3CBC6; font-size: 15.5px; line-height: 1.5; transition: color .25s ease; }
.step strong { color: var(--night-text); font-weight: 500; }
.step-n { font-size: 13px; color: var(--night-mute); padding-top: 2px; transition: color .25s ease; }
.steps.is-armed .step { color: #7E8891; }
.steps.is-armed .step strong { color: #8F99A1; }
.steps.is-armed .step.is-done { color: #A3ACB3; }
.steps.is-armed .step.is-done strong { color: #C9D0D4; }
.steps.is-armed .step.is-active, .steps.is-armed .step.is-active strong { color: var(--night-text); }
.steps.is-armed .step.is-active .step-n { color: var(--signal-night); }
@media (max-width: 1023px) {
  .phone-text, .phone-stage { grid-column: 1 / -1; }
}

.phone { --pw: 300px; position: relative; width: var(--pw); height: calc(var(--pw) * 2.06); border-radius: 46px; background: #0B0E11; padding: 11px; box-shadow: 0 0 0 1px #2C343B, 0 50px 90px -40px rgba(0, 0, 0, .8); flex: none; }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 86px; height: 25px; margin-left: -43px; background: #0B0E11; border-radius: 13px; z-index: 6; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--paper); color: var(--ink); }
.scr { position: absolute; inset: 0; padding: 58px 18px 20px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; }
.scr-done { opacity: 1; visibility: visible; }
@media (max-width: 380px) { .phone { --pw: 272px; } }

.scr-sms { background: linear-gradient(165deg, #2B3A42 0%, #172027 70%); color: #F2F4F2; }
.lock-time { font-size: 64px; font-weight: 500; letter-spacing: -0.03em; text-align: center; margin-top: 18px; line-height: 1; }
.lock-date { font-size: 14px; text-align: center; margin-top: 8px; opacity: .85; }
.notif { margin-top: 48px; background: rgba(250, 251, 249, .94); color: var(--ink); border-radius: 14px; padding: 11px 13px 12px; font-size: 13px; line-height: 1.4; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.notif-head { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--steel); }
.notif-from { font-weight: 600; margin-top: 2px; }
.notif-body { margin-top: 1px; }

.m-bar { margin: -58px -18px 14px; padding: 52px 18px 10px; border-bottom: 1px solid var(--rule); background: var(--sheet); font-size: 13px; font-weight: 600; }
.m-bar-brand { display: flex; align-items: center; gap: 8px; }
.mark-small { width: 26px; }
.m-project { font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.m-project span { display: block; font-weight: 400; color: var(--steel); font-size: 12px; }
.m-kp { font-size: 11.5px; color: var(--steel); margin-top: 14px; }
.m-title { font-size: 19px; font-weight: 600; line-height: 1.2; margin: 2px 0 8px; letter-spacing: -0.01em; }
.m-text { font-size: 13px; line-height: 1.45; color: var(--ink-2); margin-bottom: 10px; }
.m-facts { font-size: 12px; line-height: 1.4; }
.m-facts > div { display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 7px 0; border-top: 1px solid var(--rule); }
.m-facts dt { color: var(--steel); }
.m-btn { margin-top: auto; background: var(--ink); color: var(--paper); text-align: center; padding: 12px; border-radius: var(--r); font-weight: 500; font-size: 14px; }

.scr-cam { background: #0D1013; padding: 0; }
.viewfinder { position: absolute; inset: 0 0 128px 0; overflow: hidden; background: #3B4140; }
.vf-floor { position: absolute; left: -45%; right: -45%; top: -10%; bottom: -40%; background-color: #9AA19D; background-image: linear-gradient(#7B827E 2px, transparent 2px), linear-gradient(90deg, #7B827E 2px, transparent 2px); background-size: 36px 36px; background-position: 50% 50%; transform: perspective(520px) rotateX(34deg); transform-origin: 50% 70%; }
.vf-drain { position: absolute; left: 50%; top: 52%; width: 44px; height: 44px; margin: -22px 0 0 -22px; background: repeating-linear-gradient(90deg, #555C59 0 3px, #B3B9B5 3px 6px); border: 2px solid #5A615E; }
.vf-level { position: absolute; left: 14%; right: 14%; top: 62%; height: 16px; background: linear-gradient(#D4D8D5, #A9AFAB); border-radius: 2px; box-shadow: 0 6px 12px -4px rgba(0, 0, 0, .5); transform: rotate(-4deg); }
.vf-vial { position: absolute; left: 50%; top: 3px; width: 42px; height: 10px; margin-left: -21px; border-radius: 5px; background: #BFD6C4; box-shadow: inset 0 0 0 1px #7E9584; }
.vf-bubble { position: absolute; top: 2px; left: 23px; width: 12px; height: 6px; border-radius: 3px; background: #F1F7F2; }
.vf-frame { position: absolute; inset: 22px; border: 1px solid rgba(255, 255, 255, .35); }
.vf-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.cam-tray { position: absolute; left: 0; right: 0; bottom: 74px; height: 54px; display: flex; align-items: center; gap: 8px; padding: 0 14px; }
.thumb { width: 44px; height: 44px; border-radius: 4px; border: 2px solid #F2F4F2; background-color: #9AA19D; background-image: linear-gradient(#7B827E 1px, transparent 1px), linear-gradient(90deg, #7B827E 1px, transparent 1px); background-size: 9px 9px; }
.thumb.t2 { background-size: 11px 11px; background-color: #A4AAA5; }
.cam-count { margin-left: auto; color: #F2F4F2; font-size: 12px; }
.shutter { position: absolute; bottom: 14px; left: 50%; margin-left: -27px; width: 54px; height: 54px; border-radius: 50%; background: #F2F4F2; box-shadow: inset 0 0 0 3px #0D1013, 0 0 0 3px #F2F4F2; }

.m-label { font-size: 13px; color: var(--steel); margin-bottom: 6px; }
.m-input { display: flex; align-items: center; gap: 4px; border: 1.5px solid var(--ink); border-radius: var(--r); padding: 8px 12px; font-size: 30px; background: var(--sheet); min-height: 58px; }
.m-caret { width: 2px; height: 28px; background: var(--signal); animation: caret 1s steps(1) infinite; }
.m-unit { font-size: 15px; color: var(--steel); margin-left: auto; }
.m-hint { font-size: 12px; color: var(--steel); margin-top: 8px; }
.keypad { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.key { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); text-align: center; padding: 9px 0; font-size: 17px; font-family: var(--mono); }

.sign-pad { background: var(--sheet); border: 1px dashed var(--rule-2); border-radius: var(--r); padding: 8px; }
.sign-svg { display: block; width: 100%; height: auto; }
.sign-path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sign-line { stroke: var(--rule-2); stroke-width: 1; }
.sign-name { font-size: 14px; font-weight: 500; margin: 12px 0; }
.sign-name span { display: block; font-weight: 400; font-size: 12px; color: var(--steel); }

.scr-done { padding-top: 84px; }
.tick-big { width: 54px; height: 54px; }
.tick-big .tick-check { stroke-width: 1.5; }
.done-title { font-size: 20px; font-weight: 600; margin-top: 16px; letter-spacing: -0.01em; }
.done-meta { font-size: 13px; color: var(--steel); margin-top: 4px; }
.done-list { list-style: none; padding: 0; margin: 22px 0 0; }
.done-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 13px; }
.done-photos { align-items: center; }
.done-thumbs { display: flex; gap: 6px; }
.done-thumbs .thumb { width: 34px; height: 34px; border: 1px solid var(--rule-2); border-radius: 3px; }
.done-cta { margin-top: auto; font-size: 12.5px; line-height: 1.45; color: var(--steel); border-top: 1px solid var(--rule); padding-top: 12px; }

/* ------------------------------------------------------------------ module 3: reminders */
.modules-after { padding-top: clamp(64px, 8vw, 112px); }
.m3 { display: grid; gap: 24px; max-width: 540px; }
.clock-row { display: flex; align-items: center; gap: 24px; }
.clock { width: 120px; height: 120px; flex: none; }
.clock-face { fill: var(--sheet); stroke: var(--rule-2); stroke-width: 1.5; }
.clock-tick { stroke: var(--rule-2); stroke-width: 1.5; }
.clock-tick.is-major { stroke: var(--ink); stroke-width: 2; }
.clock-hand { stroke: var(--ink); stroke-linecap: round; }
.hand-h { stroke-width: 4; }
.hand-m { stroke-width: 2.5; }
.clock-pin { fill: var(--signal); }
.clock-digital .mono { display: block; font-size: 44px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.clock-day { display: block; font-size: 14px; color: var(--steel); margin-top: 8px; }
.sms-bubble { background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px 6px 6px 2px; padding: 12px 15px; max-width: 440px; box-shadow: var(--shadow-soft); font-size: 15.5px; line-height: 1.45; }
.sms-from { font-size: 12px; color: var(--steel); font-weight: 500; margin-bottom: 3px; }
.chase { border-top: 2px solid var(--ink); }
.chase-head { font-size: 13px; color: var(--steel); padding: 8px 0 2px; }
.chase-row { display: grid; grid-template-columns: 1fr auto 128px; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.chase-who { font-weight: 500; font-size: 15px; line-height: 1.3; }
.chase-who span { display: block; font-weight: 400; font-size: 12.5px; color: var(--steel); }
.dots { display: flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--rule-2); }
.dots i.on { background: var(--ink); box-shadow: none; }
.chase-state { text-align: right; font-size: 13px; color: var(--steel); }
.flag { display: inline-block; border: 1.5px solid var(--ink); color: var(--ink); font-size: 12.5px; font-weight: 600; padding: 3px 8px; border-radius: var(--r-sm); white-space: nowrap; }
@media (max-width: 479px) {
  .chase-row { grid-template-columns: 1fr auto; }
  .chase-state { grid-column: 1 / -1; text-align: left; }
  .clock { width: 96px; height: 96px; }
  .clock-digital .mono { font-size: 36px; }
}

/* ------------------------------------------------------------------ module 4: the dossier */
.stack { position: relative; height: 500px; }
.sheet { position: absolute; margin: 0; width: 47%; aspect-ratio: 900 / 1272; background: var(--sheet); border: 1px solid var(--rule); border-radius: 2px; box-shadow: var(--shadow-soft); overflow: hidden; }
.sheet img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sh-1 { right: 2%; top: 0; }
.sh-2 { right: 5.5%; top: 3%; }
.sh-3 { right: 9%; top: 6%; }
.sh-4 { right: 12.5%; top: 9%; }
.sh-5 { right: 16%; top: 12%; }
.sheet-html { padding: 16px 14px; font-size: 11px; line-height: 1.35; }
.sh-title { font-size: 14px; font-weight: 600; padding-bottom: 7px; margin-bottom: 6px; border-bottom: 1.5px solid var(--ink-2); }
.sh-sub { color: var(--steel); margin-bottom: 8px; }
.sh-rows { list-style: none; margin: 0; padding: 0; }
.sh-rows li, .sh-line { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.sh-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.sh-photos .photo { height: 64px; }
.dossier { position: absolute; left: 0; top: 33%; width: 58%; background: var(--sheet); border: 1px solid var(--rule-2); border-top: 3px solid var(--ink); border-radius: 2px; padding: 22px 22px 18px; box-shadow: var(--shadow-sheet); }
.dossier-title { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.dossier-sub { font-size: 13px; color: var(--steel); margin-top: 2px; }
.dossier-index { list-style: none; margin: 16px 0 0; padding: 0; }
.dossier-index li { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 14px; }
.di-dots { flex: 1; border-bottom: 1px dotted var(--rule-2); transform: translateY(-4px); }
.di-page { color: var(--steel); }
@media (max-width: 599px) {
  .stack { height: 500px; }
  .sheet { width: 58%; }
  .dossier { width: 86%; top: 34%; padding: 18px 16px 14px; }
  .dossier-index li { font-size: 13px; }
}

/* ------------------------------------------------------------------ money (calculator) */
.money { background: var(--paper-2); }
.calc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: start; }
.calc-inputs { grid-column: 1 / span 5; display: grid; gap: 20px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(18px, 2.4vw, 28px); }
.calc-out { grid-column: 7 / span 6; }
.seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; }
.seg legend { width: 100%; font-size: 14px; font-weight: 500; padding: 0; margin-bottom: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-block; padding: 9px 15px; border: 1px solid var(--rule-2); font-size: 15px; background: var(--paper); }
.seg label:first-of-type span { border-radius: var(--r) 0 0 var(--r); }
.seg label:last-of-type span { border-radius: 0 var(--r) var(--r) 0; margin-left: -1px; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.num { display: grid; gap: 6px; }
.num-label { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 500; }
.num-unit { color: var(--mute); font-weight: 400; }
.num input { width: 100%; font: 500 18px/1.2 var(--mono); color: var(--ink); padding: 10px 12px; border: 1px solid var(--rule-2); border-radius: var(--r); background: var(--paper); }
.num input:focus { border-color: var(--ink); }
.num-help { font-size: 13px; line-height: 1.45; color: var(--steel); }
.out { padding: 18px 0 20px; border-top: 1px solid var(--rule-2); }
.out:first-child { border-top: 2px solid var(--ink); }
.out-label { font-size: 14px; color: var(--steel); }
.out-num { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.7rem); line-height: 1.05; letter-spacing: -0.03em; }
.out-num .mono { font-weight: 500; letter-spacing: -0.04em; }
.out-unit { font-size: .42em; color: var(--steel); letter-spacing: 0; }
.out-num-small { display: block; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); letter-spacing: -0.01em; line-height: 1.3; }
.out-num-small .mono { letter-spacing: -0.02em; }
.formula { font-size: 13.5px; line-height: 1.65; color: var(--steel); margin-top: 16px; }
.pricing { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 20px; margin-top: clamp(56px, 7vw, 88px); padding-top: 28px; border-top: 1px solid var(--rule-2); }
.pricing-title { grid-column: 1 / span 3; font-size: 1.15rem; font-weight: 600; }
.pricing-list { grid-column: 4 / span 9; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pricing-list dt { font-size: 14px; color: var(--steel); }
.pricing-list dd { margin-top: 4px; font-size: 18px; font-weight: 500; line-height: 1.35; }
@media (max-width: 1023px) {
  .calc-inputs, .calc-out { grid-column: 1 / -1; }
  .pricing-title, .pricing-list { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .pricing-list { grid-template-columns: 1fr; gap: 14px; }
}

/* ------------------------------------------------------------------ audience */
.audience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.who { border-top: 2px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; }
.who h3 { font-size: 1.4rem; letter-spacing: -0.015em; margin-bottom: 10px; }
.who > p { color: var(--ink-2); }
.who .facts { margin-bottom: 20px; }
.who-price { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule); font-weight: 500; }
.audience-note { margin-top: 44px; }
@media (max-width: 899px) { .audience-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ------------------------------------------------------------------ spread (flywheel) */
.spread { border-top: 1px solid var(--rule); }
.spread-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: center; }
.spread-text { grid-column: 1 / span 5; }
.spread-text h2 { margin-bottom: 22px; }
.spread-text p { color: var(--ink-2); }
.spread-text p + p { margin-top: 14px; }
.spread-visual { grid-column: 7 / span 6; }
.legend { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 12px; vertical-align: -2px; }
.lg-ka { background: var(--ink); }
.lg-b { background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--ink); }
.lg-own { width: 9px; height: 9px; margin: 0 14.5px 0 2.5px; background: var(--signal); vertical-align: 0; }
.flywheel { display: block; width: 100%; max-width: 540px; height: auto; margin-inline: auto; overflow: visible; }
.fw-line { stroke: var(--rule-2); stroke-width: 1; }
.fw-line2 { stroke: var(--signal); stroke-width: 1; stroke-dasharray: 2 3; opacity: .7; }
.fw-node { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.5; }
.fw-small { fill: var(--signal); }
.fw-center { fill: var(--ink); }
.fw-pulse { fill: none; stroke: var(--signal); stroke-width: 1.5; opacity: 0; vector-effect: non-scaling-stroke; }
.fw-center-label { fill: var(--paper); font-family: var(--sans); font-size: 17px; font-weight: 600; }
@media (max-width: 1023px) {
  .spread-text, .spread-visual { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------ trust */
.trust { background: var(--paper-2); }
.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.trust-item { border-top: 1px solid var(--rule-2); padding: 24px 0 32px; }
.trust-item h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.trust-item p { color: var(--ink-2); max-width: 54ch; }
@media (max-width: 799px) { .trust-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ faq */
.faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; }
.faq-grid h2 { grid-column: 1 / span 4; }
.faq-list { grid-column: 5 / span 8; border-bottom: 1px solid var(--rule); }
.faq-list details { border-top: 1px solid var(--rule); }
.faq-list summary { position: relative; list-style: none; cursor: pointer; padding: 18px 44px 18px 0; font-weight: 500; font-size: 1.08rem; line-height: 1.4; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat;
}
.faq-list details[open] summary::after { background: linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat; }
.faq-list summary:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.faq-list details p { padding: 0 0 22px; color: var(--ink-2); max-width: 68ch; }
@media (max-width: 899px) {
  .faq-grid h2, .faq-list { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------ book (form) */
.book { background: var(--paper-2); }
.book-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: start; }
.book-text { grid-column: 1 / span 4; }
.book-text .lead { margin-top: 18px; }
.next { list-style: none; padding: 0; margin: 30px 0 0; }
.next li { display: grid; grid-template-columns: 30px 1fr; padding: 12px 0; border-top: 1px solid var(--rule-2); color: var(--ink-2); }
.next .mono { color: var(--steel); font-size: 14px; padding-top: 2px; }
.book-form { grid-column: 6 / span 7; }
@media (max-width: 1023px) {
  .book-text, .book-form { grid-column: 1 / -1; }
}

.lead-form { display: grid; gap: 18px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 32px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 599px) { .field-row { grid-template-columns: 1fr; } }
.field { min-width: 0; }
.field > label, .field > legend { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; padding: 0; }
.req { color: var(--steel); }
.lead-form input[type="text"], .lead-form input[type="email"], .lead-form input[type="tel"], .lead-form select, .lead-form textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule-2); border-radius: var(--r); padding: 11px 12px;
}
.lead-form select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.lead-form textarea { resize: vertical; min-height: 110px; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { border-color: var(--ink); }
.lead-form input[aria-invalid="true"], .lead-form select[aria-invalid="true"], .lead-form textarea[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 13.5px; margin-top: 6px; }
.choice { border: 0; padding: 0; margin: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-opt { position: relative; }
.choice-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice-opt span { display: inline-block; padding: 9px 14px; border: 1px solid var(--rule-2); border-radius: var(--r); font-size: 15px; background: var(--paper); }
.choice-opt input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice-opt input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.choice[aria-invalid="true"] .choice-opt span { border-color: var(--error); }
.field > .check, .check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-fine { font-size: 13px; color: var(--steel); }
.form-alert { border-left: 3px solid var(--error); background: var(--paper); padding: 10px 14px; font-size: 14.5px; }
.form-done { background: var(--sheet); border: 1px solid var(--rule); border-left: 3px solid var(--signal); border-radius: var(--r-lg); padding: 28px; }
.form-done:focus { outline: none; }
.form-done-title { font-size: 1.4rem; font-weight: 600; margin-bottom: 6px; }

/* ------------------------------------------------------------------ footer + plain pages */
.site-footer { background: var(--ink); color: #BFC6C1; padding: 52px 0 44px; font-size: 14.5px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; align-items: start; }
.footer-brand p { margin-top: 14px; max-width: 40ch; }
.site-footer .wordmark-text { color: var(--paper); }
.site-footer .mark-start, .site-footer .mark-kp { fill: var(--paper); }
.site-footer .mark-link { stroke: var(--paper); }
.site-footer .mark-end { fill: var(--signal-night); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--paper); }
.footer-copy { text-align: right; }
@media (max-width: 799px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-copy { text-align: left; }
}
.plain-inner { max-width: 760px; }
.plain-title { font-size: clamp(2.1rem, 1.4rem + 2.2vw, 3.2rem); line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 18px; }
.plain .btn { margin-top: 28px; }
.prose h2 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; margin: 36px 0 8px; }
.prose p { max-width: 66ch; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
