/* ============================================================
   Cleaver — marketing site
   Built from DESIGN-SYSTEM.md; rendered mockups in reference/
   are the visual target.
   ============================================================ */

/* ─────────── FONTS (self-hosted, OFL — see fonts/LICENSE.txt) ─────────── */

@font-face {
  font-family: 'Geist';
  src: url('fonts/geist-variable.woff2') format('woff2-variations'),
       url('fonts/geist-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/geist-mono-variable.woff2') format('woff2-variations'),
       url('fonts/geist-mono-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ─────────── TOKENS ─────────── */

:root {
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --surface: #F5F5F5;
  --surface-2: #F0F0F0;
  --line: #E5E5E5;
  --line-soft: #EFEFEF;
  --text: #0A0A0A;
  --text-2: #404040;
  --text-3: #6B6B6B;
  --text-faint: #9A9A9A;
  --red: #9E1B26;
  --red-deep: #7A1019;
  --red-soft: #FBEEEF;
  --red-line: #F4D5D8;
  --green: #16A34A;
  --green-soft: #DCFCE7;
  /* AA-safe companion to --green for small green TEXT on light surfaces.
     #16A34A is only 3.15:1 on --off-white; this is 5.2:1. Fills/borders/dots
     still use --green. */
  --green-deep: #147A38;
  --red-light: #FF6B7A;          /* em word on dark only */

  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --nav-h: 67px;                 /* kept in sync by main.js */
  --section-pad: 140px;
}

/* ─────────── RESET ─────────── */

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

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

body {
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* Anchor targets clear the sticky nav */
[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

/* Line breaks that only apply in one size band */
.br-narrow { display: none; }

/* ─────────── TYPE HELPERS ─────────── */

.display-tight { letter-spacing: -0.04em; font-weight: 600; }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  font-weight: 500;
  text-transform: uppercase;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px;
}

/* ─────────── A11Y UTILITIES ─────────── */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 300;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ─────────── BUTTONS ─────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 6px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1;
  white-space: nowrap;
}

.btn .arrow { display: inline-block; }

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); }

.btn-dark {
  background: var(--text);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.10);
}
.btn-dark:hover { background: #1F1F1F; }

.btn-outline {
  background: var(--white);
  color: var(--text);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--text-3); }

.btn-white {
  background: var(--white);
  color: var(--text);
}
.btn-white:hover { background: var(--surface-2); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.28);
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }

.btn-large { padding: 13px 22px; font-size: 14.5px; }
.btn-block { display: flex; width: 100%; padding: 14px 18px; font-size: 14.5px; }

/* ─────────── NAV ─────────── */

.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 56px;
  max-width: 1440px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  line-height: 1.55;
}
.logo-mark { width: 22px; height: 22px; color: var(--red); flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
/* Button anchors must keep their own colours — see DESIGN-SYSTEM.md § Buttons */
.nav-links a:not(.btn) {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 450;
}
.nav-links a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex-shrink: 0;
}
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }

.nav-drawer {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 8px 20px 20px;
}
.nav-drawer[hidden] { display: none; }
.nav-drawer-inner { display: flex; flex-direction: column; }
.nav-drawer a:not(.btn) {
  display: block;
  color: var(--text-2);
  text-decoration: none;
  font-size: 16px;
  font-weight: 450;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.nav-drawer a:not(.btn):hover { color: var(--text); }
.nav-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.24);
  z-index: 90;
}
.nav-scrim[hidden] { display: none; }

/* ─────────── HERO ─────────── */

.hero {
  padding: 80px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(158,27,38,0.04), transparent 60%),
    var(--white);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 70%, transparent);
  opacity: 0.5;
  pointer-events: none;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.hero-pill-tag {
  background: var(--red-soft);
  color: var(--red);
  padding: 3px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.hero h1 {
  font-size: 76px;
  line-height: 1.0;
  letter-spacing: -0.045em;
  font-weight: 600;
  color: var(--text);
  margin: 0 auto 28px;
  max-width: 920px;
  position: relative;
  z-index: 1;
}
.hero h1 em {
  font-style: normal;
  color: var(--red);
  position: relative;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0.06em;
  height: 0.08em;
  background: var(--red);
  opacity: 0.18;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-3);
  max-width: 640px;
  margin: 0 auto 40px;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

/* ─────────── HERO — APP REPLICA (Order History) ─────────── */

.product-mockup-wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}
.product-mockup {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow:
    0 1px 1px rgba(0,0,0,0.02),
    0 8px 24px -4px rgba(0,0,0,0.06),
    0 24px 48px -12px rgba(0,0,0,0.10);
  overflow: hidden;
  text-align: left;
}

.pm-toolbar {
  background: var(--off-white);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-3);
}
.pm-toolbar-dots { display: flex; gap: 6px; margin-right: 8px; }
.pm-toolbar-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.pm-toolbar-url {
  flex: 1;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 12px;
  color: var(--text-3);
  max-width: 380px;
  margin: 0 auto;
}
.pm-toolbar-spacer { width: 60px; flex-shrink: 0; }

.pm-app { background: var(--white); min-height: 480px; }

.pm-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
}
.pm-page-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
}
.pm-page-sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }

.pm-actions { display: flex; gap: 8px; flex-shrink: 0; }
.pm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pm-btn svg { width: 12px; height: 12px; flex-shrink: 0; }
.pm-btn-primary { background: var(--red); color: var(--white); }
.pm-btn-secondary { background: var(--white); color: var(--text); border-color: var(--line); }

.pm-filters { display: flex; gap: 8px; padding: 0 24px 16px; }
.pm-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  flex-shrink: 0;
}
.pm-filter-btn svg { width: 11px; height: 11px; }
.pm-input {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-faint);
  background: var(--white);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}
.pm-input svg { width: 11px; height: 11px; flex-shrink: 0; }
.pm-input .chev { margin-left: auto; }

.pm-table {
  margin: 0 24px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.pm-row {
  display: grid;
  grid-template-columns: 30px 60px 90px minmax(0, 1fr) 84px 100px 110px 48px;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: 12.5px;
}
.pm-row > * { min-width: 0; }
.pm-row:last-child { border-bottom: none; }
.pm-row.head {
  background: var(--off-white);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  padding: 9px 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
}
.pm-row.head > span { overflow: hidden; text-overflow: ellipsis; }

.pm-check {
  width: 14px; height: 14px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}
.pm-order {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text);
  font-size: 12px;
}
.pm-inv {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-2);
  font-size: 11.5px;
  white-space: nowrap;
}
.pm-inv.empty { color: var(--text-faint); font-weight: 400; }
.pm-cust {
  color: var(--text);
  font-weight: 450;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-date {
  font-family: var(--font-mono);
  color: var(--text-3);
  font-size: 11.5px;
  white-space: nowrap;
}
.pm-type {
  color: var(--text-3);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Status pills — fixed 94px, centred. Uniform width is an approval point. */
.pm-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 0;
  border-radius: 999px;
  border: 1px solid;
  font-family: var(--font);
  background: var(--white);
  justify-self: start;
  white-space: nowrap;
  width: 94px;
  flex-shrink: 0;
}
.pm-status.topick { color: var(--red); border-color: var(--red-line); background: var(--red-soft); }
.pm-status.todispatch { color: var(--green-deep); border-color: rgba(22,163,74,0.25); background: rgba(22,163,74,0.06); }
.pm-status.delivering { color: var(--text-2); border-color: var(--line); background: var(--surface); }
.pm-status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
/* --green-deep exists only to make small green TEXT reach AA; the dots and
   fills keep the design system's --green. */
.pm-status.todispatch .pm-status-dot { background: var(--green); }

.pm-row-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  color: var(--text-faint);
}
.pm-row-actions svg { width: 13px; height: 13px; }

/* Card stack — used below the table breakpoint */
.pm-cards { display: none; padding: 0 16px 18px; }
.pm-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pm-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pm-card-order {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text);
  font-size: 11.5px;
}
.pm-card-cust {
  font-size: 12.5px;
  color: var(--text);
  font-weight: 450;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}
.pm-card-inv {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-2);
  font-weight: 500;
}
.pm-card-inv.empty { color: var(--text-faint); font-weight: 400; }
.pm-card-type {
  font-size: 11.5px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-cards-more {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  text-align: center;
  padding-top: 12px;
}

/* ─────────── PROBLEM ─────────── */

.problem {
  background: var(--off-white);
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 100px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}
.problem-label { color: var(--text-3); }
.problem h2 {
  font-size: 56px;
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: var(--text);
  margin-top: 16px;
}
.problem h2 em { font-style: normal; color: var(--red); }
.problem-body { padding-top: 6px; }
.problem-para {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 22px;
  font-weight: 400;
}
.problem-para strong { color: var(--text); font-weight: 500; }
.problem-para:last-child { margin-bottom: 0; }

/* ─────────── SECTION HEADERS ─────────── */

.section-header { margin-bottom: 72px; max-width: 760px; }
.section-eyebrow {
  color: var(--red);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-eyebrow::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--red);
  display: inline-block;
}
.section-header h2 {
  font-size: 52px;
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
}
.section-sub {
  font-size: 18px;
  color: var(--text-3);
  line-height: 1.55;
  max-width: 640px;
}

/* ─────────── BENEFITS ─────────── */

.benefits { padding: var(--section-pad) 0; }
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.benefit-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}
.benefit-card:hover { border-color: var(--text-3); }
.benefit-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red);
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}
.benefit-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 24px;
  color: var(--text);
  background: var(--surface);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefit-icon svg { width: 100%; height: 100%; }
.benefit-card h3 {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 600;
}
.benefit-body { font-size: 14.5px; color: var(--text-3); line-height: 1.55; }

/* ─────────── FEATURES (BENTO) ─────────── */

.features {
  background: var(--off-white);
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.fb {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  grid-column: span 2;
}
.fb:hover { border-color: var(--text-3); }
.fb-hero {
  grid-column: span 6;
  padding: 40px 44px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.fb-half { grid-column: span 3; }
.fb-hero-text { max-width: 460px; }
/* NOTE: the desktop mockup carries .fb-hero h3 {32px} / .fb-hero p {16px} rules,
   but both lose to the later same-specificity .fb h3 / .fb p — so the approved
   render is 22px / 14.5px. Matching the render, per BRIEF § Fidelity. */

.fb-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red);
  background: var(--red-soft);
  padding: 4px 9px;
  border-radius: 6px;
  margin-bottom: 22px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.fb h3 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.fb-body { font-size: 14.5px; color: var(--text-3); line-height: 1.55; max-width: 380px; }

/* Feature 01 mini-visual — live order list */
.fb-hero-vis {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.fb-vis-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
}
.fb-vis-row:last-child { border-bottom: none; }
.fb-vis-order { font-family: var(--font-mono); color: var(--text); font-weight: 500; }
.fb-vis-cust {
  color: var(--text-2);
  flex: 1;
  min-width: 0;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fb-vis-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.fb-vis-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.fb-vis-status.pick { color: var(--red); }
.fb-vis-status.dispatch { color: var(--green-deep); }
.fb-vis-status.dispatch::before { background: var(--green); }
.fb-vis-status.delivering { color: var(--text-3); }

/* Sidecar visuals for the smaller blocks */
.fb-mini-vis {
  margin-top: 24px;
  height: 80px;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.fb-mini-vis svg { display: block; max-width: 100%; height: auto; }
.fb-mini-vis-tall { height: 90px; }

/* ─────────── INTEGRATIONS ─────────── */

.integrations { padding: 96px 0; }
.integrations-inner { text-align: center; max-width: 1180px; margin: 0 auto; }
.integrations-label {
  color: var(--text-3);
  margin-bottom: 44px;
  font-weight: 500;
}
.integrations-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.int-cell {
  padding: 36px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text-2);
}
.int-cell:last-child { border-right: none; }
.int-cell:hover { color: var(--text); background: var(--off-white); }
.int-cell svg { width: 22px; height: 22px; opacity: 0.7; flex-shrink: 0; }

/* ─────────── CREDIBILITY ─────────── */

.credibility {
  padding: var(--section-pad) 0;
  background: var(--white);
  border-top: 1px solid var(--line);
}
.cred-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}
/* 4:3, not the placeholder's 4:5 — the screen it holds is a landscape dashboard. */
.cred-image {
  aspect-ratio: 4 / 3;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 32px -16px rgba(0,0,0,0.10);
}
.cred-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.cred-content h2 {
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--text);
  margin: 16px 0 24px;
}
.cred-para {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-3);
  margin-bottom: 18px;
  max-width: 540px;
}
.cred-para strong { color: var(--text); font-weight: 500; }
.cred-sig {
  margin-top: 36px;
  padding: 18px 22px;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cred-sig-mark {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--text);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.cred-sig-text { font-size: 13.5px; color: var(--text-3); }
.cred-sig-text strong {
  color: var(--text);
  font-weight: 500;
  display: block;
  font-size: 14px;
  letter-spacing: -0.01em;
}

/* ─────────── FINAL CTA ─────────── */

.final-cta-wrap {
  padding: 80px 56px 120px;
  max-width: 1440px;
  margin: 0 auto;
}
.final-cta {
  background: var(--text);
  color: var(--white);
  padding: 88px 64px;
  text-align: center;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(158,27,38,0.45), transparent 60%);
  pointer-events: none;
}
.final-cta-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black, transparent);
}
.final-cta-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.final-cta-pill {
  color: rgba(255,255,255,0.55);
  margin-bottom: 28px;
  display: inline-block;
  padding: 5px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
}
.final-cta h2 {
  font-size: 64px;
  line-height: 1.0;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 24px;
}
.final-cta h2 em { font-style: normal; color: var(--red-light); }
.final-cta-body {
  font-size: 18px;
  color: rgba(255,255,255,0.72);
  margin: 0 auto 40px;
  max-width: 520px;
  line-height: 1.55;
}
.final-cta-row { display: flex; gap: 12px; justify-content: center; }

/* ─────────── FOOTER ─────────── */

footer {
  background: var(--white);
  color: var(--text-3);
  padding: 64px 0 32px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 64px;
  margin: 0 auto 56px;
  max-width: 1180px;
}
.footer-brand p {
  font-size: 13.5px;
  color: var(--text-3);
  margin-top: 18px;
  line-height: 1.6;
  max-width: 320px;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: 400;
  width: fit-content;
}
.footer-col a:hover { color: var(--red); }
.footer-region { margin-top: 20px; }
.footer-region-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 6px;
  font-weight: 500;
}
.footer-col .footer-region a { margin-bottom: 0; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-3);
  max-width: 1180px;
  margin: 0 auto;
}
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--red); }
.footer-bottom-links { display: flex; gap: 24px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ─────────── ≤1024 ─────────── */
@media (max-width: 1024px) {
  :root { --section-pad: 104px; }

  .container { padding: 0 40px; }
  .nav-inner { padding: 16px 40px; }
  .nav-links { gap: 24px; }

  .hero { padding: 64px 0 88px; }
  .hero h1 { font-size: 60px; max-width: 720px; }
  .hero-sub { font-size: 18px; margin-bottom: 36px; }
  .hero-cta-row { margin-bottom: 64px; }

  .pm-row { grid-template-columns: 26px 54px 82px minmax(0, 1fr) 80px 96px 96px 40px; gap: 8px; }
  .pm-table { margin: 0 20px 20px; }
  .pm-page-head { padding: 20px 20px 14px; }
  .pm-filters { padding: 0 20px 14px; }

  .problem-grid { grid-template-columns: 1fr 1.25fr; gap: 56px; }
  .problem h2 { font-size: 44px; }
  .problem-para { font-size: 17px; }

  .section-header { margin-bottom: 56px; }
  .section-header h2 { font-size: 42px; }
  .section-sub { font-size: 17px; }

  .benefit-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .fb { grid-column: span 3; }
  .fb-hero { grid-column: span 6; padding: 32px; gap: 32px; grid-template-columns: 1fr 1fr; }
  .fb-hero h3 { font-size: 28px; }
  .fb-half { grid-column: span 3; }
  .feature-bento > article:last-child { grid-column: span 6; }

  .int-cell { padding: 32px 14px; font-size: 16px; gap: 10px; }
  .int-cell svg { width: 20px; height: 20px; }

  .cred-grid { grid-template-columns: 1fr; gap: 40px; }
  .cred-image { max-width: 560px; width: 100%; }
  .cred-content h2 { font-size: 38px; }

  .final-cta-wrap { padding: 64px 40px 96px; }
  .final-cta { padding: 72px 40px; }
  .final-cta h2 { font-size: 52px; }

  .footer-grid { gap: 40px; }
}

/* ─────────── ≤768 ─────────── */
@media (max-width: 768px) {
  :root { --section-pad: 72px; }

  /* Headline breaks that only make sense on wide lines */
  .br-wide { display: none; }

  .container { padding: 0 24px; }
  .nav-inner { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .logo { font-size: 18px; gap: 8px; }
  .logo-mark { width: 20px; height: 20px; }

  .hero { padding: 48px 0 64px; text-align: center; }
  .hero::before { background-size: 32px 32px; }
  .hero h1 { font-size: 52px; letter-spacing: -0.04em; }
  .hero-sub { font-size: 17px; }
  .hero-cta-row { flex-direction: column; align-items: stretch; gap: 10px; max-width: 420px; margin: 0 auto 48px; }
  .hero-cta-row .btn { width: 100%; padding: 14px 18px; }

  .problem-grid { grid-template-columns: 1fr; gap: 24px; }
  .problem h2 { font-size: 40px; line-height: 1.05; margin-top: 12px; }
  .problem-body { padding-top: 0; }
  .problem-para { font-size: 16px; margin-bottom: 16px; }

  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: 36px; line-height: 1.05; margin-bottom: 14px; }
  .section-sub { font-size: 15px; }
  .section-eyebrow { margin-bottom: 14px; gap: 6px; }
  .section-eyebrow::before { width: 14px; }
  .mono { font-size: 11px; letter-spacing: 0.04em; }

  .benefit-grid { grid-template-columns: 1fr; gap: 14px; }
  .benefit-card { padding: 22px 20px; }
  .benefit-num { font-size: 10.5px; margin-bottom: 16px; }
  .benefit-icon { width: 32px; height: 32px; padding: 7px; border-radius: 7px; margin-bottom: 16px; }
  .benefit-card h3 { font-size: 17px; margin-bottom: 8px; }
  .benefit-body { font-size: 14px; }

  .feature-bento { grid-template-columns: 1fr; gap: 14px; }
  .fb,
  .fb-half,
  .fb-hero,
  .feature-bento > article:last-child { grid-column: auto; }
  .fb { padding: 22px 20px; }
  .fb-hero { display: block; padding: 22px 20px; }
  .fb-hero-text { max-width: none; }
  .fb h3, .fb-hero h3 { font-size: 19px; margin-bottom: 8px; }
  .fb-hero h3 { font-size: 22px; }
  .fb-body { font-size: 14px; max-width: none; }
  .fb-tag { font-size: 10px; padding: 3px 8px; border-radius: 5px; margin-bottom: 14px; }
  .fb-hero-vis { margin-top: 18px; padding: 12px 14px; border-radius: 8px; }
  .fb-vis-row { font-size: 11.5px; padding: 7px 0; gap: 8px; }
  .fb-vis-cust { text-align: left; }
  .fb-vis-status { font-size: 9.5px; letter-spacing: 0.04em; }
  .fb-mini-vis { margin-top: 16px; height: 70px; }
  .fb-mini-vis-tall { height: 90px; }

  .integrations { padding: 64px 0; }
  .integrations-label { margin-bottom: 28px; }
  .integrations-row {
    grid-template-columns: 1fr 1fr;
    border-bottom: none;
    border-left: 1px solid var(--line);
  }
  .int-cell {
    padding: 24px 12px;
    font-size: 14px;
    gap: 8px;
    letter-spacing: -0.015em;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .int-cell svg { width: 18px; height: 18px; }

  .cred-grid { gap: 28px; }
  .cred-image { max-width: none; border-radius: 12px; }
  .cred-content h2 { font-size: 32px; line-height: 1.1; margin: 12px 0 20px; }
  .cred-para { font-size: 15px; margin-bottom: 16px; }
  .cred-sig { margin-top: 24px; padding: 14px 16px; border-radius: 10px; gap: 12px; }
  .cred-sig-mark { width: 32px; height: 32px; font-size: 13px; border-radius: 7px; }
  .cred-sig-text { font-size: 12px; line-height: 1.45; }
  .cred-sig-text strong { font-size: 13px; }

  .final-cta-wrap { padding: 40px 16px 56px; }
  .final-cta { padding: 48px 24px; border-radius: 16px; }
  .final-cta-grid { background-size: 32px 32px; }
  .final-cta-pill { margin-bottom: 22px; padding: 4px 10px; font-size: 10.5px; }
  .final-cta h2 { font-size: 46px; margin-bottom: 18px; }
  .final-cta-body { font-size: 14.5px; margin-bottom: 28px; }
  .final-cta-row { flex-direction: column; gap: 10px; }
  .final-cta-row .btn { width: 100%; padding: 14px 18px; }

  footer { padding: 48px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; margin-bottom: 36px; }
  .footer-brand p { margin-top: 14px; font-size: 13px; max-width: none; }
  .footer-col-title { font-size: 10.5px; margin-bottom: 14px; }
  .footer-col a { margin-bottom: 9px; }
  .footer-region { margin-top: 16px; }
  .footer-region-label { font-size: 10px; margin-bottom: 5px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 22px;
    font-size: 12px;
  }
  .footer-bottom-links { gap: 18px; }
}

/* ─────────── ≤560 — the mobile mockup's type scale ─────────── */
@media (max-width: 560px) {
  :root { --section-pad: 64px; }

  .br-narrow { display: inline; }

  .hero h1 { font-size: 46px; }
  .problem h2 { font-size: 36px; }
  .section-header h2 { font-size: 32px; }
  .cred-content h2 { font-size: 28px; }
  .final-cta h2 { font-size: 40px; }

  .problem-para { font-size: 15.5px; }
}

/* ─────────── ≤700 — hero table becomes a card stack ─────────── */
@media (max-width: 700px) {
  .product-mockup-wrap { padding: 0; }
  .product-mockup { border-radius: 12px; box-shadow: 0 1px 1px rgba(0,0,0,0.02), 0 8px 20px -4px rgba(0,0,0,0.08); }

  .pm-toolbar { padding: 9px 12px; gap: 8px; font-size: 9.5px; }
  .pm-toolbar-dots { gap: 5px; margin-right: 0; }
  .pm-toolbar-dot { width: 9px; height: 9px; }
  .pm-toolbar-url { border-radius: 4px; padding: 3px 8px; }
  .pm-toolbar-spacer { display: none; }

  .pm-app { min-height: 0; }
  .pm-page-head { padding: 16px 16px 12px; align-items: center; }
  .pm-page-title { font-size: 15px; letter-spacing: -0.02em; }
  .pm-page-sub { font-size: 11px; }
  .pm-btn-wide { display: none; }
  .pm-btn { padding: 6px 10px; font-size: 11px; }

  .pm-filters { display: none; }
  .pm-table { display: none; }
  .pm-cards { display: block; }
}

/* ─────────── ≤480 ─────────── */
@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 14px 20px; }
  .nav-drawer { padding: 8px 20px 20px; }

  .hero { padding: 40px 0 56px; }
  .hero-pill { font-size: 11.5px; gap: 6px; padding: 4px 10px 4px 4px; margin-bottom: 24px; }
  .hero-pill-tag { font-size: 9.5px; padding: 2px 7px; }
  .hero h1 { font-size: 42px; line-height: 1.02; margin-bottom: 20px; }
  .hero-sub { font-size: 15.5px; margin-bottom: 28px; }
  .hero-cta-row { margin-bottom: 40px; }

}

/* ─────────── ≤380 ─────────── */
@media (max-width: 380px) {
  .hero h1 { font-size: 38px; }
  .problem h2 { font-size: 32px; }
  .section-header h2 { font-size: 28px; }
  .cred-content h2 { font-size: 26px; }
  .final-cta h2 { font-size: 34px; }
  .int-cell { font-size: 12.5px; padding: 22px 8px; gap: 6px; letter-spacing: -0.02em; }
  .int-cell svg { width: 17px; height: 17px; }
  .pm-card-cust { font-size: 12px; }
}

/* ============================================================
   MOTION — everything animated lives behind this guard
   ============================================================ */

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

  .btn,
  .nav-links a:not(.btn),
  .nav-drawer a:not(.btn),
  .footer-col a,
  .footer-bottom a,
  .int-cell { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }

  .benefit-card { transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
  .benefit-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(0,0,0,0.08); }

  .fb { transition: border-color 0.18s ease; }

  .js-reveal .reveal { opacity: 0; transform: translateY(12px); }
  .js-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 280ms ease-out, transform 280ms ease-out;
  }
}

/* ============================================================
   404
   ============================================================ */

.notfound {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--nav-h) - 96px);
  padding: 96px 0 120px;
  position: relative;
  overflow: hidden;
}
.notfound::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black, transparent);
  pointer-events: none;
}
.notfound-inner { position: relative; z-index: 1; max-width: 640px; }
.notfound-code { color: var(--text-3); margin-bottom: 24px; }
.notfound h1 {
  font-size: 60px;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: 24px;
}
.notfound h1 em { font-style: normal; color: var(--red); }
.notfound-body {
  font-size: 18px;
  color: var(--text-3);
  line-height: 1.55;
  margin-bottom: 36px;
  max-width: 520px;
}
.notfound-cta-row { display: flex; gap: 12px; margin-bottom: 48px; }
.notfound-help {
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.7;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.notfound-help a { color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--line); }
.notfound-help a:hover { color: var(--red); border-bottom-color: var(--red-line); }
.notfound-footer { background: var(--white); padding: 0 0 32px; }
.notfound-footer .footer-bottom { border-top: 1px solid var(--line); color: var(--text-3); font-size: 12.5px; }

@media (max-width: 768px) {
  .notfound { padding: 64px 0 80px; min-height: 0; }
  .notfound h1 { font-size: 44px; }
  .notfound-body { font-size: 16.5px; }
  .notfound-cta-row { flex-direction: column; align-items: stretch; max-width: 420px; }
  .notfound-cta-row .btn { width: 100%; padding: 14px 18px; }
  .notfound-footer .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
  .notfound h1 { font-size: 36px; }
}

/* ============================================================
   PRINT
   The page is designed for screens, but operations managers do print
   things. Two problems have to be solved: browsers do not print
   background fills by default, so white-on-dark type would vanish; and
   the scroll-reveal never fires without scrolling, so section headings
   would print blank.
   ============================================================ */

@media print {
  /* 1. Reveal-on-scroll never fires in a print context — force it off.
        Beats the .js-reveal rule above, which sets opacity: 0. */
  .js-reveal .reveal,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* 2. Chrome */
  .nav,
  .nav-drawer,
  .nav-scrim,
  .skip-link,
  .nav-toggle { display: none !important; }

  body { overflow: visible; }
  html { scroll-behavior: auto; }

  @page { margin: 14mm; }

  /* 3. Decorative textures and glows — ink for no gain, and they band. */
  .hero::before,
  .notfound::before,
  .final-cta::before,
  .final-cta-grid { display: none !important; }

  /* 4. White-on-dark panels become dark-on-white, or they print invisible. */
  .final-cta {
    background: var(--white) !important;
    color: var(--text) !important;
    border: 1px solid var(--line);
    padding: 48px 32px;
  }
  .final-cta h2 { color: var(--text) !important; }
  .final-cta h2 em { color: var(--red) !important; }
  .final-cta-body { color: var(--text-3) !important; }
  .final-cta-pill {
    color: var(--text-3) !important;
    background: none !important;
    border-color: var(--line) !important;
  }
  .final-cta-wrap { padding: 32px 0 40px; }

  .btn-primary,
  .btn-dark,
  .btn-white,
  .btn-outline-white {
    background: none !important;
    color: var(--text) !important;
    border: 1px solid var(--text-3) !important;
    box-shadow: none !important;
  }

  .cred-sig-mark {
    background: none !important;
    color: var(--text) !important;
    border: 1px solid var(--text-3);
  }

  /* 5. Keep blocks whole across page breaks. */
  .benefit-card,
  .fb,
  .cred-sig,
  .int-cell,
  .pm-card,
  .final-cta { break-inside: avoid; page-break-inside: avoid; }

  h1, h2, h3 { break-after: avoid; page-break-after: avoid; }

  section { break-inside: auto; }

  /* 6. Hairlines survive greyscale printers better at full strength. */
  .product-mockup,
  .benefit-card,
  .fb,
  .int-cell { border-color: var(--text-faint) !important; }

  /* 7. Trim the section rhythm — 140px of air per section wastes pages. */
  .problem,
  .benefits,
  .features,
  .integrations,
  .credibility { padding: 40px 0 !important; }

  .container { padding: 0; max-width: none; }
}
