/* Meissasoft field survey — design system
   Palette sampled directly from the brand logo:
     #1633B2 deep indigo (wordmark)   #0078FB vivid blue (mark)   #BFDDFE tint
   Visual language follows meissasoft.com: soft layered elevation, rounded
   corners, generous whitespace. Deliberately not brutalist — a contractor
   weighing an eight-figure decision should read "established", not "scrappy". */

:root {
  --brand-900: #0f2478;
  --brand-700: #1633b2;
  --brand-500: #0078fb;
  --brand-200: #bfddfe;
  --brand-100: #e4efff;
  --brand-050: #f4f8ff;

  --ink: #0c1226;
  --body: #4b5675;
  --soft: #77839f;
  --line: #e5e9f2;
  --line-strong: #d4dbe9;
  --surface: #f7f9fd;
  --white: #fff;

  --grad: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%);

  --sh-xs: 0 1px 2px rgba(15, 36, 120, 0.06);
  --sh-sm: 0 2px 4px rgba(15, 36, 120, 0.06), 0 1px 2px rgba(15, 36, 120, 0.04);
  --sh-md: 0 6px 16px rgba(15, 36, 120, 0.08), 0 2px 4px rgba(15, 36, 120, 0.04);
  --sh-lg: 0 16px 40px rgba(15, 36, 120, 0.12), 0 4px 10px rgba(15, 36, 120, 0.05);
  --ring: 0 0 0 3px rgba(0, 120, 251, 0.18);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  --wrap: 660px;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

/* A very soft brand wash behind the hero only — keeps the page from feeling
   like a blank form without adding visual noise. */
body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto 0;
  height: 420px;
  background: linear-gradient(180deg, var(--brand-050) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: -1;
}

/* --- top bar -------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar .logo { display: block; width: 132px; height: auto; }

/* Back sits at the start of the header, the conventional place for it, so the
   page body stays uninterrupted between the header and the content. */
.topbar-back {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
  color: var(--body);
  cursor: pointer;
  transition: all 0.16s ease;
}
.topbar-back svg { width: 16px; height: 16px; stroke: currentColor; }
.topbar-back:hover {
  color: var(--brand-500);
  border-color: var(--brand-500);
  background: var(--brand-050);
}
.topbar-back:focus-visible { outline: none; box-shadow: var(--ring); }

.topbar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--soft);
  letter-spacing: 0.02em;
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
}

.topbar-cta {
  margin-left: auto;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-700);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  transition: all 0.16s ease;
  white-space: nowrap;
}
.topbar-cta:hover {
  border-color: var(--brand-500);
  color: var(--brand-500);
  background: var(--brand-050);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 44px 24px 72px; }

.noscript {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  font-weight: 600;
  background: var(--surface);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  margin-bottom: 18px;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
}

h1 {
  font-size: clamp(30px, 5.6vw, 42px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.032em;
  margin: 0 0 14px;
  text-wrap: balance;
}
h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subhead {
  color: var(--body);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 22px;
  max-width: 42ch;
}

/* --- trust row ------------------------------------------------------------ */

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--soft);
  font-weight: 500;
}
.trust svg { flex: none; width: 15px; height: 15px; stroke: var(--brand-500); }

/* --- progress ------------------------------------------------------------- */

.progress { margin: 0 0 26px; }

.progress-bar {
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--line);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--grad);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-label {
  display: block;
  margin-top: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--soft);
  letter-spacing: 0.02em;
}

/* --- reason cards --------------------------------------------------------- */

.reasons { display: flex; flex-direction: column; gap: 10px; margin: 0 0 40px; }

.reason-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-xs);
  padding: 15px 18px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.reason-card .key {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 12.5px;
  font-weight: 700;
  transition: all 0.16s ease;
}

.reason-card .arrow {
  margin-left: auto;
  flex: none;
  width: 17px;
  height: 17px;
  stroke: var(--line-strong);
  transition: transform 0.16s ease, stroke 0.16s ease;
}

.reason-card:hover,
.reason-card:focus-visible {
  border-color: var(--brand-500);
  box-shadow: var(--sh-md);
  transform: translateY(-1px);
  outline: none;
}
.reason-card:hover .key,
.reason-card:focus-visible .key { background: var(--grad); color: var(--white); }
.reason-card:hover .arrow,
.reason-card:focus-visible .arrow { stroke: var(--brand-500); transform: translateX(3px); }
.reason-card:focus-visible { box-shadow: var(--sh-md), var(--ring); }
.reason-card:active { transform: translateY(0); }

/* --- the mirrored answer -------------------------------------------------- */

.quote {
  position: relative;
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  margin: 0 0 8px;
  overflow: hidden;
}
.quote::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--grad);
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--brand-500);
  text-transform: uppercase;
  margin: 0 0 9px;
}

.quote-answer {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--soft);
}

.quote p.body {
  margin: 0;
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.011em;
  color: var(--ink);
}

/* --- questions ------------------------------------------------------------ */

.section { padding: 30px 0 0; border-top: 1px solid var(--line); margin-top: 30px; }

.q-head { display: flex; align-items: baseline; gap: 11px; margin: 0 0 15px; }

.q-num {
  flex: none;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-500);
  letter-spacing: 0.04em;
}

.q-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.018em;
  margin: 0;
  line-height: 1.35;
}

.optional {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--soft);
  margin-left: 6px;
}

.chips { display: flex; flex-wrap: wrap; gap: 9px; }

.chip {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 10px 15px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--body);
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--brand-500); color: var(--brand-700); background: var(--brand-050); }
.chip:focus-visible { outline: none; box-shadow: var(--ring); }

.chip[aria-pressed='true'] {
  background: var(--grad);
  border-color: transparent;
  color: var(--white);
  box-shadow: var(--sh-sm);
}

textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea::placeholder { color: #9ba5bd; }
textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: var(--ring); }

/* --- capture card --------------------------------------------------------- */

.capture {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}

.capture-title {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}

.capture-copy { font-size: 14px; color: var(--body); line-height: 1.55; margin: 0 0 16px; }

/* Input and its validation message share a column, so the message always sits
   directly under the field it belongs to — never beside the button or pushed
   below the whole row. */
.capture-form { display: flex; gap: 10px; align-items: flex-start; }

.field { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

/* Leading mail icon. Purely decorative — the input keeps its own aria-label,
   so the icon is hidden from assistive tech and ignores pointer events, which
   means clicking it still focuses the field. */
.input-wrap { position: relative; display: block; }

.input-wrap > svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  stroke: var(--soft);
  pointer-events: none;
  transition: stroke 0.15s ease;
}
.input-wrap:focus-within > svg { stroke: var(--brand-500); }

.field input {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 14px 16px 14px 42px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: #9ba5bd; }
.field input:focus { outline: none; border-color: var(--brand-500); box-shadow: var(--ring); }
.field input[aria-invalid='true'] {
  border-color: #d64545;
  box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.13);
}

.field-error {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 9px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: #c23333;
  animation: errIn 0.22s ease;
}
.field-error svg { flex: none; width: 15px; height: 15px; stroke: #c23333; margin-top: 1px; }

@keyframes errIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--grad);
  color: var(--white);
  border: none;
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  padding: 14px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--sh-md); filter: brightness(1.06); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--sh-md), var(--ring); }
.btn:disabled { opacity: 0.65; cursor: progress; }

.btn .spin {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.fineprint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 13px 0 0;
  font-size: 12.5px;
  color: var(--soft);
}
.fineprint svg { flex: none; width: 14px; height: 14px; stroke: var(--soft); }

/* Honeypot — hidden from people, visible to bots that fill every field. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--soft);
  background: none;
  border: none;
  padding: 6px 0;
  cursor: pointer;
  transition: color 0.15s ease;
}
.back svg { width: 14px; height: 14px; stroke: currentColor; }
.back:hover { color: var(--brand-500); }
.back:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-pill); }

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

.stats-block { margin-top: 52px; padding-top: 34px; border-top: 1px solid var(--line); }

.stats-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0 0 18px;
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-xs);
  padding: 20px 18px;
  transition: box-shadow 0.16s ease, transform 0.16s ease;
}
.stat:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }

.stat-value {
  display: block;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label { display: block; margin-top: 6px; font-size: 13px; color: var(--body); line-height: 1.4; }

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

.foot {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--soft);
}
.foot a {
  color: var(--brand-700);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--brand-200);
  padding-bottom: 1px;
  transition: all 0.15s ease;
}
.foot a:hover { color: var(--brand-500); border-color: var(--brand-500); }

/* --- success -------------------------------------------------------------- */

.sent-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: var(--sh-md);
  margin: 0 0 22px;
  animation: pop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sent-icon svg { width: 27px; height: 27px; stroke: var(--white); stroke-width: 2.5; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.sent-note { font-size: 16px; line-height: 1.65; color: var(--body); margin: 0 0 10px; max-width: 46ch; }
.sent-note strong { color: var(--ink); font-weight: 600; }

.sent-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: var(--grad);
  color: var(--white);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.cta:hover { transform: translateY(-1px); box-shadow: var(--sh-md); filter: brightness(1.06); }
.cta:focus-visible { outline: none; box-shadow: var(--sh-md), var(--ring); }
.cta svg { width: 16px; height: 16px; stroke: currentColor; }

/* Secondary action — present but visually subordinate to booking a call. */
.cta-secondary {
  background: var(--white);
  color: var(--brand-700);
  border: 1px solid var(--line-strong);
  box-shadow: var(--sh-xs);
}
.cta-secondary:hover {
  filter: none;
  color: var(--brand-500);
  border-color: var(--brand-500);
  background: var(--brand-050);
}

/* --- responsive ----------------------------------------------------------- */

@media (max-width: 620px) {
  .wrap { padding: 28px 18px 56px; }
  .topbar-in { padding: 11px 18px; gap: 10px; }
  .topbar-label { display: none; }
  .topbar .logo { width: 116px; }
  .topbar-cta { font-size: 12.5px; padding: 7px 12px; }

  .subhead { font-size: 16px; }
  .trust { gap: 7px 14px; margin-bottom: 28px; }
  .trust li { font-size: 12.5px; }

  .reason-card { padding: 14px 15px; gap: 12px; font-size: 15px; }
  .reason-card .key { width: 28px; height: 28px; }

  .quote { padding: 18px 18px 18px 20px; }
  .quote p.body { font-size: 16.5px; }
  .q-text { font-size: 17px; }

  .stats { grid-template-columns: 1fr; gap: 10px; }
  .stat { display: flex; align-items: baseline; gap: 14px; padding: 15px 18px; }
  .stat-value { font-size: 29px; }
  .stat-label { margin-top: 0; }

  .capture { padding: 20px 18px; }
  /* align-items must return to stretch here: flex-start is what the row layout
     needs so the button lines up with the input rather than the error message,
     but in a column it collapses the field to its content width. */
  .capture-form { flex-direction: column; gap: 12px; align-items: stretch; }
  .field { width: 100%; }
  .btn { width: 100%; padding: 15px 24px; }

  .sent-actions { flex-direction: column; align-items: stretch; }
  .cta { width: 100%; justify-content: center; }
}

/* Small phones — 360px and under still has to be comfortable, since a good
   share of site supers are on older Androids. */
@media (max-width: 380px) {
  .wrap { padding: 24px 15px 48px; }
  .topbar-in { padding: 10px 15px; }
  .topbar .logo { width: 104px; }
  .topbar-cta { font-size: 12px; padding: 6px 10px; }
  .topbar-back { width: 31px; height: 31px; }
  .topbar-in { gap: 9px; }
  h1 { font-size: 26px; }
  .chip { font-size: 13px; padding: 9px 13px; }
  .badge { font-size: 10.5px; padding: 6px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
