/* ==========================================================================
   Zamba — The Human Ledger
   Editorial, field-photography-led stylesheet.
   Fraunces (display) + Inter (UI) · Cream + Ink + one accent (Zamba Blue)
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&family=Inter:wght@400;500;600;700&display=swap");

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colour */
  --ink: #102a33;
  --ink-soft: #1d3b46;
  --muted: #4a5d66;
  --cream: #f8faf7;
  --surface: #ffffff;

  --blue: #005a9c;         /* single UI accent */
  --blue-deep: #004a80;
  --sky: #e6f4fa;
  --leaf: #2e7d5b;
  --gold: #f2a93b;
  --cyan: #00aeef;         /* decorative only — never behind small text */

  --border: #d8e4e8;
  --border-strong: #c3d5db;
  --on-dark: #f1f6f5;
  --on-dark-muted: rgba(230, 244, 250, 0.64);

  /* 8pt spacing scale */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 2.5rem;
  --s-6: 3rem;
  --s-8: 4rem;
  --s-10: 5rem;
  --s-12: 6rem;
  --s-16: 8rem;

  /* Modular type scale */
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: 1.75rem;
  --step-4: 2.25rem;
  --step-5: clamp(1.75rem, 3.4vw, 2.75rem);
  --step-6: clamp(2.5rem, 6vw, 4.5rem);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Elevation — crisp, directional, never fuzzy */
  --shadow-sm: 0 1px 0 rgba(16, 42, 51, 0.04), 0 6px 16px -12px rgba(16, 42, 51, 0.32);
  --shadow-md: 0 1px 0 rgba(16, 42, 51, 0.04), 0 24px 48px -32px rgba(16, 42, 51, 0.48);
  --shadow-lg: inset 0 2px 0 rgba(255, 255, 255, 0.7), 0 48px 90px -56px rgba(16, 42, 51, 0.6),
    0 8px 24px -20px rgba(16, 42, 51, 0.4);
  --shadow-blue: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 26px -18px rgba(0, 90, 156, 0.95);

  /* Rhythm */
  --section-y: clamp(3.5rem, 8vw, 7.5rem);
  --gutter: 1.5rem;
  --measure: 1240px;
  --header-h: 68px;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Paper grain — the whole page sits on a whisper of texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: var(--sky);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   3. Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--measure) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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: fixed;
  top: var(--s-2);
  left: var(--s-2);
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-pill);
  background: var(--blue);
  color: #fff;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: var(--shadow-blue);
  transform: translateY(-160%);
  transition: transform 0.28s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Section furniture ------------------------------------------------------- */
.overline {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 var(--s-2);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.overline::before {
  content: "";
  width: 28px;
  height: 1px;
  flex: none;
  background: currentColor;
  transform: translateY(-0.28em);
}

.overline__index {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.overline--light {
  color: #9fd3e8;
}

.overline--light .overline__index {
  color: var(--on-dark-muted);
}

.section-title {
  font-size: var(--step-5);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 0 var(--s-3);
}

.section-title--tight {
  max-width: 16ch;
  margin-bottom: var(--s-2);
}

.section-title--light {
  color: var(--on-dark);
}

.trace {
  display: block;
  width: 100%;
  height: 1px;
  border: 0;
  margin: 0;
  position: relative;
  background: linear-gradient(
    90deg,
    rgba(0, 90, 156, 0.55) 0%,
    rgba(0, 90, 156, 0.16) 42%,
    rgba(0, 90, 156, 0) 78%
  );
}

.trace::after {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--leaf);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-py: 0.875rem;
  --btn-px: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-py) var(--btn-px);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--blue-deep);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 18px 30px -18px rgba(0, 74, 128, 1);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: transparent;
  color: var(--blue);
  border-color: rgba(0, 90, 156, 0.45);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--sky);
  border-color: var(--blue);
  transform: translateY(-1px);
}

.btn--sm {
  --btn-py: 0.625rem;
  --btn-px: 1.125rem;
  font-size: var(--step--1);
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 247, 0.88);
  border-bottom: 1px solid rgba(216, 228, 232, 0.7);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--blue);
}

.brand__mark {
  display: block;
  height: 30px;
  width: auto;
  flex: none;
  object-fit: contain;
}

/* Mobile nav toggle ------------------------------------------------------- */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--border-strong);
  background: var(--sky);
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Primary navigation ------------------------------------------------------ */
.primary-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: var(--s-2) var(--gutter) var(--s-4);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 40px -34px rgba(16, 42, 51, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}

.nav-toggle[aria-expanded="true"] ~ .primary-nav,
.primary-nav.is-open,
.site-header.is-open .primary-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.primary-nav__list li + li {
  border-top: 1px solid var(--border);
}

.primary-nav a {
  position: relative;
  display: block;
  padding: 0.85rem 0;
  font-size: var(--step-0);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.22s var(--ease);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--blue);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    padding: 0;
    background: transparent;
    border: 0;
    border-bottom: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .primary-nav__list {
    flex-direction: row;
    align-items: center;
    gap: var(--s-4);
  }

  .primary-nav__list li + li {
    border-top: 0;
  }

  .primary-nav a {
    padding: 0.35rem 0;
    font-size: 0.9375rem;
  }

  .primary-nav a::after {
    bottom: -0.15rem;
  }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.75rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6.5rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 78%;
  z-index: -1;
  background: linear-gradient(180deg, #eaf4f7 0%, rgba(248, 250, 247, 0) 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 100%);
}

.hero__grid {
  display: grid;
  gap: var(--s-8);
  align-items: center;
}

.hero__copy {
  max-width: 40rem;
}

.hero__title {
  font-size: var(--step-6);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 var(--s-3);
  max-width: 16ch;
}

.hero__title em {
  font-style: italic;
  font-weight: 500;
}

.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 var(--s-4);
}

.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 var(--s-5);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-pill);
  background: var(--sky);
  border: 1px solid rgba(0, 90, 156, 0.12);
  color: var(--blue-deep);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--leaf);
  flex: none;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: var(--s-4) 0 0;
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--muted);
  max-width: 44ch;
}

.hero__note::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 4px rgba(46, 125, 91, 0.14);
}

.hero__visual {
  position: relative;
}

@media (min-width: 1000px) {
  .hero__grid {
    grid-template-columns: minmax(0, 6.1fr) minmax(0, 5.9fr);
    gap: var(--s-10);
  }

  .hero__visual .browser {
    transform: rotate(-1.1deg);
    transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
  }

  .hero__visual:hover .browser {
    transform: rotate(0deg);
  }
}

@media (max-width: 479px) {
  .hero__actions {
    gap: 0.625rem;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   7. Media frames (browser + phone)
   -------------------------------------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--sky);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(16, 42, 51, 0) 62%, rgba(16, 42, 51, 0.1) 100%);
  mix-blend-mode: multiply;
}

.media img {
  width: 100%;
  height: auto;
}

.media--browser {
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.media--browser::after {
  content: none;
}

/* Browser chrome ---------------------------------------------------------- */
.browser {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7f8 100%);
  border-bottom: 1px solid var(--border);
}

.browser__bar::after {
  content: "";
  flex: 1;
  height: 8px;
  margin-left: 0.75rem;
  border-radius: var(--r-pill);
  background: var(--sky);
  box-shadow: inset 0 0 0 1px rgba(0, 90, 156, 0.06);
}

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

.browser__dot:nth-child(1) {
  background: rgba(242, 169, 59, 0.75);
}

.browser__dot:nth-child(2) {
  background: rgba(46, 125, 91, 0.55);
}

.browser__dot:nth-child(3) {
  background: rgba(0, 174, 239, 0.5);
}

.browser__screen {
  position: relative;
  background: var(--surface);
}

.browser__screen img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.97) contrast(1.02);
}

.browser--wide {
  width: 100%;
}

/* Phone frame ------------------------------------------------------------- */
.media--phone {
  display: grid;
  place-items: center;
  padding: var(--s-6) var(--s-4);
  background: linear-gradient(180deg, #eaf3f1 0%, #f8faf7 100%);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.media--phone::after {
  content: none;
}

.phone {
  position: relative;
  width: min(268px, 76%);
  padding: 10px;
  border-radius: 38px;
  background: linear-gradient(155deg, #1d3b46 0%, #102a33 100%);
  box-shadow: var(--shadow-lg);
}

.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 6px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.22);
  z-index: 2;
}

.phone img {
  width: 100%;
  border-radius: 29px;
  background: var(--surface);
}

.phone::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 29px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Tinted panel with a clipped corner -------------------------------------- */
.media--panel {
  padding: var(--s-5);
  background: var(--sky);
  border-radius: var(--r-lg);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 52px), calc(100% - 52px) 100%, 0 100%);
}

.media--panel::after {
  content: none;
}

/* --------------------------------------------------------------------------
   8. Proof strip
   -------------------------------------------------------------------------- */
.proof {
  background: var(--surface);
  border-block: 1px solid var(--border);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.proof__list {
  list-style: none;
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-4);
}

.proof__item {
  padding-left: var(--s-3);
  border-left: 1px solid var(--border);
}

.proof__item:first-child {
  border-left-color: var(--blue);
}

.proof__title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.proof__item p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (min-width: 640px) {
  .proof__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-5) var(--s-4);
  }
}

@media (min-width: 1000px) {
  .proof__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   9. Product showcase
   -------------------------------------------------------------------------- */
.product {
  padding-block: var(--section-y);
}

.product__grid {
  display: grid;
  gap: var(--s-8);
  align-items: center;
}

.product__copy {
  max-width: 34rem;
}

.feature-list {
  list-style: none;
  margin: var(--s-5) 0 0;
  border-top: 1px solid var(--ink);
}

.feature {
  position: relative;
  padding: var(--s-3) 0 var(--s-3) 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.35s var(--ease);
}

.feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width 0.35s var(--ease);
}

.feature:hover {
  padding-left: 1.75rem;
}

.feature:hover::before {
  width: 1.25rem;
}

.feature__title {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 0.25rem;
}

.feature p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.product__visual {
  position: relative;
}

@media (min-width: 1000px) {
  .product__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--s-10);
  }

  .product__visual .browser {
    transform: translateZ(0);
  }
}

/* --------------------------------------------------------------------------
   10. Roles
   -------------------------------------------------------------------------- */
.roles {
  background: var(--surface);
  border-block: 1px solid var(--border);
  padding-block: var(--section-y);
}

.role {
  display: grid;
  gap: var(--s-6);
  align-items: center;
  padding-block: var(--s-6);
  border-top: 1px solid var(--border);
}

.role:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.role__copy {
  max-width: 34rem;
}

.role__title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-2);
}

.role__points {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin: var(--s-3) 0 0;
}

.role__points li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.role__points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--leaf);
  border-bottom: 2px solid var(--leaf);
  transform: rotate(-45deg);
  transform-origin: left center;
}

.role__media {
  position: relative;
}

.role__media .media img {
  filter: saturate(0.88) contrast(1.06);
}

.role__media .media::after {
  background: linear-gradient(180deg, rgba(16, 42, 51, 0.04) 40%, rgba(16, 42, 51, 0.26) 100%);
  mix-blend-mode: multiply;
}

.role__media .media--phone::after,
.role__media .media--panel::after {
  content: none;
}

@media (min-width: 900px) {
  .role {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: var(--s-10);
    padding-block: var(--s-10);
  }

  .role--reverse .role__media {
    order: -1;
  }

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

/* Buyers: ledger card ----------------------------------------------------- */
.role--buyers .ledger-card {
  max-width: 26rem;
  margin-inline: auto;
}

.ledger-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-3);
  box-shadow: var(--shadow-md);
}

.ledger-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--s-3);
  width: 34px;
  height: 3px;
  background: var(--gold);
  border-radius: 0 0 3px 3px;
}

.ledger-card__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
}

.ledger-card__mark::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 4px rgba(46, 125, 91, 0.14);
  flex: none;
}

.ledger-card__list {
  list-style: none;
  margin: var(--s-3) 0 0;
}

.ledger-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ink);
}

.ledger-card__row:first-child {
  border-top: 0;
  padding-top: 0.25rem;
}

.ledger-card__row span:last-child {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   11. How it works
   -------------------------------------------------------------------------- */
.how {
  padding-block: var(--section-y);
}

.steps {
  display: grid;
  gap: var(--s-8);
  margin-top: var(--s-6);
}

.step {
  position: relative;
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
}

.step__number {
  position: absolute;
  top: -21px;
  left: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--blue);
  letter-spacing: -0.01em;
}

.step__media {
  margin: 0 0 var(--s-3);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.step__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
  transition: transform 0.6s var(--ease);
}

.step:hover .step__media img {
  transform: scale(1.025);
}

.step__title {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 0.4rem;
}

.step p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-6);
  }
}

/* --------------------------------------------------------------------------
   12. Impact
   -------------------------------------------------------------------------- */
.impact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
  padding-block: clamp(4rem, 9vw, 8rem);
}

.impact__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}

.impact__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: grayscale(0.35) contrast(1.08);
  mix-blend-mode: luminosity;
}

.impact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(16, 42, 51, 0.96) 0%, rgba(16, 42, 51, 0.7) 55%, rgba(16, 42, 51, 0.9) 100%);
}

.impact__grid {
  display: grid;
  gap: var(--s-6);
}

.impact__copy {
  max-width: 34rem;
}

.impact__copy p {
  color: var(--on-dark-muted);
  max-width: 44ch;
}

.metrics {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5) var(--s-4);
  margin: 0;
}

.metric {
  border-top: 1px solid rgba(216, 228, 232, 0.22);
  padding-top: var(--s-3);
}

.metric__figure {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.875rem, 4.4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.metric__label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--on-dark-muted);
}

.impact__quote {
  grid-column: 1 / -1;
  margin: 0;
  padding-left: var(--s-3);
  border-left: 2px solid rgba(242, 169, 59, 0.8);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.375rem, 3vw, 2rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--on-dark);
  max-width: 38ch;
  text-wrap: balance;
}

.impact__quote cite {
  display: block;
  margin-top: var(--s-3);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

@media (min-width: 640px) {
  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .impact__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--s-10);
    align-items: start;
  }

  .impact__quote {
    grid-column: 1 / -1;
    margin-top: var(--s-4);
  }
}

/* --------------------------------------------------------------------------
   13. Motion — scroll-linked reveals (progressive enhancement only)
   -------------------------------------------------------------------------- */
@keyframes zamba-reveal {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero__copy,
    .hero__visual,
    .proof__item,
    .product__copy,
    .product__visual,
    .role__copy,
    .role__media,
    .step,
    .metric,
    .impact__quote,
    .section-title {
      animation: zamba-reveal linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 26%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   14. Wide screens — a touch more air, editorial asymmetry
   -------------------------------------------------------------------------- */
@media (min-width: 1240px) {
  :root {
    --gutter: 2rem;
  }

  .hero__grid {
    gap: var(--s-12);
  }
}