/* ============================================================
   CloseWise marketing site — "Ledger" design language.
   Same tokens as the product: warm paper, ink, market green.
   Ruled lines and stamps over gradients; a dark focus stage
   for the parts of the story that happen on a live call.
   ============================================================ */

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

:root {
  --paper: #f5f2ea;
  --paper-2: #ece8dc;
  --card: #fdfcf8;
  --ink: #15201c;
  --ink-2: #44524c;
  --ink-3: #5f6b64;
  --rule: #dcd5c4;
  --rule-strong: #bdb39c;

  --green: #0e6b4e;
  --green-2: #0a5a41;
  --green-soft: #e1ede6;
  --amber: #8f5608;
  --amber-soft: #f5ead6;
  --brick: #9c3626;
  --brick-soft: #f4e1dc;
  --slate: #2d566b;
  --slate-soft: #e0e9ee;
  --violet: #574579;
  --violet-soft: #e9e4f2;

  --stage: #0f1714;
  --stage-2: #16211d;
  --stage-3: #1e2b26;
  --stage-line: #2b3a34;
  --stage-ink: #e8eee9;
  --stage-ink-2: #a9b8b0;
  --stage-ink-3: #8c9a92;
  --stage-green: #46c493;
  --stage-amber: #e8a83e;
  --stage-brick: #ec7a63;
  --stage-slate: #8ab7cf;
  --stage-violet: #b8a5e3;

  --serif: "Newsreader", Georgia, "Iowan Old Style", serif;
  --sans: "Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Plex Mono", Consolas, "Cascadia Mono", monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 1px 0 rgba(21, 32, 28, 0.04), 0 10px 28px -18px rgba(21, 32, 28, 0.32);
  --shadow-lift: 0 1px 0 rgba(21, 32, 28, 0.05), 0 30px 60px -30px rgba(21, 32, 28, 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
img, video { height: auto; }
figure { margin: 0; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green-2); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; margin: 0; color: var(--ink); }
em.wise, .wise { font-style: italic; color: var(--green); }
strong { font-weight: 600; }
:focus-visible { outline: 2.5px solid var(--green); outline-offset: 3px; border-radius: 3px; }
.stage-sec :focus-visible, .site-foot :focus-visible { outline-color: var(--stage-green); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 10px; color: var(--paper); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- small type ---------- */
.eyebrow {
  font: 500 12px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 14px;
}
.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 640px; }
.muted { color: var(--ink-3); }
.fine { font-size: 14px; color: var(--ink-3); }

/* ---------- stamps (status chips) ---------- */
.stamp {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font: 600 11px/1.5 var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
  padding: 2px 8px; border: 1.25px solid currentColor; border-radius: 4px;
  color: var(--ink-2); background: transparent;
}
.stamp.green { color: var(--green); background: var(--green-soft); }
.stamp.amber { color: var(--amber); background: var(--amber-soft); }
.stamp.brick { color: var(--brick); background: var(--brick-soft); }
.stamp.slate { color: var(--slate); background: var(--slate-soft); }
.stamp.violet { color: var(--violet); background: var(--violet-soft); }
.stamp.plain { border-style: dashed; color: var(--ink-3); }
.stamp.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stage-sec .stamp { background: transparent; }
.stage-sec .stamp.green { color: var(--stage-green); }
.stage-sec .stamp.amber { color: var(--stage-amber); }
.stage-sec .stamp.brick { color: var(--stage-brick); }
.stage-sec .stamp.violet { color: var(--stage-violet); }
.stage-sec .stamp.slate { color: var(--stage-slate); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--rule-strong); border-radius: 9px;
  padding: 10px 18px; min-height: 44px; font: 600 15px/1.2 var(--sans);
  cursor: pointer; text-decoration: none; text-align: center;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.08s;
}
.btn:hover { border-color: var(--ink-2); box-shadow: var(--shadow); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--green); border-color: var(--green); color: #fbfdfb; }
.btn.primary:hover { background: var(--green-2); border-color: var(--green-2); color: #fff; }
.btn.lg { padding: 14px 22px; min-height: 52px; font-size: 16px; border-radius: 10px; }
.btn.sm { padding: 7px 13px; min-height: 38px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.stage-sec .btn { background: transparent; color: var(--stage-ink); border-color: var(--stage-line); }
.stage-sec .btn:hover { border-color: var(--stage-ink-3); color: #fff; box-shadow: none; }
.stage-sec .btn.primary { background: var(--stage-green); border-color: var(--stage-green); color: #06140f; }
.stage-sec .btn.primary:hover { background: #5bd3a3; border-color: #5bd3a3; color: #06140f; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: 14px; color: var(--ink-3); margin-top: 14px; }
.stage-sec .cta-note { color: var(--stage-ink-2); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 242, 234, 0.94);
  border-bottom: 1px solid var(--rule);
}
@supports (backdrop-filter: blur(8px)) { .site-head { background: rgba(245, 242, 234, 0.82); backdrop-filter: saturate(1.2) blur(10px); } }
.head-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand svg { width: 28px; height: 28px; color: var(--green); }
.wordmark { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -0.2px; line-height: 1; }
.wordmark i { color: var(--green); font-weight: 500; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--green); border-radius: 0; }
.head-cta { flex: none; }
.mnav { display: none; margin-left: auto; position: relative; }
.mnav summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  font: 600 14px var(--sans); padding: 8px 12px; min-height: 40px; border: 1px solid var(--rule-strong); border-radius: 9px; background: var(--card);
}
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary svg { width: 16px; height: 16px; }
.mnav[open] summary { border-color: var(--ink-2); }
.mnav ul {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 32px));
  list-style: none; margin: 0; padding: 8px; background: var(--card); border: 1px solid var(--rule-strong);
  border-radius: 12px; box-shadow: var(--shadow-lift);
}
.mnav li a { display: block; padding: 12px 12px; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 8px; }
.mnav li a:hover { background: var(--paper-2); }
.mnav li + li { border-top: 1px solid var(--rule); }
.mnav li.cta a { background: var(--green); color: #fff; text-align: center; margin-top: 8px; font-weight: 600; }
@media (max-width: 920px) {
  .nav, .head-cta { display: none; }
  .mnav { display: block; }
}

/* ---------- section chrome ---------- */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec + .sec { border-top: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-index {
  display: flex; align-items: center; gap: 14px;
  font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.sec-index::after { content: ""; flex: 1; height: 1px; background: var(--rule-strong); }
.sec-index b { color: var(--green); font-weight: 500; }
.sec h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; max-width: 22ch; }
.sec-head .lede { margin: 0; }
.split-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px 64px; align-items: end; }
@media (max-width: 860px) { .split-head { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 0; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.hero h1 {
  font-size: clamp(42px, 7.2vw, 92px); line-height: 0.98; letter-spacing: -0.025em; font-weight: 500;
  max-width: 13ch; margin: 0 0 26px;
}
.hero h1 em { font-style: italic; color: var(--green); }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.hero-copy .lede { margin: 0 0 28px; }
.hero-side { padding-bottom: 6px; }
.hero-proof { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.hero-proof li { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 15px; color: var(--ink-2); }
.hero-proof li .stamp { flex: none; min-width: 92px; justify-content: center; }
@media (max-width: 860px) { .hero-copy { grid-template-columns: 1fr; } .hero-side { padding-bottom: 0; } }

.hero-media { margin-top: clamp(40px, 6vw, 72px); position: relative; }
.hero-media::before {
  /* ruled "desk" the stage sits on */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; bottom: 0;
  background: var(--stage);
}
.stage-frame {
  position: relative; border-radius: 14px; overflow: hidden; background: var(--stage);
  border: 1px solid #263430; box-shadow: var(--shadow-lift);
}
.stage-frame video, .stage-frame img.poster { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--stage); }
.stage-frame .media-bar {
  margin: 0;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--stage-2); border-top: 1px solid var(--stage-line); color: var(--stage-ink-2);
  font: 500 12.5px/1.4 var(--mono); letter-spacing: 0.03em;
}
.media-bar .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stage-brick); flex: none; }
.media-bar .grow { flex: 1; min-width: 160px; }
.media-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px;
  background: var(--stage-3); color: var(--stage-ink); border: 1px solid var(--stage-line); border-radius: 8px;
  font: 600 13px var(--sans); cursor: pointer;
}
.media-btn:hover { border-color: var(--stage-ink-3); }
.media-btn:focus-visible { outline: 2.5px solid var(--stage-green); outline-offset: 2px; }
.media-btn svg { width: 14px; height: 14px; }
.media-btn[hidden] { display: none; }
.hero-tail { background: var(--stage); height: clamp(40px, 6vw, 72px); }

/* ---------- problem ---------- */
.problems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.problem { padding: 28px 28px 8px 0; }
.problem + .problem { padding-left: 28px; border-left: 1px solid var(--rule); }
.problem .num { font: 500 12px var(--mono); color: var(--brick); letter-spacing: 0.1em; display: block; margin-bottom: 16px; }
.problem h3 { font-size: 25px; line-height: 1.2; margin-bottom: 12px; }
.problem p { color: var(--ink-2); font-size: 16px; }
.problem .src { font-size: 13.5px; color: var(--ink-3); border-top: 1px dashed var(--rule-strong); padding-top: 10px; }
@media (max-width: 860px) {
  .problems { grid-template-columns: 1fr; }
  .problem, .problem + .problem { padding: 24px 0 4px; border-left: 0; }
  .problem + .problem { border-top: 1px solid var(--rule); }
}
.pivot { margin-top: clamp(40px, 6vw, 64px); font-family: var(--serif); font-size: clamp(24px, 2.8vw, 34px); line-height: 1.25; max-width: 30ch; }
.pivot em { color: var(--green); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.step-body { padding: 24px 24px 22px; flex: 1; }
.step-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.step-n { font: 500 13px var(--mono); color: var(--ink-3); letter-spacing: 0.08em; }
.step h3 { font-size: 26px; line-height: 1.15; margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 16px; margin: 0; }
.step figure { margin: 0; border-top: 1px solid var(--rule); background: var(--stage); aspect-ratio: 16 / 10; overflow: hidden; }
.step figure img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.step figure.pos-center img { object-position: 40% 0; }
.step figure.paper { background: var(--paper-2); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; } }
@media (min-width: 641px) and (max-width: 960px) {
  .step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .step figure { border-top: 0; border-left: 1px solid var(--rule); aspect-ratio: auto; min-height: 100%; }
}

/* ---------- dark stage section ---------- */
.stage-sec { background: var(--stage); color: var(--stage-ink); }
.stage-sec h2, .stage-sec h3 { color: var(--stage-ink); }
.stage-sec .eyebrow, .stage-sec .sec-index { color: var(--stage-ink-3); }
.stage-sec .sec-index::after { background: var(--stage-line); }
.stage-sec .sec-index b { color: var(--stage-green); }
.stage-sec .lede { color: var(--stage-ink-2); }
.stage-sec a { color: var(--stage-green); }
.sec.stage-sec + .sec, .sec + .sec.stage-sec { border-top: 0; }

.annot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.annot-fig { margin: 0; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--stage-line); background: #000; }
.annot-inner { position: relative; }
.annot-fig img { width: 100%; height: auto; }
.pan-hint { display: none; margin: -16px 0 0; color: var(--stage-ink-3); }
@media (max-width: 620px) {
  .annot-fig { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .annot-inner { width: 820px; }
  .pan-hint { display: block; }
}
.pin {
  position: absolute; transform: translate(-50%, -50%);
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font: 600 12px var(--mono); color: #06140f; background: var(--stage-amber);
  box-shadow: 0 0 0 4px rgba(15, 23, 20, 0.85), 0 0 0 5px rgba(232, 168, 62, 0.5);
  transition: transform 0.2s var(--ease), background 0.2s;
}
.pin.on { transform: translate(-50%, -50%) scale(1.22); background: var(--stage-green); box-shadow: 0 0 0 4px rgba(15, 23, 20, 0.85), 0 0 0 9px rgba(70, 196, 147, 0.35); }
.callouts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--stage-line); }
.callouts li {
  display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 18px 10px 18px 6px;
  border-bottom: 1px solid var(--stage-line); cursor: default; border-radius: 4px;
  transition: background 0.2s;
}
@media (max-width: 1000px) { .callouts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .callouts { grid-template-columns: 1fr; } }
.callouts li.on { background: var(--stage-2); }
.callouts li:focus-visible { outline-offset: -2px; }
.callouts .n {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font: 600 12px var(--mono); color: var(--stage-amber); border: 1.25px solid var(--stage-amber); margin-top: 2px;
}
.callouts h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: 0; margin-bottom: 4px; }
.callouts p { margin: 0; font-size: 15px; color: var(--stage-ink-2); line-height: 1.5; }

.stage-pair { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 40px; margin-top: clamp(48px, 7vw, 80px); align-items: center; }
.stage-pair figure { margin: 0; }
.stage-pair .shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--stage-line); }
.stage-pair .phone { max-width: 300px; justify-self: center; border-radius: 28px; overflow: hidden; border: 6px solid var(--stage-3); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8); }
.stage-pair .phone img { aspect-ratio: 390 / 760; object-fit: cover; object-position: top; width: 100%; }
figcaption, .figcap { font: 500 12px/1.5 var(--mono); letter-spacing: 0.05em; color: var(--ink-3); margin-top: 12px; }
.stage-sec figcaption { color: var(--stage-ink-3); }
@media (max-width: 860px) { .stage-pair { grid-template-columns: 1fr; } .stage-pair > figure:first-child { display: none; } }
@media (max-width: 600px) {
  .stage-frame video, .stage-frame img.poster { aspect-ratio: 4 / 5; object-fit: cover; object-position: 100% 0; }
  .stage-frame .media-bar { font: 400 13px/1.45 var(--sans); }
}

.cue-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

/* ---------- ledger (compliance) ---------- */
.ledger { border-top: 1.5px solid var(--ink); margin: 0; padding: 0; list-style: none; }
.ledger li {
  display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.4fr) 170px; gap: 24px; align-items: baseline;
  padding: 24px 0; border-bottom: 1px solid var(--rule);
}
.ledger .no { font: 500 12px var(--mono); color: var(--ink-3); letter-spacing: 0.08em; }
.ledger h3 { font-size: 24px; line-height: 1.2; }
.ledger p { margin: 0; color: var(--ink-2); font-size: 16px; }
.ledger .stamp { justify-self: end; }
@media (max-width: 900px) {
  .ledger li { grid-template-columns: 1fr; gap: 8px; }
  .ledger .stamp { justify-self: start; order: -1; }
  .ledger .no { display: none; }
}
.trust-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px 64px; margin-top: clamp(40px, 6vw, 64px); align-items: center; }
.trust-foot figure { margin: 0; }
.shot-paper { border-radius: 12px; overflow: hidden; border: 1px solid var(--rule-strong); box-shadow: var(--shadow-lift); background: var(--card); }
.shot-paper img { width: 100%; height: auto; }
@media (max-width: 900px) { .trust-foot { grid-template-columns: 1fr; } }

/* ---------- feature split (practice / managers) ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 40px 72px; align-items: center; }
.feature.flip { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.feature.flip .feature-copy { order: 2; }
.feature h2 { margin: 18px 0 20px; font-size: clamp(30px, 3.4vw, 44px); }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.ticks li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--rule); color: var(--ink-2); font-size: 16px; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 19px; width: 10px; height: 5px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg);
}
.ticks li strong { color: var(--ink); }
.personas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.persona { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--card); font-size: 14px; }
.persona .av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 10.5px var(--sans); background: var(--slate-soft); color: var(--slate); border: 1px solid rgba(45, 86, 107, 0.25); }
.stack-shots { display: grid; gap: 20px; }
.stack-shots .offset { margin-left: clamp(0px, 8%, 72px); }
@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
}

/* ---------- audiences ---------- */
.audiences { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.aud { padding: 26px 24px 26px 0; border-bottom: 1px solid var(--rule); }
.aud + .aud { padding-left: 24px; border-left: 1px solid var(--rule); }
.aud svg { width: 28px; height: 28px; color: var(--green); margin-bottom: 18px; }
.aud h3 { font-size: 23px; line-height: 1.2; margin-bottom: 10px; }
.aud p { font-size: 15.5px; color: var(--ink-2); margin-bottom: 12px; }
.aud .worry { font: 500 12px/1.5 var(--mono); color: var(--ink-3); letter-spacing: 0.02em; margin: 0; }
@media (max-width: 1000px) {
  .audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aud:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 600px) {
  .audiences { grid-template-columns: 1fr; }
  .aud, .aud + .aud { padding: 24px 0; border-left: 0; }
}

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--rule-strong); border-radius: 14px; padding: 28px 26px 26px; display: flex; flex-direction: column; }
.plan.core { border: 1.5px solid var(--ink); box-shadow: var(--shadow-lift); position: relative; }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 26px; }
.plan h3 { font-size: 28px; }
.plan .for { color: var(--ink-2); font-size: 15px; margin: 8px 0 20px; min-height: 48px; }
.price { display: flex; align-items: baseline; gap: 8px; padding: 18px 0 6px; border-top: 1px solid var(--rule); }
.price .amt { font-family: var(--serif); font-size: 56px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.price .amt sup { font-size: 0.45em; vertical-align: 0.9em; margin-right: 2px; }
.price .per { font-size: 14px; color: var(--ink-3); line-height: 1.3; }
.terms { font: 500 12px/1.6 var(--mono); color: var(--ink-3); letter-spacing: 0.02em; margin: 0 0 18px; min-height: 40px; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.plan li { padding: 9px 0 9px 26px; position: relative; font-size: 15px; border-bottom: 1px dashed var(--rule); color: var(--ink-2); }
.plan li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 9px; height: 4.5px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.plan li.inherit { color: var(--ink); font-weight: 600; }
.plan li.inherit::before { border: 0; width: 12px; height: 1.5px; background: var(--ink-3); transform: none; top: 20px; left: 2px; }
.plan .btn { width: 100%; }
.addons { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule-strong); border-radius: 14px; background: var(--paper-2); }
.addon { padding: 20px 24px; }
.addon + .addon { border-left: 1px solid var(--rule-strong); }
.addon .k { font: 500 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 6px; }
.addon .v { font-family: var(--serif); font-size: 22px; line-height: 1.25; }
.addon p { font-size: 14.5px; color: var(--ink-2); margin: 6px 0 0; }
.price-note { margin-top: 20px; font-size: 14px; color: var(--ink-3); max-width: 820px; }
@media (max-width: 980px) {
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .plan .for, .terms { min-height: 0; }
  .addons { grid-template-columns: 1fr; max-width: 560px; }
  .addon + .addon { border-left: 0; border-top: 1px solid var(--rule-strong); }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 32px 72px; align-items: start; }
.faq-grid .sec-head { position: sticky; top: 100px; margin: 0; }
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 24px; gap: 16px; align-items: center;
  padding: 20px 0; font-family: var(--serif); font-size: clamp(20px, 2vw, 23px); line-height: 1.3; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 14px; height: 14px; justify-self: end;
  background:
    linear-gradient(var(--ink-2), var(--ink-2)) center / 14px 1.75px no-repeat,
    linear-gradient(var(--ink-2), var(--ink-2)) center / 1.75px 14px no-repeat;
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--green); }
.faq .ans { padding: 0 40px 22px 0; color: var(--ink-2); font-size: 16.5px; }
.faq .ans p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .sec-head { position: static; } .faq .ans { padding-right: 0; } }

/* ---------- final CTA ---------- */
.final { text-align: left; }
.final h2 { font-size: clamp(36px, 5.4vw, 68px); line-height: 1.02; max-width: 16ch; margin-bottom: 24px; }
.final h2 em { color: var(--stage-green); font-style: italic; }
.final-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px 64px; align-items: end; }
.final-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--stage-line); }
.final-steps li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--stage-line); color: var(--stage-ink-2); font-size: 15px; }
.final-steps li span { font: 500 12px/1.9 var(--mono); color: var(--stage-green); }
@media (max-width: 860px) { .final-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-foot { background: var(--stage); color: var(--stage-ink-2); border-top: 1px solid var(--stage-line); padding: 56px 0 40px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-foot .brand { color: var(--stage-ink); }
.site-foot .brand svg { color: var(--stage-green); }
.site-foot .wordmark i { color: var(--stage-green); }
.site-foot h2 { font: 500 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--stage-ink-3); margin: 4px 0 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 0 0 8px; }
.site-foot a { color: var(--stage-ink); text-decoration: none; }
.site-foot a:hover { color: var(--stage-green); text-decoration: underline; }
.foot-tag { margin-top: 14px; max-width: 34ch; }
.foot-base { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--stage-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--stage-ink-3); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- security page ---------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--rule); }
.page-hero h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -0.02em; max-width: 15ch; margin-bottom: 22px; }
.page-hero h1 em { color: var(--green); }
.toc { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 28px; list-style: none; padding: 0; }
.toc a { display: inline-block; font: 500 13px var(--mono); letter-spacing: 0.03em; padding: 7px 12px; border: 1px solid var(--rule-strong); border-radius: 999px; text-decoration: none; color: var(--ink-2); background: var(--card); }
.toc a:hover { border-color: var(--green); color: var(--green); }

.flow { margin: 0; background: var(--card); border: 1px solid var(--rule-strong); border-radius: 14px; padding: clamp(14px, 2.5vw, 28px); box-shadow: var(--shadow); }
.flow svg { width: 100%; height: auto; }
.flow .tall { display: none; max-width: 420px; margin: 0 auto; }
@media (max-width: 760px) { .flow .wide { display: none; } .flow .tall { display: block; } }
.flow-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.flow-notes div { border-top: 1px solid var(--ink); padding-top: 14px; }
.flow-notes h3 { font-size: 20px; margin-bottom: 6px; }
.flow-notes p { font-size: 15px; color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .flow-notes { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--rule-strong); border-radius: 12px; background: var(--card); }
table.consent { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
table.consent caption { text-align: left; padding: 16px 20px; font-size: 14px; color: var(--ink-3); caption-side: bottom; border-top: 1px solid var(--rule); }
table.consent th, table.consent td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.consent thead th { font: 500 11.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-2); border-bottom: 1px solid var(--rule-strong); }
table.consent tbody th { font-weight: 600; white-space: nowrap; }
table.consent tbody tr:last-child > * { border-bottom: 0; }
table.consent td.what { color: var(--ink-2); }
@media (max-width: 640px) {
  .table-wrap { overflow: visible; border: 0; background: transparent; }
  table.consent { min-width: 0; }
  table.consent thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.consent, table.consent tbody, table.consent tr, table.consent th, table.consent td { display: block; }
  table.consent tr { background: var(--card); border: 1px solid var(--rule-strong); border-radius: 12px; margin-bottom: 12px; padding: 6px 0; }
  table.consent th, table.consent td { border: 0; padding: 6px 16px; }
  table.consent tbody th { font-size: 17px; padding-top: 10px; }
  table.consent caption { display: block; border: 0; padding: 0 0 14px; }
  table.consent td.what::before { display: block; font: 500 11px/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
  table.consent td:nth-child(3)::before { content: "Before CloseWise listens"; }
  table.consent td:nth-child(4)::before { content: "If the buyer declines"; }
}

.model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.model { min-width: 0; background: var(--card); border: 1px solid var(--rule-strong); border-radius: 14px; padding: 26px; }
.model h3 { font-size: 24px; margin: 12px 0 10px; }
.model p { color: var(--ink-2); font-size: 16px; }
.model ol { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 15.5px; }
.model ol li { padding: 4px 0; }
.chain { display: flex; gap: 0; margin: 18px 0 6px; overflow: hidden; }
.chain span { flex: 1; min-width: 0; font: 500 11px/1.3 var(--mono); padding: 8px 8px; border: 1px solid var(--rule-strong); background: var(--paper); color: var(--ink-2); }
.chain span + span { border-left: 0; position: relative; }
.chain span:first-child { border-radius: 6px 0 0 6px; }
.chain span:last-child { border-radius: 0 6px 6px 0; }
.chain span b { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 760px) {
  .model-grid { grid-template-columns: 1fr; }
  .chain { flex-wrap: wrap; }
  .chain span { flex: 1 1 45%; border-radius: 0 !important; border-left: 1px solid var(--rule-strong) !important; margin: 0 -1px -1px 0; }
}

.deploy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.dep { padding: 26px 24px 20px 0; }
.dep + .dep { padding-left: 24px; border-left: 1px solid var(--rule); }
.dep h3 { font-size: 24px; margin: 10px 0 10px; }
.dep p { color: var(--ink-2); font-size: 15.5px; }
.dep dl { margin: 0; font-size: 14.5px; }
.dep dt { font: 500 11.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-top: 12px; }
.dep dd { margin: 3px 0 0; color: var(--ink); }
@media (max-width: 900px) {
  .deploy { grid-template-columns: 1fr; }
  .dep, .dep + .dep { padding: 24px 0; border-left: 0; }
  .dep + .dep { border-top: 1px solid var(--rule); }
}

.nevers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--stage-line); }
.nevers li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--stage-line); }
.nevers li svg { width: 18px; height: 18px; color: var(--stage-brick); margin-top: 4px; }
.nevers h3 { font-family: var(--sans); font-size: 16.5px; font-weight: 600; letter-spacing: 0; margin-bottom: 4px; }
.nevers p { margin: 0; color: var(--stage-ink-2); font-size: 15px; }
@media (max-width: 760px) { .nevers { grid-template-columns: 1fr; } }

.status-list { list-style: none; padding: 0; margin: 0; border-top: 1.5px solid var(--ink); }
.status-list li { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.status-list li p { margin: 0; color: var(--ink-2); font-size: 16px; }
.status-list .stamp { justify-self: start; }
@media (max-width: 640px) { .status-list li { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- 404 ---------- */
.nf { min-height: calc(100vh - 69px - 160px); display: grid; align-content: center; padding-top: 80px; padding-bottom: 80px; }
.nf h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1; letter-spacing: -0.02em; margin: 14px 0 20px; max-width: 14ch; }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media print { .site-head, .hero-media, .site-foot { display: none; } }

code { font: 500 0.86em var(--mono); background: var(--paper-2); border: 1px solid var(--rule); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
