/* ============================================================================
   ZAVINO SOLUTIONS — Design System (v3)
   ----------------------------------------------------------------------------
   Deliberately inherits the HilltopOS product design language so the marketing
   site and the software look like they came from the same company:

     paper  #f3f1ec   ·  surface #ffffff  ·  deep #0f1923
     border #e4e1da   ·  primary #1d4ed8
     Plus Jakarta Sans for everything, JetBrains Mono (tabular) for figures

   Source of truth: HilltopOS client/src/index.css + tailwind.config.js.
   If the product theme changes, change it here too.
   ========================================================================== */

/* ── 1. Tokens ───────────────────────────────────────────────────────────── */

:root {
  /* Ground */
  --paper:     #f3f1ec;
  --surface:   #ffffff;
  --surface-2: #faf9f6;
  --deep:      #0f1923;
  --deep-2:    #16232f;

  /* Ink — muted is darkened vs. the app's #71706d so long-form body copy on
     the marketing site clears 6:1 rather than sitting at AA minimum. */
  --ink:       #18181b;
  --ink-2:     #45443f;
  --muted:     #5c5b56;
  --faint:     #8a8880;

  /* Lines */
  --border:    #e4e1da;
  --border-2:  #d3cfc4;

  /* Brand + semantic (straight from the product) */
  --primary:      #1d4ed8;
  --primary-dark: #1739a8;
  --primary-soft: #eef2ff;
  --primary-line: #c7d2fe;
  --success:      #047857;
  --success-soft: #ecfdf5;
  --danger:       #be123c;
  --danger-soft:  #fff1f2;
  --warning:      #c2410c;
  --warning-soft: #fff7ed;
  --violet:       #6d28d9;
  --violet-soft:  #f5f3ff;
  --accent:       #d97706;

  /* Type */
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", Menlo, Consolas, monospace;

  --t-hero: clamp(2.35rem, 5vw, 4rem);
  --t-h2:   clamp(1.8rem, 3.2vw, 2.6rem);
  --t-h3:   clamp(1.2rem, 1.7vw, 1.45rem);
  --t-lede: clamp(1.12rem, 1.5vw, 1.35rem);
  --t-body: 1.0625rem;
  --t-sm:   0.9375rem;
  --t-xs:   0.8125rem;
  --t-2xs:  0.6875rem;

  /* Rhythm */
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --bay: clamp(4rem, 8vw, 7rem);
  --max: 1200px;
  --r:   8px;
  --r-lg: 12px;

  --shadow:    0 1px 3px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 4px 6px -2px rgba(15, 25, 35, 0.06), 0 16px 40px -12px rgba(15, 25, 35, 0.22);
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dark sections re-point the tokens. */
.dark {
  --paper:     var(--deep);
  --surface:   var(--deep-2);
  --surface-2: #1c2b39;
  --ink:       #ffffff;
  --ink-2:     #cdd5dd;
  --muted:     #9aa6b2;
  --faint:     #6f7d8a;
  --border:    rgba(255, 255, 255, 0.12);
  --border-2:  rgba(255, 255, 255, 0.22);
  --primary:      #7ea2ff;
  --primary-soft: rgba(126, 162, 255, 0.12);
  --primary-line: rgba(126, 162, 255, 0.34);
  background: var(--deep);
  color: var(--ink);
}

/* ── 2. Base ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
h3, h4 { font-weight: 700; }

p { margin: 0 0 1.05em; max-width: 66ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

/* Financial figures always get mono + tabular, exactly like the product. */
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* ── 3. Layout ───────────────────────────────────────────────────────────── */

.shell { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.shell--narrow { max-width: 820px; }
.bay { padding-block: var(--bay); }
.bay--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.on-surface { background: var(--surface); }
.line-top { border-top: 1px solid var(--border); }

/* ── 4. Section label (product's .section-label) ─────────────────────────── */

.slabel {
  font-size: var(--t-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--faint);
  margin: 0 0 0.85rem;
}
.slabel--primary { color: var(--primary); }

/* ── 5. Header ───────────────────────────────────────────────────────────── */

.masthead {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.masthead .shell {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 4.25rem;
}

.mark { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--ink); }
.mark__glyph {
  width: 2rem; height: 2rem; flex: none;
  display: grid; place-items: center;
  background: var(--primary); color: #fff;
  border-radius: 6px; font-size: 1.05rem; font-weight: 800;
}

.nav { display: flex; align-items: center; gap: clamp(0.5rem, 1.7vw, 1.6rem); }

/* :not(.btn) is load-bearing. `.nav a` has higher specificity than `.btn`, so
   without it the nav's CTA loses its button padding AND its white text colour,
   leaving dark grey on blue. Never write a bare `.nav a` rule here. */
.nav a:not(.btn) { font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); padding: 0.5rem 0; transition: color 0.15s; }
.nav a:not(.btn):hover, .nav a:not(.btn)[aria-current="page"] { color: var(--primary); }
.nav__phone { font-family: var(--mono); font-size: var(--t-xs); white-space: nowrap; }

.nav-toggle {
  display: none; background: var(--surface);
  border: 1px solid var(--border-2); border-radius: 6px;
  color: var(--ink); font-family: var(--sans); font-size: var(--t-sm); font-weight: 600;
  padding: 0.45rem 0.8rem; cursor: pointer;
}

/* ── 6. Buttons (product's .btn-*) ──────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.4rem; border-radius: var(--r);
  font-family: var(--sans); font-size: var(--t-sm); font-weight: 700;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(29, 78, 216, 0.25); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn--secondary { background: var(--surface); color: var(--ink-2); border-color: var(--border-2); box-shadow: var(--shadow); }
.btn--secondary:hover { color: var(--primary); border-color: var(--primary); }
.btn--white { background: #fff; color: var(--deep); }
.btn--white:hover { background: #e8eef9; transform: translateY(-1px); }
.dark .btn--secondary { background: transparent; color: #fff; border-color: var(--border-2); box-shadow: none; }
.dark .btn--secondary:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: #fff; }

/* ── 7. Hero ─────────────────────────────────────────────────────────────── */

.hero { padding-block: clamp(3rem, 6.5vw, 5rem) clamp(2.25rem, 4.5vw, 3.5rem); }
.hero h1 { font-size: var(--t-hero); max-width: 19ch; margin-bottom: 1.3rem; }
.hero h1 .hl { color: var(--primary); }
.hero__lede { font-size: var(--t-lede); line-height: 1.55; color: var(--ink-2); max-width: 56ch; margin-bottom: 1.9rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ── 8. Cards ────────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.35rem, 2.4vw, 1.85rem);
}
.card--link { transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; display: block; }
.card--link:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--border-2); }
.card h3 { font-size: var(--t-h3); margin-bottom: 0.55rem; }
.card p { color: var(--ink-2); font-size: var(--t-sm); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); gap: 1.15rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(23rem, 100%), 1fr)); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split--lead { grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); }
.stick { position: sticky; top: 6rem; }

/* ── 9. Story blocks: before -> after ───────────────────────────────────── */

.story { display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.story__hd {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.story__title { font-size: var(--t-sm); font-weight: 700; color: var(--ink); }
.story__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.story__half { padding: 1.25rem 1.35rem; }
.story__half + .story__half { border-left: 1px solid var(--border); }
.story__half--before { background: var(--surface-2); }
.story__k {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: var(--t-2xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 0.55rem;
}
.story__k--before { color: var(--danger); }
.story__k--after  { color: var(--success); }
.story__half p { font-size: var(--t-sm); color: var(--ink-2); margin: 0; max-width: none; }

/* ── 10. App mockup — HilltopOS chrome, fictional data ───────────────────── */

.app {
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}
.app__bar {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  background: var(--deep);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.app__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.22); flex: none; }
.app__url {
  margin-left: 0.5rem; font-family: var(--mono); font-size: 11px;
  color: rgba(255,255,255,0.5); letter-spacing: 0.02em;
}
.app__body { display: grid; grid-template-columns: 168px minmax(0, 1fr); min-height: 320px; }

.app__side { background: var(--deep); padding: 0.85rem 0; color: #fff; }
.app__brand {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0 0.9rem 0.85rem;
  font-weight: 800; font-size: 12.5px; letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 0.6rem;
}
.app__brand i { width: 18px; height: 18px; border-radius: 4px; background: var(--primary); flex: none; }
.app__grp { padding: 0.6rem 0.9rem 0.25rem; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.32); }
.app__nav { display: flex; align-items: center; gap: 0.5rem; padding: 0.34rem 0.9rem; font-size: 11.5px; color: rgba(255,255,255,0.62); }
.app__nav span { width: 12px; height: 12px; border-radius: 3px; background: rgba(255,255,255,0.16); flex: none; }
.app__nav.on { background: rgba(255,255,255,0.09); color: #fff; font-weight: 700; box-shadow: inset 2px 0 0 var(--primary); }
.app__nav.on span { background: var(--primary); }

.app__main { background: var(--paper); min-width: 0; }
.app__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}
.app__title { font-weight: 800; font-size: 13.5px; }
.app__sub { font-size: 10.5px; color: var(--faint); margin-top: 1px; }
.app__btn { background: var(--primary); color: #fff; font-size: 10.5px; font-weight: 700; padding: 0.3rem 0.65rem; border-radius: 5px; }
.app__pad { padding: 0.85rem 1rem; }

/* Stat strip: the product's 1px-gap grid trick */
.app__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.app__stat { background: #fff; padding: 0.6rem 0.7rem; }
.app__stat .k { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); }
.app__stat .v { font-size: 19px; font-weight: 800; line-height: 1.1; margin-top: 2px; font-variant-numeric: tabular-nums; }
.app__stat .s { font-size: 9.5px; color: var(--faint); margin-top: 1px; }

/* Data panel + rows */
.app__panel { background: #fff; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.app__panelhd { display: flex; align-items: center; justify-content: space-between; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--border); }
.app__panelhd b { font-size: 11.5px; }
.app__row { display: grid; align-items: center; gap: 0.6rem; padding: 0.5rem 0.75rem; border-bottom: 1px solid #f2f0ec; }
.app__row:last-child { border-bottom: 0; }
.app__row--match { grid-template-columns: 6px minmax(0,1.5fr) minmax(0,1fr) auto auto; }
.app__row--q { grid-template-columns: 6px minmax(0,1fr) auto; }
.app__nm { font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__meta { font-size: 10px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__amt { font-family: var(--mono); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.app__pip { width: 6px; height: 6px; border-radius: 50%; }

.chip { display: inline-flex; align-items: center; padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 9.5px; font-weight: 700; white-space: nowrap; }
.chip--ok    { background: var(--success-soft); color: var(--success); }
.chip--warn  { background: var(--warning-soft); color: var(--warning); }
.chip--bad   { background: var(--danger-soft);  color: var(--danger); }
.chip--info  { background: var(--primary-soft); color: var(--primary); }
.chip--vio   { background: var(--violet-soft);  color: var(--violet); }

.bg-ok   { background: var(--success); }
.bg-warn { background: var(--warning); }
.bg-bad  { background: var(--danger); }
.bg-info { background: var(--primary); }

/* Caption under a mockup. Needs max-width:none — the global `p` rule caps at
   66ch, which wrapped this onto two lines while the row had room to spare. */
.app-note {
  font-size: var(--t-xs);
  color: var(--muted);
  margin: 0.8rem auto 0;
  text-align: center;
  max-width: none;
}
.app-note b { color: var(--ink-2); }

/* ── 11. Checklist ───────────────────────────────────────────────────────── */

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }

/* The marker is absolutely positioned rather than being a grid/flex item.
   Reason: a list item like "<strong>Label</strong> — description" contains an
   element AND a text node. In a grid or flex container those become two
   separate items, so the text gets auto-placed into the narrow marker column
   and wraps one word per line. Absolute positioning keeps all inline content
   in a single normal-flow block, whatever markup goes inside. */
.checks li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--ink-2);
  font-size: var(--t-sm);
  line-height: 1.6;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--success-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23047857' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") center/11px no-repeat;
}
.checks--x li::before {
  background: var(--danger-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23be123c' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M4.5 4.5l7 7M11.5 4.5l-7 7'/%3E%3C/svg%3E") center/10px no-repeat;
}

/* ── 12. Stats ───────────────────────────────────────────────────────────── */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); gap: 1.15rem; }
.stat { border-left: 3px solid var(--primary); padding-left: 1.05rem; }
.stat__v { font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat__k { color: var(--muted); font-size: var(--t-sm); margin-top: 0.3rem; line-height: 1.5; }

/* ── 13. Steps ───────────────────────────────────────────────────────────── */

.steps { display: grid; gap: 1.6rem; counter-reset: s; }
.step { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 1.05rem; align-items: start; }
.step__n {
  counter-increment: s; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--primary); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 0.9rem;
}
.step__n::before { content: counter(s); }
.step h3 { font-size: var(--t-h3); margin-bottom: 0.3rem; }
.step p { color: var(--ink-2); font-size: var(--t-sm); }

/* ── 14. FAQ ─────────────────────────────────────────────────────────────── */

.faq { display: grid; gap: 0.7rem; }
.faq details { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.faq details[open] { border-color: var(--primary-line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 1.25rem;
  font-weight: 700; font-size: 1.0313rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 1rem; height: 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235c5b56' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details > p { padding: 0 1.25rem 1.15rem; color: var(--ink-2); font-size: var(--t-sm); }

/* ── 15. Forms (product's .input / .label) ──────────────────────────────── */

.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); margin-bottom: 0.35rem; }
.field .req { color: var(--danger); }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: var(--t-body); color: var(--ink);
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r);
  padding: 0.62rem 0.8rem; transition: border-color 0.15s, box-shadow 0.15s; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235c5b56' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 14px;
  padding-right: 2.3rem; cursor: pointer;
}
.field textarea { resize: vertical; min-height: 8.5rem; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}
.field input::placeholder, .field textarea::placeholder { color: #a5a29a; }
.field--half { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--t-sm); color: var(--muted); margin-top: 0.9rem; line-height: 1.6; }
.form-status { font-size: var(--t-sm); padding: 0.85rem 1rem; border-radius: var(--r); margin-top: 1.05rem; display: none; line-height: 1.6; border: 1px solid; }
.form-status[data-state="ok"]      { display: block; border-color: #a7dcc0; background: var(--success-soft); color: var(--success); }
.form-status[data-state="error"]   { display: block; border-color: #f3c3cb; background: var(--danger-soft); color: var(--danger); }
.form-status[data-state="sending"] { display: block; border-color: var(--border-2); background: var(--surface-2); color: var(--muted); }

/* ── 16. Contact rows ────────────────────────────────────────────────────── */

.contact-list { display: grid; gap: 1rem; }
.contact-item { display: grid; grid-template-columns: 2.35rem minmax(0, 1fr); gap: 0.85rem; align-items: center; }
.contact-item__ic { width: 2.35rem; height: 2.35rem; border-radius: 7px; background: var(--primary-soft); border: 1px solid var(--primary-line); display: grid; place-items: center; }
.contact-item__k { font-size: var(--t-2xs); color: var(--faint); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.contact-item__v { font-weight: 700; color: var(--ink); font-size: 1.0313rem; }
a.contact-item:hover .contact-item__v { color: var(--primary); }

/* ── 17. Footer ──────────────────────────────────────────────────────────── */

.foot { background: var(--deep); color: #cdd5dd; padding-block: 3.25rem 1.85rem; }
.foot h4 { color: #fff; font-size: var(--t-sm); margin-bottom: 0.85rem; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: clamp(1.75rem, 4vw, 3rem); margin-bottom: 2.25rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.foot a { color: #cdd5dd; font-size: var(--t-sm); transition: color 0.15s; }
.foot a:hover { color: #fff; }
.foot__base { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.7rem 1.5rem; justify-content: space-between; font-size: var(--t-xs); color: #8fa0ae; }

/* ── 18. Motion ──────────────────────────────────────────────────────────── */

.reveal { transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.07s; }
.reveal[data-delay="2"] { transition-delay: 0.14s; }

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

/* ── 19. Utilities ───────────────────────────────────────────────────────── */

.lede   { font-size: var(--t-lede); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.muted  { color: var(--muted); }
.center { text-align: center; margin-inline: auto; }
.center p, .center .lede { margin-inline: auto; }
.mt-1 { margin-top: 0.7rem; }  .mt-2 { margin-top: 1.4rem; }
.mt-3 { margin-top: 2.1rem; }  .mt-4 { margin-top: 2.9rem; }
.mb-2 { margin-bottom: 1.4rem; } .mb-3 { margin-bottom: 2.1rem; }
.pill { display: inline-block; font-size: var(--t-2xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); background: var(--primary-soft); border: 1px solid var(--primary-line); border-radius: 100px; padding: 0.28rem 0.7rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag { font-size: var(--t-xs); color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: 0.22rem 0.65rem; font-weight: 600; }
.skip { position: absolute; left: -9999px; background: var(--primary); color: #fff; padding: 0.7rem 1.2rem; border-radius: var(--r); z-index: 200; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }

/* ── 20. Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 940px) {
  .split, .split--lead { grid-template-columns: minmax(0, 1fr); }
  .stick { position: static; }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story__pair { grid-template-columns: minmax(0, 1fr); }
  .story__half + .story__half { border-left: 0; border-top: 1px solid var(--border); }
  .app__body { grid-template-columns: minmax(0, 1fr); }
  .app__side { display: none; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 4.25rem 0 auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--border);
    padding: 0.5rem var(--gut) 1.4rem;
    transform: translateY(-125%); transition: transform 0.32s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .nav[data-open="true"] { transform: none; }
  .nav a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav .btn { margin-top: 0.9rem; }
  .nav-toggle { display: block; }
  .field--half { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 100%; }
  .app__row--match { grid-template-columns: 6px minmax(0,1fr) auto; }
  .app__row--match > :nth-child(3) { display: none; }
}
