:root {
  --bg: #f4f5f2;
  --surface: #ffffff;
  --surface-2: #e9ece6;
  --ink: #1f2321;
  --ink-soft: #59615b;
  --line: #dce0d9;
  --brand-mustard: #c9a227;
  --brand-blue: #4a6e8f;
  --brand-orange: #c2621f;
  --brand-cream: #f0e6cb;
  --accent: #c2621f;
  --accent-soft: #f7e7da;
  --dark: #1e201f;
  --dark-2: #292c2a;
  --on-dark: #f3ecd9;
  --on-dark-soft: #b3b0a5;
  --radius: 18px;
  --max: 1160px;
  --shadow: 0 1px 2px rgba(20, 24, 21, .06), 0 14px 36px -14px rgba(20, 24, 21, .22);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131614;
    --surface: #1a1e1b;
    --surface-2: #222723;
    --ink: #eceeea;
    --ink-soft: #a2aaa4;
    --line: #2d332f;
    --accent: #e07a35;
    --accent-soft: #3a2618;
    --dark: #0d0f0e;
    --dark-2: #181b19;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 36px -14px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

/* Logo */
.logo { display: block; line-height: 0; }
.logo img { height: 56px; width: auto; }

/* Four-colour stripe taken from the logo's bars */
.brand-stripe {
  height: 4px;
  background: linear-gradient(90deg,
    var(--brand-mustard) 0 25%, var(--brand-blue) 25% 50%,
    var(--brand-orange) 50% 75%, var(--brand-cream) 75% 100%);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
}
.nav-links a { text-decoration: none; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn-primary { color: #fff; padding: 10px 18px; }
.nav-links .btn-primary:hover { color: #fff; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 { font-size: clamp(42px, 5.6vw, 72px); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 32em;
  margin: 24px 0 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-photo {
  position: relative;
  margin: 0;
}
.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: var(--dark);
}
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.3;
}
.chip strong { display: block; font-size: 15px; }
.chip span { color: var(--ink-soft); }
.chip-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.chip-1 { top: 30%; left: -36px; }
.chip-2 { bottom: 9%; left: -24px; }

/* Segments strip */
.segments {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.segments ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-soft);
}
.segments li:first-child {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Sections */
section { padding: 104px 0; }
.section-head {
  max-width: 660px;
  margin-bottom: 56px;
}
.section-head h2 { font-size: clamp(32px, 4.2vw, 50px); }
.section-head p { color: var(--ink-soft); margin: 18px 0 0; font-size: 18px; }

/* How it works */
.how {
  background: var(--dark);
  color: var(--on-dark);
}
.how .section-head p { color: var(--on-dark-soft); }
.how .eyebrow { color: var(--brand-mustard); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius);
  padding: 32px;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-mustard);
  color: var(--dark);
  font-weight: 800;
  margin-bottom: 28px;
}
.step:nth-child(2) .step-num { background: var(--brand-blue); color: #fff; }
.step:nth-child(3) .step-num { background: var(--brand-orange); color: #fff; }
.step h3 { font-size: 24px; margin-bottom: 10px; }
.step p { color: var(--on-dark-soft); margin: 0; }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.feature h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -0.015em; }
.feature p { color: var(--ink-soft); margin: 0; font-size: 16px; }

/* Who it's for */
.who { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.who-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.who-card {
  border-top: 8px solid var(--brand-mustard);
  padding-top: 22px;
}
.who-card:nth-child(2) { border-top-color: var(--brand-blue); }
.who-card:nth-child(3) { border-top-color: var(--brand-orange); }
/* Cream disappears on white, so use charcoal like the 4th bar of the light-background logo */
.who-card:nth-child(4) { border-top-color: #2b2e2c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .who-card:nth-child(4) { border-top-color: var(--brand-cream); }
}
.who-card h3 { font-size: 22px; margin-bottom: 10px; }
.who-card p { color: var(--ink-soft); margin: 0; font-size: 16px; }

/* More information */
.info-card {
  background: var(--dark);
  color: var(--on-dark);
  border-radius: 28px;
  padding: clamp(32px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.info-card h2 { font-size: clamp(32px, 4vw, 48px); }
.info-card .eyebrow { color: var(--brand-mustard); }
.info-card > div > p { color: var(--on-dark-soft); margin: 18px 0 0; }
.info-email {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, .07);
}
.info-email span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
.info-email a:not(.btn) {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  color: var(--brand-cream);
  text-decoration: none;
  overflow-wrap: anywhere;
  margin-bottom: 10px;
}
.info-email a:not(.btn):hover { text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--dark);
  padding: 44px 0;
  font-size: 14px;
  color: var(--on-dark-soft);
}
.site-footer .logo img { height: 64px; }
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--on-dark); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo { max-width: 560px; margin: 0 auto; }
  .chip-1 { left: -12px; }
  .chip-2 { left: auto; right: -12px; }
  .steps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .who-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .info-card { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav-links li:not(:last-child) { display: none; }
  .logo img { height: 46px; }
  .hero { padding-top: 32px; }
  section { padding: 72px 0; }
  .feature-grid, .who-grid { grid-template-columns: 1fr; }
  .info-email { padding: 24px; }
  .chip { font-size: 13px; padding: 8px 12px; }
  .chip-1 { left: 8px; top: 8px; }
  .chip-2 { right: 8px; bottom: 8px; }
  .segments ul { justify-content: flex-start; }
}
