/* ==========================================================================
   Vettwise — site styles
   Plain CSS, no build step. Tokens first, then base, components, sections.
   ========================================================================== */

/* ---------- Fonts (self-hosted, variable woff2) ---------- */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Arrows used in the sample report (→ ↳) */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-arrows.woff2") format("woff2");
  unicode-range: U+2192, U+21B3;
}

/* ---------- Tokens ---------- */

:root {
  /* Brand */
  --ink: #12171A;
  --paper: #F4F4F0;
  --paper-2: #ECEDE8;
  --surface: #FFFFFF;
  --surface-2: #FAFAF8;
  --line: #D9DBD5;
  --line-2: #C9CCC4;
  --line-soft: #E6E7E2;
  --line-faint: #EFF0EC;
  --line-dark: #2C3438;
  --text-2: #3A4247;
  --text-3: #4A5358;
  --muted: #5C656A;
  --on-dark: #EDEFEA;
  --on-dark-2: #C4CAC6;
  --on-dark-3: #A9B0AC;
  --accent: #1E7A4C;
  --accent-on-dark: #4CC38A;
  --fail: #B4471F;
  --fail-text: #8A3415;
  --fail-bg: #FBF4F0;
  --flaky: #8A5A00;
  --flaky-bar: #D9A23A;

  /* Type */
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --radius-sm: 6px;
  --radius: 10px;
  --section-y: 104px;
  --section-y-lg: 112px;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, p, ol, ul, figure {
  margin: 0;
}

a {
  color: var(--ink);
}

a:hover {
  color: var(--text-2);
}

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

.on-dark :focus-visible {
  outline-color: var(--accent-on-dark);
}

main {
  flex: 1 0 auto;
}

svg {
  display: block;
  flex: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
  color: var(--paper);
}

/* ---------- Layout helpers ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.stack {
  display: flex;
  flex-direction: column;
}

/* ---------- Type components ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.on-dark .eyebrow {
  color: var(--on-dark-3);
}

.eyebrow--dot {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-2);
}

.on-dark .lead {
  color: var(--on-dark-2);
}

.body-text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
}

.note {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-3);
}

.note--fine {
  font-size: 13px;
}

.note + .note--fine {
  margin-top: -12px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #FFFFFF;
}

.btn--primary:hover {
  background: #186640;
  color: #FFFFFF;
}

.btn--outline {
  border: 1px solid var(--ink);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--lg {
  padding: 18px 28px;
  font-size: 17px;
}

/* ---------- Logo ---------- */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover {
  color: var(--ink);
}

.logo__mark {
  width: 34px;
  height: 34px;
}

.logo__mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 4.5;
  stroke-linecap: square;
}

.logo__mark .logo__check {
  stroke: var(--accent);
}

.on-dark .logo__mark .logo__check {
  stroke: var(--accent-on-dark);
}

.logo__word {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ---------- Header / nav ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 28px;
  font-size: 15px;
  font-weight: 500;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.nav .nav__cta {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--paper);
}

.nav .nav__cta:hover {
  background: var(--text-2);
  color: var(--paper);
}

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

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 88px;
  padding-bottom: 96px;
}

.hero__copy {
  flex: 1 1 480px;
  min-width: 0;
  gap: 28px;
}

.hero__title {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.hero__lead {
  max-width: 560px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-2);
}

.hero__aside a {
  font-weight: 500;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

/* ---------- Sample report card ---------- */

.report {
  flex: 1 1 440px;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(18, 23, 26, 0.35);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
}

.report__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-2);
}

.report__title {
  font-weight: 600;
}

.report__note {
  color: var(--muted);
}

.report__rows {
  list-style: none;
  padding: 0;
}

.report__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-faint);
}

.report__row:last-child {
  border-bottom: 0;
}

.report__row--fail {
  background: var(--fail-bg);
}

.report__status {
  flex: none;
  width: 40px;
  font-weight: 600;
}

.report__status--pass { color: var(--accent); }
.report__status--fail { color: var(--fail); }
.report__status--flaky { color: var(--flaky); }

.report__case {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.report__detail {
  color: var(--muted);
}

.report__row--fail .report__detail {
  color: var(--fail-text);
}

.report__foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface-2);
}

.report__bar {
  display: flex;
  gap: 2px;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.report__bar-pass { flex: 196; background: var(--accent); }
.report__bar-fail { flex: 31; background: var(--fail); }
.report__bar-flaky { flex: 13; background: var(--flaky-bar); }

/* CX page variant: wider status column ("REVIEW"), its own proportions */
.report__status--review { color: var(--flaky); }
.report--qa .report__status { width: 52px; }
.report--qa .report__bar-pass { flex: 212; }
.report--qa .report__bar-fail { flex: 26; }
.report--qa .report__bar-flaky { flex: 12; }

.report__totals {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  color: var(--text-2);
}

.report__totals-all {
  color: var(--muted);
}

/* ---------- Dark sections (problem, CTA, footer) ---------- */

.on-dark {
  background: var(--ink);
  color: var(--on-dark);
}

.on-dark a:not(.btn) {
  color: var(--on-dark);
}

.on-dark a:not(.btn):hover {
  color: var(--on-dark-2);
}

/* ---------- Problem ---------- */

.problem {
  gap: 48px;
}

.problem__intro {
  max-width: 760px;
  gap: 20px;
}

.problem__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.problem-card {
  flex: 1 1 300px;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.problem-card__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--on-dark-3);
}

.problem-card__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.problem-card p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--on-dark-2);
}

/* ---------- Audit offer ---------- */

.audit {
  gap: 48px;
  padding-top: var(--section-y-lg);
  padding-bottom: 96px;
}

.audit__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.section-intro {
  max-width: 680px;
  gap: 18px;
}

.audit__head .section-intro {
  flex: 1 1 520px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  list-style: none;
  padding: 0;
}

.chip {
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}

.chip--solid {
  background: var(--ink);
  color: var(--paper);
}

.deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.deliverable {
  flex: 1 1 260px;
  gap: 14px;
  padding: 32px 28px;
  background: var(--surface);
}

.deliverable__icon {
  width: 28px;
  height: 28px;
}

.deliverable__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.after {
  gap: 20px;
}

.after__label {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.after__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.offer {
  flex: 1 1 380px;
  min-width: 0;
  gap: 12px;
  padding: 28px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.offer__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
}

.offer__title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}

.offer--wide .body-text {
  max-width: 760px;
}

.offer__meta {
  margin-top: auto;
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-3);
}

.offer__price {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-2);
}

/* ---------- How it works ---------- */

.how {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.how__inner {
  gap: 48px;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
}

.step {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.steps + .note {
  margin-top: -16px;
}

.step--active {
  border-top-color: var(--accent);
}

.step__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
}

.step__title {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
}

/* ---------- Tools ---------- */

.tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.tools__copy {
  flex: 1 1 520px;
  min-width: 0;
  gap: 18px;
}

.tools__copy .lead {
  max-width: 600px;
}

.tool-chips {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 15px;
}

.tool-chip {
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.tool-chip--own {
  border: 1px dashed var(--ink);
}

.tools-band {
  border-top: 1px solid var(--line);
}

/* ---------- About (text-only, two-column split) ---------- */

.about {
  border-top: 1px solid var(--line);
}

.about--flush {
  border-top: 0;
}

.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}

.about__head {
  gap: 20px;
}

.about__title {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.about__body {
  gap: 20px;
  max-width: 640px;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.about__body p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}

.faq__inner {
  max-width: 880px;
  gap: 32px;
}

.faq__list {
  border-top: 1px solid var(--line-2);
}

.faq__item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line-2);
}

.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__icon {
  flex: none;
  font-family: var(--font-mono);
  color: var(--text-3);
}

.faq__icon::before {
  content: "+";
}

.faq__item[open] .faq__icon::before {
  content: "–";
}

.faq__item p {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ---------- CTA ---------- */

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding-top: var(--section-y-lg);
  padding-bottom: var(--section-y-lg);
}

.cta__copy {
  flex: 1 1 560px;
  min-width: 0;
  gap: 18px;
}

.cta__title {
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.cta__email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 15px;
}

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

.site-footer {
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-3);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 14px;
}

.site-footer__links {
  display: flex;
  gap: 20px;
}

.on-dark .site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-dark-2);
}

.on-dark .site-footer__links a:hover {
  color: var(--on-dark);
}

/* ---------- Sub pages (privacy, company, 404) ---------- */

.page {
  max-width: 760px;
  gap: 20px;
  padding-top: 88px;
  padding-bottom: var(--section-y);
}

.page__title {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.page__meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
}

.prose h2 {
  margin-top: 24px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--ink);
}

.prose ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 22px;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.details-list {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  margin: 12px 0 0;
  border-top: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.5;
}

.details-list dt,
.details-list dd {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.details-list dt {
  padding-right: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1.9;
}

.details-list dd {
  color: var(--ink);
}

.not-found {
  gap: 28px;
  padding-top: 120px;
  padding-bottom: 140px;
  max-width: 760px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .about__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 600px) {
  :root {
    --section-y: 72px;
    --section-y-lg: 80px;
  }

  .nav {
    gap: 0 20px;
  }

  .hero {
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 72px;
  }

  .hero__lead {
    font-size: 18px;
  }

  .audit {
    padding-bottom: 72px;
  }

  .problem-card,
  .offer {
    padding: 24px;
  }

  .deliverable {
    padding: 28px 24px;
  }

  .faq__item summary {
    font-size: 18px;
  }

  .page {
    padding-top: 56px;
  }

  .not-found {
    padding-top: 72px;
    padding-bottom: 96px;
  }

  .details-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .details-list dt {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .details-list dd {
    padding-top: 4px;
  }
}
