/* ==========================================================================
   Markvero — design system
   Ultramarine acts. Green receives. Nothing decorative uses either.
   ========================================================================== */

:root {
  /* Surfaces */
  --paper: #ffffff;
  --mist: #f4f6fa;
  --fog: #eaeef5;
  --line: #dce2ec;
  --line-strong: #c3cbd9;

  /* Ink */
  --ink: #0e1116;
  --ink-70: #3b4250;
  --ink-50: #6a7383;
  --ink-30: #99a1b0;

  /* Act */
  --accent: #2b4bff;
  --accent-deep: #1a34d1;
  --accent-tint: #eef1ff;

  /* Received */
  --received: #0ba37f;
  --received-tint: #e6f7f2;

  /* States */
  --warn: #b7791f;
  --warn-tint: #fdf6e7;
  --danger: #d1344b;
  --danger-tint: #fdeef0;

  /* Type */
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Geometry */
  --r-field: 9px;
  --r-card: 14px;
  --r-panel: 20px;

  --raise: 0 1px 2px rgba(14, 17, 22, 0.05), 0 4px 14px -6px rgba(14, 17, 22, 0.1);
  --float: 0 2px 4px rgba(14, 17, 22, 0.05), 0 18px 40px -18px rgba(14, 17, 22, 0.22);

  --shell: 1180px;
  --header-h: 68px;
}

/* ── Reset ───────────────────────────────────────────────── */

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

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 3.7rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: #fff; }

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

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: var(--r-field); z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }

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

/* ── Layout ──────────────────────────────────────────────── */

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 20px; }
.shell-narrow { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: 20px; }

.section { padding-block: 72px; }
.section--tight { padding-block: 48px; }
.section--mist { background: var(--mist); border-block: 1px solid var(--line); }
.section--ink { background: var(--ink); color: #fff; border-block: 1px solid var(--ink); }
.section--ink h2, .section--ink h3 { color: #fff; }

@media (min-width: 900px) { .section { padding-block: 104px; } }

.lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-70);
  max-width: 46ch;
  margin-top: 18px;
}
.section--ink .lede { color: rgba(255, 255, 255, 0.68); }

.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* Section eyebrow, set like a field label on a paper form. */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-50); margin-bottom: 20px;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after, .eyebrow--center::before {
  content: ""; width: 44px; flex: none; height: 1px; background: var(--line);
}
.section--ink .eyebrow { color: rgba(255, 255, 255, 0.5); }
.section--ink .eyebrow::after, .section--ink .eyebrow::before { background: rgba(255, 255, 255, 0.16); }

/* Texture drawn from ruled paper. Quiet enough to read as material. */
.ruled {
  background-image: linear-gradient(to bottom, var(--fog) 1px, transparent 1px);
  background-size: 100% 34px;
}
.grid-field {
  background-image:
    linear-gradient(to right, var(--fog) 1px, transparent 1px),
    linear-gradient(to bottom, var(--fog) 1px, transparent 1px);
  background-size: 34px 34px;
}

.tabular { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding-inline: 20px;
  border: 1px solid transparent; border-radius: var(--r-field);
  font-size: 15px; font-weight: 500;
  transition: background-color .15s, border-color .15s, transform .1s, color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.btn--secondary { background: var(--paper); border-color: var(--line-strong); color: var(--ink); }
.btn--secondary:hover { background: var(--mist); border-color: var(--ink-30); }

.btn--ghost { color: var(--ink-70); }
.btn--ghost:hover { background: var(--mist); color: var(--ink); }

.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: rgba(255, 255, 255, 0.88); }

.btn--outline-light { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.1); }

.btn--sm { height: 36px; padding-inline: 14px; font-size: 13px; }
.btn--lg { height: 52px; padding-inline: 26px; font-size: 16px; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.center .btn-row { justify-content: center; }

/* ── Badges & pills ──────────────────────────────────────── */

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--mist);
  border-radius: 999px; padding: 3px 11px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-70);
}
.badge--accent { background: var(--accent-tint); border-color: rgba(43, 75, 255, .2); color: var(--accent-deep); }
.badge--received { background: var(--received-tint); border-color: rgba(11, 163, 127, .2); color: var(--received); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── Cards ───────────────────────────────────────────────── */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px;
}
.card--hover { transition: border-color .15s, box-shadow .15s, transform .15s; }
.card--hover:hover { border-color: var(--accent); box-shadow: var(--raise); transform: translateY(-2px); }
.card h3 { font-size: 17px; }
.card p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--ink-50); }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.icon-tile {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent);
  margin-bottom: 16px;
}

/* ── Header ──────────────────────────────────────────────── */

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: var(--header-h);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 19px; font-weight: 600;
  letter-spacing: -0.03em;
}
.nav { display: none; align-items: center; gap: 2px; }
.nav a {
  padding: 8px 12px; border-radius: var(--r-field);
  font-size: 15px; color: var(--ink-70); transition: background-color .15s, color .15s;
}
.nav a:hover { background: var(--mist); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }

.header__actions { display: none; align-items: center; gap: 8px; }

.burger {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-right: -8px;
  border-radius: var(--r-field); color: var(--ink);
}

@media (min-width: 1024px) {
  .nav, .header__actions { display: flex; }
  .burger { display: none; }
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block; padding: 15px 0;
  border-bottom: 1px solid var(--line); font-size: 16px;
}
.mobile-nav .btn { margin-top: 18px; margin-bottom: 20px; }

/* ── Hero ────────────────────────────────────────────────── */

.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(to bottom, var(--fog) 1px, transparent 1px);
  background-size: 100% 34px; opacity: .6; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: rgba(43, 75, 255, .3);
}
.hero__inner {
  position: relative; display: grid; gap: 48px;
  padding-block: 56px 64px; align-items: center;
}
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 0.92fr 1.08fr; gap: 56px; padding-block: 88px 96px; }
}
.hero h1 { margin-top: 20px; }
.underline-mark { position: relative; white-space: nowrap; }
.underline-mark::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 6px; border-radius: 999px;
  background: rgba(43, 75, 255, .25);
}
.trust-line { margin-top: 20px; font-size: 14px; color: var(--ink-50); }

/* ── Form mockup (hero) ──────────────────────────────────── */

.mock { position: relative; }
.mock__frame {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-panel); box-shadow: var(--float); overflow: hidden;
}
.mock__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 18px; background: var(--mist); border-bottom: 1px solid var(--line);
}
.mock__url {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-50);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mock__body { padding: 22px; }
.mock__progress { height: 3px; background: var(--fog); }
.mock__progress span { display: block; height: 100%; background: var(--accent); transition: width .3s ease-out; }

.mock-field { margin-top: 16px; }
.mock-label {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-70);
  display: block; margin-bottom: 6px;
}
.mock-label .req { color: var(--accent); }
.mock-input {
  height: 42px; border: 1px solid var(--line); border-radius: var(--r-field);
  background: var(--paper); display: flex; align-items: center;
  padding-inline: 13px; font-size: 14px; color: var(--ink-30);
}
.mock-input--tall { height: 74px; align-items: flex-start; padding-top: 11px; }

.stars { display: flex; gap: 5px; font-size: 22px; color: var(--accent); line-height: 1; }
.stars span:nth-child(n+5) { color: var(--line-strong); }

/* Floating builder controls around the mockup */
.float-chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 13px;
  font-size: 12px; font-weight: 500; box-shadow: var(--raise);
  animation: bob 5s ease-in-out infinite;
}
.float-chip svg { color: var(--accent); }
.float-chip--a { top: 8%; left: -14px; animation-delay: 0s; }
.float-chip--b { top: 44%; right: -16px; animation-delay: 1.4s; }
.float-chip--c { bottom: 9%; left: -20px; animation-delay: 2.6s; }
@media (max-width: 640px) { .float-chip { display: none; } }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ── Trust strip ─────────────────────────────────────────── */

.trust {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 12px 28px; justify-content: center;
}
.trust__label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-30);
}
.trust li { font-size: 15px; font-weight: 500; color: var(--ink-70); }

/* ── Steps ───────────────────────────────────────────────── */

.steps {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--paper); padding: 28px 24px; }
.step__n { font-family: var(--mono); font-size: 12px; color: var(--ink-30); }
.step__art { margin: 18px 0; height: 64px; }
.step h3 { font-size: 18px; }
.step p { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--ink-50); }

/* ── Demo builder ────────────────────────────────────────── */

.builder {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden;
}
@media (min-width: 1024px) { .builder { grid-template-columns: 210px 1fr 260px; } }

.builder__col { background: var(--paper); padding: 18px; }
.builder__col--canvas { background: var(--mist); padding: 22px; min-height: 340px; }
.builder__head {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-50);
  margin-bottom: 14px;
}

.palette { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
@media (min-width: 1024px) { .palette { grid-template-columns: 1fr; } }
.palette button {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 11px; border: 1px solid var(--line);
  border-radius: var(--r-field); font-size: 13.5px; text-align: left;
  transition: border-color .15s, background-color .15s;
}
.palette button:hover { border-color: var(--accent); background: var(--accent-tint); }
.palette button svg { color: var(--ink-30); flex: none; }
.palette button:hover svg { color: var(--accent); }

.canvas-title {
  width: 100%; border: 1px dashed transparent; border-radius: 6px;
  font-family: var(--display); font-size: 20px; font-weight: 600;
  letter-spacing: -0.02em; background: transparent; padding: 4px 6px; margin-bottom: 4px;
}
.canvas-title:hover { border-color: var(--line-strong); }
.canvas-title:focus { border-color: var(--accent); border-style: solid; outline: none; }

.canvas-hint { font-size: 13px; color: var(--ink-50); margin-bottom: 16px; padding-inline: 6px; }

.canvas-empty {
  border: 1px dashed var(--line-strong); border-radius: var(--r-card);
  padding: 40px 20px; text-align: center; color: var(--ink-50); font-size: 14px;
  background: var(--paper);
}

.q {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 14px; margin-bottom: 10px;
  position: relative; transition: border-color .15s;
}
.q.is-selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(43, 75, 255, .1); }
.q__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.q__type {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-30);
}
.q__tools { display: flex; gap: 2px; flex: none; }
.q__tools button {
  width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center;
  color: var(--ink-30); transition: background-color .15s, color .15s;
}
.q__tools button:hover { background: var(--mist); color: var(--ink); }
.q__tools button.danger:hover { background: var(--danger-tint); color: var(--danger); }
.q__label { font-size: 14.5px; margin: 2px 0 8px; }
.q__label .req { color: var(--accent); }

.settings-empty { font-size: 13.5px; line-height: 1.6; color: var(--ink-50); }
.setting { margin-bottom: 14px; }
.setting label {
  display: block; font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-70); margin-bottom: 5px;
}

/* ── Inputs ──────────────────────────────────────────────── */

.input, .textarea, .select {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-field);
  background: var(--paper); padding: 0 13px; height: 44px;
  font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 112px; padding: 11px 13px; resize: vertical; }
.select { appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' stroke='%236a7383' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--line-strong); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(43, 75, 255, .12);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.input--sm { height: 36px; font-size: 13.5px; }

.field { margin-bottom: 18px; }
.field > label, .field-label {
  display: block; font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-70); margin-bottom: 7px;
}
.field-label .req { color: var(--accent); }
.field__hint { font-size: 13px; color: var(--ink-50); margin-top: 6px; }
.field__error { font-size: 13px; color: var(--danger); margin-top: 6px; display: none; }
.field.has-error .field__error { display: block; }

.choices { display: grid; gap: 8px; }
.choice {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--r-field);
  padding: 11px 13px; font-size: 15px; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.choice:hover { border-color: var(--line-strong); background: var(--mist); }
.choice input { accent-color: var(--accent); width: 16px; height: 16px; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }

.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.check-row input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }

.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 46px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 7px; display: grid; place-items: center;
  color: var(--ink-30);
}
.pw-toggle:hover { background: var(--mist); color: var(--ink-70); }

/* ── Rating widget ───────────────────────────────────────── */

.rating { display: flex; gap: 4px; }
.rating button {
  font-size: 26px; line-height: 1; color: var(--line-strong);
  transition: color .12s, transform .12s;
}
.rating button:hover { transform: scale(1.12); }
.rating button.on { color: var(--accent); }

/* ── Feature layouts ─────────────────────────────────────── */

.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: 60px; }
  .split--flip > *:first-child { order: 2; }
}

.tick-list { margin-top: 22px; display: grid; gap: 11px; }
.tick-list li { display: flex; gap: 11px; font-size: 15px; line-height: 1.55; color: var(--ink-70); }
.tick-list svg { flex: none; margin-top: 4px; color: var(--received); }
.section--ink .tick-list li { color: rgba(255, 255, 255, .7); }

/* Conditional logic diagram */
.logic { display: grid; gap: 10px; }
.logic__row {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 16px 18px;
}
.logic__tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-30); display: block; margin-bottom: 7px;
}
.logic__row strong { font-weight: 500; font-size: 15px; }
.logic__val {
  display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 999px;
  background: var(--received-tint); color: var(--received);
  font-family: var(--mono); font-size: 12px;
}
.logic__arrow { display: grid; place-items: center; color: var(--line-strong); }
.logic__row--then { border-color: var(--accent); background: var(--accent-tint); }

/* Response table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); }
.data-table { min-width: 520px; }
.data-table th, .data-table td { text-align: left; padding: 13px 16px; font-size: 14px; }
.data-table thead th {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-50);
  border-bottom: 1px solid var(--line-strong); background: var(--mist);
}
.data-table tbody tr { border-bottom: 1px solid var(--line); }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table td { color: var(--ink-70); }

.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.status--new { color: var(--received); }
.status--read { color: var(--ink-30); }

/* Stats */
.stats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--paper); padding: 20px; }
.stat__k { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-50); }
.stat__v {
  font-family: var(--display); font-size: 30px; font-weight: 600;
  letter-spacing: -0.04em; margin-top: 7px; font-variant-numeric: tabular-nums;
}

/* Code block */
.code {
  background: var(--ink); border-radius: var(--r-card); padding: 18px 20px;
  overflow-x: auto; border: 1px solid rgba(255, 255, 255, .1);
}
.code pre { font-family: var(--mono); font-size: 13px; line-height: 1.75; color: #dbe1ec; }
.code .c-key { color: #8fa6ff; }
.code .c-str { color: #7fd6b6; }
.code .c-com { color: #6a7383; }
.code .c-fn { color: #ffd28f; }

.copy-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--ink-50); margin-top: 10px;
}
.copy-btn:hover { color: var(--accent); }

/* ── Templates gallery ───────────────────────────────────── */

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px; font-size: 14px; color: var(--ink-70);
  transition: border-color .15s, color .15s, background-color .15s;
}
.filters button:hover { border-color: var(--ink-30); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters .count { font-family: var(--mono); font-size: 11px; color: var(--ink-30); }
.filters button[aria-pressed="true"] .count { color: rgba(255, 255, 255, .5); }

.tpl {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tpl:hover { border-color: var(--accent); box-shadow: var(--raise); transform: translateY(-2px); }
.tpl.is-hidden { display: none; }
.tpl__art { background: var(--mist); padding: 26px 24px; border-bottom: 1px solid var(--line); }
.tpl__body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.tpl__cat { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-30); }
.tpl h3 { font-size: 17px; margin-top: 8px; }
.tpl p { font-size: 14px; line-height: 1.55; color: var(--ink-50); margin-top: 8px; flex: 1; }
.tpl__foot { display: flex; gap: 8px; margin-top: 18px; }
.tpl__foot .btn { flex: 1; }

/* ── Analytics mockup ────────────────────────────────────── */

.dash {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-panel); overflow: hidden; box-shadow: var(--float);
}
.dash__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--mist);
}
.dash__title { font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.dash__grid { display: grid; gap: 1px; background: var(--line); }
@media (min-width: 900px) { .dash__grid { grid-template-columns: 1.7fr 1fr; } }
.dash__panel { background: var(--paper); padding: 22px; }

.chart { width: 100%; height: auto; }
.chart__line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart__area { fill: url(#mvFade); }
.chart__grid { stroke: var(--fog); stroke-width: 1; }
.chart__dot { fill: var(--paper); stroke: var(--accent); stroke-width: 2.5; }

.bar-row { margin-bottom: 16px; }
.bar-row__top { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 7px; }
.bar-row__top span:last-child { font-family: var(--mono); color: var(--ink-50); }
.bar-track { height: 7px; border-radius: 999px; background: var(--fog); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--accent); width: 0; transition: width 1s cubic-bezier(.22, 1, .36, 1); }
.bar-fill--2 { background: #6b83ff; }
.bar-fill--3 { background: #a5b4ff; }

/* ── Integrations ────────────────────────────────────────── */

.integration {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 16px 18px; background: var(--paper); transition: border-color .15s;
}
.integration:hover { border-color: var(--line-strong); }
.integration__icon {
  width: 38px; height: 38px; border-radius: 9px; flex: none;
  display: grid; place-items: center; background: var(--mist); color: var(--ink-70);
}
.integration h3 { font-size: 15px; }
.integration p { font-size: 13px; color: var(--ink-50); margin-top: 2px; }

/* ── Pricing ─────────────────────────────────────────────── */

.toggle {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--line); background: var(--mist);
  border-radius: 999px; padding: 4px;
}
.toggle button {
  border-radius: 999px; padding: 7px 18px; font-size: 14px; font-weight: 500;
  color: var(--ink-50); transition: background-color .15s, color .15s, box-shadow .15s;
}
.toggle button[aria-checked="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--raise); }

.plans { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 700px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, 1fr); } }

.plan {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-panel); padding: 26px;
}
.plan--featured { border-color: var(--accent); box-shadow: var(--float); }
@media (min-width: 1100px) { .plan--featured { margin-block: -12px; padding-block: 38px; } }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan h3 { font-size: 20px; }
.plan__summary { font-size: 14px; line-height: 1.5; color: var(--ink-50); margin-top: 8px; min-height: 42px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-top: 22px; }
.plan__amount { font-family: var(--display); font-size: 34px; font-weight: 600; letter-spacing: -0.04em; }
.plan__per { font-size: 14px; color: var(--ink-50); }
.plan__note { font-family: var(--mono); font-size: 12px; color: var(--received); margin-top: 5px; min-height: 18px; }
.plan .btn { margin-top: 20px; }
.plan__features { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.plan__features li { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-70); }
.plan__features svg { flex: none; margin-top: 3px; color: var(--received); }

/* Comparison */
.compare { min-width: 720px; }
.compare th, .compare td { padding: 13px 16px; text-align: left; font-size: 14px; }
.compare thead th { border-bottom: 1px solid var(--line-strong); }
.compare thead th:first-child {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-50);
}
.compare thead th + th { font-family: var(--display); font-size: 16px; letter-spacing: -0.02em; }
.compare tbody tr { border-bottom: 1px solid var(--line); }
.compare tbody th { font-weight: 400; color: var(--ink-70); }
.compare td { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13.5px; }
.compare .no { color: var(--ink-30); }
.compare .yes { color: var(--received); }

/* ── FAQ ─────────────────────────────────────────────────── */

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  width: 100%; padding: 20px 0; text-align: left;
  font-size: 16.5px; font-weight: 500; letter-spacing: -0.01em;
}
.faq__q:hover { color: var(--accent); }
.faq__icon { flex: none; margin-top: 4px; color: var(--ink-30); transition: transform .2s; }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); color: var(--accent); }
.faq__a { display: none; padding-bottom: 22px; }
.faq__a.is-open { display: block; animation: land .22s cubic-bezier(.22, 1, .36, 1) both; }
.faq__a p { font-size: 15px; line-height: 1.65; color: var(--ink-70); max-width: 62ch; }

/* ── Success / result states ─────────────────────────────── */

.result {
  border: 1px solid rgba(11, 163, 127, .3); background: var(--received-tint);
  border-radius: var(--r-panel); padding: 36px 28px; text-align: center;
}
.result__icon {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; background: var(--received); color: #fff;
}
.result h3 { font-size: 21px; }
.result p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--ink-70); max-width: 42ch; margin-inline: auto; }
.result__note { margin-top: 14px; font-size: 13px; color: var(--ink-50); }

.notice {
  border: 1px solid var(--line); border-radius: var(--r-field);
  padding: 13px 16px; font-size: 14px; line-height: 1.55;
}
.notice--warn { background: var(--warn-tint); border-color: rgba(183, 121, 31, .25); color: var(--warn); }
.notice--danger { background: var(--danger-tint); border-color: rgba(209, 52, 75, .25); color: var(--danger); }
.notice--accent { background: var(--accent-tint); border-color: rgba(43, 75, 255, .2); color: var(--accent-deep); }

/* ── Auth pages ──────────────────────────────────────────── */

.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.auth-main { flex: 1; display: grid; place-items: center; padding: 48px 20px; }
.auth-box { width: 100%; max-width: 430px; }
.auth-box h1 { font-size: 28px; }
.auth-box .card { margin-top: 26px; padding: 26px; }
.divider {
  display: flex; align-items: center; gap: 14px;
  margin: 20px 0; font-size: 13px; color: var(--ink-30);
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ── Legal prose ─────────────────────────────────────────── */

.prose h2 { font-size: 22px; margin-top: 44px; }
.prose h3 { font-size: 17px; margin-top: 28px; }
.prose p { margin-top: 15px; font-size: 15px; line-height: 1.7; color: var(--ink-70); }
.prose ul { margin-top: 15px; padding-left: 20px; display: grid; gap: 9px; }
.prose li { list-style: disc; font-size: 15px; line-height: 1.65; color: var(--ink-70); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose code {
  background: var(--mist); border-radius: 4px; padding: 2px 6px;
  font-family: var(--mono); font-size: 13px;
}
.prose__meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-30); margin-top: 20px;
}

/* ── Footer ──────────────────────────────────────────────── */

.footer { background: var(--mist); border-top: 1px solid var(--line); }
.footer__grid { display: grid; gap: 36px; padding-block: 56px; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.footer h2 {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-50);
}
.footer ul { margin-top: 16px; display: grid; gap: 10px; }
.footer li a { font-size: 14px; color: var(--ink-70); transition: color .15s; }
.footer li a:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid var(--line); padding-block: 20px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--ink-50);
}
.socials { display: flex; gap: 8px; }
.socials a {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-50);
  transition: border-color .15s, color .15s;
}
.socials a:hover { border-color: var(--accent); color: var(--accent); }

/* ── Page headers ────────────────────────────────────────── */

.page-head { border-bottom: 1px solid var(--line); padding-block: 56px; }
@media (min-width: 900px) { .page-head { padding-block: 76px; } }

/* ── Reveal on scroll ────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.22, 1, .36, 1); }

@keyframes land {
  from { opacity: 0; transform: translateY(6px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.animate-land { animation: land .26s cubic-bezier(.22, 1, .36, 1) both; }

@keyframes caret { 0%, 45% { opacity: 1; } 55%, 100% { opacity: 0; } }
.caret { animation: caret 1.1s steps(1) infinite; color: var(--ink-30); }

/* ── Utility ─────────────────────────────────────────────── */

.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--ink-50); }
.small { font-size: 13.5px; }
.hide { display: none !important; }

/* ==========================================================================
   Markvero — completion layer
   Added after the original design system. Existing rules above are unchanged.
   ========================================================================== */

.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; background: var(--ink); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.logo-mark svg { width: 17px; height: 17px; }

.hero__copy { max-width: 600px; }
.hero__copy .lede { font-size: 18px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.75); font-size: 12px; color: var(--ink-70);
  font-family: var(--mono); letter-spacing: .04em;
}
.hero-kicker .dot { color: var(--received); }

.hero-mini {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; margin-top: 28px; max-width: 560px;
}
.hero-mini > div { background: rgba(255,255,255,.86); padding: 13px 14px; }
.hero-mini strong { display: block; font-size: 14px; }
.hero-mini span { display: block; font-size: 12px; color: var(--ink-50); margin-top: 2px; }

.mock__actions { display:flex; justify-content:flex-end; gap:8px; margin-top:16px; }
.mock-pill {
  padding: 5px 9px; border-radius:999px; border:1px solid var(--line);
  font-family:var(--mono); font-size:10px; color:var(--ink-50); background:var(--paper);
}

.section-head {
  display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:34px;
}
.section-head > div { max-width: 680px; }
.section-head .lede { margin-top:12px; }
@media (max-width: 760px) { .section-head { display:block; } .section-head .btn { margin-top:18px; } }

.feature-art {
  border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--paper);
  box-shadow: var(--raise); padding: 22px; min-height: 320px; overflow: hidden;
}
.feature-window {
  border:1px solid var(--line); border-radius:12px; overflow:hidden; background:var(--paper);
}
.feature-window__bar {
  padding:10px 12px; display:flex; gap:6px; background:var(--mist); border-bottom:1px solid var(--line);
}
.feature-window__bar i { width:7px; height:7px; border-radius:50%; background:var(--line-strong); }
.feature-window__body { padding:18px; }
.field-line { height:10px; border-radius:999px; background:var(--fog); margin-bottom:9px; }
.field-line.w80 { width:80%; } .field-line.w60 { width:60%; } .field-line.w45 { width:45%; }
.fake-input { height:40px; border:1px solid var(--line); border-radius:8px; margin-top:7px; background:var(--paper); }
.fake-button { height:38px; border-radius:8px; margin-top:14px; width:120px; background:var(--accent); }

.usecase-card { position:relative; overflow:hidden; min-height:240px; }
.usecase-card::after {
  content:""; position:absolute; width:160px; height:160px; border-radius:50%;
  border:1px solid var(--line); right:-56px; bottom:-62px;
}
.usecase-card .icon-tile { position:relative; z-index:1; }
.usecase-card ul { display:grid; gap:7px; margin-top:16px; }
.usecase-card li { font-size:13.5px; color:var(--ink-50); display:flex; align-items:center; gap:8px; }
.usecase-card li::before { content:""; width:5px; height:5px; border-radius:50%; background:var(--received); }

.demo-form-card {
  max-width:680px; margin-inline:auto; border:1px solid var(--line);
  border-radius:var(--r-panel); padding:28px; background:var(--paper); box-shadow:var(--float);
}
.demo-form-card__top {
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding-bottom:20px; border-bottom:1px solid var(--line); margin-bottom:22px;
}
.demo-progress { height:4px; border-radius:999px; overflow:hidden; background:var(--fog); margin-top:8px; }
.demo-progress span { width:76%; display:block; height:100%; background:var(--accent); }
.form-grid { display:grid; grid-template-columns:1fr; gap:16px; }
@media (min-width:700px) { .form-grid--2 { grid-template-columns:1fr 1fr; } }
.form-grid .field { margin-bottom:0; }
.demo-success { display:none; }
.demo-success.is-show { display:block; }
.demo-form-card.is-submitted form { display:none; }
.demo-form-card.is-submitted .demo-success { display:block; }

.builder-stage { min-height: 250px; }
.q__preview { margin-top:9px; }
.q__preview .input { pointer-events:none; background:var(--mist); }
.q__preview .choices { pointer-events:none; }
.settings-panel .check-row { margin-top:8px; }
.builder-note { font-size:12px; color:var(--ink-50); margin-top:12px; }

.integration-grid { display:grid; grid-template-columns:1fr; gap:12px; }
@media (min-width:640px) { .integration-grid { grid-template-columns:repeat(2,1fr); } }
@media (min-width:960px) { .integration-grid { grid-template-columns:repeat(3,1fr); } }

.api-layout { display:grid; gap:28px; align-items:start; }
@media (min-width:900px) { .api-layout { grid-template-columns:.8fr 1.2fr; } }
.api-points { display:grid; gap:12px; margin-top:24px; }
.api-point { display:flex; gap:11px; }
.api-point svg { flex:none; color:var(--received); margin-top:3px; }
.api-point strong { display:block; font-size:14px; }
.api-point span { display:block; color:var(--ink-50); font-size:13px; margin-top:2px; }

.security-strip {
  display:grid; grid-template-columns:1fr; gap:1px; background:rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.15); border-radius:var(--r-panel); overflow:hidden; margin-top:36px;
}
@media(min-width:760px){ .security-strip { grid-template-columns:repeat(4,1fr); } }
.security-item { padding:22px; background:rgba(255,255,255,.04); }
.security-item svg { color:#fff; opacity:.85; }
.security-item strong { display:block; margin-top:14px; font-size:14px; }
.security-item span { display:block; margin-top:6px; color:rgba(255,255,255,.55); font-size:13px; line-height:1.5; }

.plan .btn[data-plan] { margin-top:22px; }
.pricing-footnote { text-align:center; color:var(--ink-50); font-size:13px; margin-top:22px; }
.price-old { text-decoration:line-through; color:var(--ink-30); font-size:13px; margin-left:4px; }

.compare-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:var(--r-card); background:var(--paper); }
.compare tbody tr:hover { background:var(--mist); }

.modal {
  position:fixed; inset:0; z-index:100; display:none; place-items:center; padding:20px;
  background:rgba(14,17,22,.45); backdrop-filter:blur(5px);
}
.modal.is-open { display:grid; }
.modal__panel {
  width:min(100%,520px); background:var(--paper); border:1px solid var(--line);
  border-radius:var(--r-panel); box-shadow:var(--float); overflow:hidden; animation:land .2s ease both;
}
.modal__head {
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:18px 20px; border-bottom:1px solid var(--line);
}
.modal__head h3 { font-size:18px; }
.modal__close { width:34px; height:34px; border-radius:8px; display:grid; place-items:center; }
.modal__close:hover { background:var(--mist); }
.modal__body { padding:22px; }
.modal__body p { color:var(--ink-70); font-size:14.5px; line-height:1.65; }
.modal__actions { display:flex; justify-content:flex-end; gap:8px; margin-top:20px; flex-wrap:wrap; }

.tpl-mini {
  border:1px solid var(--line); border-radius:10px; background:var(--paper); padding:14px;
  min-height:150px; display:grid; align-content:center; gap:8px;
}
.tpl-mini span { display:block; height:8px; background:var(--fog); border-radius:999px; }
.tpl-mini span:nth-child(1){width:55%;height:10px;background:var(--line-strong);}
.tpl-mini span:nth-child(2){width:78%;}
.tpl-mini span:nth-child(3){width:100%;height:32px;border:1px solid var(--line);background:var(--paper);border-radius:6px;}
.tpl-mini span:nth-child(4){width:100%;height:32px;border:1px solid var(--line);background:var(--paper);border-radius:6px;}
.tpl-mini span:nth-child(5){width:35%;height:28px;background:var(--accent);border-radius:6px;}

.dev-tabs { display:flex; gap:6px; margin-bottom:12px; flex-wrap:wrap; }
.dev-tabs button {
  font-family:var(--mono); font-size:11px; color:rgba(255,255,255,.55);
  padding:6px 10px; border-radius:7px; background:rgba(255,255,255,.06);
}
.dev-tabs button.is-active { color:#fff; background:rgba(255,255,255,.13); }

.contact-layout { display:grid; gap:32px; align-items:start; }
@media(min-width:900px){ .contact-layout { grid-template-columns:.72fr 1.28fr; gap:60px; } }
.contact-list { display:grid; gap:14px; margin-top:28px; }
.contact-item { display:flex; gap:13px; align-items:flex-start; }
.contact-item .icon-tile { margin:0; flex:none; }
.contact-item strong { display:block; font-size:14px; }
.contact-item span { display:block; color:var(--ink-50); font-size:13px; margin-top:3px; }

.auth-note { text-align:center; color:var(--ink-50); font-size:13px; margin-top:18px; }
.auth-note a { color:var(--accent); }
.oauth-placeholder {
  width:100%; height:44px; display:flex; align-items:center; justify-content:center; gap:9px;
  border:1px solid var(--line-strong); border-radius:var(--r-field); background:var(--paper); font-size:14px;
}
.oauth-placeholder:hover { background:var(--mist); }

.legal-callout {
  border-left:3px solid var(--accent); background:var(--accent-tint); padding:15px 16px;
  border-radius:0 var(--r-field) var(--r-field) 0; margin-top:20px; color:var(--accent-deep); font-size:14px;
}

.success-page {
  min-height:calc(100vh - var(--header-h)); display:grid; place-items:center; padding:60px 20px;
  background:var(--mist);
}
.success-box { width:min(100%,620px); text-align:center; }
.success-box .result { padding:46px 34px; background:var(--paper); border-color:var(--line); box-shadow:var(--float); }
.success-box .result__icon { width:60px; height:60px; }

.footer__brand p { color:var(--ink-50); font-size:14px; line-height:1.6; max-width:30ch; margin-top:14px; }
.footer__brand .brand { display:inline-flex; }

.code-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.code-toolbar span { font-family:var(--mono); font-size:11px; text-transform:uppercase; letter-spacing:.1em; color:#788296; }

.toast {
  position:fixed; left:50%; bottom:24px; transform:translate(-50%,16px);
  background:var(--ink); color:#fff; border-radius:999px; padding:10px 16px;
  font-size:13px; z-index:120; opacity:0; pointer-events:none; transition:.2s ease;
  box-shadow:var(--float);
}
.toast.is-show { opacity:1; transform:translate(-50%,0); }

.mobile-only-note { display:none; }
@media(max-width:640px){
  .hero-mini { grid-template-columns:1fr; }
  .hero__inner { padding-top:42px; }
  .section { padding-block:58px; }
  .plan { padding:22px; }
  .builder__col--canvas { padding:14px; }
  .demo-form-card { padding:20px; }
  .mobile-only-note { display:block; }
}

.inline-link { color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.inline-link:hover { color:var(--accent-deep); }

.kpi-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin-bottom:18px; }
.kpi {
  border:1px solid var(--line); border-radius:10px; padding:12px; background:var(--paper);
}
.kpi span { display:block; font-family:var(--mono); font-size:9px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-30); }
.kpi strong { display:block; font-family:var(--display); font-size:22px; margin-top:4px; }

.device-ring {
  width:150px; height:150px; border-radius:50%; margin:16px auto 22px;
  background:conic-gradient(var(--accent) 0 58%, #6b83ff 58% 90%, #d9defe 90% 100%);
  position:relative;
}
.device-ring::after {
  content:""; position:absolute; inset:25px; background:var(--paper); border-radius:50%;
}
.legend { display:grid; gap:8px; }
.legend li { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:13px; }
.legend span:first-child { display:flex; align-items:center; gap:8px; }
.legend i { width:8px; height:8px; border-radius:50%; background:var(--accent); }
.legend li:nth-child(2) i { background:#6b83ff; }
.legend li:nth-child(3) i { background:#d9defe; }

.page-intro-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:24px; }
.template-search {
  margin-left:auto; width:min(100%,280px);
}
.filters-row { display:flex; gap:16px; align-items:center; flex-wrap:wrap; margin-bottom:28px; }

.breadcrumb { font-size:13px; color:var(--ink-50); margin-bottom:14px; }
.breadcrumb a:hover { color:var(--accent); }

.article-grid { display:grid; gap:18px; }
@media(min-width:780px){ .article-grid { grid-template-columns:repeat(3,1fr); } }
.article-card { min-height:210px; display:flex; flex-direction:column; }
.article-card .badge { align-self:flex-start; }
.article-card h3 { margin-top:18px; font-size:18px; }
.article-card p { flex:1; }
.article-card a { color:var(--accent); font-size:13px; margin-top:18px; }

.developer-endpoint {
  display:flex; align-items:center; gap:12px; padding:12px 14px; border:1px solid var(--line);
  border-radius:var(--r-field); background:var(--paper); font-family:var(--mono); font-size:12px;
}
.method {
  min-width:42px; text-align:center; padding:3px 6px; border-radius:5px;
  background:var(--received-tint); color:var(--received); font-size:10px; font-weight:600;
}
.method.post { background:var(--accent-tint); color:var(--accent-deep); }

.legal-nav {
  position:sticky; top:calc(var(--header-h) + 20px); border:1px solid var(--line);
  border-radius:var(--r-card); padding:16px; background:var(--paper);
}
.legal-nav strong { font-size:13px; }
.legal-nav ul { margin-top:10px; display:grid; gap:7px; }
.legal-nav a { font-size:13px; color:var(--ink-50); }
.legal-nav a:hover { color:var(--accent); }
.legal-layout { display:grid; gap:36px; align-items:start; }
@media(min-width:900px){ .legal-layout { grid-template-columns:220px 1fr; } }

.form-status { display:none; margin-top:16px; }
.form-status.is-show { display:block; }

.no-js { padding:10px 16px; text-align:center; background:var(--warn-tint); color:var(--warn); font-size:13px; }
