/* Telara — "The Ledger" marketing site. Static; no framework. */

:root {
  --paper: #F8F6F0;      /* page background — warm paper, never pure white */
  --paper-deep: #F1EEE5; /* alternating section tint */
  --ink: #1B1A17;        /* text, rules, buttons — warm near-black, never #000 */
  --ink-soft: #5A574E;   /* body copy */
  --ink-faint: #8A877E;  /* meta, captions, folios */
  --rule: #D8D4C8;       /* secondary hairlines */
  --marker: #DDF15B;     /* THE highlighter — key phrases & numbers only */
  --marker-dark: #5B6A11;/* micro-labels inside a marker-filled box (addendum) */
  --lime: #7CB518;       /* brand thread: logo dot, small ticks, link hover underline */
  /* Exhibit (the embedded terminal proof block ONLY) */
  --exhibit-bg: #060606;
  --exhibit-line: #1C1C1C;
  --exhibit-ink: #F2F2F0;
  --exhibit-dim: #6B6B6B;
  --exhibit-phosphor: #C6FF4A;
  /* Blueprint tokens (product pages; harmless here) */
  --grid-line: #ECEAE2;
  --fig-paper: #FAFAF7;
  --schematic-stroke: 1.5px;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --measure: 640px;        /* editorial body max-width */
  --gutter: clamp(22px, 6vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* numbers always tabular mono — trust every number */
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

a { color: inherit; }
/* Highlighter that draws in left→right when its section reveals (signature moment). */
mark {
  color: var(--ink); padding: 0 .12em;
  background-image: linear-gradient(var(--marker), var(--marker));
  background-repeat: no-repeat; background-position: left center;
  background-size: 0% 100%;
  transition: background-size .6s cubic-bezier(.4, 0, .2, 1) .25s;
}
[data-reveal].in mark { background-size: 100% 100%; }
@media (prefers-reduced-motion: reduce) {
  mark { background-size: 100% 100%; transition: none; }
}

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* ---------------------------------------------------------------- layout */
.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.col { max-width: var(--measure); }
.meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: none;
  color: var(--ink-faint);
  margin: 0 0 22px;
}
/* Lime tick before section labels — a branded left-anchor that gives sections rhythm. */
.section .meta::before, #story .meta::before {
  content: ""; display: inline-block; width: 16px; height: 2px;
  background: var(--lime); vertical-align: middle; margin-right: 10px;
  transform: translateY(-1px);
}
.proof { font-family: var(--mono); font-size: 12.5px; letter-spacing: .01em; color: var(--ink-faint); margin: 26px 0 0; }
.section { padding: clamp(72px, 12vh, 132px) 0; border-top: 1px solid var(--rule); }
.section--deep { background: var(--paper-deep); }
.section--first { border-top: none; }

/* fade-up on entry */
[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .5s ease-out, transform .5s ease-out; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------- type */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; color: var(--ink); }
/* Hero headline: Fraunces' SHARP upright display cut (soft/wonk axes at 0) — poster-serif
   authority, none of the quasi-italic softness of the default cut. */
.headline {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.06;
  letter-spacing: -.022em;
  max-width: 19ch;
  text-wrap: balance;
  font-weight: 570;
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 0, 'wght' 570;
}
.headline .hl-line { display: block; }
.headline .hl-fixed { display: block; margin-top: .16em; }
.headline mark { -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: .02em .16em; }
.chapter-title { font-size: clamp(30px, 4vw, 48px); line-height: 1.14; letter-spacing: -.005em; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.6vw, 18px); line-height: 1.75; color: var(--ink-soft); max-width: var(--measure); margin: 0; }
.lead + .lead { margin-top: 1.2em; }
p { margin: 0; }

/* ---------------------------------------------------------------- buttons / links */
.pill {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background .16s ease, color .16s ease;
}
.pill:hover { background: transparent; color: var(--ink); }
.textlink {
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  transition: border-color .16s ease, color .16s ease;
}
.textlink:hover { color: var(--lime); border-color: var(--lime); }
.arrowlink {
  display: inline-block;
  margin-top: 26px;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color .16s ease, color .16s ease;
}
.arrowlink::after { content: "\2192"; color: var(--lime); margin-left: 8px; display: inline-block; transition: transform .18s ease; }
.arrowlink:hover { border-color: var(--lime); }
.arrowlink:hover::after { transform: translateX(4px); }
.cta-row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 40px; }

/* ---------------------------------------------------------------- masthead */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
/* Slim lime scroll-progress line riding the bottom edge of the sticky masthead. */
.scrollbar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--lime); z-index: 41; will-change: width; }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 7px; font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand .mark { flex-shrink: 0; display: block; }
.brand__word { display: inline-block; }
.brand__dot { display: inline-block; width: 5px; height: 5px; border-radius: 999px; background: var(--lime); margin-left: 3px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 13px; font-weight: 400; color: var(--ink); text-decoration: none; }
.nav a:not(.pill) { border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color .16s ease; }
.nav a:not(.pill):hover { border-color: var(--lime); }
.nav .pill { padding: 9px 18px; font-size: 13px; color: var(--paper); }
.nav .pill:hover { color: var(--ink); }
.nav-toggle { display: none; }

/* ---------------------------------------------------------------- hero */
/* Bottom padding kept tight so the exhibit's phosphor edge peeks above the fold on desktop. */
.hero { padding-top: clamp(64px, 12vh, 128px); padding-bottom: clamp(40px, 7vh, 72px); }
.hero .lead { margin-top: 34px; }

/* ---------------------------------------------------------------- exhibit (the one dark block) */
.exhibit-band { background: var(--exhibit-bg); padding: clamp(40px, 7vw, 76px) 0; }
.exhibit {
  border: 1px solid var(--exhibit-line);
  border-top: 1px solid var(--exhibit-phosphor);   /* live-screen edge — the one focal moment */
  padding: clamp(24px, 3.8vw, 38px);
  color: var(--exhibit-ink);
  font-family: var(--mono);
}
.exhibit__head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: var(--exhibit-dim); letter-spacing: .04em;
  padding-bottom: 22px; border-bottom: 1px solid var(--exhibit-line);
}
.exhibit__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--exhibit-phosphor); display: inline-block; animation: pulse 2.4s ease-in-out infinite; }
.exhibit__clock { margin-left: auto; color: var(--exhibit-dim); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .exhibit__dot { animation: none; } }

.exhibit__grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 4px; }
.exfig { padding: 26px 24px 4px; border-left: 1px solid var(--exhibit-line); }
.exfig:first-child { border-left: none; padding-left: 0; }
.exfig__label { font-size: 11px; letter-spacing: .06em; color: var(--exhibit-dim); }
.exfig__val { font-size: clamp(18px, 2.2vw, 27px); line-height: 1.25; margin-top: 12px; font-variant-numeric: tabular-nums; color: var(--exhibit-ink); }
.exfig__val--phosphor { color: var(--exhibit-phosphor); }
.exfig__val--soft { font-size: clamp(15px, 1.7vw, 19px); color: var(--exhibit-ink); }
.exhibit-caption { color: var(--ink-faint); font-family: var(--mono); font-size: 12px; margin-top: 22px; }

/* Reconciliation tape — the mechanism, shown honestly (illustration, not production data). */
.tape { border-top: 1px solid var(--exhibit-line); margin-top: 26px; padding-top: 18px; }
.tape__row { display: flex; align-items: baseline; gap: 10px; height: 24px; font-size: 12.5px; color: var(--exhibit-dim); opacity: 0; transition: opacity .45s ease; }
.tape__row.show { opacity: 1; }
.tape__rec { color: var(--exhibit-ink); }
.tape__arrow { color: var(--exhibit-dim); }
.tape__tick { color: var(--exhibit-phosphor); opacity: 0; transition: opacity .35s ease; }
.tape__tick.on { opacity: 1; }
.tape__note { font-size: 10.5px; letter-spacing: .05em; color: var(--exhibit-dim); margin-top: 10px; }
@media (prefers-reduced-motion: reduce) {
  .tape__row, .tape__tick { opacity: 1; transition: none; }
}

/* ---------------------------------------------------------------- pull quote */
.pullquote { font-family: var(--serif); font-size: clamp(22px, 3vw, 26px); line-height: 1.4; color: var(--ink); max-width: 760px; margin: 40px 0 0; }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--ink); padding: 40px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__left { display: inline-flex; align-items: baseline; gap: 10px; }
.footer__tag { color: var(--ink-faint); font-size: 14px; }
.footer__right { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-faint); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .nav { position: fixed; inset: 62px 0 0; background: var(--paper); flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; padding: 32px var(--gutter); transform: translateX(100%); transition: transform .28s ease; }
  .nav.open { transform: none; }
  .nav a:not(.pill) { font-size: 22px; font-family: var(--serif); padding: 14px 0; }
  .nav .pill { margin-top: 18px; font-size: 15px; padding: 13px 24px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; background: transparent; border: 1px solid var(--ink);
    border-radius: 999px; cursor: pointer; color: var(--ink); font-family: var(--mono); font-size: 11px;
    letter-spacing: .06em;
  }
  .exhibit__grid { grid-template-columns: 1fr 1fr; }
  .exfig { padding: 22px 0 4px 20px; border-left: 1px solid var(--exhibit-line); }
  .exfig:nth-child(odd) { padding-left: 0; border-left: none; }
  .exfig:nth-child(n+3) { border-top: 1px solid var(--exhibit-line); padding-top: 22px; margin-top: 4px; }
  .cta-row { gap: 20px; }
}
@media (min-width: 1281px) {
  .hero .headline { max-width: 14ch; }
}

/* ---------------------------------------------------------------- book-a-demo modal */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal__overlay { position: fixed; inset: 0; background: rgba(27,26,23,.55); }
.modal__card { position: relative; background: var(--paper); border: 1px solid var(--ink); max-width: 460px; width: 100%; padding: clamp(26px, 4vw, 40px); }
.modal__close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; background: transparent; border: 1px solid var(--rule); color: var(--ink); font-size: 17px; line-height: 1; cursor: pointer; }
.modal__close:hover { border-color: var(--ink); }
.modal__title { font-size: clamp(21px, 3vw, 27px); line-height: 1.22; margin-top: 6px; }
.modal__note { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 12px 0 22px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--ink-faint); margin-bottom: 6px; }
.field > span em { font-style: normal; opacity: .7; }
.field input, .field select { width: 100%; box-sizing: border-box; background: #FDFCF8; border: 1px solid var(--rule); color: var(--ink); padding: 11px 12px; font-family: var(--sans); font-size: 15px; border-radius: 0; }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { color: #9A2A1E; font-size: 13px; margin: 2px 0 12px; }
#book-submit { margin-top: 6px; width: 100%; text-align: center; }
#book-submit[disabled] { opacity: .6; cursor: default; }
#book-success .pill { margin-top: 8px; }

/* ---------------------------------------------------------------- custom date picker */
.dateinput { cursor: pointer; }
.cal { border: 1px solid var(--rule); margin-top: 6px; padding: 10px 10px 6px; background: var(--paper); }
.cal[hidden] { display: none; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal__title { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.cal__nav { width: 28px; height: 28px; border: 1px solid var(--rule); background: transparent; cursor: pointer; font-size: 15px; line-height: 1; color: var(--ink); }
.cal__nav:hover:not([disabled]) { border-color: var(--ink); }
.cal__nav[disabled] { opacity: .3; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.cal__wd { font-family: var(--mono); font-size: 10px; letter-spacing: .02em; color: var(--ink-faint); text-align: center; padding: 3px 0 6px; }
.cal__cell { text-align: center; font-size: 12.5px; padding: 7px 0; font-family: var(--mono); }
.cal__day { border: none; background: transparent; cursor: pointer; color: var(--ink); }
.cal__day:hover { background: var(--marker); }
.cal__day--off { color: var(--ink-faint); opacity: .38; cursor: default; }
.cal__day--sel, .cal__day--sel:hover { background: var(--ink); color: var(--paper); }

/* ================================================================ PRODUCT PAGES (blueprint) */
/* Active nav item — 2px marker underline (addendum §B). */
.nav a.is-active { border-bottom: 2px solid var(--marker); }

.page-title { padding: clamp(64px,10vh,110px) 0 clamp(36px,6vh,64px); }
.page-title .lead { margin-top: 26px; }

/* Figure zone: 1px ink frame, paper header strip, graph-paper body. */
.figure { border: 1px solid var(--ink); margin: 34px 0; }
.fig__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  background: var(--paper); border-bottom: 1px solid var(--ink);
  padding: 10px 16px; font-family: var(--mono); font-size: 12px;
}
.fig__name { color: var(--ink); letter-spacing: .02em; }
.fig__annot { color: var(--ink-faint); text-align: right; }
.fig__body {
  padding: clamp(20px, 4vw, 44px);
  background-color: var(--fig-paper);
  background-image:
    repeating-linear-gradient(to right, var(--grid-line) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(to bottom, var(--grid-line) 0 1px, transparent 1px 22px);
}
.fig__body svg { display: block; width: 100%; height: auto; max-width: 760px; margin: 0 auto; }

/* Schematic elements (square junctions, straight ink connectors, one marker-filled core). */
.sk-box  { fill: var(--paper); stroke: var(--ink); stroke-width: var(--schematic-stroke); }
.sk-core { fill: var(--marker); stroke: var(--ink); stroke-width: var(--schematic-stroke); }
.sk-line { stroke: var(--ink); stroke-width: var(--schematic-stroke); fill: none; }
.sk-title { font-family: var(--sans); font-size: 13px; font-weight: 500; fill: var(--ink); }
.sk-title--core { font-size: 14px; }
.sk-micro { font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; fill: var(--ink-faint); }
.sk-micro--core { fill: var(--marker-dark); }

/* Screenshot figure — #101010 placeholder until a real Terminal screenshot is supplied. */
.shot { background: #101010; min-height: clamp(200px, 34vw, 360px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.shot__note { font-family: var(--mono); font-size: 12px; color: #6B6B6B; text-align: center; letter-spacing: .03em; }
.shot-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin-top: 10px; }

/* Spec table — data-sheet register. */
.spec { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); margin: 8px 0 4px; }
.spec tr { border-bottom: 1px solid var(--rule); }
.spec th, .spec td { padding: 15px 12px 15px 0; text-align: left; vertical-align: top; }
.spec .k { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-faint); font-weight: 400; width: 210px; }
.spec .d { font-size: 15.5px; color: var(--ink-soft); line-height: 1.55; }
.spec .v { font-family: var(--mono); font-size: 13px; color: var(--ink); text-align: right; width: 190px; white-space: nowrap; }
@media (max-width: 640px) {
  .spec, .spec tbody, .spec tr, .spec th, .spec td { display: block; width: auto; }
  .spec tr { padding: 12px 0; }
  .spec th, .spec td { padding: 2px 0; }
  .spec .v { text-align: left; }
}

/* ---------------------------------------------------------------- industries tab block */
.usecases .meta { margin-bottom: 18px; }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--rule); margin-bottom: 34px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
.tabs::-webkit-scrollbar { display: none; }  /* hide the scroller only — alignment untouched */
.tab {
  appearance: none; background: none; border: none; cursor: pointer;
  font-family: var(--mono); font-size: 13px; letter-spacing: .03em;
  color: var(--ink-faint); padding: 0 0 12px; margin-bottom: -1px;
  border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color .16s ease, border-color .16s ease;
}
.tab:hover { color: var(--ink); border-color: var(--marker); }
.tab[aria-selected="true"] { color: var(--ink); border-color: var(--marker); font-weight: 500; }
.uc-panels { position: relative; min-height: 340px; }
.uc-panel[hidden] { display: none; }
.uc-name { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--ink-faint); margin: 0 0 20px; }
.uc-panel.fadein { animation: ucfade .22s ease-out; }
@keyframes ucfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .uc-panel.fadein { animation: none; } }
.tab .lbl-short { display: none; }
@media (max-width: 640px) {
  .uc-panels { min-height: 420px; } .tabs { gap: 22px; }
  .tab .lbl-full { display: none; } .tab .lbl-short { display: inline; }
}

/* ---------------------------------------------------------------- story principles list */
.principles { margin-top: 44px; border-top: 1px solid var(--ink); }
.principle { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.principle__n { font-family: var(--mono); font-size: 13px; color: var(--ink-faint); padding-top: 5px; }
.principle__h { font-family: var(--serif); font-size: clamp(19px, 2.4vw, 23px); font-weight: 500; color: var(--ink); line-height: 1.25; }
.principle__p { color: var(--ink-soft); font-size: 16px; line-height: 1.7; margin-top: 8px; max-width: var(--measure); }
@media (max-width: 560px) { .principle { grid-template-columns: 1fr; gap: 6px; } }

/* ---------------------------------------------------------------- modal brand lockup */
/* Top-right corner, opposite the "Book a demo" label — absolutely positioned so it adds
   no height. Right offset clears the × close button (which sits at right:12). */
.modal__brand {
  position: absolute; top: clamp(24px, 4vw, 38px); right: 54px; margin: 0;
  display: flex; align-items: center; gap: 6px;
  font-family: var(--serif); font-size: 14px; font-weight: 500; color: var(--ink); letter-spacing: -.01em;
}
.modal__brand .mark { flex-shrink: 0; display: block; }

/* rev2: Q&A centrepiece + capabilities strip (additive only — tokens untouched) */
.qa { border-top: 1px solid var(--rule); padding-top: 34px; margin-top: 34px; }
.qa:first-of-type { border-top: 0; padding-top: 0; margin-top: 40px; }
.qa__q {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 26px);
  line-height: 1.3;
  color: var(--ink);
  max-width: 760px;
  margin: 0;
}
.qa__a { margin-top: 14px; }
.qa__drill { margin-top: 14px; }
.cap { border-top: 1px solid var(--rule); padding-top: 30px; margin-top: 30px; }
.cap:first-of-type { border-top: 0; padding-top: 0; margin-top: 40px; }
.cap .lead { margin-top: 12px; }
.cap p:last-child { margin-top: 14px; }
/* numbered capability eyebrows keep the mono voice but not the section tick */
.cap .meta::before { display: none; }

/* rev3: section subnav — a visible bar directly under the masthead linking a section's
   sibling pages; the active page carries the marker underline like the primary nav. */
.subnav-bar {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.subnav {
  display: flex; flex-wrap: wrap;
  gap: 4px 26px;
  padding: 13px 0;
}
.subnav a {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .05em;
  color: var(--ink-soft); text-decoration: none; padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { color: var(--ink); border-bottom-color: var(--marker); }

/* rev3: device frame — the homepage illustration presented on an iPad-style screen.
   Deliberate exception to the zero-radius rule: this depicts a DEVICE, not UI chrome. */
.device {
  max-width: 840px;
  margin: 0 auto;
  filter: drop-shadow(0 26px 48px rgba(0,0,0,.5));
}
.device__lid {
  background: #0E0E0F;                      /* the black display bezel */
  border: 1.5px solid #6E6F73;              /* dimmed aluminium edge */
  border-radius: 18px;
  padding: 16px 14px;
  position: relative;
}
.device__lid::before {                      /* camera dot */
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 999px;
  background: #3A3B3E;
}
.device__screen {
  border: 1px solid #141414;
  border-radius: 6px;
  overflow: hidden;
}
.device__screen img, .device__screen svg { width: 100%; height: auto; display: block; }
@media (max-width: 767px) {
  .device { max-width: 100%; }
  .device__lid { padding: 10px 8px; border-radius: 12px; }
}

/* rev3: Q&A action line — the "so what" between answer and drill. Inter/ink like the answer;
   the arrow takes the drill line's mono voice. */
.qa__act { margin-top: 12px; }
.qa__act .qa__act-arrow { font-family: var(--mono); color: var(--ink-faint); }
.qa__act strong { font-weight: 500; }

/* rev4: book-a-demo page + privacy notice (additive only — the modal block above is retired
   but left untouched; remove with the legacy server branch after the rollout soak). */
.book-layout { display: grid; grid-template-columns: 1fr minmax(380px, 460px); gap: clamp(40px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .book-layout { grid-template-columns: 1fr; } }
.book-panel { border: 1px solid var(--ink); background: var(--paper); padding: clamp(26px, 4vw, 40px); }
.book-panel__title { font-family: var(--serif); font-weight: 500; font-size: clamp(21px, 3vw, 27px); line-height: 1.22; margin: 6px 0 0; }
.book-panel__note { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 12px 0 22px; }
.field textarea { width: 100%; box-sizing: border-box; background: #FDFCF8; border: 1px solid var(--rule); color: var(--ink); padding: 11px 12px; font-family: var(--sans); font-size: 15px; border-radius: 0; min-height: 120px; resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--ink); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--ink-soft); margin: 4px 0 16px; }
.consent input { margin-top: 3px; accent-color: var(--ink); flex: 0 0 auto; }
.consent a { text-decoration: underline; }
