/* ============================================================
   Self-hosted typefaces. No third-party font CDN, so loading a
   page contacts no server other than the one serving the site.
   Subsets: latin and latin-ext only.
   ============================================================ */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('fonts/archivo-400-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('fonts/archivo-400-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   Callrez design system
   Palette, type scale, grid and components.
   One stylesheet across all six pages.
   ============================================================ */

:root {
  /* Ground */
  --paper:      #EEEFF2;
  --surface:    #FBFBFC;
  --ink:        #0F1626;
  --ink-raised: #1A2337;

  /* Text */
  --text:       #0F1626;
  --text-muted: #5B6478;
  --text-on-ink:       #E7EAF1;
  --text-on-ink-muted: #9AA5BC;
  --text-on-ink-dim:   #6C7997;

  /* Line */
  --rule:     #D3D6DD;
  --rule-ink: #2C3650;

  /* Accent */
  --accent:      #2137D9;
  --accent-deep: #172AA8;
  --accent-lift: #7B90FF;

  /* Semantic. Used only inside the dial gate, where the colour
     carries the meaning rather than decorating it. */
  --pass:  #1E7F4D;
  --block: #B3271E;

  /* Rhythm */
  --band-y:  clamp(4.5rem, 9vw, 8.5rem);
  --gutter:  clamp(1.25rem, 4vw, 3rem);
  --measure: 62ch;

  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

body {
  background: var(--paper);
  color: var(--text);
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-variation-settings: "wdth" 100, "wght" 420;
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Type scale ----------
   Headlines take their contrast from Archivo's width axis rather
   than from a second, unrelated typeface. */
.d1, .d2, .d3, .d4 {
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.d1 {
  font-size: clamp(2.6rem, 1.4rem + 5.4vw, 5.5rem);
  font-variation-settings: "wdth" 112, "wght" 700;
  line-height: .95;
  letter-spacing: -0.038em;
}
.d2 {
  font-size: clamp(1.95rem, 1.3rem + 2.6vw, 3.25rem);
  font-variation-settings: "wdth" 110, "wght" 660;
  letter-spacing: -0.032em;
}
.d3 {
  font-size: clamp(1.35rem, 1.1rem + 1.05vw, 1.85rem);
  font-variation-settings: "wdth" 106, "wght" 640;
  line-height: 1.14;
  letter-spacing: -0.024em;
}
.d4 {
  font-size: 1.0625rem;
  font-variation-settings: "wdth" 104, "wght" 660;
  line-height: 1.32;
  letter-spacing: -0.012em;
}

.lede {
  font-size: clamp(1.1rem, 1rem + .55vw, 1.35rem);
  line-height: 1.5;
  font-variation-settings: "wdth" 100, "wght" 430;
  letter-spacing: -0.014em;
  max-width: 44ch;
}
.prose { max-width: var(--measure); color: var(--text-muted); }
.prose + .prose { margin-top: 1.1em; }
.prose strong { font-variation-settings: "wdth" 100, "wght" 620; color: var(--text); }
.band--ink .prose strong { color: #fff; }

.mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .8125rem;
  font-weight: 400;
  letter-spacing: 0;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: var(--band-y); }
.band--tight { padding-block: calc(var(--band-y) * .6); }
.band--ink { background: var(--ink); color: var(--text-on-ink); }
.band--ink .prose { color: var(--text-on-ink-muted); }
.band--surface { background: var(--surface); }
.band--ruled { border-top: 1px solid var(--rule); }

/* Asymmetric editorial grid: statement left, detail right. */
.split {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 5vw, 5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split__aside { position: sticky; top: 6.5rem; align-self: start; }
}

.stack-sm > * + * { margin-top: .55rem; }
.stack    > * + * { margin-top: 1.15rem; }
.stack-lg > * + * { margin-top: 2.25rem; }

/* ---------- Section marker ----------
   A rule and a short index: it says where you are in the page. */
.marker {
  display: flex;
  align-items: baseline;
  gap: .85rem;
  padding-bottom: .9rem;
  margin-bottom: 1.7rem;
  border-bottom: 1px solid var(--rule);
  color: var(--text-muted);
}
.band--ink .marker { border-bottom-color: var(--rule-ink); color: var(--text-on-ink-muted); }
.marker__id { color: var(--accent); font-weight: 500; }
.band--ink .marker__id { color: var(--accent-lift); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-variation-settings: "wdth" 102, "wght" 600;
  font-size: .95rem;
  letter-spacing: -0.006em;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { background: var(--accent-deep); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--rule); }
.btn--ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent); }
.band--ink .btn--ghost, .svc--ink .btn--ghost { color: var(--text-on-ink); border-color: var(--rule-ink); }
.band--ink .btn--ghost:hover, .svc--ink .btn--ghost:hover { color: #fff; border-color: var(--accent-lift); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* A link that reads as a link without borrowing an arrow glyph. */
.tlink {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-variation-settings: "wdth" 100, "wght" 560;
  border-bottom: 1.5px solid color-mix(in srgb, var(--accent) 34%, transparent);
  padding-bottom: 1px;
  transition: border-color .18s var(--ease);
}
.tlink:hover { border-bottom-color: var(--accent); }
.band--ink .tlink, .svc--ink .tlink { color: var(--accent-lift); border-bottom-color: color-mix(in srgb, var(--accent-lift) 40%, transparent); }
.band--ink .tlink:hover, .svc--ink .tlink:hover { border-bottom-color: var(--accent-lift); }

/* ---------- Focus ---------- */
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.band--ink :where(a, button):focus-visible,
.foot :where(a, button):focus-visible { outline-color: var(--accent-lift); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .7rem 1rem;
  border-radius: 0 0 var(--radius) 0; text-decoration: none;
}
.skip:focus { left: 0; }

/* ============================================================
   Masthead
   ============================================================ */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.masthead.is-stuck { border-bottom-color: var(--rule); }
.masthead__in { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }

.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; color: var(--text);
  font-variation-settings: "wdth" 112, "wght" 720;
  font-size: 1.3rem; letter-spacing: -0.035em;
  margin-right: auto;
}
.brand__mark { width: 13px; height: 13px; border-radius: 50%; background: var(--accent); flex: none; }

.nav { display: none; gap: 1.75rem; align-items: center; }
@media (min-width: 900px) { .nav { display: flex; } }
.nav a {
  text-decoration: none; color: var(--text-muted);
  font-size: .935rem; font-variation-settings: "wdth" 100, "wght" 500;
  padding-block: .35rem;
  border-bottom: 1.5px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.masthead .btn { padding: .6rem 1.05rem; font-size: .9rem; }
.masthead__cta { display: none; }
@media (min-width: 900px) { .masthead__cta { display: inline-flex; } }

.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 38px; padding: 0 9px;
  background: transparent; border: 1px solid var(--rule); border-radius: var(--radius);
  cursor: pointer;
}
@media (min-width: 900px) { .burger { display: none; } }
.burger span { display: block; height: 1.5px; background: var(--text); transition: transform .22s var(--ease), opacity .18s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.drawer { display: none; border-top: 1px solid var(--rule); background: var(--paper); }
.drawer.is-open { display: block; }
@media (min-width: 900px) { .drawer, .drawer.is-open { display: none; } }
.drawer ul { padding-block: .4rem; }
.drawer li + li { border-top: 1px solid var(--rule); }
.drawer a {
  display: block; padding: .95rem 0; text-decoration: none; color: var(--text);
  font-variation-settings: "wdth" 104, "wght" 560; font-size: 1.05rem;
}
.drawer .btn { width: 100%; margin: 1rem 0 1.4rem; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 7rem); }
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(3rem, 5vw, 5rem); }
}
.hero__eyebrow {
  color: var(--text-muted);
  border-left: 2px solid var(--accent);
  padding-left: .7rem;
  margin-bottom: 1.7rem;
}
.hero .d1 { margin-bottom: 1.5rem; }
.hero__lede { color: var(--text-muted); }
.hero .btn-row { margin-top: 2.1rem; }

/* ---------- Dial gate ----------
   The hero image is the mechanism itself. */
.gate {
  background: var(--ink);
  color: var(--text-on-ink);
  border-radius: 6px;
  padding: 1.4rem 1.4rem 1.3rem;
  box-shadow: 0 22px 48px -26px rgba(15, 22, 38, .55);
}
@media (min-width: 560px) { .gate { padding: 1.65rem 1.75rem 1.55rem; } }
.gate__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-bottom: .9rem; border-bottom: 1px solid var(--rule-ink);
}
.gate__title { font-variation-settings: "wdth" 104, "wght" 620; font-size: .95rem; color: #fff; }
.gate__run {
  background: transparent; border: 1px solid var(--rule-ink); border-radius: var(--radius);
  color: var(--text-on-ink-muted); padding: .35rem .7rem; cursor: pointer;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .74rem;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.gate__run:hover { color: #fff; border-color: var(--accent-lift); }

.gate__number {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(1.15rem, 1rem + .8vw, 1.45rem);
  letter-spacing: -0.02em;
  padding-block: 1.05rem .8rem;
  color: #fff;
}
.gate__meta {
  display: grid; grid-template-columns: auto 1fr; gap: .32rem 1.1rem;
  padding-bottom: 1.05rem; border-bottom: 1px solid var(--rule-ink);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .75rem;
}
.gate__meta dt { color: var(--text-on-ink-dim); }
.gate__meta dd { color: var(--text-on-ink-muted); margin: 0; }

.gate__checks { padding-block: .3rem; }
.gate__check {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .2rem 1rem;
  padding-block: .62rem;
  border-bottom: 1px solid color-mix(in srgb, var(--rule-ink) 55%, transparent);
  transition: opacity .34s var(--ease), transform .34s var(--ease);
}
.js .gate__check { opacity: 0; transform: translateY(4px); }
.gate__check:last-child { border-bottom: 0; }
.js .gate__check.is-shown { opacity: 1; transform: none; }
.gate__name {
  grid-column: 1;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .8rem; color: var(--text-on-ink);
}
.gate__detail {
  grid-column: 1;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .74rem; color: var(--text-on-ink-dim);
}
.gate__flag {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .72rem; padding: .16rem .5rem; border-radius: 3px; white-space: nowrap;
}
.gate__flag[data-state="pass"]  { color: #6EE7A6; background: color-mix(in srgb, var(--pass) 26%, transparent); }
.gate__flag[data-state="block"] { color: #FF9C90; background: color-mix(in srgb, var(--block) 32%, transparent); }
.gate__flag[data-state="wait"]  { color: var(--text-on-ink-dim); background: color-mix(in srgb, #6C7997 16%, transparent); }

.gate__verdict {
  margin-top: .9rem; padding-top: 1rem; border-top: 1px solid var(--rule-ink);
  display: flex; align-items: center; gap: .7rem;
  transition: opacity .4s var(--ease);
}
.js .gate__verdict { opacity: 0; }
.js .gate__verdict.is-shown { opacity: 1; }
.gate__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--text-on-ink-dim); }
.gate__verdict[data-state="pass"]  .gate__dot { background: #34D399; box-shadow: 0 0 0 4px color-mix(in srgb, #34D399 20%, transparent); }
.gate__verdict[data-state="block"] .gate__dot { background: #F87171; box-shadow: 0 0 0 4px color-mix(in srgb, #F87171 20%, transparent); }
.gate__verdictText { font-variation-settings: "wdth" 104, "wght" 620; font-size: 1rem; color: #fff; }
.gate__foot { margin-top: .95rem; color: var(--text-on-ink-dim); line-height: 1.55; }

/* ============================================================
   Services — two panels, deliberately unmatched
   ============================================================ */
.services { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .services { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.svc { padding: clamp(1.75rem, 3.4vw, 2.6rem); border-radius: 6px; display: flex; flex-direction: column; }
.svc--ink { background: var(--ink); color: var(--text-on-ink); }
.svc--ink .svc__body { color: var(--text-on-ink-muted); }
.svc--paper { background: var(--surface); border: 1px solid var(--rule); }
.svc__kicker { color: var(--accent); margin-bottom: 1rem; }
.svc--ink .svc__kicker { color: var(--accent-lift); }
.svc .d3 { margin-bottom: .85rem; }
.svc__body { color: var(--text-muted); max-width: 46ch; }
.svc__link { margin-top: auto; padding-top: 1.7rem; }

/* ============================================================
   Verticals — a register, not a card grid
   ============================================================ */
.verts { border-top: 1px solid var(--rule); }
.vert { display: grid; grid-template-columns: 1fr; gap: .35rem; padding-block: 1.45rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 780px) { .vert { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem; align-items: baseline; } }
.vert__name {
  font-variation-settings: "wdth" 106, "wght" 620;
  font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem);
  letter-spacing: -0.022em;
}
.vert__fields { color: var(--text-muted); line-height: 1.75; font-size: .875rem; }
.verts__note { margin-top: 1.6rem; color: var(--text-muted); max-width: 62ch; }

/* ============================================================
   Claims — parallel, ruled, not boxed
   ============================================================ */
.claims { display: grid; gap: 2.25rem clamp(2rem, 4vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 760px) { .claims { grid-template-columns: 1fr 1fr; } }
.claim { padding-top: 1.05rem; border-top: 2px solid var(--ink); }
.band--ink .claim { border-top-color: var(--accent-lift); }
.claim .d4 { margin-bottom: .5rem; }
.claim p { color: var(--text-muted); max-width: 46ch; }
.band--ink .claim p { color: var(--text-on-ink-muted); }

/* ============================================================
   Capability figures
   ============================================================ */
.capline { max-width: 22ch; }
.figs { display: grid; grid-template-columns: 1fr; margin-top: 2.6rem; }
@media (min-width: 720px) { .figs { grid-template-columns: repeat(3, 1fr); } }
.fig { padding-block: 1.35rem; border-top: 1px solid var(--rule-ink); }
@media (min-width: 720px) {
  .fig { padding: 0 1.75rem; border-top: 0; border-left: 1px solid var(--rule-ink); }
  .fig:first-child { padding-left: 0; border-left: 0; }
}
.fig__n {
  display: block;
  font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3rem);
  font-variation-settings: "wdth" 108, "wght" 680;
  letter-spacing: -0.035em; line-height: 1; color: #fff;
}
.fig__l { display: block; margin-top: .65rem; color: var(--text-on-ink-muted); max-width: 26ch; }

/* ============================================================
   Compliance pull
   ============================================================ */
.pull { border-left: 3px solid var(--accent); padding-left: clamp(1.25rem, 3vw, 2.25rem); }
.pull__list { margin-top: 1.7rem; }
.pull__list li { padding-block: .65rem; border-bottom: 1px solid var(--rule); color: var(--text); }
.pull__list li:first-child { border-top: 1px solid var(--rule); }
.band--ink .pull { border-left-color: var(--accent-lift); }
.band--ink .pull__list li { border-bottom-color: var(--rule-ink); color: var(--text-on-ink); }
.band--ink .pull__list li:first-child { border-top-color: var(--rule-ink); }

/* ============================================================
   Closing call to action
   ============================================================ */
.close__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .close__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; } }

/* Detail the client has not supplied yet, marked so it cannot ship by accident. */
.tbd { border-bottom: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent); color: inherit; }
.tbd::after {
  content: " [placeholder]";
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .68em; color: var(--accent); letter-spacing: 0;
}
.band--ink .tbd::after, .foot .tbd::after { color: var(--accent-lift); }
.band--ink .tbd, .foot .tbd { border-bottom-color: color-mix(in srgb, var(--accent-lift) 55%, transparent); }

/* ============================================================
   Footer
   ============================================================ */
.foot { background: var(--ink); color: var(--text-on-ink-muted); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.foot__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .foot__grid { grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 3fr)); gap: 3rem; } }
.foot .brand { color: #fff; margin-right: 0; }
.foot__blurb { margin-top: 1rem; max-width: 34ch; color: var(--text-on-ink-muted); }
.foot__h { color: #fff; margin-bottom: .9rem; }
.foot__list li + li { margin-top: .55rem; }
.foot__list a { color: var(--text-on-ink-muted); text-decoration: none; transition: color .16s var(--ease); }
.foot__list a:hover { color: #fff; }
.foot__base {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule-ink);
  display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between;
  color: var(--text-on-ink-dim);
}

/* ============================================================
   Interior page head
   ============================================================ */
.page-head { padding-block: clamp(2.75rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.page-head__label { color: var(--text-muted); border-left: 2px solid var(--accent); padding-left: .7rem; margin-bottom: 1.6rem; }
.d1--page { font-size: clamp(2.3rem, 1.4rem + 3.9vw, 4.25rem); }
.page-head .lede { margin-top: 1.4rem; color: var(--text-muted); max-width: 52ch; }
.page-head .btn-row { margin-top: 2rem; }

/* ============================================================
   Steps — used only where the content really is a sequence
   ============================================================ */
.steps { display: grid; gap: 2rem clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: 1fr; }
@media (min-width: 660px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 980px)  { .steps--3 { grid-template-columns: repeat(3, 1fr); } }
.step { padding-top: 1rem; border-top: 2px solid var(--ink); }
.band--ink .step { border-top-color: var(--accent-lift); }
.step__n {
  display: block; margin-bottom: .6rem; color: var(--accent);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .8125rem;
}
.band--ink .step__n { color: var(--accent-lift); }
.step .d4 { margin-bottom: .5rem; }
.step p { color: var(--text-muted); }
.band--ink .step p { color: var(--text-on-ink-muted); }

/* ============================================================
   Register — a ruled index of what we run, not an icon grid
   ============================================================ */
.register { display: grid; grid-template-columns: 1fr; column-gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 820px) { .register { grid-template-columns: 1fr 1fr; } }
.reg { padding-block: 1.15rem; border-top: 1px solid var(--rule); }
.reg__name { display: block; font-variation-settings: "wdth" 104, "wght" 620; font-size: 1.05rem; letter-spacing: -0.014em; }
.reg__desc { display: block; margin-top: .3rem; color: var(--text-muted); font-size: .9375rem; line-height: 1.55; max-width: 46ch; }

/* ============================================================
   Note — a short qualification set apart from the argument
   ============================================================ */
.note {
  border-left: 2px solid var(--accent);
  padding: .2rem 0 .2rem 1.1rem;
  color: var(--text-muted);
  max-width: 62ch;
  font-size: .9375rem;
  line-height: 1.6;
}
.band--ink .note { border-left-color: var(--accent-lift); color: var(--text-on-ink-muted); }

/* ============================================================
   Definition rows — "what a lead includes", spec-style
   ============================================================ */
.spec { border-top: 1px solid var(--rule); }
.spec__row { display: grid; grid-template-columns: 1fr; gap: .3rem; padding-block: 1.15rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 720px) { .spec__row { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem; align-items: baseline; } }
.spec__k { font-variation-settings: "wdth" 104, "wght" 600; }
.spec__v { color: var(--text-muted); }
.band--ink .spec, .band--ink .spec__row { border-color: var(--rule-ink); }
.band--ink .spec__v { color: var(--text-on-ink-muted); }

/* ============================================================
   Dial gate — fuller variant used on the compliance page
   ============================================================ */
.gate--full { max-width: 720px; }
.gate__picker { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.gate__pick {
  background: transparent; border: 1px solid var(--rule-ink); border-radius: var(--radius);
  color: var(--text-on-ink-muted); padding: .4rem .75rem; cursor: pointer;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .75rem;
  transition: color .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}
.gate__pick:hover { color: #fff; border-color: var(--accent-lift); }
.gate__pick[aria-pressed="true"] { color: #fff; border-color: var(--accent-lift); background: color-mix(in srgb, var(--accent) 34%, transparent); }

/* ============================================================
   Forms — laid out, deliberately not wired
   ============================================================ */
.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; }
.field__label { font-size: .9375rem; font-variation-settings: "wdth" 102, "wght" 560; }
.field__hint { font-size: .8125rem; color: var(--text-muted); }
.input, .select, .textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: .72rem .85rem;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.textarea { min-height: 9.5rem; resize: vertical; line-height: 1.55; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 19px) 51%, calc(100% - 13px) 51%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.input::placeholder, .textarea::placeholder { color: #98A0B0; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .4rem; }
.form__status { font-size: .9375rem; color: var(--text-muted); }
.form__status:empty { display: none; }

/* Direct contact panel */
.direct { background: var(--ink); color: var(--text-on-ink); border-radius: 6px; padding: clamp(1.5rem, 3vw, 2.1rem); }
.direct__row { padding-block: .95rem; border-bottom: 1px solid var(--rule-ink); }
.direct__row:last-child { border-bottom: 0; padding-bottom: 0; }
.direct__row:first-of-type { padding-top: 0; }
.direct__k { display: block; color: var(--text-on-ink-dim); font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .75rem; margin-bottom: .3rem; }
.direct__v { display: block; color: #fff; font-variation-settings: "wdth" 102, "wght" 560; }
.direct__v a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--rule-ink); }
.direct__v a:hover { border-bottom-color: var(--accent-lift); }

/* ============================================================
   Legal pages
   ============================================================ */
.legal { max-width: 68ch; }
.legal h2 {
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem);
  font-variation-settings: "wdth" 106, "wght" 640;
  letter-spacing: -0.022em; line-height: 1.18;
  margin-top: 3rem; margin-bottom: .9rem;
  padding-top: 1.1rem; border-top: 1px solid var(--rule);
}
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.0625rem; font-variation-settings: "wdth" 104, "wght" 620; margin-top: 1.8rem; margin-bottom: .5rem; }
.legal p, .legal li { color: var(--text-muted); }
.legal p + p { margin-top: 1rem; }
.legal ul { margin-top: .9rem; }
.legal li { position: relative; padding-left: 1.15rem; margin-bottom: .5rem; }
.legal li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 1px; background: var(--accent); }
.legal a { color: var(--accent); }
.legal .spec { margin-top: 1.1rem; }

.toc { position: sticky; top: 6.5rem; align-self: start; }
.toc__h { color: var(--text-muted); padding-bottom: .75rem; border-bottom: 1px solid var(--rule); margin-bottom: .9rem; }
.toc__list li + li { margin-top: .5rem; }
.toc__list a { color: var(--text-muted); text-decoration: none; font-size: .9375rem; border-bottom: 1px solid transparent; }
.toc__list a:hover { color: var(--accent); border-bottom-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.legal__updated { color: var(--text-muted); margin-top: 1.2rem; }

/* ============================================================
   Footer additions — contact and social
   ============================================================ */
@media (min-width: 980px) {
  .foot__grid--4 { grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 3fr)); }
}
.foot__legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; }
.foot__legal a { color: var(--text-on-ink-dim); text-decoration: none; }
.foot__legal a:hover { color: #fff; }
/* Social handles are marked placeholders, not links, until real URLs
   exist. A link to "#" would be a dead link. */
.social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.social li {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .38rem .7rem; border: 1px solid var(--rule-ink); border-radius: var(--radius);
  color: var(--text-on-ink-muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .74rem;
}

/* ============================================================
   Campaign shapes — representative constructions, not case studies
   ============================================================ */
.shape + .shape { margin-top: clamp(2.5rem, 5vw, 4rem); }
.shape .d3 { margin-bottom: 1.15rem; }
.shape__tag {
  display: block; color: var(--accent); margin-bottom: .5rem;
}
.band--ink .shape__tag { color: var(--accent-lift); }

/* ============================================================
   Compliance pack
   ============================================================ */
.pack__q { border-top: 1px solid var(--rule); padding-block: 1.25rem; }
.pack__q:last-child { border-bottom: 1px solid var(--rule); }
.pack__ask {
  font-variation-settings: "wdth" 104, "wght" 620;
  font-size: 1.0625rem; letter-spacing: -0.012em; margin-bottom: .55rem;
}
.pack__good, .pack__bad { display: grid; grid-template-columns: auto 1fr; gap: .7rem; margin-top: .45rem; }
.pack__label {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .72rem; padding-top: .18rem; white-space: nowrap;
}
.pack__good .pack__label { color: var(--pass); }
.pack__bad  .pack__label { color: var(--block); }
.pack__good p, .pack__bad p { color: var(--text-muted); font-size: .9375rem; line-height: 1.55; margin: 0; }

.check { border-top: 1px solid var(--rule); }
.check li {
  display: grid; grid-template-columns: auto 1fr; gap: .85rem;
  padding-block: .8rem; border-bottom: 1px solid var(--rule);
  color: var(--text);
}
.check li::before {
  content: ""; width: 15px; height: 15px; margin-top: .3rem;
  border: 1.5px solid var(--rule); border-radius: 2px;
}
.legal .check li { padding-left: 0; }
.legal .check li::before { position: static; background: none; }

/* ============================================================
   Print — the pack is meant to be printed to PDF
   ============================================================ */
@media print {
  .masthead, .drawer, .foot, .toc, .btn, .btn-row, .skip, .no-print { display: none !important; }
  html, body { background: #fff; color: #000; font-size: 11pt; }
  .band, .page-head { padding-block: 0 !important; }
  .split { display: block !important; }
  .wrap { max-width: none; padding-inline: 0; }
  .rv, .js .rv { opacity: 1 !important; transform: none !important; }
  .legal, .prose, .lede { max-width: none; color: #000; }
  .legal h2 { break-after: avoid; page-break-after: avoid; }
  .pack__q, .check li, .spec__row { break-inside: avoid; page-break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
  .d1, .d1--page { font-size: 26pt; }
  .legal h2 { font-size: 15pt; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

/* ============================================================
   Scroll reveal — subtle, once, and disabled under reduced motion
   ============================================================ */
/* Reveals are scoped to .js, which an inline script in <head> sets.
   Without JavaScript nothing is hidden, so content never depends on a
   script having run in order to be visible. */
.js .rv { opacity: 0; transform: translateY(10px); }
.js .rv.is-in { opacity: 1; transform: none; transition: opacity .55s var(--ease), transform .55s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .js .rv { opacity: 1; transform: none; }
  .js .gate__check { opacity: 1; transform: none; }
  .js .gate__verdict { opacity: 1; }
}

/* ============================================================
   Legal review print refinements
   Added for counsel review copies of privacy.html / terms.html.
   Print-scoped only — no effect on the screen rendering.
   ============================================================ */
@media print {
  /* Number the sections so counsel can cite them by number. */
  .legal { counter-reset: legalsec; }
  .legal h2 { counter-increment: legalsec; }
  .legal h2::before {
    content: counter(legalsec) ". ";
    font-variant-numeric: tabular-nums;
  }

  /* Unfilled placeholders must be impossible to miss on paper. */
  .tbd {
    border-bottom: none !important;
    font-weight: 700;
    outline: 1.5pt solid #000;
    padding: 0 2pt;
  }
  .tbd::after {
    content: " ** UNFILLED **";
    color: #000 !important;
    font-weight: 700;
    letter-spacing: .04em;
  }

  /* Print the destination of real hyperlinks, but not of mailto/tel,
     where the visible text is already the address. */
  .legal a[href^="http"]::after {
    content: " <" attr(href) ">";
    font-size: 9pt;
    word-break: break-all;
  }

  /* Keep a defined term and its definition on one page. */
  .spec__row, .legal li { break-inside: avoid; page-break-inside: avoid; }
  .legal h3 { break-after: avoid; page-break-after: avoid; }

  @page { margin: 18mm 16mm; }
}

/* ============================================================
   Counsel review cover sheet — print only, never shown on screen
   ============================================================ */
@media print {
  .counsel-cover { break-after: page; page-break-after: always; }
  .counsel-cover h1 { font-size: 16pt; margin: 0 0 10pt; letter-spacing: -.01em; }
  .counsel-cover h3 { font-size: 11.5pt; margin: 15pt 0 5pt; }
  .counsel-cover p, .counsel-cover li { font-size: 9.5pt; line-height: 1.45; }
  .counsel-cover ol, .counsel-cover ul { margin: 0 0 9pt 15pt; padding: 0; }
  .counsel-cover li { margin-bottom: 5pt; break-inside: avoid; page-break-inside: avoid; }
  .counsel-cover__alert {
    border: 2.5pt solid #000;
    padding: 10pt 12pt;
    margin: 0 0 14pt;
  }
  .counsel-cover__alert p { margin: 0 0 6pt; }
  .counsel-cover__alert p:last-child { margin-bottom: 0; }
  .counsel-cover__meta {
    border-top: .75pt solid #000;
    margin-top: 14pt; padding-top: 7pt;
    font-size: 8.5pt;
  }
  .counsel-cover .sev { font-weight: 700; }
  /* the cover is a plain sheet: no section numbering, no link URLs */
  .counsel-cover a::after { content: none !important; }
}

/* Cover sheet lists: restore real numbers so counsel can cite "point 3".
   The site suppresses markers globally and draws a dash via ::before. */
@media print {
  .counsel-cover ol { list-style: decimal outside; margin-left: 20pt; }
  .counsel-cover ul { list-style: disc outside; margin-left: 20pt; }
  .counsel-cover li { position: static; padding-left: 0; }
  .counsel-cover li::before { content: none !important; display: none !important; }
  .counsel-cover li::marker { color: #000; font-weight: 700; }
}

/* ---------- Forms: wired ----------
   Honeypot is hidden from people (and from screen readers) but present for
   bots. Never use display:none for it: some bots skip hidden fields. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.req, .opt { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; margin-left: .4rem; vertical-align: middle; }
.req { color: var(--accent); }
.opt { color: var(--text-muted); }
.file { font: inherit; font-size: .9375rem; color: var(--text); width: 100%; padding: .5rem 0; }
.file::file-selector-button { font: inherit; font-size: .9rem; color: var(--text); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: .45rem .9rem; margin-right: .8rem; cursor: pointer; }
.file::file-selector-button:hover { border-color: var(--accent); color: var(--accent); }
.checkline { display: flex; gap: .6rem; align-items: flex-start; font-size: .9375rem; line-height: 1.5; color: var(--text); }
.checkline input { margin-top: .3rem; flex: none; accent-color: var(--accent); }
.is-invalid { border-color: var(--block) !important; outline: 2px solid color-mix(in srgb, var(--block) 30%, transparent); outline-offset: 1px; }
.form__status.is-error { color: var(--block); }
.form__status--expired { color: var(--block); }
.form__progress { width: 100%; height: 6px; appearance: none; border: 0; background: var(--rule); border-radius: 3px; overflow: hidden; }
.form__progress::-webkit-progress-bar { background: var(--rule); }
.form__progress::-webkit-progress-value { background: var(--accent); }
.form__progress::-moz-progress-bar { background: var(--accent); }
.form.is-sent .btn { display: none; }
