/* ============================================================
   Measurement Viewer — landing page (standalone)
   Blueprint Steel palette, hardcoded on purpose: this file must
   not depend on the app's theme.css so it can live in its own
   (marketing) repo untouched.
   ============================================================ */

:root {
  --steel:       #284561;
  --steel-grid:  #33547a;
  --steel-text:  #ffffff;
  --steel-mut:   #c4d2e4;
  --steel-dim:   #7e93ad;

  --bg:          #f6f8fb;
  --bg-grid:     #e7ecf3;
  --panel:       #ffffff;
  --border:      #d5dce6;
  --border-dash: #bcc5d3;

  --text:        #16191d;
  --text-2:      #5e6878;
  --text-3:      #8a96a8;

  --accent:      #2f86d4;
  --accent-soft: rgba(47, 134, 212, 0.12);
  --link:        #2563b0;

  --radius: 10px;
  --max: 1060px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }

a { color: var(--link); text-decoration: none; }
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: filter .12s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-lg { padding: 12px 26px; font-size: 15px; }

.link-arrow { font-weight: 600; font-size: 14px; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- nav (steel) ---------- */
.nav {
  background: var(--steel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 14px clamp(16px, 4vw, 40px);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--steel-text);
}
/* PLACEHOLDER logo block — replace with <img>/<svg> */
.nav-logo {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--accent);
  flex: 0 0 auto;
}
.nav-name { font-size: 15px; font-weight: 600; }
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.nav-links > a:not(.btn) {
  color: var(--steel-mut);
  font-size: 14px;
}
.nav-links > a:not(.btn):hover { color: var(--steel-text); }

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: clamp(48px, 8vw, 88px) 20px 64px;
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero h1 {
  font-size: clamp(30px, 5.4vw, 52px);
  font-weight: 750;
  max-width: 760px;
  margin: 0 auto;
}
.hero-sub {
  color: var(--text-2);
  font-size: clamp(15px, 2vw, 17px);
  max-width: 620px;
  margin: 18px auto 26px;
}
.hero-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* ---------- media placeholder frames ----------
   Styled as an in-app measurement: dashed outline + corner
   vertex dots + a label where the value would sit. */
.media-frame {
  position: relative;
  margin: 0;
  border: 2px dashed var(--border-dash);
  border-radius: var(--radius);
  background: var(--panel);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-frame-hero {
  max-width: 860px;
  margin: 44px auto 0;
  min-height: clamp(240px, 40vw, 420px);
}
.media-label {
  color: var(--text-3);
  font-size: 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
}
.vertex {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--border);
}
.v-tl { top: -7px;    left: -7px; }
.v-tr { top: -7px;    right: -7px; }
.v-bl { bottom: -7px; left: -7px; }
.v-br { bottom: -7px; right: -7px; }

/* ---------- pipeline ---------- */
.pipeline {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 46px clamp(16px, 4vw, 40px);
}
.pipeline-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
  counter-reset: step;
}
.pipeline-steps li { text-align: center; }
.pipeline-steps svg {
  width: 30px; height: 30px;
  stroke: var(--accent);
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pipeline-steps h3 {
  font-size: 15px;
  font-weight: 650;
  margin: 10px 0 4px;
}
/* the pipeline IS a sequence — numbering carries meaning here */
.pipeline-steps h3::before {
  counter-increment: step;
  content: counter(step) ". ";
  color: var(--accent);
}
.pipeline-steps p {
  color: var(--text-2);
  font-size: 13px;
}

/* ---------- features ---------- */
.features {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px clamp(16px, 4vw, 40px);
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  padding: 38px 0;
}
.feature-row-flip .feature-text { order: 2; }
.feature-text h2 { font-size: clamp(21px, 3vw, 27px); font-weight: 700; }
.feature-text p {
  color: var(--text-2);
  font-size: 15px;
  margin-top: 12px;
}

/* ---------- mobile app teaser (steel band) ---------- */
.teaser {
  background-color: var(--steel);
  background-image:
    linear-gradient(var(--steel-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--steel-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  padding: 56px clamp(16px, 4vw, 40px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  flex-wrap: wrap;
}
.teaser-text { max-width: 460px; }
.eyebrow {
  color: var(--steel-mut);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.teaser h2 { color: var(--steel-text); font-size: clamp(21px, 3vw, 27px); }
.teaser-text > p:last-child {
  color: var(--steel-mut);
  font-size: 15px;
  margin-top: 12px;
}
.phone-frame {
  margin: 0;
  width: 190px;
  height: 340px;
  border: 2px dashed var(--steel-dim);
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.12);
}
.phone-frame .media-label {
  background: transparent;
  border-color: var(--steel-dim);
  color: var(--steel-mut);
  text-align: center;
}

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding: 64px 20px;
}
.cta h2 { font-size: clamp(22px, 3.4vw, 30px); }
.cta p { color: var(--text-2); margin: 10px 0 22px; }

/* ---------- footer ---------- */
.footer {
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 30px clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 26px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer-links a { color: var(--text-2); font-size: 13px; }
.footer-links a:hover { color: var(--text); }
.footer-legal { color: var(--text-3); font-size: 12px; width: 100%; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .pipeline-steps { grid-template-columns: repeat(2, 1fr); max-width: 480px; }
  .pipeline-steps li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .feature-row { grid-template-columns: 1fr; padding: 26px 0; }
  .feature-row-flip .feature-text { order: 0; }
  .media-frame { min-height: 190px; }
}
