/* Audit Visibility - early access page
   Palette: warm off-white, black marks, near-black type, muted grey, neutral borders.
   No accent colour on the site itself: in the product, the accent is the scanned business's own colour. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f1ec;
  --paper-2: #ebe8e1;
  --ink: #000;
  --text: #1c1b19;
  --muted: #6b6862;
  --line: #d8d4cb;
  --dots: #aaa59b;
  --glass: rgba(250, 249, 246, 0.46);
  --glass-edge: rgba(255, 255, 255, 0.9);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --track-x: 88%;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none;
  border-radius: 10px;
}
.skip:focus { top: 12px; }

/* ---------- Track + rocket ---------- */

.track {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: min(100%, calc(var(--wrap) + var(--gutter) * 2));
  transform: translateX(-50%);
  padding-inline: var(--gutter);
  pointer-events: none;
  z-index: 0;
}
.track__line, .track__trail {
  position: absolute;
  left: calc(var(--gutter) + (100% - var(--gutter) * 2) * 0.88);
  width: 2px;
  margin-left: -1px;
}
.track__line {
  top: var(--track-top, 120px);
  bottom: var(--track-bottom, 160px);
  background-image: radial-gradient(circle, var(--dots) 1px, transparent 1.4px);
  background-size: 2px 10px;
  background-repeat: repeat-y;
}
.track__trail {
  top: var(--track-top, 120px);
  height: var(--trail, 0px);
  background: var(--ink);
  width: 1.5px;
  margin-left: -0.75px;
}

.rocket {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 92px;
  margin-left: -20px;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
  transform-origin: 20px 0;
  transform: translate3d(var(--rx, -200px), var(--ry, -200px), 0) scale(var(--rs, 1));
}
.rocket svg { display: block; overflow: visible; }
.rocket__body { fill: var(--ink); }
.rocket__fin { fill: var(--ink); }
.rocket__nozzle { fill: var(--ink); }
.rocket__window { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.rocket__flame line {
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 2 4;
}
.rocket__flame {
  opacity: 0;
  transform-origin: 20px 18px;
  transform: scaleY(0.4);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.rocket.is-moving .rocket__flame { opacity: 1; transform: scaleY(1); }
.rocket.is-moving .rocket__flame line { animation: exhaust 0.35s linear infinite; }
@keyframes exhaust { to { stroke-dashoffset: 6; } }

@media (prefers-reduced-motion: reduce) {
  .rocket__flame { display: none; }
}

/* ---------- Brand marks ---------- */

.mark__solid { fill: var(--ink); }
.mark__outline {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-dasharray: 5 5;
}

/* ---------- Top bar ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
}
.top__brand { display: inline-flex; border-radius: 6px; }
.mark { width: 44px; height: 44px; display: block; }
.top__cta {
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  transition: background 0.2s ease, color 0.2s ease;
}
.top__cta:hover { background: var(--ink); color: var(--paper); }

@supports (corner-shape: squircle) {
  .top__cta { border-radius: 22px; corner-shape: squircle; }
}

/* ---------- Hero ---------- */

.hero { padding-top: clamp(40px, 9vh, 110px); padding-bottom: clamp(80px, 14vh, 160px); }

.wordmark {
  margin: 0 0 clamp(40px, 7vh, 72px);
  font-weight: 200;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 0.92;
  color: var(--ink);
  font-size: clamp(48px, 12.2vw, 176px);
  /* JS sets an exact size so VISIBILITY fills the measure */
  font-size: var(--fit, clamp(48px, 12.2vw, 176px));
}
.wordmark__line { display: block; width: max-content; white-space: nowrap; }
.wordmark__line:first-child { letter-spacing: 0.04em; }

.hero__lead {
  margin: 0 0 18px;
  max-width: 20ch;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.12;
  font-weight: 500;
  font-variation-settings: "wdth" 100;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.hero__sub {
  margin: 0 0 36px;
  max-width: 54ch;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 19px);
}

.engines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.engines li {
  position: relative;
  padding: 9px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

/* ---------- Squircle helpers (paths drawn by main.js) ---------- */

[data-sq] { position: relative; }
.sq-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.sq-svg path { fill: none; vector-effect: non-scaling-stroke; }
[data-sq="dashed"] > .sq-svg path {
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-dasharray: 4 5;
}
.engines [data-sq="dashed"] > .sq-svg path { stroke: #57544e; stroke-width: 1.2; stroke-dasharray: 3 4; }

/* ---------- Sections ---------- */

.section-title {
  margin: 0 0 28px;
  font-size: clamp(15px, 1.2vw, 16px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.report { padding-bottom: clamp(80px, 12vh, 140px); }
.report__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  max-width: 86%;
}
.part { border-top: 1px solid var(--ink); padding-top: 20px; }
.part h3 {
  margin: 0 0 10px;
  font-size: clamp(21px, 1.9vw, 25px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.part p { margin: 0; color: var(--muted); max-width: 36ch; }

.agency {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding-bottom: clamp(90px, 14vh, 160px);
  max-width: calc(var(--wrap) * 0.86 + var(--gutter) * 2);
  margin-left: max(0px, calc((100% - var(--wrap) - var(--gutter) * 2) / 2));
}
.logo-slot {
  aspect-ratio: 5 / 3;
  width: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 500;
  font-size: clamp(18px, 1.8vw, 22px);
  letter-spacing: 0.01em;
}
.agency__lead {
  margin: 0 0 16px;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: 22ch;
}
.agency__copy p:not(.agency__lead) { color: var(--muted); max-width: 48ch; margin: 0; }

/* ---------- Join ---------- */

.join { padding-bottom: clamp(90px, 14vh, 150px); scroll-margin-top: 24px; }

.ghost {
  position: absolute;
  z-index: -1;
  opacity: 0.55;
}
.ghost--a { width: 46%; aspect-ratio: 1; left: -4%; top: -10%; }
.ghost--b { width: 30%; aspect-ratio: 1.3; right: 1%; bottom: 14%; }
.ghost > .sq-svg path { stroke: var(--dots) !important; }

.panel { position: relative; }
.panel__glass {
  position: absolute;
  inset: 0;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  z-index: 0;
}
.panel > .sq-svg path { stroke: var(--glass-edge); stroke-width: 1.5; }
.panel > .sq-svg path.edge-shadow { stroke: rgba(0, 0, 0, 0.12); stroke-width: 1; }

.panel__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(32px, 6vw, 80px);
  align-items: start;
}
.panel__title {
  margin: 0 0 14px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.02;
  font-weight: 300;
  font-variation-settings: "wdth" 118;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.panel__intro p { margin: 0; color: var(--muted); max-width: 34ch; }

.form { display: grid; gap: 20px; }
.hp { position: absolute; left: -9999px; }

.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: 15px; font-weight: 500; color: var(--text); padding: 0; }
.optional { color: var(--muted); font-weight: 400; }

.field input[type="email"],
.field input[type="text"] {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input::placeholder { color: #9a968e; }
.field input:hover { border-color: #bdb8ae; }
.field input:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--ink); }
.field input[aria-invalid="true"] { border-color: #8f1d1d; box-shadow: 0 0 0 1px #8f1d1d; }
.field__error { margin: 0; min-height: 0; font-size: 14px; color: #8f1d1d; }
.field__error:empty { display: none; }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.choice__opt { position: relative; cursor: pointer; }
.choice__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__opt span {
  display: block;
  text-align: center;
  padding: 12px 10px;
  border: 1px dashed #8d897f;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.choice__opt input:checked + span { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.choice__opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }

.button {
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  border: 0;
  border-radius: 16px;
  padding: 16px 22px;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.15s ease;
}
.button:hover { opacity: 0.86; }
.button:active { transform: translateY(1px); }
.button[disabled] { opacity: 0.5; cursor: progress; }

@supports (corner-shape: squircle) {
  .field input[type="email"], .field input[type="text"], .choice__opt span { border-radius: 26px; corner-shape: squircle; }
  .button { border-radius: 30px; corner-shape: squircle; }
}

.form__note { margin: 0; font-size: 14px; color: var(--muted); }
.form__status { margin: 0; font-size: 15px; color: #8f1d1d; }
.form__status:empty { display: none; }

.done { padding-top: 6px; }
.done__mark { width: 56px; height: 56px; display: block; margin-bottom: 20px; }
.done__title {
  margin: 0 0 8px;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 500;
  color: var(--ink);
}
.done__title:focus { outline: none; }
.done__text { margin: 0; color: var(--muted); }
.done__email { color: var(--ink); font-weight: 600; word-break: break-all; }

/* ---------- Footer ---------- */

.foot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 40px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 48px;
}
.foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid var(--line);
}
.logo { width: 112px; height: 112px; grid-row: span 2; }
.logo__text {
  fill: var(--paper);
  font-family: var(--font);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 3px;
  font-variation-settings: "wdth" 110;
}
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 500; }
.foot__small { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  .report__grid { grid-template-columns: 1fr; max-width: 88%; gap: 32px; }
  .agency { grid-template-columns: 1fr; max-width: none; margin-left: 0; }
  .agency__visual { max-width: 340px; width: 80%; }
  .panel__inner { grid-template-columns: 1fr; }
  .ghost--a { width: 80%; left: -20%; top: -6%; }
  .ghost--b { width: 60%; right: -10%; }
}

@media (max-width: 640px) {
  :root { --track-x: 94%; }
  body { font-size: 16px; }
  .track__line, .track__trail { left: calc(100% - 22px); }
  .rocket { --rs: 0.68; }
  .hero__lead, .hero__sub, .report__grid, .agency__copy { max-width: 90%; }
  .engines li { padding: 8px 14px; font-size: 14px; }
  .foot { grid-template-columns: 1fr; }
  .logo { width: 96px; height: 96px; grid-row: auto; }
}
