/* VendCaptain site. One light look, the same tokens as the one-page pitch.
   Layout: a single column of full-width bands; text sits in a 1080px measure.
   The black band carries the three findings and nothing else is black. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 75% 115%;
  font-display: swap;
}

:root {
  --ground: #E4ECF3;
  --sheet: #FFFFFF;
  --panel: #EEF3F7;
  --ink: #111111;
  --muted: #5A6672;
  --accent: #2A78D6;
  --accent-on-ink: #8DBDF5;
  --line: #D5DEE6;
  --on-ink: #FFFFFF;
  --on-ink-soft: #C9D6E2;
  --good: #008300;
  --bad: #C5302F;
  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --gutter: clamp(18px, 5vw, 40px);
  --measure: 1080px;
  color-scheme: light;
}

*, *::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(--sheet);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: calc(var(--measure) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: clamp(44px, 7vw, 84px); }
.band + .band { border-top: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 22px; }

/* type */
h1, h2, h3, .figure { font-stretch: 112%; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.03; }
h1 span { color: var(--accent); display: block; }
h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.08; }
h3 { font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.45; max-width: 34em; }
.label {
  font-stretch: 80%;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.small { font-size: 15px; color: var(--muted); }
.prose { max-width: 40em; }
.prose p + p { margin-top: 14px; }
.textlink { font-weight: 700; text-underline-offset: 4px; }

/* header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-block: 14px; }
.brand { display: block; line-height: 0; }
.brand svg { height: 34px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: 15.5px; font-weight: 600; }
.nav a { text-decoration: none; padding-block: 6px; }
.nav a:hover { color: var(--accent); }
.nav .lang { color: var(--muted); font-stretch: 80%; letter-spacing: 0.08em; }

/* buttons: the call to action is ink, never the accent */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--on-ink);
  font: inherit;
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.2;
  text-decoration: none;
  padding: 14px 22px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  cursor: pointer;
}
.btn:hover { background: #2B2B2B; border-color: #2B2B2B; }
.nav .btn { padding: 9px 16px; font-size: 15px; color: var(--on-ink); }
.nav .btn:hover { color: var(--on-ink); }
.btn.quiet { background: transparent; color: var(--ink); }
.btn.quiet:hover { background: var(--panel); border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }

/* hero */
.hero { background: var(--ground); border-top: 0; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px 56px; align-items: center; }
.hero .stack { gap: 20px; }

/* the illustration in the hero: a list of payments that made no drink */
.sample { background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; font-size: 15px; min-width: 0; }
.sample header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px 10px; }
.sample header b { font-stretch: 112%; font-weight: 800; font-size: 17px; }
.sample li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 14px; align-items: baseline; padding: 10px 18px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.sample li span:first-child { min-width: 0; }
.sample li small { display: block; color: var(--muted); font-size: 13px; }
.sample .owed { color: var(--bad); font-weight: 700; }
.sample .paid { color: var(--good); font-weight: 700; }
.sample footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 12px 18px 14px; border-top: 1px solid var(--line); background: var(--panel); border-radius: 0 0 10px 10px; }
.sample footer span { font-weight: 600; min-width: 0; }
.sample .pill { background: var(--ink); color: var(--on-ink); font-weight: 700; font-size: 13.5px; padding: 6px 12px; border-radius: 5px; white-space: nowrap; }
.sample + .small { margin-top: 8px; }

/* the findings */
.found { background: var(--ink); color: var(--on-ink); border-top: 0; }
.band.found + .band { border-top: 0; }
.found .label { color: var(--accent-on-ink); }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 40px; }
.figures li { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.figure { font-size: clamp(48px, 7vw, 76px); line-height: 0.95; font-variant-numeric: tabular-nums; }
.figure small { font-size: 0.42em; font-weight: 700; letter-spacing: 0; }
.figures span { color: var(--on-ink-soft); max-width: 22em; }
.found .after { font-size: clamp(18px, 2vw, 21px); font-weight: 700; }

/* what you get */
.gets dl { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); }
.gets dt, .gets dd { padding-block: 18px; border-top: 1px solid var(--line); min-width: 0; }
.gets dt { font-stretch: 112%; font-weight: 800; font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; padding-right: 28px; }
.tag { display: inline-block; font-stretch: 80%; font-weight: 700; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }

/* two ways */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 44px; }
.ways > li { border-top: 4px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ways .claim { font-weight: 700; }

/* steps: a real sequence, so they are numbered */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 28px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 16px; }
.steps li::before { content: counter(step); font-stretch: 112%; font-weight: 800; font-size: 30px; line-height: 1; color: var(--accent); }
.steps b { font-size: 17px; }

/* proof */
.proof { background: var(--panel); }
.proof .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 20px 0; }
.proof h2 { padding-right: 28px; }

/* questions */
.faq { display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18.5px; padding-block: 16px; list-style: none; display: flex; justify-content: space-between; gap: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; max-width: 42em; }

/* closing offer */
.try { background: var(--ground); }
.try .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.try h2 { max-width: 17em; }
.contact { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 19px; }
.contact a { text-decoration: none; }
.contact a:hover { color: var(--accent); }
.contact span { font-weight: 400; font-size: 15px; color: var(--muted); }
.contact .who { font-weight: 700; font-size: 16px; color: var(--ink); }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: 15px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 40px; }
.foot p { max-width: 40em; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: var(--ink); text-underline-offset: 3px; }

/* pilot page */
.pilot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px 56px; align-items: start; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form .wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: 15.5px; }
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--sheet);
  border: 1.5px solid #9AA8B5;
  border-radius: 6px;
  padding: 11px 12px;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 84px; }
.message { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 18px; }
.message pre { margin: 0; font: inherit; font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--sheet); border: 1px solid var(--line); border-radius: 6px; padding: 14px; min-height: 9em; }
.message .actions { gap: 10px; }
.message .btn { padding: 12px 16px; font-size: 15.5px; }
.note { font-size: 15px; color: var(--muted); }
.note[data-state="ok"] { color: var(--good); font-weight: 700; }

/* legal */
.legal h2 { font-size: 24px; margin-top: 34px; }
.legal h2:first-of-type { margin-top: 8px; }
.legal p, .legal li { max-width: 44em; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 12px; }
.legal h2 + p, .legal h2 + ul { margin-top: 10px; }

@media (max-width: 900px) {
  .hero .wrap, .pilot .wrap { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .message { position: static; }
}
@media (max-width: 680px) {
  body { font-size: 16.5px; }
  .figures, .ways, .form { grid-template-columns: minmax(0, 1fr); }
  .gets dl, .proof .wrap { grid-template-columns: minmax(0, 1fr); }
  .gets dd { border-top: 0; padding-top: 0; }
  .gets dt { padding-bottom: 6px; padding-right: 0; }
  .nav .hide-narrow { display: none; }
}
@media (max-width: 420px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}

/* small page-specific sizes */
.hero .wrap.single { display: block; }
.message h2 { font-size: 22px; }
.legal h1 { font-size: clamp(30px, 4.6vw, 46px); }
