/* =========================================================================
   OXQ VLM — landing (vlm.oxequa.com, the front door)
   -------------------------------------------------------------------------
   Built from the Figma file "Website", frames "OXQ VLM · Conversione"
   at 1440 / 834 / 390. Measurements come from those frames; the three
   widths map to the default rules, the ≤1023px block and the ≤639px block.

   This is a marketing page, not a screen of the app: it has its own
   palette and does not load v2/tokens.css, whose accent is rewritten per
   tenant at runtime. Light only, like the design.
   ========================================================================= */

:root {
  color-scheme: light;

  --ink:      #0f0f12;
  --ink-2:    #4b4c53;
  --muted:    #7c7d85;
  --line:     #e6e6ea;
  --line-2:   #d8d8dd;
  --surface:  #f6f6f7;
  --chrome:   #fbfbfc;
  --red:      #ff224c;
  --red-dark: #e8103a;
  --red-ring: #fff0f3;
  --ok:       #22c55e;
  --ok-bg:    #e9f9ef;
  --ok-ink:   #137a3a;

  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shadow-red:  0 8px 20px rgba(224, 22, 63, .55), 0 1px 2px rgba(224, 22, 63, .25);
  --shadow-card: 0 10px 28px -14px rgba(15, 15, 18, .14), 0 1px 2px rgba(15, 15, 18, .04);

  --wrap: 1120px;
  --pad-x: 32px;
  --sec-y: 112px;
  --head-gap: 57px;
  --nav-h: 69px;
}

@media (max-width: 1023.98px) {
  :root { --sec-y: 88px; --head-gap: 45px; }
}
@media (max-width: 639.98px) {
  :root { --pad-x: 20px; --sec-y: 64px; --head-gap: 33px; --nav-h: 61px; }
}

/* ---------- base ---------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
strong, b { font-weight: 700; }
em { font-style: normal; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--pad-x));
  margin-inline: auto;
}

.ico15 { width: 15px; height: 15px; flex: none; }
.ico16 { width: 16px; height: 16px; flex: none; }
.ico20 { width: 20px; height: 20px; flex: none; }

/* ---------- type ---------------------------------------------------- */

.eyebrow {
  color: var(--red);
  font-size: 13px;
  line-height: 20.15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.h2 {
  font-size: 46px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.025em;
}
.eyebrow + .h2 { margin-top: 13.75px; }

.lead {
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.55;
}
.h2 + .lead { margin-top: 15.5px; }

.head--center { max-width: 682px; margin-inline: auto; text-align: center; }

@media (max-width: 1023.98px) {
  .h2 { font-size: 38px; }
}
@media (max-width: 639.98px) {
  .h2 { font-size: 30px; }
  .lead { font-size: 16.5px; }
}

/* ---------- buttons ------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 25px;
  border: 0;
  border-radius: 25px;
  font-size: 15.5px;
  line-height: 1;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.btn--red { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn--red:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn--line { background: #fff; color: var(--ink); border: 1px solid var(--line-2); padding: 0 24px; }
.btn--line:hover { border-color: var(--ink); }
.btn--dark { height: 40px; padding: 0 19px; border-radius: 20px; background: var(--ink); color: #fff; font-size: 14px; }
.btn--dark:hover { background: #2a2a31; }
.btn--block { display: flex; width: 100%; height: 52px; border-radius: 26px; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* ---------- nav ----------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; height: 68px; }
.nav__brand { display: flex; align-items: center; text-decoration: none; }
.nav__brand img { width: 155.3px; height: 22px; }
.nav__product {
  margin-left: 14px;
  padding-left: 13px;
  border-left: 1px solid var(--line-2);
  font-size: 15px;
  line-height: 23.2px;
  font-weight: 700;
}
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 23.25px;
  font-weight: 500;
  text-decoration: none;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta { margin-left: 32px; }

@media (max-width: 1023.98px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}
@media (max-width: 639.98px) {
  .nav__in { height: 60px; }
  .nav__product { display: none; }
}

/* ---------- hero ---------------------------------------------------- */

.hero { overflow-x: clip; }
.hero__in { display: flex; flex-direction: column; align-items: center; padding-top: 84px; text-align: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 16px 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 1px 2px rgba(15, 15, 18, .04);
  white-space: nowrap;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 var(--red-ring); }
.pill__name { font-size: 15.5px; line-height: 24px; font-weight: 800; letter-spacing: -.005em; }
.pill__tag { color: var(--ink-2); font-size: 13.5px; line-height: 21px; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .pill__dot { animation: pulse 2.4s ease-out infinite; }
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--red-ring); }
  60%  { box-shadow: 0 0 0 6px var(--red-ring); }
  100% { box-shadow: 0 0 0 6px rgba(255, 240, 243, 0); }
}

.hero__title {
  margin-top: 25.7px;
  font-size: 66px;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.03em;
}
.hero__title em { color: var(--red); }

.hero__lead {
  max-width: 722px;
  margin-top: 23.8px;
  color: var(--ink-2);
  font-size: 20px;
  line-height: 1.55;
}

.hero__cta { display: flex; gap: 12px; margin-top: 34.5px; }

.checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25.7px 26px;
  margin-top: 21.6px;
}
.checks li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 21.7px;
}

@media (max-width: 1023.98px) {
  .hero__in { padding-top: 64px; }
  .hero__title { margin-top: 26px; font-size: 50px; }
  .hero__lead { max-width: 650px; margin-top: 23px; font-size: 18px; }
  .hero__cta { margin-top: 35px; }
}
@media (max-width: 639.98px) {
  .hero__in { padding-top: 44px; }
  .pill { height: 32px; }
  .pill__name { font-size: 14px; line-height: 22px; }
  .pill__tag { font-size: 12.5px; line-height: 20px; }
  .hero__title { margin-top: 19.2px; font-size: 38px; }
  .br-wide { display: none; }
  .hero__lead { margin-top: 18.6px; font-size: 17px; }
  .hero__cta { flex-direction: column; align-self: stretch; margin-top: 25.9px; }
  .checks { flex-direction: column; align-self: stretch; gap: 7.7px; }
}

/* ---------- hero: product mock -------------------------------------- */
/* The app is laid out at its real size, 1120 × 605, and scaled as a whole
   (vlm.js sets --s). At full width the frame crops it at 580, as in the
   1440 design; narrower, the whole screen shows, as in the 834 and 390. */

.mock {
  --s: 1;
  position: relative;
  align-self: stretch;
  height: min(580px, calc(605px * var(--s)));
  margin-top: 64px;
  text-align: left;
  background: #fff;
  border-radius: calc(18px * var(--s)) calc(18px * var(--s)) 0 0;
  box-shadow: 0 30px 70px -24px rgba(15, 15, 18, .32), 0 2px 4px rgba(15, 15, 18, .05);
  isolation: isolate;
}
/* the red glow the frame sits in */
.mock::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -98px;
  left: 50%;
  width: 1300px;
  height: 640px;
  margin-left: -650px;
  background: radial-gradient(closest-side, rgba(255, 34, 76, .14), rgba(255, 34, 76, 0) 72%);
  pointer-events: none;
}
.mock__clip { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.mock::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-2);
  border-bottom: 0;
  border-radius: inherit;
  pointer-events: none;
}

@media (max-width: 1023.98px) {
  .mock { margin-top: 48px; }
  .mock::before { top: -171px; }
}
@media (max-width: 639.98px) {
  .mock { margin-top: 36px; }
  .mock::before { display: none; }
}

.app {
  position: absolute;
  left: 0;
  top: 0;
  width: 1120px;
  height: 605px;
  transform: scale(var(--s));
  transform-origin: 0 0;
  background: #fff;
  font-size: 13px;
  line-height: 19.5px;
  -webkit-user-select: none;
  user-select: none;
}
.app > * { position: absolute; }

.app__chrome {
  left: 1px; top: 1px; width: 1118px; height: 44px;
  display: flex; align-items: center; gap: 8px;
  padding-left: 16px;
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
}
.app__chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.app__url {
  width: 380px; height: 26px; margin-left: 14px; padding-left: 12px;
  border-radius: 7px; background: var(--surface);
  color: var(--muted); font-family: var(--mono); font-size: 11.5px; line-height: 26px;
}

.app__side {
  left: 1px; top: 45px; width: 216px; height: 560px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.app__side > * { position: absolute; }
.app__brand {
  left: 20px; top: 21.4px;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; line-height: 20.15px; font-weight: 800;
}
.app__chev { width: 18px; height: 11px; }
.app__menu { left: 12px; top: 59.1px; width: 191px; }
.app__menu li {
  display: flex; align-items: center; gap: 10px;
  height: 34px; margin-bottom: 3px; padding-left: 10px;
  border-radius: 8px;
  color: var(--ink-2); font-size: 13px; line-height: 20.15px; font-weight: 500;
}
.app__menu b { width: 9px; height: 9px; border-radius: 3px; background: var(--line-2); }
.app__menu .is-on { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); color: var(--ink); font-weight: 600; }
.app__menu .is-on b { background: var(--red); }
.app__foot { left: 22px; top: 525.1px; color: var(--muted); font-size: 12px; line-height: 18.6px; }

.app__top {
  left: 217px; top: 45px; width: 902px; height: 52px;
  display: flex; align-items: center; gap: 12px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}
.app__crumb { margin-right: auto; color: var(--muted); font-size: 12.5px; line-height: 19.375px; }
.app__crumb strong { color: var(--ink); font-weight: 600; }
.app__status {
  display: flex; align-items: center; gap: 7px;
  height: 26px; padding: 0 9px 0 10px; border-radius: 13px;
  background: var(--ok-bg); color: var(--ok-ink);
  font-size: 12px; line-height: 18.6px; font-weight: 600;
}
.app__status b { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.app__new {
  height: 30px; padding: 0 12px; border-radius: 7px;
  background: var(--ink); color: #fff;
  font-size: 12.5px; line-height: 30px; font-weight: 600;
}

.app__chat { left: 241px; top: 115px; width: 474px; display: flex; flex-direction: column; gap: 12px; }
.app__answer { width: 388.7px; }

.app__ask {
  left: 241px; top: 542.8px; width: 474px; height: 44.1px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12.6px 0 14px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 12px;
  color: var(--muted);
}
.app__ask kbd { font-family: var(--mono); font-size: 11px; }

.app__viewer {
  left: 739px; top: 97px; width: 380px; height: 508px;
  padding: 18px 20px 0;
  background: var(--chrome);
  border-left: 1px solid var(--line);
}
.app__vh {
  display: flex; justify-content: space-between;
  height: 28px;
  border-bottom: 1px solid var(--line);
  color: var(--muted); font-family: var(--mono); font-size: 11px; line-height: 17.05px;
}
.app__dw { margin-top: 14px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.app__found {
  display: flex; align-items: center; gap: 8px;
  margin-top: 7.7px;
  color: var(--ink-2); font-size: 12px; line-height: 18.6px;
}
.app__found b { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

/* ---------- chat bits (hero mock + cards) --------------------------- */

.bq {
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px 14px 4px 14px;
  font-size: 13px;
  line-height: 19.5px;
}
.bq--line { align-self: flex-end; white-space: nowrap; }

.ba {
  padding: 9.7px 13px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  font-size: 13px;
  line-height: 19.5px;
}
.ba p { font-size: inherit; line-height: inherit; color: var(--ink); }

.cite {
  display: inline-flex;
  align-items: center;
  height: 24.5px;
  margin-top: 8.3px;
  padding: 0 9px;
  background: #fff;
  border: 1px solid var(--red);
  border-radius: 12.25px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 16.5px;
  white-space: nowrap;
}
.cite--none { border-color: var(--line-2); color: var(--muted); }

.drawing { width: 100%; height: auto; }

/* ---------- stats --------------------------------------------------- */

/* above the hero mock, whose shadow would otherwise fall on the numbers */
.stats { position: relative; z-index: 1; background: var(--surface); border-block: 1px solid var(--line); }
.stats__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { position: relative; padding: 36px 22px 37px 29px; }
.stat:first-child { padding-left: 0; }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 36px; bottom: 37px;
  width: 1px;
  background: var(--line);
}
.stat dt { font-size: 32px; line-height: 32px; font-weight: 800; letter-spacing: -.025em; white-space: nowrap; }
.stat dd { margin-top: 8.4px; color: var(--ink-2); font-size: 14.5px; line-height: 21.025px; }

@media (max-width: 1023.98px) {
  .stats__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat, .stat:first-child { padding: 26px 22px 25.5px 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 29px; border-left: 1px solid var(--line); }
  .stat + .stat::before { display: none; }
  .stat dt { font-size: 28px; line-height: 28px; }
}
@media (max-width: 639.98px) {
  .stats__in { grid-template-columns: minmax(0, 1fr); }
  .stat, .stat:first-child, .stat:nth-child(even) { padding: 20px 0; border-left: 0; }
  .stat:not(:last-child) { border-bottom: 1px solid var(--line); }
  .stat dt { font-size: 26px; line-height: 26px; }
}

/* ---------- sections ------------------------------------------------ */

.sec { padding: calc(var(--sec-y) - .6px) 0 var(--sec-y); }
.sec--flush-top { padding-top: 0; }

/* ---------- perché: cards ------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: var(--head-gap);
}
.card--wide { grid-column: span 2; }
.card--wide:last-child { grid-column: 2 / span 2; }

.card {
  display: flex;
  flex-direction: column;
  padding: 27px 28px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}
.card > h3 { font-size: 21px; line-height: 32.55px; font-weight: 700; letter-spacing: -.01em; }
.card > p { margin: 6.2px 0 22.6px; color: var(--ink-2); font-size: 15.5px; line-height: 24.025px; }

.fig {
  margin-top: auto;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.fig--split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fig--stack, .fig__col { display: flex; flex-direction: column; gap: 8px; }
.fig--gap10 { gap: 10px; }

.dwbox { padding: 10px; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; }

.docbar {
  display: flex; align-items: center; justify-content: space-between;
  height: 35.8px; padding: 0 10px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 8px;
  font-size: 11.5px; line-height: 17.825px;
}
.docbar span:first-child { font-family: var(--mono); }
.docbar span:last-child { color: var(--muted); }

.gloss__head {
  display: flex; gap: 10.5px;
  padding: 8.9px 0 12.1px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono); font-size: 10.5px; line-height: 16.275px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.gloss__row {
  display: grid;
  grid-template-columns: 42.3% minmax(0, 1fr);
  align-items: center;
  min-height: 43px;
  padding: 8.5px 0;
  border-bottom: 1px solid var(--line);
}
.gloss__row:last-child { border-bottom: 0; }
.gloss__term { padding-right: 10px; font-size: 13px; line-height: 20.15px; font-weight: 600; }
.chips { display: flex; gap: 6px; }
.chip {
  height: 24px; padding: 0 8px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 6px;
  font-size: 12px; line-height: 22px; white-space: nowrap;
}

.snip {
  display: flex; flex-direction: column;
  padding: 9.6px 11px 10px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--muted); font-family: var(--mono); font-size: 11.5px; line-height: 17.825px;
}
.snip em { color: var(--red); }

@media (max-width: 1023.98px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .card--wide, .card--wide:last-child { grid-column: 1 / -1; }
  .card { padding: 23px 24px 24px; }
}
@media (max-width: 639.98px) {
  .cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .card { padding: 19.7px 20px 20px; }
  .card > h3 { font-size: 19px; line-height: 29.45px; }
  .card > p { margin-top: 5.5px; margin-bottom: 18.5px; }
  .fig--split { grid-template-columns: minmax(0, 1fr); }
  .fig--split > .ba { align-self: start; }
}

/* ---------- come funziona ------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: var(--head-gap);
}
.step__dot { display: block; width: 20px; height: 20px; border-radius: 50%; background: var(--red); }
.step__num {
  display: block;
  margin-top: 11.3px;
  color: var(--red);
  font-family: var(--mono); font-size: 12.5px; line-height: 19.375px; font-weight: 500; letter-spacing: .08em;
}
.step h3 { margin-top: 8.1px; font-size: 22px; line-height: 34.1px; font-weight: 700; letter-spacing: -.01em; }
.step p { max-width: 354px; margin-top: 9.7px; color: var(--ink-2); font-size: 16px; line-height: 24.8px; }
.meta {
  display: inline-flex; align-items: center;
  height: 34.1px; margin-top: 16.9px; padding: 0 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 7px;
  color: var(--ink-2); font-size: 13px; line-height: 20.15px; font-weight: 600;
}

@media (max-width: 1023.98px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 35.4px; }
  .step { display: grid; grid-template-columns: 20px minmax(0, 386px); column-gap: 24px; }
  .step__dot { margin-top: 2.7px; }
  .step__num { margin-top: 0; }
  .step p { max-width: none; }
}
@media (max-width: 639.98px) {
  .step { grid-template-columns: 20px minmax(0, 1fr); }
  .step h3 { font-size: 20px; line-height: 31px; }
}

/* ---------- demo ---------------------------------------------------- */

.demo { padding: 104px 0; background: #000; color: #fff; }
.demo__in {
  display: grid;
  grid-template-columns: minmax(0, 580fr) minmax(0, 460fr);
  column-gap: 80px;
  align-items: start;
}
.demo .h2 { max-width: 582px; }
.demo .lead { max-width: 542px; margin-top: 17.8px; color: rgba(255, 255, 255, .72); }

.demo__list { display: flex; flex-direction: column; gap: 12px; margin-top: 28.1px; }
.demo__list li {
  display: flex; align-items: flex-start; gap: 12px;
  color: rgba(255, 255, 255, .9);
  font-size: 16px; line-height: 24.8px;
}
.demo__list .ico20 { margin-top: 2.9px; }

.demo__ref {
  display: flex; align-items: center; gap: 22px;
  margin-top: 37px; padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.demo__ref img { width: 176px; height: 176px; margin: 0 0 -12px -14px; object-fit: cover; mix-blend-mode: screen; flex: none; }
.demo__ref-title { font-size: 16px; line-height: 24px; font-weight: 600; }
.demo__ref-text { max-width: 398px; margin-top: 2.2px; color: rgba(255, 255, 255, .7); font-size: 15px; line-height: 22.5px; }

@media (max-width: 1023.98px) {
  .br-desk { display: none; }
  .demo { padding: 80px 0; }
  .demo__in { grid-template-columns: minmax(0, 1fr); }
  .demo .h2 { max-width: none; }
  .demo .form { margin-top: 48px; }
}
@media (max-width: 639.98px) {
  .demo { padding: 64px 0; }
  .demo .lead { margin-top: 17.4px; }
  .demo__ref { gap: 14px; padding-top: 17.7px; }
  .demo__ref img { width: 132px; height: 132px; margin: 0 0 -7px -10px; }
  .demo .form { margin-top: 36px; }
}

/* ---------- forms --------------------------------------------------- */

.form {
  padding: 31.5px 32px 32px;
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}
.form__title { font-size: 20px; line-height: 31px; font-weight: 700; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13.5px 12px; margin-top: 13.4px; }
.field { display: flex; flex-direction: column; gap: 6.55px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field__label { color: var(--ink-2); font-size: 13px; line-height: 20.15px; font-weight: 600; }
.field__opt { color: var(--muted); font-weight: 400; }

.form input[type="text"], .form input[type="email"], .form input[type="tel"], .bro input[type="email"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--ink);
  font-size: 15px;
  line-height: 23.25px;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: var(--muted); opacity: 1; }
input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 15, 18, .08); }
input[aria-invalid="true"] { border-color: var(--red); }

.consent {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 17px;
  color: var(--ink-2); font-size: 13px; line-height: 18.85px;
  cursor: pointer;
}
.consent a { color: inherit; }
.consent input {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 18px; height: 18px; margin: 1px 0 0;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  cursor: pointer;
}
.consent input:checked {
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  border-color: var(--red);
}
.consent input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.consent input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-ring); }
.consent--sm { margin-top: 13px; font-size: 12.5px; line-height: 18.125px; }

.form .btn--block { margin-top: 18.9px; }

/* honeypot: out of sight and out of the tab order, still in the form */
.lead-form input.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form__msg { margin-top: 12px; color: #c8102e; font-size: 13px; line-height: 18.85px; font-weight: 600; }
.form__done-title { font-size: 20px; line-height: 31px; font-weight: 700; }
.form__done p:not(.form__done-title) { margin-top: 4px; color: var(--ink-2); font-size: 15px; line-height: 22.5px; }
.form__done a { color: var(--ink); font-weight: 600; }
.lead-form { position: relative; }
.lead-form.is-done > :not(.form__done):not(.bro__copy):not(.bro__fields),
.lead-form.is-done .bro__fields > :not(.form__done) { display: none; }

@media (max-width: 639.98px) {
  .form { padding: 21.5px 22px 22px; }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- faq ----------------------------------------------------- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 435.3fr) minmax(0, 606.7fr);
  column-gap: 78px;
  align-items: start;
}

.acc { margin-top: .6px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 21.1px 0 22.9px;
  font-size: 18px; line-height: 27.9px; font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--red); }
.acc details[open] summary { padding-bottom: 9.9px; }
.acc summary i { position: relative; flex: none; width: 18px; height: 18px; }
.acc summary i::before, .acc summary i::after {
  content: "";
  position: absolute;
  left: 3px; top: 8px;
  width: 12px; height: 2px;
  border-radius: 1px;
  background: var(--muted);
  transition: transform .2s;
}
.acc summary i::after { transform: rotate(90deg); }
.acc details[open] summary i::after { transform: rotate(0deg); }
.acc details p { max-width: 642px; padding-bottom: 23px; color: var(--ink-2); font-size: 16px; line-height: 24.8px; }

@media (max-width: 1023.98px) {
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq .head { max-width: 682px; }
  .acc { margin-top: 41px; }
}

/* ---------- final --------------------------------------------------- */

.final { padding-bottom: 112px; }
.final__box {
  display: flex; flex-direction: column; align-items: center;
  padding: 71.2px 40px 72px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  text-align: center;
}
.final__box .lead { margin-top: 13.8px; }
.final__box > .btn { margin-top: 29px; }

.bro {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  column-gap: 30px;
  width: 100%;
  max-width: 760px;
  margin-top: 40px;
  padding-top: 36.8px;
  border-top: 1px solid var(--line-2);
  text-align: left;
}
.bro__title { font-size: 19px; line-height: 29.45px; font-weight: 800; }
.bro__copy p { margin-top: 5.95px; color: var(--ink-2); font-size: 15px; line-height: 22.5px; }
.bro__row { display: flex; align-items: flex-start; gap: 10px; }
.bro__row input { flex: 1; min-width: 0; }

@media (max-width: 1023.98px) {
  .final__box { padding: 55.5px 32px 56px; }
  .bro { grid-template-columns: minmax(0, 1fr); max-width: 560px; padding-top: 36.7px; }
  .bro__copy p { margin-top: 5.5px; }
  .bro__fields { margin-top: 17.7px; }
  .bro__row .btn { flex: 0 0 209.8px; }
}
@media (max-width: 639.98px) {
  .final { padding-bottom: 64px; }
  .final__box { padding: 39.8px 20px 40px; }
  .final__box .lead { font-size: 18px; }
  .final__box > .btn { align-self: stretch; }
  .bro { margin-top: 32.4px; padding-top: 28.8px; }
  .bro__copy p { margin-top: 5.4px; }
  .bro__fields { margin-top: 18.3px; }
  .bro__row { flex-direction: column; align-items: stretch; gap: 8px; }
  .bro__row input, .bro__row .btn { flex: none; }
}

/* ---------- footer -------------------------------------------------- */

.ftr { border-top: 1px solid var(--line); }
.ftr__in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px 40px;
  padding: 36.6px 0 44.4px;
  font-size: 13.5px; line-height: 20.925px;
}
.ftr__brand { display: flex; align-items: center; gap: 16px; color: var(--muted); }
.ftr__brand img { width: 127px; height: 18px; flex: none; }
.ftr__links { display: flex; flex-wrap: wrap; gap: 13.9px 22px; }
.ftr__links a { color: var(--ink-2); font-weight: 500; text-decoration: none; }
.ftr__links a:hover { color: var(--ink); }
.ftr__tag { font-weight: 600; letter-spacing: .02em; }
.ftr__tag b { color: var(--red); font-weight: 900; }

@media (max-width: 1199.98px) {
  .ftr__brand { flex-basis: 100%; }
}
@media (max-width: 639.98px) {
  .ftr__in { flex-direction: column; align-items: flex-start; gap: 17.9px; }
  .ftr__brand { flex-basis: auto; }
  .ftr__links { gap: 13.9px 14px; }
}
