/* Deformable — dfrmbl.com · "Tech pack" */

:root {
  --paper: #FFFFFF;
  --brand-blue: #1534C8;
  --brand-green: #3CF27E;
  --green-dark: #2CDB6C;
  --ink: #0B0B0F;
  --muted: #5B5F6B;
  --rule: rgba(11, 11, 15, .12);
  --rule-strong: rgba(11, 11, 15, .28);
  --defect: #FF4A3D;
  --defect-text: #D42A1E;
  --fix: #FFB800;
  --grid-dot: rgba(21, 52, 200, .16);

  --max: 1200px;
  --gutter: 16px;
  --sec: 80px;
  --nav-h: 56px;
  --r: 4px;

  --display: "Unbounded", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ol, pre { margin: 0; }
ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand-green); outline-offset: 3px; border-radius: 2px; }
.paper :focus-visible, .modal :focus-visible, .sec :focus-visible, .foot :focus-visible { outline-color: var(--brand-blue); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r); text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* Pattern-paper dot grid, drifts at 0.1 of the scroll speed */
.sheet {
  position: fixed;
  inset: -24px 0 0 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1.4px);
  background-size: 24px 24px;
  will-change: transform;
}

/* ---------- Type ---------- */
h1 {
  font: 500 36px/1.1 var(--display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 {
  font: 500 28px/1.14 var(--display);
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 22ch;
}
h3 { font: 500 19px/1.3 var(--sans); letter-spacing: -0.01em; }
.kicker, .stamp, .sh__num, .tag, .spec__head, .facts__cap, .paper__head, .foot__h {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.kicker { color: var(--brand-blue); margin-bottom: 20px; }
.kicker--light { color: rgba(255,255,255,.78); }
.lead { margin-top: 24px; max-width: 56ch; color: rgba(255,255,255,.8); }
.body { margin-top: 24px; max-width: 62ch; color: var(--muted); }
.caption { margin-top: 16px; font: 400 12px/1.5 var(--mono); color: var(--muted); }

.stamp {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 11px;
  white-space: nowrap;
}
.stamp--light { color: rgba(255,255,255,.72); }

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  font-size: 10.5px;
  color: var(--muted);
  vertical-align: middle;
  white-space: nowrap;
}
.tag--green { background: var(--brand-green); border-color: var(--brand-green); color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: 500 16px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn .arr { display: inline-block; transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--green { background: var(--brand-green); color: var(--ink); }
.btn--green:hover { background: var(--green-dark); }
.btn--line-light { border-color: #fff; color: #fff; }
.btn--line-light:hover { background: rgba(255,255,255,.1); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: rgba(11,11,15,.05); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--sm::after { content: ""; position: absolute; inset: -2px 0; }
.btn--block { width: 100%; }
.actions { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }

/* ---------- Logo ---------- */
.logo svg { overflow: visible; height: 100%; width: auto; }
.logo use { fill: currentColor; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  background: var(--brand-blue);
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.nav.is-light {
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  color: var(--ink);
  border-bottom-color: var(--rule);
}
.nav__in { height: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 8px 0 var(--gutter); display: flex; align-items: center; gap: 12px; }
.nav__logo { display: block; height: 15px; margin-right: auto; }
.nav__links, .nav__expert { display: none; }
.nav__cta { display: flex; align-items: center; gap: 4px; }
.nav__menu { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r); }
.nav__menu svg, .menu__close svg, .modal__close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

.menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--brand-blue);
  background-image: radial-gradient(circle, rgba(255,255,255,.12) 1px, transparent 1.4px);
  background-size: 24px 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 72px 24px calc(28px + env(safe-area-inset-bottom));
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu__close { position: absolute; top: 6px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; }
.menu__nav { display: flex; flex-direction: column; gap: 6px; margin-bottom: auto; }
.menu__nav a { font: 500 30px/1.25 var(--display); letter-spacing: -0.02em; text-decoration: none; padding: 6px 0; }
.menu__foot { display: grid; gap: 12px; }

.dock {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
  transform: translateY(160%);
  transition: transform .35s var(--ease);
}
.dock.is-on { transform: none; }
.dock .btn { box-shadow: 0 8px 24px rgba(11,11,15,.2); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background-color: var(--brand-blue);
  background-image: radial-gradient(circle, rgba(255,255,255,.12) 1px, transparent 1.4px);
  background-size: 24px 24px;
  color: #fff;
  padding: 24px 0 64px;
}
.hero__grid { display: grid; gap: 40px; }
.hero__stamp { justify-self: end; margin-bottom: -16px; }
.hero h1 { max-width: 15ch; }

/* ---------- Spec sheet (figure frame) + flats ---------- */
.spec {
  --flat-bg: var(--paper);
  color: var(--brand-blue);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r);
  background: var(--paper);
}
.spec--hero { --flat-bg: var(--brand-blue); color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
.spec__head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid currentColor; font-size: 10.5px; }
.spec__head { border-bottom-color: color-mix(in srgb, currentColor 30%, transparent); }
.spec__head span:last-child { opacity: .7; }

.flat { width: 100%; height: auto; padding: 6px 8px 0; }
.flat .ol { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.flat .sm { fill: none; stroke: currentColor; stroke-width: 1; stroke-dasharray: 4 4; opacity: .7; }
.flat .cf { fill: none; stroke: currentColor; stroke-width: .9; stroke-dasharray: 14 4 2 4; opacity: .4; }
.flat .pt { stroke: var(--flat-bg); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; }
.flat .pt--bad { fill: var(--defect); }
.flat .pt--ok { fill: var(--brand-green); }
.flat .pt--muted { fill: #9AA0AD; }
.flat .lead-l { fill: none; stroke: currentColor; stroke-width: 1; }
.flat .lead-l--muted { stroke: #9AA0AD; }
.flat .co circle { fill: var(--flat-bg); stroke: currentColor; stroke-width: 1.2; }
.flat .co text, .flat .dim text, .flat .ts { font: 500 12px var(--mono); fill: currentColor; text-anchor: middle; }
.flat .dim path { fill: none; stroke: currentColor; stroke-width: 1; }
.flat .dim .ah { fill: currentColor; stroke: none; }
.flat .off { fill: none; stroke: var(--defect); stroke-width: 1.6; stroke-dasharray: 5 4; }
.flat .link { fill: none; stroke: var(--defect); stroke-width: 1.2; stroke-dasharray: 3 5; opacity: .6; }
.flat .ts--bad { fill: var(--defect-text); }
.flat .ts--muted { fill: #7A808C; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 4px 14px 14px; font: 500 12px/1.4 var(--mono); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend .n { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; }
.legend b { font-weight: 600; }
.legend .x { color: var(--defect); }
.legend .v { color: #12A150; }
.spec--hero .legend .v { color: var(--brand-green); }
.spec:not(.spec--hero) .legend { color: var(--ink); }
.spec:not(.spec--hero) .legend .n { color: var(--brand-blue); }
.spec:not(.spec--hero) .legend .x { color: var(--defect-text); }

.verdict {
  margin: 0 14px 14px;
  padding: 12px 0 0;
  border-top: 1px dashed rgba(255,255,255,.35);
  font: 400 12px/1.6 var(--mono);
  min-height: 72px;
}
.verdict__line { position: relative; }
.verdict__line--hi { color: var(--fix); font-weight: 500; }
.js .verdict .t { visibility: hidden; }
.verdict .typed { position: absolute; inset: 0 0 auto 0; visibility: visible; }
.caret { display: inline-block; width: .6em; height: 1.1em; margin-left: 1px; vertical-align: -2px; background: currentColor; }

/* Flat build-up states (set by JS). Without JS everything is visible. */
.js [data-flat] .ol { transition: stroke-dashoffset 1.2s var(--ease); }
.js [data-flat]:not(.is-drawn) .ol { stroke-dashoffset: 1; }
.js [data-flat] .sm, .js [data-flat] .cf { transition: opacity .5s .9s var(--ease); }
.js [data-flat]:not(.is-drawn) .sm, .js [data-flat]:not(.is-drawn) .cf { opacity: 0; }
.js [data-flat] .k { opacity: 0; transition: opacity .35s var(--ease); }
.js [data-flat] .k .pt { transform: scale(.2); transition: transform .45s var(--ease); }
.js [data-flat].s1 .k1, .js [data-flat].s2 .k2, .js [data-flat].s3 .k3, .js [data-flat].s4 .k4 { opacity: 1; }
.js [data-flat].s1 .k1 .pt, .js [data-flat].s3 .k3 .pt { transform: none; }
.js [data-flat].is-reset, .js [data-flat].is-reset * { transition: none !important; }
.js .review__flat:not(.s1) .m-tech, .js .review__flat:not(.s1) .m-ai { opacity: 0; }
.js [data-flat].is-fading .flat, .js [data-flat].is-fading .legend, .js [data-flat].is-fading .verdict { opacity: 0; transition: opacity .35s var(--ease); }

/* ---------- Facts (tolerance table) ---------- */
.facts-sec { padding-top: 56px; }
.facts { border: 1px solid var(--rule-strong); border-radius: var(--r); background: var(--paper); }
.facts__cap { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--rule-strong); font-size: 10.5px; color: var(--muted); }
.facts__grid { display: grid; grid-template-columns: 1fr 1fr; }
.fact { padding: 18px 14px 20px; border-bottom: 1px solid var(--rule); }
.fact:nth-child(odd) { border-right: 1px solid var(--rule); }
.fact:nth-child(n+3) { border-bottom: 0; }
.fact dt { font: 500 26px/1.1 var(--display); letter-spacing: -0.02em; color: var(--brand-blue); white-space: nowrap; }
.fact [data-count] { display: inline-block; min-width: var(--w, 1ch); text-align: right; font-variant-numeric: tabular-nums; }
.fact dd { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* ---------- Sections ---------- */
.sec { padding-top: var(--sec); }
.sh { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.sh__num { color: var(--brand-blue); white-space: nowrap; position: relative; }
.sh__num .typed { position: absolute; inset: 0; visibility: visible; }
.js .sh__num .t { visibility: hidden; }
.dim { position: relative; flex: 1; height: 1px; background: color-mix(in srgb, var(--brand-blue) 55%, transparent); }
.dim::before, .dim::after { content: ""; position: absolute; top: -3.5px; border: 4px solid transparent; }
.dim::before { left: 0; border-right-color: var(--brand-blue); border-left-width: 0; border-right-width: 7px; }
.dim::after { right: 0; border-left-color: var(--brand-blue); border-right-width: 0; border-left-width: 7px; }
.js .sh .dim { transform: scaleX(0); transition: transform .3s .15s var(--ease); }
.js .sh.is-in .dim { transform: none; }

.split { display: grid; gap: 40px; }

/* Product: three graphs of a spec sheet */
.cols3 { display: grid; margin-top: 40px; border-top: 1px solid var(--rule-strong); }
.col { padding: 28px 0; border-bottom: 1px solid var(--rule); }
.col p { margin-top: 10px; color: var(--muted); }
.col h3 .tag { margin-left: 8px; position: relative; top: -2px; }
.col__art { height: 196px; margin-bottom: 20px; display: flex; align-items: center; }
.col__art--doc { flex-direction: column; align-items: stretch; justify-content: center; gap: 5px; max-width: 330px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--brand-blue) 45%, transparent); border-radius: var(--r); background: var(--paper); font: 400 10.5px/1.4 var(--mono); }
.doc__h { font-weight: 500; color: var(--brand-blue); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.doc__l { display: flex; gap: 8px; align-items: baseline; }
.doc__l span { flex: none; display: inline-grid; place-items: center; width: 15px; height: 15px; border: 1px solid var(--brand-blue); border-radius: 50%; font-size: 9px; color: var(--brand-blue); }
.doc__d { margin-top: 4px; padding-top: 6px; border-top: 1px dashed var(--rule-strong); color: var(--defect-text); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.tline { width: 100%; max-width: 320px; overflow: visible; }
.tline text { font: 500 10px var(--mono); fill: var(--muted); letter-spacing: .06em; }
.tline__base { stroke: var(--rule-strong); stroke-width: 2; }
.tline__ok { stroke: #19B85A; stroke-width: 3; }
.tline__bad { stroke: var(--defect); stroke-width: 3; }
.tline__head { stroke: var(--ink); stroke-width: 1.5; }
.tline__knob { fill: var(--ink); }
.col__art--code { align-items: center; }
.col__art--code pre { font: 400 12px/1.65 var(--mono); color: var(--ink); white-space: pre; }
.col__art--code b { font-weight: 400; color: var(--muted); }
.col__art--code i { font-style: normal; color: var(--brand-blue); }

/* Services: spec rows */
.spec-rows { margin-top: 40px; border-top: 1px solid var(--rule-strong); }
.row { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.row__n { grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--brand-blue); border-radius: 50%; font: 500 11px var(--mono); color: var(--brand-blue); }
.row__t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 32px; }
.row__d { margin-top: 8px; color: var(--muted); }
.pricing { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.pricing p { font-weight: 500; }

/* Sample review */
.review { display: grid; gap: 24px; margin-top: 40px; }
.review__flat .m-tech, .review__flat .m-ai { transition: opacity .3s var(--ease); }
.review[data-mode="tech"] .m-ai, .review[data-mode="ai"] .m-tech { opacity: 0; }
.rtl { padding: 6px 16px 18px; }
.rtl__track { position: relative; height: 16px; }
.rtl__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--rule-strong); }
.rtl__m { position: absolute; top: 1px; width: 3px; height: 14px; margin-left: -1.5px; border-radius: 2px; background: var(--defect); transition: background-color .3s var(--ease), opacity .3s var(--ease); }
.review[data-mode="ai"] .rtl__m { background: #9AA0AD; }
.review[data-mode="ai"] .rtl__m--t, .review[data-mode="ai"] .rtl__t { opacity: 0; }
.rtl__lab { position: relative; height: 16px; margin-top: 6px; font: 500 10.5px var(--mono); color: var(--muted); }
.rtl__lab span { position: absolute; transform: translateX(-50%); transition: opacity .3s var(--ease); }

.switch { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--brand-blue); border-radius: 6px; background: var(--paper); }
.switch button { min-height: 44px; border-radius: 4px; font: 500 15px var(--sans); color: var(--brand-blue); transition: background-color .2s var(--ease), color .2s var(--ease); }
.switch button[aria-pressed="true"] { background: var(--brand-blue); color: #fff; }
.answer { margin-top: 20px; }
.answer__who { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--rule-strong); }
.answer dl > div { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 1.5; }
.answer dt { font: 500 12px/1.7 var(--mono); color: var(--brand-blue); }
.answer--tech dl > div:not(.answer__v) dt { color: var(--defect-text); }
.answer__v dt { color: var(--ink); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.answer__v dd { font-weight: 500; }
.answer--ai .answer__v dd { color: var(--muted); }
.answer.is-swap { animation: swap .35s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Research */
.paper { margin-top: 40px; border: 1px solid var(--rule-strong); border-radius: var(--r); background: var(--paper); }
.paper__head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--rule-strong); font-size: 10.5px; color: var(--brand-blue); }
.paper__body { display: grid; gap: 32px; padding: 20px 16px 24px; }
.paper h3 { font: 500 20px/1.25 var(--display); letter-spacing: -0.02em; }
.paper__body > div > p { margin-top: 14px; color: var(--muted); }
.bt { width: 100%; margin-top: 24px; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.bt th, .bt td { text-align: left; vertical-align: top; padding: 12px 8px 12px 0; border-top: 1px solid var(--rule); }
.bt thead th { border-top: 0; padding-top: 0; font: 500 10.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bt tbody th { font-weight: 400; color: var(--muted); width: 42%; }
.bt td { font: 500 14px/1.35 var(--mono); }
.bt td:nth-child(2) { color: var(--brand-blue); }
.miss { position: relative; display: inline-block; }
.miss::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--defect); transform-origin: left; }
.js .bt .miss::after { transform: scaleX(0); transition: transform .35s .35s var(--ease); }
.js .paper.is-in .miss::after { transform: none; }
.paper__img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: #EEF0F5; }
.paper__img img { width: 100%; height: 100%; object-fit: cover; }
.flag { position: absolute; left: 10px; top: 10px; max-width: calc(100% - 20px); padding: 5px 8px; border-radius: 3px; font: 500 10.5px/1.2 var(--mono); letter-spacing: .04em; color: var(--ink); }
.flag--bad { background: var(--defect); }
.paper__fig figcaption { margin-top: 10px; font: 400 11px/1.4 var(--mono); color: var(--muted); }

/* Final */
.final {
  margin-top: var(--sec);
  background-color: var(--brand-blue);
  background-image: radial-gradient(circle, rgba(255,255,255,.14) 1px, transparent 1.4px);
  background-size: 24px 24px;
  color: #fff;
  padding: 72px 0;
}
.final h2 { font-size: 30px; max-width: 16ch; }
.final__grid { display: grid; gap: 48px; align-items: center; }
.final__logo { height: 44px; color: var(--brand-green); }

/* Footer */
.foot { padding: 48px 0 calc(28px + env(safe-area-inset-bottom)); background: var(--paper); }
.foot__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.foot__logo { display: block; height: 18px; color: var(--ink); }
.foot .stamp { color: var(--brand-blue); }
.foot__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; padding: 28px 0; }
.foot__cols > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.foot__h { color: var(--muted); font-size: 10.5px; margin-bottom: 6px; }
.foot__cols a, .foot__cols button { min-height: 32px; display: inline-flex; align-items: center; text-decoration: none; font-size: 15px; }
.foot__cols a:hover, .foot__cols button:hover { color: var(--brand-blue); }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 20px; border-top: 1px solid var(--rule); font: 400 12px/1.5 var(--mono); color: var(--muted); }

/* ---------- Contact form (dialog) ---------- */
.modal {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}
.modal::backdrop { background: rgba(11, 11, 15, .55); }
.modal[open] { animation: modal-in .25s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal__in { padding: 12px 16px calc(32px + env(safe-area-inset-bottom)); }
.modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal .stamp { color: var(--brand-blue); }
.modal__close { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -10px; }
.modal h2 { font-size: 24px; }
.tabs { display: flex; gap: 4px; margin: 20px calc(-1 * 16px) 0; padding: 0 16px; border-bottom: 1px solid var(--rule-strong); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; min-height: 44px; padding: 0 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; font: 500 14px var(--sans); color: var(--muted); white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--brand-blue); border-bottom-color: var(--brand-blue); }
.form { display: grid; gap: 16px; margin-top: 24px; }
.form[hidden] { display: none; }
.f2 { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span, .checks legend { font: 500 13px/1.3 var(--sans); }
.field em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; }
.field input:not([type=checkbox]), .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(11,11,15,.22);
  border-radius: var(--r);
  background: #fff;
  font: 400 16px/1.4 var(--sans);
  color: var(--ink);
  appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field textarea { resize: vertical; }
.field input:not([type=checkbox]):focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(21,52,200,.15); }
.was-validated .field :invalid { border-color: var(--defect); }
.field--short { max-width: 200px; }
.checks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; column-gap: 20px; }
.checks legend { padding: 0; margin-bottom: 4px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; cursor: pointer; }
.checks input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand-blue); }
.form .btn { justify-self: start; margin-top: 4px; }
.form__err { margin-top: 16px; padding: 10px 12px; border-left: 3px solid var(--defect); background: #FFF1F0; font-size: 14px; }
.form__done { margin-top: 32px; display: grid; gap: 20px; justify-items: start; }
.form__ok { font: 500 20px/1.35 var(--display); letter-spacing: -0.01em; color: var(--brand-blue); }

/* ---------- Reveal + typing ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .4s var(--ease), transform .4s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =================================================================== */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .actions { flex-direction: row; flex-wrap: wrap; }
  .f2 { grid-template-columns: 1fr 1fr; }
  .pricing { flex-direction: row; align-items: center; justify-content: space-between; }
  .flat { padding: 8px 20px 0; }
  .legend, .verdict { margin-left: 20px; margin-right: 20px; padding-left: 0; padding-right: 0; }
  .modal { width: min(640px, calc(100% - 48px)); height: fit-content; max-height: calc(100% - 48px); margin: auto; border-radius: 6px; }
  .modal__in { padding: 20px 32px 32px; }
  .tabs { margin: 20px -32px 0; padding: 0 32px; }
  .final h2 { font-size: 36px; }
  .paper__body { padding: 28px 28px 32px; }
  .paper__head { padding: 10px 28px; }
}

@media (min-width: 900px) {
  :root { --sec: 128px; }
  .facts__grid { grid-template-columns: repeat(4, 1fr); }
  .fact { border-bottom: 0; border-right: 1px solid var(--rule); padding: 22px 20px 24px; }
  .fact:last-child { border-right: 0; }
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
  .cols3 { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--rule); }
  .col { padding: 32px 28px 36px; border-bottom: 0; }
  .col + .col { border-left: 1px solid var(--rule-strong); }
  .col:first-child { padding-left: 0; }
  .col:last-child { padding-right: 0; }
  .row { grid-template-columns: 64px minmax(0, 4fr) minmax(0, 7fr); column-gap: 24px; padding: 26px 0; align-items: start; }
  .row__n { grid-row: auto; }
  .row__d { margin-top: 2px; }
  .review { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
  .answer dl > div { font-size: 15px; }
  .paper__body { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; }
  .final__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .final__logo { height: auto; }
  .final__logo svg { width: 100%; height: auto; }
  .foot__cols { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  :root { --nav-h: 72px; --gutter: 40px; }
  body { font-size: 17px; }
  .dock, .nav__menu, .menu { display: none !important; }
  .nav__in { padding-right: var(--gutter); gap: 32px; }
  .nav__logo { height: 19px; margin-right: 0; }
  .nav__links { display: flex; gap: 28px; margin: 0 auto; font-size: 15px; }
  .nav__links a { text-decoration: none; opacity: .85; transition: opacity .2s var(--ease); }
  .nav__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
  .nav__expert { display: inline-flex; align-items: center; min-height: 40px; padding: 0 8px; font-size: 15px; font-weight: 500; }
  .nav__expert:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
  .nav__cta { gap: 12px; }

  .hero { padding: 40px 0 112px; }
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 0; align-items: center; }
  .hero__stamp { grid-column: 1 / -1; margin-bottom: 40px; }
  .hero__text { grid-column: 1 / span 6; }
  .spec--hero { grid-column: 7 / span 6; }
  h1 { font-size: clamp(42px, 4.1vw, 58px); }
  h2 { font-size: clamp(32px, 3.1vw, 44px); }
  .lead { font-size: 18px; }
  .facts-sec { padding-top: 80px; }
  .fact dt { font-size: 36px; }
  .fact dd { font-size: 15px; }
  .final { padding: 120px 0; }
  .final h2 { font-size: clamp(36px, 3.6vw, 52px); }
  .foot__cols { grid-template-columns: repeat(3, minmax(0, 220px)); }
}

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