/* ==========================================================================
   Cordwyn marketing site
   Built on Cordwyn Brand Guide v1.0. Ink does the talking; chalk blue is the
   line. Chalk marks reference, action and current position, never decoration.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Primary */
  --ink:   #14181D;   /* text, marks, headers: the default voice */
  --chalk: #2745C8;   /* links, primary actions, focus, the datum rule */

  /* Neutral */
  --paper:    #FFFFFF;   /* default surface: invoices are paper */
  --bone:     #F6F5F2;   /* surface tint */
  --graphite: #5A6169;   /* secondary text, captions, metadata */
  --hairline: #E3E2DE;
  --hairline-2: #D3D1CB;

  /* Semantic */
  --approved:    #1A7A47;
  --approved-bg: #EAF3ED;
  --pending:     #96580A;
  --pending-bg:  #FAF3E6;
  --exception:   #B32318;
  --exception-bg:#FAECEA;

  /* Dark surfaces */
  --carbon:    #0F1216;
  --d-surface: #171C22;
  --d-text:    #E8EAED;
  --d-chalk:   #8CA2F5;
  --d-muted:   #9BA3AC;
  --d-hairline: #2A313A;

  /* Type */
  --display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body:    'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Display sizes follow the guide's scale: 40/620-640, 30/620, 20/600 */
  --t-hero: clamp(2.375rem, 5.4vw, 3.75rem);
  --t-h1:   clamp(2rem, 4.4vw, 3rem);
  --t-h2:   clamp(1.5rem, 2.8vw, 1.875rem);
  --t-h3:   1.25rem;
  --t-lede: clamp(1.0625rem, 1.5vw, 1.1875rem);

  /* Layout */
  --gutter: 1.75rem;
  --maxw:   1180px;
  --maxw-n: 760px;
  --pad-y:  clamp(4rem, 9vw, 8.5rem);

  --ease: cubic-bezier(0.2, 0.8, 0.3, 1);
  --dur:  0.28s;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* Archivo, set slightly wide. Caps are reserved for the wordmark, so
   headings are sentence case with +1% tracking at display sizes. */
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-variation-settings: 'wght' 620, 'wdth' 106;
  font-weight: 620;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: 0.01em;
}
h1 { font-variation-settings: 'wght' 640, 'wdth' 108; }
h3, h4, h5 { font-variation-settings: 'wght' 600, 'wdth' 104; line-height: 1.25; }

strong, b { font-weight: 600; color: var(--ink); }

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

.skip-link {
  position: absolute;
  left: 1rem; top: 0;
  z-index: 300;
  transform: translateY(-120%);
  padding: 0.875rem 1.25rem;
  background: var(--chalk);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-n { max-width: var(--maxw-n); }

.section    { padding: var(--pad-y) 0; }
.section-sm { padding: clamp(2.75rem, 6vw, 5rem) 0; }
.section-alt { background: var(--bone); }
.section-dark { background: var(--carbon); }
.rule-top { border-top: 1px solid var(--hairline); }

/* The datum rule: a chalk line the section registers against, with a tick
   at the top. The guide's own layout signature. */
.head {
  position: relative;
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
  padding-left: 1.75rem;
  border-left: 1px solid var(--chalk);
}
.head::before {
  content: "";
  position: absolute;
  left: -1px; top: 0;
  width: 12px; height: 1px;
  background: var(--chalk);
}
.head.center {
  margin-inline: auto;
  text-align: center;
  padding-left: 0;
  border-left: none;
}
.head.center::before { display: none; }

.eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chalk);
}

.h-1 { font-size: var(--t-h1); }
.h-2 { font-size: var(--t-h2); }

.lede {
  font-size: var(--t-lede);
  color: var(--graphite);
  max-width: 40rem;
  text-wrap: pretty;
}
.head.center .lede { margin-inline: auto; }

.note {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--graphite);
  text-wrap: pretty;
}

/* Dark inversions */
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--d-text); }
.section-dark p, .section-dark .lede { color: var(--d-muted); }
.section-dark strong, .section-dark b { color: var(--d-text); }
.section-dark .eyebrow { color: var(--d-chalk); }
.section-dark .head { border-left-color: var(--d-chalk); }
.section-dark .head::before { background: var(--d-chalk); }

/* --------------------------------------------------------------------------
   4. Buttons — paper on chalk clears AA at every size (7.58:1)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.625rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.btn-solid { background: var(--chalk); color: #fff; }
.btn-solid:hover { background: #1E38A8; }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--hairline-2); }
.btn-outline:hover { border-color: var(--ink); }

.btn-sm { padding: 0.625rem 1.125rem; font-size: 0.875rem; }

.section-dark .btn-solid, .hero .btn-solid { background: var(--chalk); color: #fff; }
.section-dark .btn-solid:hover, .hero .btn-solid:hover { background: #3654DD; }
.section-dark .btn-outline, .hero .btn-outline { color: var(--d-text); border-color: #39424D; }
.section-dark .btn-outline:hover, .hero .btn-outline:hover { border-color: var(--d-text); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.875rem; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--chalk);
}
.link-more svg { width: 0.875rem; height: 0.875rem; transition: transform var(--dur) var(--ease); }
.link-more:hover svg { transform: translateX(4px); }
.section-dark .link-more { color: var(--d-chalk); }

/* --------------------------------------------------------------------------
   4b. Announcement bar
   -------------------------------------------------------------------------- */
.announce { background: var(--ink); color: var(--d-text); }
.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 2.5rem;
  padding-block: 0.5rem;
  text-align: center;
}
.announce p {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
  color: inherit;
}
.announce a { color: #fff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.announce a:hover { color: var(--d-chalk); }

/* The cord runs vertical, never rotated: a plumb tick, not a pulsing dot. */
.announce-dot { flex-shrink: 0; width: 2px; height: 10px; background: var(--d-chalk); }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner { display: flex; align-items: center; gap: 2rem; height: 4.5rem; }

/* Horizontal lockup at 26px tall = 185px wide, clearing the 120px minimum.
   The wordmark is only ever the delivered SVG, never reset in another face. */
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { display: block; height: 26px; width: auto; }
.site-footer .brand-logo { height: 30px; }

.nav { display: flex; align-items: center; gap: 1.75rem; margin: 0 auto; }
.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--graphite);
  white-space: nowrap;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--chalk); }

.header-actions { display: flex; align-items: center; gap: 1.125rem; flex-shrink: 0; }
.header-login { font-size: 0.9375rem; font-weight: 500; color: var(--graphite); }
.header-login:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  background: transparent;
  border: 1px solid var(--hairline-2);
  border-radius: 2px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 1.125rem; height: 1.125rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; background: var(--carbon); color: var(--d-text); overflow: hidden; }

/* A single chalk datum dropping through the hero. Vertical, like the cord. */
.hero::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: max(var(--gutter), calc(50% - var(--maxw) / 2 + var(--gutter)));
  width: 1px;
  background: linear-gradient(180deg, rgba(140, 162, 245, 0.55), rgba(140, 162, 245, 0.05));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(4rem, 10vw, 8rem) clamp(3.5rem, 8vw, 6.5rem);
  padding-left: 1.75rem;
}

.hero .eyebrow { color: var(--d-chalk); }

.hero h1 {
  font-size: var(--t-hero);
  color: var(--d-text);
  max-width: 18em;
  margin-bottom: 1.25rem;
}
.hero h1 .accent { color: var(--d-chalk); }

.hero .lede { color: var(--d-muted); max-width: 36rem; margin-bottom: 2.25rem; }

.hero-micro {
  margin-top: 1.25rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6E7783;
}

/* Interior page hero */
.page-hero {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--hairline);
}
.page-hero h1 { font-size: var(--t-h1); margin-bottom: 1.125rem; max-width: 24em; }
.page-hero h1 .accent { color: var(--chalk); }
.page-hero .btn-row { margin-top: 1.75rem; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
}
.breadcrumb a:hover { color: var(--chalk); }

/* --------------------------------------------------------------------------
   7. Disclosure — the drill-down primitive
   -------------------------------------------------------------------------- */
.disclose {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-top: -1px;
}
.disclose + .disclose { margin-top: -1px; }

.disclose > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}
.disclose > summary::-webkit-details-marker { display: none; }
.disclose > summary:hover { color: var(--chalk); }

.disclose > summary .sign { position: relative; flex-shrink: 0; width: 0.75rem; height: 0.75rem; }
.disclose > summary .sign::before,
.disclose > summary .sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: var(--chalk);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.disclose > summary .sign::after { transform: rotate(90deg); }
.disclose[open] > summary .sign::after { transform: rotate(0); opacity: 0; }

.disclose-body { padding: 0.25rem 0 2rem; }

.section-dark .disclose { border-color: var(--d-hairline); }
.section-dark .disclose > summary { color: var(--d-text); }
.section-dark .disclose > summary:hover { color: var(--d-chalk); }
.section-dark .disclose > summary .sign::before,
.section-dark .disclose > summary .sign::after { background: var(--d-chalk); }

/* --------------------------------------------------------------------------
   7c. Trio
   -------------------------------------------------------------------------- */
.trio { display: grid; border-top: 1px solid var(--hairline); }
.trio-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 15rem) minmax(0, 1fr);
  gap: 0.75rem 2rem;
  align-items: baseline;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--hairline);
}
.trio-num { font-family: var(--mono); font-size: 0.8125rem; color: var(--chalk); }
.trio-row h3 { font-size: 1.0625rem; }
.trio-row p { color: var(--graphite); text-wrap: pretty; }

@media (max-width: 760px) {
  .trio-row { grid-template-columns: 2.5rem 1fr; gap: 0.375rem 1rem; padding: 1.375rem 0; }
  .trio-row p { grid-column: 2; }
}

/* --------------------------------------------------------------------------
   7d. Doors
   -------------------------------------------------------------------------- */
.doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.door {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.75rem 1.5rem;
  background: var(--paper);
  transition: background-color var(--dur) var(--ease);
}
.door:hover { background: var(--bone); }
.door-time {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
}
.door h3 { font-size: 1.125rem; }
.door p { font-size: 0.9375rem; color: var(--graphite); text-wrap: pretty; }
.door .link-more { margin-top: auto; padding-top: 1rem; }

/* --------------------------------------------------------------------------
   7e. Plain rows
   -------------------------------------------------------------------------- */
.rows { display: grid; }
.rows > li {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: 0.25rem 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.9375rem;
}
.rows > li:last-child { border-bottom: none; }
.rows b { font-family: var(--display); font-variation-settings: 'wght' 600, 'wdth' 104; font-size: 0.9375rem; color: var(--ink); }
.rows p { color: var(--graphite); text-wrap: pretty; }

@media (max-width: 700px) { .rows > li { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   10. Flow (platform steps)
   -------------------------------------------------------------------------- */
.flow { display: grid; gap: clamp(2.75rem, 5vw, 4.5rem); }

.stack-step { max-width: 54rem; scroll-margin-top: 7rem; }
.stack-step h2 { font-size: var(--t-h2); margin-bottom: 0.875rem; }
.stack-step > p { font-size: 1.0625rem; color: var(--graphite); margin-bottom: 1.25rem; text-wrap: pretty; }
.stack-step .mock { margin-top: 1.75rem; }

.flow-marker {
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
  padding-bottom: 1rem;
  margin-bottom: 1.375rem;
  border-bottom: 1px solid var(--hairline);
}
.flow-marker b { font-family: var(--mono); font-size: 1rem; color: var(--chalk); }
.flow-marker span {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
}

/* --------------------------------------------------------------------------
   11. Detail lists
   -------------------------------------------------------------------------- */
.detail-list { display: grid; border-top: 1px solid var(--hairline); }
.detail-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.9375rem;
  color: var(--graphite);
  text-wrap: pretty;
}
.detail-list li strong { display: block; margin-bottom: 0.1875rem; color: var(--ink); }

.section-dark .detail-list { border-top-color: var(--d-hairline); }
.section-dark .detail-list li { border-bottom-color: var(--d-hairline); color: var(--d-muted); }

/* --------------------------------------------------------------------------
   13. Product mock
   -------------------------------------------------------------------------- */
.mock { background: var(--paper); border: 1px solid var(--hairline); }
.section-dark .mock { background: var(--d-surface); border-color: var(--d-hairline); }

.mock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid var(--hairline);
  background: var(--bone);
}
.mock-bar h4 { font-size: 0.875rem; }
.mock-bar p { margin-top: 0.125rem; font-family: var(--mono); font-size: 0.6875rem; color: var(--graphite); }
.section-dark .mock-bar { background: rgba(255,255,255,0.03); border-bottom-color: var(--d-hairline); }

.mock-rows { padding: 0 1.125rem 0.75rem; }

.mock-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  align-items: center;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--hairline);
}
.mock-row:last-child { border-bottom: none; }
.section-dark .mock-row { border-bottom-color: var(--d-hairline); }

.mock-row-title { font-size: 0.875rem; font-weight: 600; color: var(--ink); margin-bottom: 0.1875rem; }
.section-dark .mock-row-title { color: var(--d-text); }

.mock-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem 0.875rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--graphite);
}
.mock-meta b { color: var(--ink); font-weight: 500; }
.section-dark .mock-meta { color: var(--d-muted); }
.section-dark .mock-meta b { color: var(--d-text); }

/* Money lives in columns, and columns must align. */
.mock-amt {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}
.section-dark .mock-amt { color: var(--d-text); }

.tag {
  display: inline-block;
  padding: 0.1875rem 0.5rem;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag-ok   { background: var(--approved-bg);  color: var(--approved); }
.tag-warn { background: var(--pending-bg);   color: var(--pending); }
.tag-bad  { background: var(--exception-bg); color: var(--exception); }
.tag-info { background: var(--bone);         color: var(--graphite); }

/* --------------------------------------------------------------------------
   14. Pricing
   -------------------------------------------------------------------------- */
.price-wrap { display: grid; grid-template-columns: 1.15fr 1fr; border: 1px solid var(--hairline); }
.price-main { padding: clamp(1.75rem, 3.5vw, 3rem); border-right: 1px solid var(--hairline); }
.price-side { padding: clamp(1.75rem, 3.5vw, 3rem); background: var(--bone); }

.price-tier {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chalk);
  margin-bottom: 1.25rem;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: clamp(2.75rem, 6.5vw, 4rem);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1;
}
.price-amount span { font-family: var(--body); font-size: 0.875rem; font-weight: 500; color: var(--graphite); }
.price-basis {
  margin-top: 0.875rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--graphite);
}
.price-includes { margin-top: 1.5rem; display: grid; }
.price-includes li {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.9375rem;
  color: var(--graphite);
}
.price-includes svg { width: 1rem; height: 1rem; flex-shrink: 0; margin-top: 0.25rem; color: var(--chalk); }
.price-main .btn { margin-top: 2rem; }

.price-side h3 { font-size: 1rem; margin-bottom: 0.625rem; }
.price-side p { font-size: 0.9375rem; color: var(--graphite); }
.price-side .price-block { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--hairline-2); }
.price-side .price-block:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }

/* Facts row */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); border-top: 1px solid var(--hairline); }
.fact { padding: 1.75rem 1.5rem 1.75rem 0; border-right: 1px solid var(--hairline); }
.fact:last-child { border-right: none; }
.fact dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chalk);
  margin-bottom: 0.5rem;
}
.fact dd { font-family: var(--display); font-variation-settings: 'wght' 600, 'wdth' 104; font-size: 0.9375rem; line-height: 1.35; color: var(--ink); }
.facts-light { border-top-color: var(--hairline); }

/* --------------------------------------------------------------------------
   16. Forms
   -------------------------------------------------------------------------- */
.form-shell { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4.5vw, 4rem); align-items: start; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.125rem; }
.field { display: flex; flex-direction: column; gap: 0.4375rem; }
.field.span-2 { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--ink); }
.control {
  width: 100%;
  padding: 0.8125rem 0.875rem;
  background: var(--paper);
  border: 1px solid var(--hairline-2);
  border-radius: 2px;
  font-size: 0.9375rem;
  color: var(--ink);
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.control::placeholder { color: #9AA0A6; }
.control:focus { border-color: var(--chalk); box-shadow: 0 0 0 3px rgba(39, 69, 200, 0.12); }

select.control {
  appearance: none;
  cursor: pointer;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6169' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1rem;
}

.form-actions { margin-top: 1.5rem; }
.form-actions .btn { width: 100%; }

.form-fine { margin-top: 1rem; font-size: 0.8125rem; line-height: 1.6; color: var(--graphite); }
.form-fine a { color: var(--chalk); text-decoration: underline; text-underline-offset: 2px; }

.form-status {
  display: none;
  gap: 0.625rem;
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 2px;
  font-size: 0.875rem;
  border: 1px solid;
}
.form-status.is-shown { display: flex; }
.form-status.is-ok  { background: var(--approved-bg);  color: var(--approved);  border-color: rgba(26, 122, 71, 0.25); }
.form-status.is-err { background: var(--exception-bg); color: var(--exception); border-color: rgba(179, 35, 24, 0.25); }
.form-status svg { width: 1rem; height: 1rem; flex-shrink: 0; margin-top: 0.1875rem; }

.spinner {
  width: 0.875rem; height: 0.875rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   17. Next-up
   -------------------------------------------------------------------------- */
.next-up {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.next-card { display: block; padding: 1.5rem; background: var(--paper); transition: background-color var(--dur) var(--ease); }
.next-card:hover { background: var(--bone); }
.next-card h3 { font-size: 1rem; margin-bottom: 0.375rem; }
.next-card p { font-size: 0.875rem; color: var(--graphite); }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--hairline); padding: clamp(3rem, 5vw, 4.5rem) 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;
  padding-bottom: 3rem;
}
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.875rem; color: var(--graphite); max-width: 20rem; }

.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 1rem;
}
.footer-col li + li { margin-top: 0.625rem; }
.footer-col a { font-size: 0.9375rem; color: var(--graphite); }
.footer-col a:hover { color: var(--chalk); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--graphite);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-bottom a:hover { color: var(--chalk); }

/* --------------------------------------------------------------------------
   19. Prose (legal)
   -------------------------------------------------------------------------- */
.prose { max-width: 46rem; }
.prose h1 { font-size: var(--t-h1); margin-bottom: 1rem; }
.prose-meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
  padding-bottom: 1.75rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--hairline);
}
.prose h2 { font-size: 1.125rem; margin: 2.5rem 0 0.875rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline); }
.prose h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.prose h3 { font-size: 0.9375rem; margin: 1.5rem 0 0.5rem; }
.prose p, .prose li { font-size: 0.9375rem; color: var(--graphite); text-wrap: pretty; }
.prose p + p { margin-top: 0.875rem; }
.prose ul { margin: 0.875rem 0; display: grid; gap: 0.5rem; }
.prose ul li { padding-left: 1.125rem; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.7rem; width: 6px; height: 1px; background: var(--chalk); }
.prose a { color: var(--chalk); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }

.callout { padding: 1.25rem 1.5rem; margin: 1.5rem 0; background: var(--bone); border-left: 2px solid var(--chalk); }
.callout p { font-size: 0.875rem; }

/* --------------------------------------------------------------------------
   20. Reveal
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.06s; }
.reveal-d2 { transition-delay: 0.12s; }
.reveal-d3 { transition-delay: 0.18s; }

/* --------------------------------------------------------------------------
   21. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .form-shell, .price-wrap { grid-template-columns: 1fr; }
  .price-main { border-right: none; border-bottom: 1px solid var(--hairline); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 4.5rem 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    transform: translateY(-135%);
    visibility: hidden;
    transition: transform var(--dur) var(--ease), visibility var(--dur);
  }
  .nav.is-open { transform: translateY(0); visibility: visible; }
  .nav-link { padding: 0.875rem 0; border-bottom: 1px solid var(--hairline); }
  .nav-link[aria-current="page"] { border-bottom-color: var(--hairline); }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding-right: 1.25rem; }
}

@media (max-width: 620px) {
  :root { --gutter: 1.25rem; }
  .header-inner { height: 4rem; gap: 0.75rem; }
  .nav { inset-block-start: 4rem; }
  .brand-logo { height: 22px; }
  .btn-row .btn, .form-actions .btn, .price-main .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .header-login { display: none; }
  .hero-inner, .head { padding-left: 1.125rem; }
  .field-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: none; border-bottom: 1px solid var(--hairline); padding: 1.25rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-toggle, .announce { display: none; }
  body { background: #fff; color: #000; }
}
