/* Inter, self-hosted.
   Declaring a font without shipping it means every visitor sees their own OS
   default instead (Segoe UI, San Francisco, ...) — the brand looked different on
   every machine. Self-hosted rather than Google Fonts: no third-party request,
   which also keeps an EU-facing site clear of the consent question that
   embedding Google Fonts raises. One variable file covers every weight used. */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;  /* text stays readable while the font loads */
}

/* thevisionqc marketing site — standalone styles.
   Deliberately does not import the app's stylesheet: this service must not
   depend on the QC app in any way.

   The app is intentionally near-monochrome (an operator staring at a verdict
   panel all shift shouldn't be fighting decoration). A marketing page has the
   opposite job, so colour is used generously here — four accent hues carry the
   feature cards and the matching steps, tying the two sections together. */

:root {
  --bg: #0a0d12;
  --panel: #141a22;
  --panel-2: #1b2330;
  --border: #2a3442;
  --text: #f2f6fa;
  --dim: #9db0c4;

  --blue: #3b82f6;
  --teal: #14b8a6;
  --violet: #a855f7;
  --amber: #f59e0b;
  --pink: #ec4899;
  --good: #22c55e;

  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', Arial, 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* Soft colour wash behind the whole page so the dark base never reads flat. */
  background-image:
    radial-gradient(60rem 40rem at 15% -10%, rgba(59, 130, 246, 0.18), transparent 60%),
    radial-gradient(50rem 36rem at 90% 0%, rgba(168, 85, 247, 0.15), transparent 55%),
    radial-gradient(45rem 32rem at 50% 100%, rgba(20, 184, 166, 0.10), transparent 60%);
  background-attachment: fixed;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.btn {
  display: inline-block;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.lg { padding: 15px 28px; font-size: 17px; }
.btn.primary {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.35);
}
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--border); }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10, 13, 18, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.brand { font-size: 24px; font-weight: 800; letter-spacing: 0.3px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand span {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a:not(.btn) { color: var(--dim); font-weight: 600; }
.site-header nav a:not(.btn):hover { color: var(--text); text-decoration: none; }

main { max-width: 1080px; margin: 0 auto; padding: 0 24px 90px; }

/* ── Hero ───────────────────────────────────────────────── */
.hero { padding: 84px 0 56px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  color: #cfe0ff;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.35);
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  margin: 22px 0 0;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 30%, #b9d4ff 70%, #d7bcff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { color: var(--dim); font-size: 19px; max-width: 700px; margin: 22px auto 0; }
.lead strong { color: var(--text); }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

.stats-strip {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.stats-strip div {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--c, var(--blue));
  border-radius: var(--radius);
  padding: 16px 26px;
  min-width: 160px;
  text-align: left;
}
.stats-strip strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--c, var(--blue));
}
.stats-strip span { color: var(--dim); font-size: 13.5px; }

/* ── Sections ───────────────────────────────────────────── */
section { margin-top: 72px; }
h2 { font-size: 32px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.3px; }

/* Four accent hues, reused by the matching numbered step below. */
.c-blue   { --c: var(--blue); }
.c-teal   { --c: var(--teal); }
.c-violet { --c: var(--violet); }
.c-amber  { --c: var(--amber); }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.features article {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--c);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.features article:hover {
  transform: translateY(-3px);
  box-shadow: -6px 10px 30px color-mix(in srgb, var(--c) 18%, transparent);
}
.features .icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 22px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 34%, transparent);
}
.features h3 { margin: 14px 0 8px; font-size: 19px; }
.features p { margin: 0; color: var(--dim); font-size: 14.5px; }

.how ol {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.how li {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--dim);
  font-size: 14.5px;
  border-left: 4px solid var(--c);
}
.how li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000));
  margin-bottom: 14px;
}
.how li strong { display: block; margin-bottom: 6px; font-size: 17px; color: var(--text); }

.safety {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.10), rgba(20, 184, 166, 0.06));
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-left: 4px solid var(--good);
  border-radius: var(--radius);
  padding: 28px;
}
.safety-icon {
  font-size: 26px;
  width: 52px;
  height: 52px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.35);
}
.safety h2 { font-size: 24px; }
.safety p { color: var(--dim); margin: 6px 0 0; }

/* ── Enquiry ────────────────────────────────────────────── */
.enquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
@media (max-width: 760px) { .enquiry { grid-template-columns: 1fr; } }

#enquiry-form {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--pink);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
#enquiry-form label { display: block; font-size: 14px; color: var(--dim); }
#enquiry-form input,
#enquiry-form textarea {
  width: 100%;
  margin-top: 6px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 15px;
  font-family: inherit;
}
#enquiry-form input:focus,
#enquiry-form textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
#enquiry-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
#form-status { margin: 0; font-size: 14px; min-height: 20px; }
#form-status.ok { color: var(--good); }
#form-status.err { color: #f87171; }

footer.legacy {
  border-top: 1px solid var(--border);
  padding: 26px 40px;
  color: var(--dim);
  font-size: 13px;
}

/* ── Multi-page additions ───────────────────────────────── */
.page-head { padding: 64px 0 8px; }
.page-head.narrow { max-width: 760px; }
.page-head h1 {
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 900;
  line-height: 1.12;
  margin: 20px 0 0;
  letter-spacing: -0.4px;
}
.page-head .lead { margin-left: 0; }

/* A block shown as a card: panel, border, coloured left edge. */
.block-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--c, var(--blue));
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 24px 0;
}
.block-card > .page-head { padding: 0; }
.block-card > .doc,
.block-card > .block-image,
.block-card > .step-block { margin: 0; padding: 0; }
.block-card .eyebrow { color: var(--c, var(--blue)); }
/* Inside a column the grid already spaces the cards apart. */
.block-columns > .block-card { margin: 0; height: 100%; }
.c-pink  { --c: var(--pink); }
.c-green { --c: var(--good); }

/* Two-column block flow.
   A run of half-width blocks shares a row instead of each one claiming the
   full page. Below 860px the columns collapse — two columns of body text on a
   phone is unreadable. */
.block-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
  align-items: start;
  margin: 32px 0;
}
@media (max-width: 860px) {
  .block-columns { grid-template-columns: 1fr; gap: 8px; }
}
/* Inside a column a block is a sibling, not a page section, so it drops the
   full-bleed vertical rhythm it uses when standing alone. */
.block-columns > .page-head { padding: 0; }
.block-columns > .page-head .block-title { font-size: clamp(22px, 2.4vw, 28px); }
.block-columns > .doc,
.block-columns > .step-block,
.block-columns > .figure,
.block-columns > .block-image { margin: 0; padding: 0; }
.block-columns > .step-block { grid-template-columns: 1fr; gap: 16px; }

/* Home showcase: capture -> label -> detect */
.showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.showcase figure {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--c, var(--blue));
  border-radius: var(--radius);
  overflow: hidden;
}
.showcase img { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; }
.showcase figcaption { padding: 14px 18px; color: var(--dim); font-size: 14px; }
.showcase figcaption strong { display: block; color: var(--text); margin-bottom: 3px; }

/* How it works: alternating text / image blocks */
.step-block {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 34px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--c, var(--blue));
  border-radius: var(--radius);
  padding: 30px;
}
.step-block.reverse .step-text { order: 2; }
@media (max-width: 820px) {
  .step-block { grid-template-columns: 1fr; }
  .step-block.reverse .step-text { order: 0; }
}
.step-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--c, var(--blue));
  background: color-mix(in srgb, var(--c, var(--blue)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, var(--blue)) 32%, transparent);
  padding: 5px 12px;
  border-radius: 999px;
}
.step-block h2 { margin: 14px 0 10px; font-size: 27px; }
.step-block p { color: var(--dim); margin: 0 0 12px; }
.step-block figure { margin: 0; }
.step-block figure img { width: 100%; border-radius: 12px; display: block; border: 1px solid var(--border); }
.step-block figcaption { color: var(--dim); font-size: 13px; margin-top: 10px; text-align: center; }

.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.ticks li { color: var(--dim); font-size: 14.5px; padding: 5px 0 5px 26px; position: relative; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--c, var(--blue)); font-weight: 800; }

.stat-figure { display: grid; gap: 12px; }
.mini-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--c, var(--blue));
  border-radius: 12px;
  padding: 16px 20px;
}
.mini-stat strong { display: block; font-size: 30px; font-weight: 800; color: var(--c, var(--blue)); }
.mini-stat span { color: var(--dim); font-size: 13.5px; }

.hw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
.hw-grid > div {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--c, var(--blue));
  border-radius: var(--radius);
  padding: 20px;
}
.hw-grid h3 { margin: 0 0 6px; font-size: 17px; }
.hw-grid p { margin: 0; color: var(--dim); font-size: 14px; }

.cta-band {
  text-align: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(168, 85, 247, 0.12));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius);
  padding: 44px 24px;
}
.cta-band .lead { margin-bottom: 26px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 34px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-details { display: grid; gap: 14px; }
.contact-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--c, var(--blue));
  border-radius: var(--radius);
  padding: 18px 20px;
}
.contact-card h3 { margin: 0 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--c, var(--blue)); }
.contact-card p { margin: 0; color: var(--dim); line-height: 1.6; }
.contact-card strong { color: var(--text); }

/* Legal documents */
.doc { max-width: 760px; }
.doc h2 { font-size: 21px; margin: 32px 0 10px; }
.doc p { color: var(--dim); }
.doc code { background: var(--panel-2); padding: 2px 6px; border-radius: 5px; font-size: 13px; }
.doc-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.doc-table th, .doc-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--dim); }
.doc-table th { color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.callout {
  background: color-mix(in srgb, var(--c, var(--blue)) 10%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--c, var(--blue)) 32%, transparent);
  border-left: 4px solid var(--c, var(--blue));
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 18px 0;
  color: var(--dim);
}
.callout strong { color: var(--text); }
.form-note { font-size: 12.5px; color: var(--dim); margin: 0; }

/* Footer */
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 22px;
  color: var(--dim);
  line-height: 1.7;
}
.footer-links { display: grid; gap: 4px; align-content: start; }
.footer-bar { border-top: 1px solid var(--border); padding-top: 18px; text-align: center; }

/* ── Content blocks ─────────────────────────────────────── */
.block-title { font-size: 30px; font-weight: 800; margin: 0 0 8px; }
.block-image {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--c, var(--blue));
  border-radius: var(--radius);
  overflow: hidden;
}
.block-image img { width: 100%; display: block; }
.block-image figcaption { padding: 12px 18px; color: var(--dim); font-size: 14px; }
.img-placeholder {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 10; border: 1px dashed var(--border); border-radius: 12px;
  color: var(--dim); font-size: 13px;
}
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.team-grid article {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--c, var(--blue));
  border-radius: var(--radius);
  padding: 20px;
}
.team-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
.team-grid h3 { margin: 14px 0 2px; font-size: 18px; }
.team-role { color: var(--c, var(--blue)); font-size: 13.5px; font-weight: 600; margin: 0 0 8px; }
.team-grid p { color: var(--dim); font-size: 14px; margin: 0; }
