/* Docket: cool white paper, ink-blue type, redline accents (red strikes, blue insertions). */
:root {
  --paper: #f6f8fb;      /* page background, cool white */
  --sheet: #ffffff;      /* document sheets and cards */
  --wash: #edf1f7;       /* alternate section band */
  --ink: #13284d;        /* main text and dark band */
  --ink-2: #3c5076;      /* secondary text */
  --ink-3: #6a7a98;      /* tertiary marks, never body text */
  --rule: #d5dde9;       /* hairlines */
  --rule-2: #9fb0cc;     /* stronger lines */
  --red: #c8262f;        /* deletions: strike-throughs only */
  --red-text: #b0212a;   /* red text on white (AA) */
  --red-wash: #fdecec;   /* deletion highlight */
  --blue: #1f4fd1;       /* insertions and links */
  --blue-wash: #e7edff;  /* insertion highlight */
  --on-ink: #ffffff;     /* text on the ink band */
  --on-ink-2: #c9d4ea;   /* secondary text on the ink band */
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif; /* headings and UI */
  --serif: "Spectral", Georgia, "Times New Roman", serif;          /* contract text, ledes, quotes */
  --radius: 6px;
  --shadow: 0 1px 0 rgba(19, 40, 77, .06), 0 18px 40px -22px rgba(19, 40, 77, .35);
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::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: 400 1.0625rem/1.6 var(--sans);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.025em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--on-ink); padding: 12px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.small { font-size: .9375rem; color: var(--ink-2); }
.micro { font-size: .875rem; color: var(--ink-2); }
html:not(.js) .js-only { display: none !important; }
.js .js-hide { display: none; }

/* ---------- Redline marks (the core device) ---------- */
del, ins { text-decoration: none; }
del {
  color: var(--red-text);
  background-image: linear-gradient(var(--red), var(--red));
  background-repeat: no-repeat;
  background-position: 0 58%;
  background-size: 100% .09em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
ins {
  color: var(--blue);
  background-image: linear-gradient(var(--blue), var(--blue)), linear-gradient(var(--blue-wash), var(--blue-wash));
  background-repeat: no-repeat;
  background-position: 0 100%, 0 100%;
  background-size: 100% .08em, 100% 76%;
  padding: 0 .08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
del::before, del::after, ins::before, ins::after { clip-path: inset(100%); clip: rect(0 0 0 0); height: 1px; width: 1px; overflow: hidden; position: absolute; white-space: nowrap; }
del::before { content: " [deleted: "; }
del::after { content: "] "; }
ins::before { content: " [inserted: "; }
ins::after { content: "] "; }

/* ---------- Buttons and links ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 10px 20px;
  border: 2px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--on-ink);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.button:hover { background: #0b1b38; box-shadow: 0 3px 0 var(--blue); transform: translateY(-2px); }
.button:active { transform: translateY(0); box-shadow: none; }
.button[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.button-lg { min-height: 52px; padding: 12px 24px; font-size: 1.0625rem; }
.button-ghost { background: transparent; color: var(--ink); }
.button-ghost:hover { background: var(--sheet); }
.button-light { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.button-light:hover { background: var(--blue-wash); box-shadow: 0 3px 0 var(--red); }
.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; color: var(--blue); text-decoration: none;
  background-image: linear-gradient(var(--blue), var(--blue));
  background-repeat: no-repeat; background-position: 0 calc(100% - 8px); background-size: 100% 2px;
  transition: background-size .2s ease;
}
.text-link::after { content: "→"; margin-left: .4em; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(4px); }
.text-btn { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--ink-2); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* ---------- Eyebrow: a small struck mark, not a numbered label ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .6em; margin-bottom: 18px; font: italic 400 1.0625rem/1.3 var(--serif); color: var(--ink-2); }
.eb-del { width: 26px; height: 2px; background: var(--red); position: relative; }
.eb-del::after { content: ""; position: absolute; right: -9px; top: -4px; width: 0; height: 0; border: 5px solid transparent; border-bottom: 6px solid var(--blue); border-top: 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(246, 248, 251, .92); border-bottom: 1px solid var(--rule); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.3rem; letter-spacing: -.03em; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav-disclosure summary {
  list-style: none; display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: var(--radius);
  font-weight: 600; cursor: pointer; background: var(--sheet);
}
.nav-disclosure summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 16px; height: 2px; background: var(--ink); position: relative; transition: transform .2s ease; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -5px; }
.burger::after { top: 5px; }
.nav-disclosure[open] .burger { background: transparent; }
.nav-disclosure[open] .burger::before { transform: translateY(5px) rotate(45deg); }
.nav-disclosure[open] .burger::after { transform: translateY(-5px) rotate(-45deg); }
.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px var(--gutter) 20px; background: var(--paper); border-bottom: 1px solid var(--rule);
  box-shadow: 0 20px 30px -24px rgba(19, 40, 77, .4);
}
.site-nav a:not(.button) { display: flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.125rem; border-bottom: 1px solid var(--rule); }
.site-nav a[aria-current="page"] { color: var(--blue); background-image: linear-gradient(var(--blue), var(--blue)); background-repeat: no-repeat; background-size: 4px 20px; background-position: 0 50%; padding-left: 14px; }
.nav-cta { margin-top: 14px; }

@media (min-width: 900px) {
  .nav-disclosure summary { display: none; }
  .site-nav { position: static; flex-direction: row; align-items: center; gap: 4px; padding: 0; background: none; border: 0; box-shadow: none; }
  .site-nav a:not(.button) { min-height: 44px; padding: 0 14px; font-size: 1rem; border: 0; border-radius: var(--radius); }
  .site-nav a:not(.button):hover { background: var(--wash); }
  .site-nav a[aria-current="page"] { padding-left: 14px; background-size: calc(100% - 28px) 2px; background-position: 14px calc(100% - 8px); }
  .nav-cta { margin: 0 0 0 10px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2, .split-copy h2, .sign-off h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.section-head > p:not(.eyebrow) { margin-top: 18px; font-size: 1.125rem; color: var(--ink-2); }
.lede { font: 400 clamp(1.1875rem, 1.6vw, 1.375rem)/1.55 var(--serif); color: var(--ink-2); max-width: 36em; }
.split { display: grid; gap: 40px; align-items: center; }
.split-copy > p:not(.eyebrow) { margin-top: 20px; font-size: 1.125rem; color: var(--ink-2); max-width: 32em; }
.split-copy .text-link, .split-copy .button { margin-top: 22px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 6fr; gap: 72px; }
  .split-wide { grid-template-columns: 4fr 7fr; }
}
.footnote { margin-top: 28px; font-size: .875rem; color: var(--ink-2); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); overflow: clip; }
.hero::before { /* faint ruled paper */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(19, 40, 77, .055) 31px 32px);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.75rem, 12vw, 5rem); line-height: 1; letter-spacing: -.045em; max-width: 11ch; }
.hero h1 del { color: var(--ink-3); background-size: 100% .07em; background-position: 0 56%; }
.hero h1 ins { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; padding: 0 .06em; }
.hero .lede { margin-top: 26px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.hero .micro { margin-top: 22px; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr 1.2fr; gap: 56px; }
}

/* The live sheet */
.hero-art { position: relative; }
.sheet {
  position: relative; margin: 0;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px 4px 4px 4px;
  box-shadow: var(--shadow);
}
.sheet::after { /* second page peeking behind */
  content: ""; position: absolute; inset: 10px -8px -10px 8px; z-index: -1;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; transform: rotate(1.4deg);
}
.sheet-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); font-size: .875rem; color: var(--ink-2); }
.file { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; }
.file svg { width: 16px; height: 16px; flex: none; }
.status { position: relative; display: inline-grid; flex: none; }
.st { grid-area: 1 / 1; padding: 3px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 700; text-align: center; }
.st-review { background: var(--red-wash); color: var(--red-text); opacity: 0; }
.st-done { background: var(--ink); color: var(--on-ink); }
.sheet-body { display: grid; gap: 18px; padding: 22px 18px 18px 44px; position: relative; }
.clause { position: relative; }
.clause::before { /* pleading-paper line numbers */
  content: "1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9\A 10\A 11\A 12\A 13\A 14\A 15\A 16\A 17\A 18\A 19\A 20";
  white-space: pre; position: absolute; left: -44px; top: 0; bottom: 0; width: 30px; overflow: hidden;
  text-align: right; font: 400 .75rem/1.75rem var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums;
  border-right: 1px solid var(--red-wash);
}
.clause { font: 400 1.0625rem/1.75rem var(--serif); color: var(--ink); }
.clause p + p { margin-top: 0; }
.clause-head { font: 700 .95rem/1.75rem var(--sans); letter-spacing: 0; }
.cl-no { font: 600 .875rem/1 var(--sans); color: var(--ink-2); margin-right: .35em; }
.comment { position: relative; align-self: start; padding: 14px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--rule); font-size: .9375rem; line-height: 1.45; }
.comment::before { content: ""; position: absolute; left: 22px; top: -7px; width: 12px; height: 12px; background: var(--paper); border-left: 1px solid var(--rule); border-top: 1px solid var(--rule); transform: rotate(45deg); }
.c-who { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.c-rule { margin-left: auto; white-space: nowrap; padding: 1px 8px; border: 1px solid var(--blue); border-radius: 999px; color: var(--blue); font-size: .75rem; font-weight: 600; }
.c-av { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--blue); color: #fff; font-size: .75rem; font-weight: 700; }
.c-av-human { background: var(--ink); width: 30px; height: 30px; font-size: .75rem; }
.c-text { margin-top: 8px; color: var(--ink-2); }
.c-reply { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--rule-2); }
.sheet-foot { display: flex; font-size: .8125rem; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.approve { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius); background: var(--ink); color: #fff; font-weight: 700; }
.approve .tick { width: 16px; height: 16px; }
.stamp {
  position: absolute; right: 12px; top: 62px; z-index: 2;
  display: grid; justify-items: center; padding: 8px 16px 6px;
  border: 3px double var(--blue); border-radius: 6px; color: var(--blue);
  background: rgba(255, 255, 255, .88);
  font: 700 1.25rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  transform: rotate(-7deg);
}
@media (max-width: 639px) { .hero .stamp { top: auto; bottom: 6px; right: 10px; padding: 6px 12px 5px; font-size: 1.0625rem; } }
.stamp small { margin-top: 4px; font-size: .6875rem; letter-spacing: .04em; text-transform: none; font-weight: 600; }
.sheet-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--rule-2); border-radius: 8px; background: var(--sheet); }
.seg-btn { min-height: 44px; padding: 0 14px; border: 0; border-radius: 6px; background: none; color: var(--ink-2); font-weight: 600; font-size: .9375rem; cursor: pointer; }
.seg-btn[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.seg-btn .save { color: var(--blue); font-weight: 700; }
.seg-btn[aria-pressed="true"] .save { color: #b9c9ff; }
.replay { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule-2); border-radius: 8px; background: var(--sheet); font-weight: 600; cursor: pointer; }
.replay svg { width: 18px; height: 18px; transition: transform .4s ease; }
.replay:hover svg { transform: rotate(-200deg); }

/* clean-copy view */
.sheet.clean del, .review.clean del { display: none; }
.sheet.clean ins { color: inherit; background: none; padding: 0; }
.sheet.clean .comment, .sheet.clean .changes { visibility: hidden; }

@media (min-width: 640px) {
  .sheet-body { grid-template-columns: 1fr 190px; padding-left: 50px; padding-right: 20px; }
  .clause::before { left: -50px; width: 34px; }
  .comment { margin-top: 64px; }
  .comment::before { left: -7px; top: 22px; border-top: 0; border-bottom: 1px solid var(--rule); }
  .stamp { right: 26px; top: auto; bottom: 66px; }
}

/* the timeline: base styles are the final state; animations only run with .run and motion allowed */
@media (prefers-reduced-motion: no-preference) {
  .sheet.run .d1 { animation: strike .7s ease-out .7s both; }
  .sheet.run .i1 { animation: insert .6s ease-out 1.5s both; }
  .sheet.run .comment { animation: slide-in .5s cubic-bezier(.2, .8, .2, 1) 2.2s both; }
  .sheet.run .i2 { animation: insert .6s ease-out 3s both; }
  .sheet.run .d2 { animation: strike .6s ease-out 3.6s both; }
  .sheet.run .c-reply { animation: fade-up .45s ease-out 4.3s both; }
  .sheet.run .approve { animation: press .5s ease-in-out 5s both; }
  .sheet.run .stamp { animation: stamp .45s cubic-bezier(.3, 1.6, .5, 1) 5.4s both; }
  .sheet.run .st-review { animation: hold-out .3s linear 5.4s both; }
  .sheet.run .st-done { animation: hold-in .3s linear 5.4s both; }
  .sheet.run .changes { animation: fade-up .4s ease-out 3.9s both; }
}
@keyframes strike { from { background-size: 0 .09em; color: var(--ink); } to { background-size: 100% .09em; color: var(--red-text); } }
@keyframes insert { from { opacity: 0; background-size: 0 .08em, 0 76%; } 60% { opacity: 1; } to { opacity: 1; background-size: 100% .08em, 100% 76%; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes press { 0% { background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); } 60% { transform: scale(.92); background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); } 100% { transform: none; } }
@keyframes stamp { from { opacity: 0; transform: rotate(-7deg) scale(1.6); } to { opacity: 1; transform: rotate(-7deg) scale(1); } }
@keyframes hold-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes hold-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Customer names ---------- */
.names { border-block: 1px solid var(--rule); background: var(--sheet); }
.names-row { display: grid; gap: 14px; padding-block: 26px; }
.names-label { font: 600 .875rem/1.3 var(--sans); letter-spacing: 0; color: var(--ink-2); }
.names ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 32px; }
.names li { font: italic 400 1.3125rem/1.3 var(--serif); color: var(--ink); }
@media (min-width: 900px) { .names-row { grid-template-columns: 200px 1fr; align-items: center; } .names ul { justify-content: space-between; } }

/* ---------- Steps ---------- */
.step-list { list-style: none; display: grid; gap: 16px; counter-reset: step; }
.step { position: relative; padding: 28px 24px 30px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; }
.step-mark { width: 64px; height: 64px; margin-bottom: 18px; }
.step h3 { font-size: 1.5rem; }
.step p { margin-top: 10px; color: var(--ink-2); }
@media (min-width: 900px) {
  .step-list { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .step { border-radius: 0; }
  .step + .step { border-left: 0; }
  .step:first-child { border-radius: 4px 0 0 4px; }
  .step:last-child { border-radius: 0 4px 4px 0; }
  .step:not(:last-child)::after { /* insertion caret joining the pages */
    content: ""; position: absolute; right: -11px; top: 58px; z-index: 1; width: 20px; height: 20px;
    background: var(--sheet); border-top: 2px solid var(--blue); border-right: 2px solid var(--blue); transform: rotate(45deg);
  }
}

/* ---------- Playbook rule table ---------- */
.playbook { background: var(--wash); }
.rulebook { background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; box-shadow: var(--shadow); font-size: .9375rem; }
.rb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; padding: 14px 18px; border-top: 1px solid var(--rule); align-items: center; }
.rb-row > :first-child { font-weight: 700; }
.rb-row > :nth-child(2) { font-family: var(--serif); font-size: 1.0625rem; color: var(--ink-2); grid-column: 1; }
.rb-row > :nth-child(3) { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
.rb-head { display: none; }
.rb-row:first-child, .rb-head + .rb-row { border-top: 0; }
.chip { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.chip-red { background: var(--red-wash); color: var(--red-text); }
.chip-blue { background: var(--blue-wash); color: var(--blue); }
.chip-ink { background: var(--ink); color: var(--on-ink); }
@media (min-width: 640px) {
  .rb-head { display: grid; font-size: .8125rem; font-weight: 600; color: var(--ink-2); background: var(--paper); border-radius: 4px 4px 0 0; }
  .rb-head > :first-child { font-weight: 600; }
  .rb-row { grid-template-columns: 1.1fr 1.3fr .9fr; }
  .rb-row > :nth-child(2) { grid-column: auto; }
  .rb-row > :nth-child(3) { grid-column: auto; grid-row: auto; justify-self: start; }
  .rb-head + .rb-row { border-top: 1px solid var(--rule); }
}

/* ---------- Figures ---------- */
.figure-list { list-style: none; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.figure { display: grid; gap: 6px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.fig-num { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .25em; font: 700 clamp(2.6rem, 5vw, 4rem)/1.05 var(--sans); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.fig-num del { color: var(--ink-3); font-size: .5em; background-size: 100% .1em; white-space: nowrap; }
.fig-num ins { padding: 0 .06em; white-space: nowrap; }
.figure > p:last-child { color: var(--ink-2); max-width: 22em; }
@media (min-width: 900px) {
  .figure-list { grid-template-columns: repeat(3, 1fr); }
  .figure { padding: 34px 32px 34px 0; border-bottom: 0; }
  .figure + .figure { padding-left: 32px; border-left: 1px solid var(--rule); }
}
.js .figure del, .js .figure ins { transition: background-size .7s ease-out, opacity .5s ease-out, color .7s; }
.js .figure:not(.is-in) del { background-size: 0 .1em; color: var(--ink-2); }
.js .figure:not(.is-in) ins { opacity: 0; background-size: 0 .08em, 0 76%; }
.js .figure ins { transition-delay: .55s; }

/* ---------- Quote ---------- */
.quote-band { padding-block: clamp(56px, 8vw, 96px); background: var(--sheet); border-block: 1px solid var(--rule); }
.quote-grid { display: grid; gap: 28px; }
.quote { margin: 0; position: relative; padding-left: 26px; border-left: 3px solid var(--blue); }
.quote p { font: italic 400 clamp(1.6rem, 3.4vw, 2.6rem)/1.25 var(--serif); letter-spacing: -.01em; }
.quote-note { display: flex; align-items: center; gap: 14px; align-self: end; padding: 14px 16px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); max-width: 340px; }
.quote-note .c-av-human { width: 44px; height: 44px; font-size: .875rem; }
.quote-note p { font-size: .9375rem; color: var(--ink-2); line-height: 1.4; }
.quote-note b { color: var(--ink); }
@media (min-width: 900px) { .quote-grid { grid-template-columns: 1fr 300px; gap: 64px; align-items: end; } }

/* ---------- Ink trust band ---------- */
.trust-band { background: var(--ink); color: var(--on-ink); }
.trust-band h2 { color: var(--on-ink); }
.trust-band .split-copy > p:not(.eyebrow) { color: var(--on-ink-2); }
.trust-band :focus-visible { outline-color: #ffffff; }
.trust-list { list-style: none; display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.trust-list li { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); color: var(--on-ink-2); }
.trust-list b { color: var(--on-ink); }
.trust-list .tick { width: 22px; height: 22px; flex: none; margin-top: 2px; color: #9db6ff; }

/* ---------- Sign-off CTA ---------- */
.sign-off { position: relative; }
.sign-grid { display: grid; gap: 40px; align-items: end; }
.sign-off .lede { margin-top: 18px; }
.signature { display: grid; gap: 22px; }
.sig-line { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 18px; padding-bottom: 12px; border-bottom: 1.5px solid var(--ink); }
.sig-label { font: italic 400 1.0625rem/1 var(--serif); color: var(--ink-2); min-width: 52px; padding-bottom: 6px; }
.sig-value { font: italic 400 1.25rem/1.3 var(--serif); color: var(--blue); padding-bottom: 4px; }
@media (min-width: 900px) { .sign-grid { grid-template-columns: 1.1fr 1fr; gap: 80px; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(44px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--rule); }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -.04em; max-width: 15ch; }
.page-hero h1 ins, .about-hero h1 ins { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.page-hero h1 del { color: var(--ink-3); }
.page-hero .lede { margin-top: 22px; }
.page-hero .micro { margin-top: 16px; }
.page-hero-grid { display: grid; gap: 40px; align-items: end; }
@media (min-width: 900px) { .page-hero-grid { grid-template-columns: 1.4fr 1fr; gap: 72px; } }
.page-hero-center { text-align: center; }
.page-hero-center h1, .page-hero-center .lede { margin-inline: auto; }
.page-hero-center h1 { max-width: 18ch; }
.seg-center { margin-top: 30px; }
.about-hero h1 { max-width: 17ch; }

/* Table of contents with dot leaders */
.toc { background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; padding: 18px 20px 12px; }
.toc-title { font: 700 .8125rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.toc ol { list-style: none; }
.toc a { display: flex; align-items: baseline; gap: 8px; min-height: 44px; padding-top: 12px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.125rem; }
.toc a:hover span:first-child { color: var(--blue); text-decoration: underline; text-underline-offset: .2em; }
.toc-dots { flex: 1; min-width: 20px; border-bottom: 2px dotted var(--rule-2); transform: translateY(-4px); }
.toc-no { font: 600 .9375rem/1 var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- Interactive review (features) ---------- */
.try { background: var(--wash); }
.review { display: grid; gap: 20px; }
.review-doc { position: relative; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; box-shadow: var(--shadow); padding: 0 22px 84px; font: 400 1.125rem/1.8 var(--serif); }
.review-doc p + p { margin-top: 10px; }
.review-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -22px 18px; padding: 12px 22px; border-bottom: 1px solid var(--rule); font: 600 .875rem/1.4 var(--sans); color: var(--ink-2); }
.review-status { padding: 2px 10px; border-radius: 999px; background: var(--red-wash); color: var(--red-text); font-weight: 700; white-space: nowrap; }
.review.is-approved .review-status { background: var(--ink); color: var(--on-ink); }
.chg { border-radius: 3px; transition: background-color .2s ease; }
.chg.is-focus { background: rgba(31, 79, 209, .08); box-shadow: 0 0 0 3px rgba(31, 79, 209, .08); }
.chg[data-state="accepted"] del, .chg[data-state="rejected"] ins { display: none; }
.chg[data-state="accepted"] ins, .chg[data-state="rejected"] del { color: var(--ink); background: none; padding: 0; animation: settle .5s ease-out; }
@keyframes settle { from { background-color: var(--blue-wash); } to { background-color: transparent; } }
.review-doc .stamp { right: 22px; top: auto; bottom: 18px; opacity: 0; transform: rotate(-7deg) scale(1.4); transition: opacity .25s ease, transform .35s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.review.is-approved .review-doc .stamp { opacity: 1; transform: rotate(-7deg) scale(1); }
.change-list { list-style: none; display: grid; gap: 10px; counter-reset: ch; }
.change-list li { counter-increment: ch; position: relative; padding: 16px 16px 16px 52px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); transition: border-color .2s, opacity .2s; }
.change-list li::before { content: counter(ch); position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--blue); color: var(--blue); font-size: .8125rem; font-weight: 700; }
.change-list li[data-state="accepted"]::before { content: "✓"; background: var(--blue); color: #fff; }
.change-list li[data-state="rejected"]::before { content: "×"; border-color: var(--red); background: var(--red); color: #fff; }
.change-list li[data-state] { border-color: var(--rule-2); }
.ch-title { font-weight: 700; }
.ch-why { margin-top: 4px; font-size: .9375rem; color: var(--ink-2); }
.choice { display: flex; gap: 8px; margin-top: 12px; }
.ch-btn { min-height: 44px; padding: 0 16px; border: 1.5px solid var(--rule-2); border-radius: var(--radius); background: var(--sheet); font-weight: 600; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.ch-btn[data-act="accept"]:hover, .ch-btn[data-act="accept"][aria-pressed="true"] { border-color: var(--blue); color: var(--blue); }
.ch-btn[data-act="accept"][aria-pressed="true"] { background: var(--blue); color: #fff; }
.ch-btn[data-act="reject"]:hover, .ch-btn[data-act="reject"][aria-pressed="true"] { border-color: var(--red); color: var(--red-text); }
.ch-btn[data-act="reject"][aria-pressed="true"] { background: var(--red); color: #fff; }
.review-foot { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule-2); }
.count { font-weight: 600; color: var(--ink-2); }
.review-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
@media (min-width: 900px) { .review { grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; } .review-doc { padding: 0 34px 84px; } .review-bar { margin-inline: -34px; padding-inline: 34px; } }

/* ---------- Checks grid ---------- */
.check-grid { display: grid; gap: 14px; }
.check { padding: 26px 24px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; }
.check h3 { font-size: 1.375rem; }
.check p { margin-top: 10px; color: var(--ink-2); }
.check .check-eg { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--rule-2); font: italic 400 1.25rem/1.5 var(--serif); color: var(--ink); }
.check-ink { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.check-ink p { color: var(--on-ink-2); }
.check-ink .check-eg { color: var(--on-ink); border-color: rgba(255, 255, 255, .3); }
@media (min-width: 700px) { .check-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .check-grid { grid-template-columns: repeat(4, 1fr); }
  .check-wide { grid-column: span 2; }
  .check-wide h3 { font-size: 1.75rem; }
}

/* ---------- Photo frames ---------- */
.frame { margin: 0; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); background: var(--sheet); }
.photo { display: block; width: 100%; height: auto; object-fit: cover; }
.frame .photo { aspect-ratio: 16 / 10; }
.plain-list { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.plain-list li { padding-left: 22px; position: relative; }
.plain-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 2px; background: var(--blue); }

/* ---------- Routing diagram ---------- */
.route-map { display: none; width: 100%; height: auto; }
.route-flow { stroke-dasharray: 8 10; }
@media (prefers-reduced-motion: no-preference) { .route-flow { animation: flow 1.4s linear infinite; } }
@keyframes flow { to { stroke-dashoffset: -36; } }
.route-steps { list-style: none; display: grid; gap: 0; border-left: 2px solid var(--blue); margin-left: 8px; }
.route-steps li { position: relative; padding: 10px 0 14px 22px; color: var(--ink-2); }
.route-steps li::before { content: ""; position: absolute; left: -7px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--sheet); border: 2px solid var(--blue); }
.route-steps li:nth-child(4)::before { border-color: var(--red); }
.route-steps b { color: var(--ink); }
@media (min-width: 760px) { .route-map { display: block; } .route-steps { display: none; } }

/* ---------- Pricing ---------- */
.plans-section { padding-top: clamp(40px, 6vw, 72px); }
.plans { display: grid; gap: 16px; align-items: start; }
.plan { position: relative; display: grid; gap: 0; padding: 28px 24px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; }
.plan-featured { border: 2px solid var(--ink); box-shadow: var(--shadow); }
.plan-flag { position: absolute; top: -14px; left: 22px; padding: 3px 12px; background: var(--blue); color: #fff; border-radius: 999px; font-size: .8125rem; font-weight: 700; }
.plan-name { font-size: 1.75rem; }
.plan-blurb { margin-top: 8px; color: var(--ink-2); min-height: 3.2em; }
.plan-price { display: flex; align-items: baseline; gap: 2px; margin-top: 22px; font-variant-numeric: tabular-nums; }
.cur { font-size: 1.5rem; font-weight: 700; align-self: flex-start; margin-top: .3em; }
.amt { font-size: 3.5rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; transition: opacity .2s; }
.amt.is-flip { opacity: 0; }
.per { margin-left: 6px; color: var(--ink-2); font-size: .9375rem; }
.plan-bill { margin: 6px 0 20px; font-size: .875rem; color: var(--ink-2); min-height: 1.5em; }
.plan-list { list-style: none; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule); display: grid; gap: 10px; font-size: .9875rem; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list .tick { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--blue); }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 20px; } .plan-featured { margin-top: -14px; padding-block: 40px; } }
.compare { background: var(--wash); }
.table-wrap { overflow-x: auto; margin-top: 8px; border: 1px solid var(--rule); border-radius: 4px; background: var(--sheet); }
.compare-table, .data-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.compare-table th, .compare-table td, .data-table th, .data-table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare-table thead th, .data-table thead th { font-size: .8125rem; color: var(--ink-2); font-weight: 700; background: var(--paper); }
.compare-table tbody th, .data-table tbody th { font-weight: 600; }
.compare-table tr:last-child > *, .data-table tr:last-child > * { border-bottom: 0; }
.col-featured { background: rgba(31, 79, 209, .05); }
.compare-table thead .col-featured { color: var(--blue); background: var(--blue-wash); }
.yes { color: var(--blue); font-weight: 700; }
.no { color: var(--ink-2); }
@media (max-width: 520px) { .compare-table th, .compare-table td { padding: 11px 8px; font-size: .875rem; } }
.faq .split { align-items: start; }
.faq-list { display: grid; border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 60px; padding: 14px 0; font-weight: 600; font-size: 1.125rem; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq-list details p { padding: 0 0 20px; font-family: var(--serif); font-size: 1.125rem; color: var(--ink-2); max-width: 36em; }

/* ---------- Security ---------- */
.seal { width: min(240px, 60vw); height: auto; justify-self: center; }
@media (prefers-reduced-motion: no-preference) { .seal text { transform-origin: 120px 120px; animation: spin 40s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
.schedule-grid { display: grid; gap: 40px; }
.toc-sticky { align-self: start; }
@media (min-width: 900px) { .schedule-grid { grid-template-columns: 280px 1fr; gap: 72px; } .toc-sticky { position: sticky; top: 92px; } }
.tpart { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--rule); scroll-margin-top: 90px; }
.tpart:last-child { border-bottom: 0; margin-bottom: 0; }
.tpart-title { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 18px; }
.tclause { display: grid; gap: 6px; padding: 16px 0; }
.tclause h3 { display: flex; gap: 14px; align-items: baseline; font-size: 1.1875rem; letter-spacing: -.01em; }
.tc-no { font-weight: 600; color: var(--blue); min-width: 2.2em; }
.tclause p { font: 400 1.125rem/1.65 var(--serif); color: var(--ink-2); max-width: 38em; }
@media (min-width: 640px) { .tclause p { padding-left: calc(2.2em + 14px); } }
.audit { margin-top: 16px; background: var(--ink); color: var(--on-ink-2); border-radius: 4px; padding: 16px 18px; font-size: .875rem; }
.audit-head { font-weight: 700; color: var(--on-ink); margin-bottom: 8px; }
.audit-row { display: grid; gap: 2px 14px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.a-who { color: var(--on-ink); font-weight: 600; }
.a-ok { color: #ffffff; }
.a-ins { color: #b9c9ff; text-decoration: underline; text-underline-offset: .2em; }
.a-del { color: #ffb4b8; text-decoration: line-through; }
@media (min-width: 640px) { .audit-row { grid-template-columns: 140px 150px 1fr; } }
.tpart .table-wrap { margin-top: 12px; }

/* ---------- About ---------- */
.team-list { list-style: none; display: grid; gap: 32px; }
.person .photo { aspect-ratio: 1; border-radius: 4px; border: 1px solid var(--rule); background: var(--sheet); }
.person h3 { margin-top: 18px; font-size: 1.5rem; }
.role { margin-top: 4px; font: italic 400 1.0625rem/1.4 var(--serif); color: var(--blue); }
.person p:last-child { margin-top: 10px; color: var(--ink-2); }
@media (min-width: 700px) { .team-list { grid-template-columns: repeat(3, 1fr); gap: 28px; } .person:nth-child(2) { margin-top: 48px; } }
.manifesto { background: var(--sheet); border-block: 1px solid var(--rule); }
.manifesto h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); margin-bottom: 28px; }
.rules { list-style: none; counter-reset: rule; display: grid; }
.rules li { counter-increment: rule; display: grid; grid-template-columns: 2.2em 1fr; gap: 8px; padding: 20px 0; border-top: 1px solid var(--rule); font: 400 clamp(1.375rem, 2.6vw, 2rem)/1.35 var(--serif); }
.rules li::before { content: counter(rule) "."; font: 600 1rem/2.2 var(--sans); color: var(--ink-2); }
.demo-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .demo-grid { grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; } }
.demo-copy > p:not(.eyebrow) { margin-top: 18px; font-size: 1.125rem; color: var(--ink-2); }
.demo-copy h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.contact-list { margin: 28px 0 0; display: grid; border-top: 1px solid var(--rule); }
.contact-list div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.contact-list dt { font-weight: 600; color: var(--ink-2); font-size: .9375rem; }
.contact-list dd { margin: 0; }
.contact-list a { display: inline-block; padding-block: 8px; overflow-wrap: anywhere; }
.demo-card { position: relative; padding: 28px 24px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; box-shadow: var(--shadow); }
.demo-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--red) 0 30%, var(--blue) 30% 100%); border-radius: 4px 4px 0 0; }
.slot-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 12px; }
.slot p + p { margin-top: 14px; }
.slot .button { margin-top: 6px; }
/* Form styles for the forms plugin (the form itself lives in a <template>) */
.demo-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9375rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--rule-2); border-radius: var(--radius); background: var(--sheet); color: var(--ink); font: 400 1rem/1.4 var(--sans); }
.field textarea { font-family: var(--serif); font-size: 1.0625rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--blue); outline-offset: 1px; }
@media (min-width: 640px) { .demo-form { grid-template-columns: 1fr 1fr; } .field-wide, .demo-form .button { grid-column: 1 / -1; } }

/* ---------- 404 and prose ---------- */
.nf { padding: clamp(56px, 10vw, 140px) 0; }
.nf-grid { display: grid; gap: 32px; align-items: center; }
.nf-code { font: 700 clamp(5rem, 22vw, 13rem)/.9 var(--sans); letter-spacing: -.06em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .15em; }
.nf-code del { color: var(--ink-3); background-size: 100% .06em; }
.nf-code ins { font: italic 400 .42em/1 var(--serif); letter-spacing: -.02em; }
.nf h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.nf .lede { margin-top: 16px; }
@media (min-width: 900px) { .nf-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 36px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font: 400 1.125rem/1.7 var(--serif); color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--sheet); border-top: 1px solid var(--rule); padding: 0 0 28px; }
.footer-top { padding: 28px 0; border-bottom: 1px solid var(--rule); }
.footer-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font: italic 400 clamp(1.5rem, 3vw, 2.25rem)/1.2 var(--serif); }
.footer-grid { display: grid; gap: 28px; padding: 36px 0; grid-template-columns: 1fr 1fr; }
.footer-grid > :first-child { grid-column: 1 / -1; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.3rem; letter-spacing: -.03em; margin-bottom: 10px; }
.footer-grid .small + .small { margin-top: 8px; }
.site-footer h2 { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.site-footer ul { list-style: none; }
.site-footer li a { display: inline-block; padding: 10px 0; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.site-footer li a:hover { color: var(--blue); text-decoration: underline; }
.legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: .875rem; color: var(--ink-2); }
.legal a { display: inline-block; padding: 12px 0; color: var(--ink-2); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-grid > :first-child { grid-column: auto; } }

/* Compact team cards on phones */
@media (max-width: 699px) {
  .person { display: grid; grid-template-columns: 112px 1fr; grid-template-rows: auto auto 1fr; column-gap: 18px; align-items: start; }
  .person .photo { grid-row: 1 / span 3; }
  .person h3 { margin-top: 0; font-size: 1.3rem; }
}

/* ---------- Motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}
