/* Ritmovio LLC — ritmovio.com
   One stylesheet, self-hosted font, zero third-party requests. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #ffffff;
  --mist: #f4f2f8;
  --line: #e6e3ee;
  --muted: #6b6780;
  --body: #47435a;
  --ink: #1d1633;
  --ink-2: #282043;
  --ink-line: #3a3158;
  --ink-muted: #aaa4c0;
  --beat: #f0378a;

  --sans: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--beat); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 var(--sans); text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #33294f; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: #c8c3d6; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}
.site-head.is-scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-weight: 750; font-size: 20px; letter-spacing: -0.035em; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--body); }
.nav a:not(.btn):hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 104px) 0 clamp(72px, 10vw, 120px); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-copy { position: relative; text-align: center; max-width: 1120px; margin: 0 auto; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; color: var(--body);
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--beat); box-shadow: 0 0 0 4px rgba(240, 55, 138, .15); }
.hero h1 {
  margin-top: 28px;
  font-size: clamp(44px, 7.8vw, 100px);
  font-weight: 800; line-height: .98; letter-spacing: -0.032em;
}
.hero h1 .line { display: block; }
.hero h1 .line-soft {
  font-weight: 300; font-stretch: 75%; letter-spacing: -0.01em;
  color: #8e88a6; margin-top: .06em;
}
.hero-lead {
  max-width: 640px; margin: 28px auto 0;
  font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--body);
}
.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* step sequencer */
.seq {
  --cols: 8; --beat-len: .5s;
  position: relative; margin: clamp(48px, 7vw, 80px) auto 0; max-width: 960px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(18px, 3.4vw, 40px);
}
.seq-board { display: grid; grid-template-columns: auto 1fr; column-gap: clamp(12px, 2.4vw, 28px); }
.seq-names { display: grid; grid-auto-rows: var(--row); row-gap: var(--gap); align-items: center; }
.seq-names li { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.seq-grid {
  position: relative; display: grid; grid-template-columns: repeat(var(--cols), 1fr);
  grid-auto-rows: var(--row); gap: var(--gap);
}
.seq-board { --row: 40px; --gap: 8px; }
.seq-grid i {
  display: block; border-radius: 10px; background: var(--mist); border: 1px solid var(--line);
}
.seq-grid i.on { background: var(--ink); border-color: var(--ink); }
.seq-head {
  position: absolute; top: -8px; bottom: -8px; left: 0;
  width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols) + var(--gap));
  margin-left: calc(var(--gap) / -2);
  border-radius: 14px; background: rgba(240, 55, 138, .08);
  box-shadow: inset 0 0 0 1.5px rgba(240, 55, 138, .55);
  pointer-events: none; opacity: 0;
}
.seq-phases {
  grid-column: 2; display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: var(--gap);
  margin-top: 18px;
}
.seq-phases li {
  position: relative; padding-top: 12px; text-align: center;
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.seq-phases li::before {
  content: ""; position: absolute; top: 0; left: 2px; right: 2px; height: 6px;
  border: 1.5px solid #cfcadb; border-bottom: 0; border-radius: 4px 4px 0 0;
}
.seq-phases .ph-build { grid-column: 1 / span 3; }
.seq-phases .ph-test { grid-column: 4 / span 2; }
.seq-phases .ph-scale { grid-column: 6 / span 3; color: var(--ink); }
.seq-phases .ph-scale::before { border-color: var(--beat); }
.seq-caption { margin-top: clamp(22px, 3vw, 30px); padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .seq-head { opacity: 1; animation: seq-sweep calc(var(--cols) * var(--beat-len)) steps(8, end) infinite; }
  .seq-grid i.on { animation: seq-hit calc(var(--cols) * var(--beat-len)) linear infinite; animation-delay: calc(var(--c) * var(--beat-len)); }
}
@keyframes seq-sweep {
  from { transform: translateX(0); }
  to { transform: translateX(800%); }
}
@keyframes seq-hit {
  0% { background: var(--beat); border-color: var(--beat); transform: scale(1.06); }
  10% { background: var(--beat); border-color: var(--beat); transform: scale(1); }
  14%, 100% { background: var(--ink); border-color: var(--ink); transform: scale(1); }
}

/* ---------- section scaffolding ---------- */
.section { padding: clamp(80px, 11vw, 132px) 0; }
.section-mist { background: var(--mist); }
.section-flush { padding-top: 0; }
.section-end { padding-bottom: clamp(40px, 5vw, 64px); }
.intro { max-width: 680px; margin: 0 auto clamp(48px, 7vw, 80px); text-align: center; }
.h2 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; }
.intro p { margin-top: 18px; font-size: clamp(17px, 1.5vw, 19px); color: var(--body); }

/* ---------- disciplines ---------- */
.disc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; padding: clamp(40px, 5vw, 56px) 0; }
.disc + .disc { border-top: 1px solid var(--line); }
.disc:nth-of-type(even) .disc-text { order: 2; }
.disc-tag { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 650; }
.disc-tag svg { width: 26px; height: 26px; }
.disc h3 { margin-top: 16px; font-size: clamp(28px, 3vw, 38px); font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; }
.disc-text > p { margin-top: 16px; color: var(--body); max-width: 52ch; }
.checks { margin-top: 24px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; font-size: 16px; font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px;
  border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg);
}

/* visual panels */
.panel {
  position: relative; border-radius: var(--r-lg); min-height: 360px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: clamp(24px, 4vw, 44px);
}
.panel-dark { background: var(--ink); color: #fff; }
.panel-light { background: var(--mist); border: 1px solid var(--line); }
.panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, var(--dots) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
}
.panel-dark { --dots: rgba(255, 255, 255, .09); }
.panel-light { --dots: rgba(29, 22, 51, .09); }
.panel > * { position: relative; }

/* 1 · brand board */
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 400px; }
.board > div { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--r-md); padding: 18px; min-height: 130px; }
.board .b-mark { display: grid; place-items: center; background: #fff; }
.board .b-mark svg { width: 64px; height: 64px; }
.board .b-type { display: flex; flex-direction: column; justify-content: space-between; }
.board .b-type strong { font-size: 54px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.board .b-type em { font-style: normal; font-weight: 300; font-stretch: 75%; font-size: 22px; color: var(--ink-muted); }
.board .b-sw { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; min-height: 0; padding: 10px; }
.board .b-sw span { height: 44px; border-radius: 9px; }

/* 2 · product page */
.pdp {
  width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start;
  box-shadow: 0 22px 44px rgba(29, 22, 51, .10);
}
.pdp-img {
  aspect-ratio: 4 / 5; border-radius: 12px; background: var(--mist); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.pdp-img span { width: 46%; aspect-ratio: 1 / 1.6; border-radius: 14px 14px 10px 10px; background: var(--ink); position: relative; }
.pdp-img span::after { content: ""; position: absolute; left: 22%; right: 22%; top: 38%; height: 18%; border-radius: 4px; background: var(--beat); }
.pdp-info { display: grid; gap: 8px; padding-top: 4px; }
.pdp-info i { display: block; height: 7px; border-radius: 4px; background: #e9e6f0; }
.pdp-info i.t { height: 12px; width: 90%; background: var(--ink); }
.pdp-info i.s { width: 60%; }
.pdp-opts { display: grid; gap: 6px; margin-top: 6px; }
.pdp-opts b { display: block; height: 26px; border-radius: 8px; border: 1px solid var(--line); }
.pdp-opts b.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pdp-cart { margin-top: 6px; background: var(--ink); color: #fff; border-radius: 999px; text-align: center; font-size: 12.5px; font-weight: 650; padding: 9px 6px; }

/* 3 · campaign list */
.camp { width: 100%; max-width: 400px; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--r-md); padding: 8px; }
.camp-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 12px; font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.camp-row { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-top: 1px solid var(--ink-line); }
.camp-ico { width: 38px; height: 38px; border-radius: 10px; background: #fff; display: grid; place-items: center; flex: none; }
.camp-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.camp-name { font-weight: 650; font-size: 16px; line-height: 1.3; }
.camp-name small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-muted); }
.camp-state { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #ddd9ea; }
.camp-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--beat); box-shadow: 0 0 0 3px rgba(240, 55, 138, .3); }

/* 4 · creative variants (light) */
.variants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; max-width: 420px; align-items: end; }
.variant { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; display: grid; gap: 8px; }
.variant i { display: block; height: 7px; border-radius: 4px; background: #e9e6f0; }
.variant i.img { height: 58px; border-radius: 7px; background: #e1dde9; }
.variant i.short { width: 60%; }
.variant i.btn-bar { height: 16px; border-radius: 8px; background: #d3cee0; margin-top: 4px; }
.variant b { font-size: 13px; font-weight: 700; color: var(--muted); }
.variant.win { background: var(--ink); border-color: var(--ink); transform: translateY(-18px); box-shadow: 0 18px 40px rgba(29, 22, 51, .28); }
.variant.win i { background: #3a3158; }
.variant.win i.img { background: #4a4070; }
.variant.win i.btn-bar { background: var(--beat); }
.variant.win b { color: #fff; }
.variant-note { grid-column: 1 / -1; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 6px; }

/* 5 · after-checkout messages */
.msgs { width: 100%; max-width: 360px; display: grid; gap: 10px; }
.msg {
  display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center;
  background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 14px; padding: 12px 14px;
}
.msg:nth-child(2) { margin-left: 16px; }
.msg:nth-child(3) { margin-left: 32px; }
.msg:last-child { margin-left: 48px; background: #fff; border-color: #fff; color: var(--ink); }
.msg-ico { width: 36px; height: 36px; border-radius: 10px; background: #3a3158; display: grid; place-items: center; }
.msg-ico svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.msg:last-child .msg-ico { background: var(--beat); }
.msg strong { display: block; font-size: 14.5px; font-weight: 650; line-height: 1.3; }
.msg small { display: block; font-size: 12.5px; color: var(--ink-muted); line-height: 1.35; }
.msg:last-child small { color: var(--muted); }

/* ---------- operating model (dark) ---------- */
.model {
  position: relative; overflow: hidden; background: var(--ink); color: #fff;
  border-radius: calc(var(--r-lg) + 4px); padding: clamp(40px, 7vw, 88px);
}
.model::before {
  content: ""; position: absolute; width: 760px; height: 760px; right: -260px; top: -300px; pointer-events: none;
  background: radial-gradient(circle, rgba(240, 55, 138, .14), transparent 62%);
}
.model > * { position: relative; }
.model-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px clamp(36px, 6vw, 80px); align-items: end; }
.model .h2 { color: #fff; }
.model-lead { color: var(--ink-muted); font-size: 18px; max-width: 46ch; }
.model-list { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 36px; }
.model-list li { padding-top: 24px; border-top: 1px solid var(--ink-line); }
.model-list svg { width: 24px; height: 24px; margin-bottom: 18px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.model-list strong { display: block; font-weight: 650; font-size: 17px; }
.model-list span { display: block; color: var(--ink-muted); font-size: 15px; margin-top: 4px; max-width: 34ch; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 24px 30px; }
.step-n { font-size: 44px; line-height: 1; font-weight: 250; font-stretch: 75%; color: #a29cb8; letter-spacing: -0.02em; }
.step h3 { margin-top: 26px; font-size: 21px; font-weight: 750; letter-spacing: -0.025em; }
.step p { margin-top: 8px; font-size: 15.5px; color: var(--body); }

/* ---------- company ---------- */
.company { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.company-text p { margin-top: 20px; color: var(--body); max-width: 50ch; }
.facts { border: 1px solid var(--line); border-radius: var(--r-md); }
.facts div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 18px 22px; }
.facts div + div { border-top: 1px solid var(--line); }
.facts dt { font-size: 15px; color: var(--muted); }
.facts dd { font-size: 16px; font-weight: 600; }
.facts a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #bdb7cd; }
.facts a:hover { text-decoration-color: currentColor; }

/* ---------- contact ---------- */
.contact {
  position: relative; overflow: hidden; text-align: center;
  background: var(--mist); border: 1px solid var(--line); border-radius: calc(var(--r-lg) + 4px);
  padding: clamp(56px, 8vw, 96px) var(--gutter);
}
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(29, 22, 51, .09) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 55% 80% at 50% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 80% at 50% 50%, #000 20%, transparent 75%);
}
.contact > * { position: relative; }
.contact .h2 { max-width: 760px; margin: 0 auto; }
.contact p { max-width: 520px; margin: 18px auto 0; color: var(--body); font-size: 18px; }
.contact .btn { margin-top: 32px; }

/* ---------- footer ---------- */
.site-foot { padding: 56px 0 48px; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.foot-nav { display: flex; gap: 10px 28px; flex-wrap: wrap; }
.foot-nav a { text-decoration: none; font-size: 15px; color: var(--body); }
.foot-nav a:hover { color: var(--ink); }
.foot-legal { padding-top: 24px; font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap; }
.foot-legal p + p { margin-top: 2px; }
.foot-right { text-align: right; }
.foot-legal-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 10px; }
.foot-legal-nav a { color: var(--body); text-decoration: none; }
.foot-legal-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- legal pages ---------- */
.legal-hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); background: var(--mist); }
.legal-hero .wrap { position: relative; }
.legal-title { margin-top: 24px; font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: 1; letter-spacing: -0.035em; }
.legal-lead { margin-top: 18px; font-size: clamp(17px, 1.6vw, 20px); color: var(--body); max-width: 56ch; }
.legal-meta { margin-top: 14px; font-size: 14px; color: var(--muted); }

.legal-body {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(40px, 6vw, 96px);
  align-items: start; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(80px, 10vw, 120px);
}
.legal-side { position: sticky; top: 104px; }
.legal-side-label { font-size: 14px; font-weight: 650; color: var(--muted); }
.legal-nav { margin-top: 12px; display: grid; gap: 2px; }
.legal-nav a {
  position: relative; display: block; padding: 8px 12px 8px 20px; border-radius: 10px;
  text-decoration: none; font-size: 15.5px; font-weight: 500; color: var(--body);
}
.legal-nav a:hover { background: var(--mist); color: var(--ink); }
.legal-nav a[aria-current="page"] { background: var(--mist); color: var(--ink); font-weight: 650; }
.legal-nav a[aria-current="page"]::before {
  content: ""; position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%; background: var(--beat);
}
.legal-ask { margin-top: 28px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); font-size: 14.5px; }
.legal-ask p { color: var(--muted); }
.legal-ask a { display: inline-block; margin-top: 4px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #bdb7cd; overflow-wrap: anywhere; }
.legal-ask a:hover { text-decoration-color: currentColor; }

.doc { max-width: 74ch; color: #3a3650; }
.doc h2 {
  display: flex; align-items: baseline; gap: 14px; scroll-margin-top: 96px;
  margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line);
  font-size: clamp(22px, 2.2vw, 26px); font-weight: 750; line-height: 1.2; letter-spacing: -0.03em; color: var(--ink);
}
.doc > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc h2 .n { flex: none; font-weight: 300; font-stretch: 75%; font-size: 1.1em; color: #a29cb8; letter-spacing: 0; }
.doc h3 { margin-top: 28px; font-size: 18px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.doc p, .doc ul, .doc .facts, .doc .table-wrap { margin-top: 16px; }
.doc h2 + p, .doc h2 + .facts, .doc h2 + ul, .doc h3 + p { margin-top: 18px; }
.doc ul { display: grid; gap: 8px; }
.doc ul li { position: relative; padding-left: 22px; }
.doc ul li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: #bdb7cd; }
.doc strong { color: var(--ink); font-weight: 650; }
.doc a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #bdb7cd; overflow-wrap: anywhere; }
.doc a:hover { text-decoration-color: currentColor; }
.doc code { font: 500 .9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--mist); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.doc .facts dd { color: var(--ink); }
.doc-callout { padding: 20px 22px; background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); }
.doc-callout + h2 { margin-top: 40px; }

.table-wrap { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.doc-table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--mist); padding: 12px 16px; }
.doc-table td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.doc-table td:first-child { color: var(--ink); font-weight: 600; width: 34%; }
.nw { white-space: nowrap; }

/* ---------- 404 ---------- */
.nf { min-height: calc(100vh - 72px); display: grid; place-items: center; text-align: center; padding: 64px var(--gutter); }
.nf p { margin: 16px auto 32px; color: var(--body); max-width: 40ch; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .model-head { grid-template-columns: 1fr; }
  .model-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav a:not(.btn) { display: none; }
  .disc { grid-template-columns: 1fr; }
  .disc:nth-of-type(even) .disc-text { order: 0; }
  .panel { min-height: 300px; }
  .company { grid-template-columns: 1fr; }
  .legal-body { grid-template-columns: 1fr; gap: 36px; }
  .legal-side { position: static; }
  .legal-nav { display: flex; flex-wrap: wrap; gap: 8px; }
  .legal-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14.5px; }
  .legal-nav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
  .legal-nav a[aria-current="page"]::before { display: none; }
  .legal-ask { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .seq { padding: 16px 14px; }
  .seq-board { --row: 30px; --gap: 5px; column-gap: 10px; }
  .seq-grid i { border-radius: 7px; }
  .seq-head { border-radius: 10px; top: -5px; bottom: -5px; }
  .seq-names li { font-size: 12.5px; }
  .seq-phases li { font-size: 12.5px; }
  .seq-caption { font-size: 14px; }
  .steps { grid-template-columns: 1fr; }
  .model-list { grid-template-columns: 1fr; }
  .pill { font-size: 13px; padding: 6px 12px 6px 10px; gap: 8px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .pdp { grid-template-columns: 1fr 1fr; gap: 12px; }
  .msg:nth-child(2) { margin-left: 10px; }
  .msg:nth-child(3) { margin-left: 20px; }
  .msg:last-child { margin-left: 30px; }
  .foot-legal { flex-direction: column; }
  .foot-right { text-align: left; }
  .doc-table thead { display: none; }
  .doc-table, .doc-table tbody, .doc-table tr, .doc-table td { display: block; width: 100%; }
  .doc-table tr + tr { border-top: 1px solid var(--line); }
  .doc-table td { border-top: 0; padding: 4px 16px; }
  .doc-table td:first-child { width: 100%; padding-top: 16px; }
  .doc-table td:last-child { padding-bottom: 16px; color: var(--muted); font-size: 14px; }
}
