/*
 * vouchfrog.com — one page, no script.
 *
 * Self-hosted type on purpose: loading fonts from Google sends every visitor's
 * IP address to a third party, which is an odd first impression for a product
 * that sells itself partly on how it treats personal data.
 *
 * One bold element — the referral trace in the hero, which plays once on load.
 * Everything else stays quiet: hairlines instead of cards, one family of type,
 * greens that belong to the logo.
 */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url('/fonts/bricolage-grotesque-latin-ext-standard-normal.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-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url('/fonts/bricolage-grotesque-latin-standard-normal.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;
}

:root {
  /* Paper with a breath of pond in it, not cream. */
  --paper: #f5f8f3;
  --surface: #ffffff;
  --ink: #052419;
  --ink-soft: #3d5249;
  /* The fill green: buttons and the closing band. Always carries ink, never white. */
  --leaf: #18bf79;
  --leaf-hover: #15aa6c;
  /* The text green: links and numerals. */
  --leaf-deep: #11744e;
  /* Only for the check marks — the smile of the logo. */
  --lime: #a3e635;
  --line: #d5ded7;

  --font: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a {
  color: var(--leaf-deep);
}

a:focus-visible,
.btn:focus-visible,
pre:focus-visible {
  outline: 3px solid var(--leaf-deep);
  outline-offset: 3px;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  z-index: 10;
}

.skip:focus {
  top: 1rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.975rem;
  font-weight: 620;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.btn-lg {
  min-height: 3.25rem;
  padding: 0 1.6rem;
  font-size: 1.0625rem;
}

.btn-primary {
  background: var(--leaf);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--leaf-hover);
}

.btn-quiet {
  border-color: var(--line);
  color: var(--ink);
}

.btn-quiet:hover {
  border-color: var(--ink);
}

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

.btn-ink:hover {
  background: #0c3a2a;
}

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

.btn-outline-ink:hover {
  background: rgb(5 36 25 / 0.08);
}

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

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
}

.mark {
  width: 2rem;
  height: 2rem;
  flex: none;
}

/* One element, so the flex gap cannot open a space inside the name. */
.wordmark {
  font-size: 1.25rem;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.wordmark span {
  color: var(--leaf-deep);
}

.bar-actions {
  display: flex;
  gap: 0.5rem;
}

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

.hero {
  padding-block: clamp(2.5rem, 7vw, 6.5rem) clamp(3.5rem, 8vw, 7rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 1.2rem + 6.2vw, 6.25rem);
  font-stretch: 78%;
  font-weight: 760;
  line-height: 0.94;
  letter-spacing: -0.015em;
}

.lede {
  max-width: 34rem;
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  color: var(--ink-soft);
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.aside {
  max-width: 30rem;
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* The trace: one referral's journey, the page's single moment of motion. */

.trace {
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
}

.trace figcaption {
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 560;
}

.trace-steps {
  position: relative;
  padding: 0;
  list-style: none;
}

/* The rail the check marks sit on. */
.trace-steps::before {
  content: '';
  position: absolute;
  top: 0.9rem;
  bottom: 0.9rem;
  left: 0.875rem;
  width: 2px;
  background: var(--line);
}

.trace-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  column-gap: 1rem;
  padding-bottom: 1.15rem;
}

.trace-steps li:last-child {
  padding-bottom: 0;
}

.tick {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px var(--surface);
}

.tick svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step {
  font-size: 1.0625rem;
  font-weight: 640;
  line-height: 1.4;
  padding-top: 0.1rem;
}

.detail {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.detail code {
  color: var(--leaf-deep);
}

@media (prefers-reduced-motion: no-preference) {
  .trace-steps li {
    animation: arrive 480ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .trace-steps li .tick {
    animation: check 360ms cubic-bezier(0.3, 1.4, 0.5, 1) both;
  }

  .trace-steps li:nth-child(1),
  .trace-steps li:nth-child(1) .tick {
    animation-delay: 250ms;
  }
  .trace-steps li:nth-child(2),
  .trace-steps li:nth-child(2) .tick {
    animation-delay: 600ms;
  }
  .trace-steps li:nth-child(3),
  .trace-steps li:nth-child(3) .tick {
    animation-delay: 950ms;
  }
  .trace-steps li:nth-child(4),
  .trace-steps li:nth-child(4) .tick {
    animation-delay: 1300ms;
  }
  .trace-steps li:nth-child(5),
  .trace-steps li:nth-child(5) .tick {
    animation-delay: 1650ms;
  }
  .trace-steps li:nth-child(6),
  .trace-steps li:nth-child(6) .tick {
    animation-delay: 2000ms;
  }
}

@keyframes arrive {
  from {
    opacity: 0.25;
  }
  to {
    opacity: 1;
  }
}

@keyframes check {
  from {
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--surface), inset 0 0 0 2px var(--line);
    transform: scale(0.85);
  }
  to {
    background: var(--lime);
    box-shadow: 0 0 0 4px var(--surface);
    transform: scale(1);
  }
}

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

.setup,
.features,
.integrate,
.trust {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  border-top: 1px solid var(--line);
}

h2 {
  max-width: 26ch;
  font-size: clamp(2rem, 1.2rem + 2.8vw, 3.25rem);
  font-stretch: 84%;
  font-weight: 720;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 650;
  line-height: 1.3;
}

/* A real sequence, so it is numbered. */
.setup-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.setup-steps li {
  counter-increment: step;
}

.setup-steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.75rem;
  color: var(--leaf-deep);
  font-size: 3.5rem;
  font-stretch: 75%;
  font-weight: 700;
  line-height: 1;
}

.setup-steps p,
.feature p,
.trust-list p,
.integrate-copy p {
  margin-top: 0.5rem;
  color: var(--ink-soft);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 3vw, 3rem);
  row-gap: clamp(2rem, 3.5vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.feature {
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
}

.integrate-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.integrate-copy p {
  max-width: 34rem;
  margin-top: 1rem;
}

.integrate-copy code {
  color: var(--leaf-deep);
}

.code {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 0.875rem;
  background: var(--ink);
  color: #d9e8df;
}

.code-label {
  color: #9fb8ac;
  font-size: 0.875rem;
  font-weight: 560;
}

.code-label + pre {
  margin: 0.5rem 0 0;
}

pre + .code-label {
  margin-top: 1.5rem;
}

pre {
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
}

pre code {
  font-size: inherit;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

/* The logo's check, repeated once more where it means what it says. */
.trust-list h3::before {
  content: '';
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.875rem;
  border-radius: 50%;
  background: var(--lime)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23052419' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 1rem no-repeat;
}

/* ---------- Closing ---------- */

.closing {
  background: var(--leaf);
  color: var(--ink);
}

.closing-inner {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.closing h2 {
  max-width: 16ch;
  font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4rem);
}

.closing p {
  max-width: 32rem;
  margin-top: 1rem;
  font-size: 1.125rem;
}

.closing .btn:focus-visible {
  outline-color: var(--ink);
}

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

.site-footer {
  padding-block: 3rem 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 3rem;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1.5rem;
}

.footer-links a {
  color: var(--ink);
  font-size: 0.9375rem;
}

.imprint {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-style: normal;
  line-height: 1.55;
}

.imprint p + p {
  margin-top: 0.25rem;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 60rem) {
  .hero-grid,
  .integrate-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-list,
  .trust-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/*
 * On a phone the header keeps Sign in only: two buttons and the wordmark do not
 * fit in 390px, and Talk to sales is the first button under the headline anyway.
 */
@media (max-width: 30rem) {
  .bar-actions .btn-primary {
    display: none;
  }
}

@media (max-width: 40rem) {

  .setup-steps,
  .feature-list,
  .trust-list {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}
