/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
  --color-navy: #0f172a;
  --color-navy-soft: #1e293b;
  --color-slate: #475569;
  --color-slate-muted: #64748b;
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;
  --color-surface: #ffffff;
  --color-surface-alt: #f8fafc;
  --color-white: #ffffff;

  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.04);

  --container-width: 1120px;
  --container-pad: 1.5rem;
  --navbar-height: 4.5rem;
  --section-space: 7.5rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  scroll-padding-top: calc(var(--navbar-height) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-slate);
  background-color: var(--color-surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page--menu-open {
  overflow: hidden;
}

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

h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin: 0;
}

a {
  color: inherit;
}

/* ==========================================================================
   Skip link
   ========================================================================== */

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.65rem 0.9rem;
  background: var(--color-navy);
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

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

/* ==========================================================================
   Shared layout
   ========================================================================== */

.navbar__inner,
.hero__inner,
.about__inner,
.values__inner,
.categories__inner,
.onboarding__inner,
.partner__inner,
.legal__inner,
.footer__inner,
.footer__legal {
  width: min(var(--container-width), calc(100% - (var(--container-pad) * 2)));
  margin-inline: auto;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  min-height: var(--navbar-height);
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.navbar--scrolled,
.navbar--menu-open {
  background-color: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 960px) {
  .navbar__list {
    gap: 1.55rem;
  }

  .navbar--scrolled {
    background-color: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--navbar-height);
}

.navbar__brand {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-navy);
  text-decoration: none;
}

.navbar__nav {
  display: flex;
  align-items: center;
}

.navbar__list {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0;
  list-style: none;
}

.navbar__link {
  position: relative;
  display: inline-block;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-slate);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.navbar__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.navbar__link:hover,
.navbar__link:focus-visible {
  color: var(--color-navy);
}

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

.navbar__toggle {
  display: none;
  position: relative;
  z-index: 3;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.6rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.navbar__toggle-bar {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background-color: var(--color-navy);
  transition:
    transform 0.25s var(--ease),
    opacity 0.25s var(--ease);
}

.navbar__toggle--open .navbar__toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.navbar__toggle--open .navbar__toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar__toggle--open .navbar__toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--navbar-height) + 4rem) 0 5.5rem;
  background-color: var(--color-surface);
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  border-bottom: 1px solid var(--color-border);
}

.hero__inner {
  max-width: 46rem;
}

.hero__eyebrow {
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-slate-muted);
}

.hero__title {
  max-width: none;
  font-size: clamp(1.85rem, 4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.035em;
  color: var(--color-navy);
}

.hero__subtitle {
  max-width: 40rem;
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-slate);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2.25rem;
  padding: 0.9rem 1.55rem;
  border: 1px solid var(--color-navy);
  background-color: var(--color-navy);
  color: var(--color-white);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.hero__cta:hover,
.hero__cta:focus-visible {
  background-color: var(--color-navy-soft);
  border-color: var(--color-navy-soft);
}

.hero__cta:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 3px;
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  padding: var(--section-space) 0;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 4rem 5rem;
  align-items: start;
}

.about__tagline,
.values__tagline,
.categories__tagline,
.onboarding__tagline,
.partner__tagline,
.legal__eyebrow,
.footer__eyebrow {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-slate-muted);
}

.about__title,
.values__title,
.categories__title,
.onboarding__title,
.partner__title {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--color-navy);
}

.about__text {
  max-width: 40rem;
  font-size: 1.0625rem;
  color: var(--color-slate);
}

/* ==========================================================================
   Values
   ========================================================================== */

.values {
  padding: var(--section-space) 0;
  background-color: var(--color-surface-alt);
}

.values__header {
  max-width: 36rem;
  margin-bottom: 3.25rem;
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
}

.values__card {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem 2.15rem;
  border-right: 1px solid var(--color-border);
  background-color: var(--color-surface);
  transition: background-color 0.25s var(--ease);
}

.values__card:last-child {
  border-right: 0;
}

.values__card:hover {
  background-color: #fcfdff;
}

.values__index {
  margin-bottom: 3.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-slate-muted);
}

.values__card-title {
  margin-bottom: 0.85rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-navy);
}

.values__card-text {
  font-size: 0.975rem;
  line-height: 1.7;
  color: var(--color-slate);
}

/* ==========================================================================
   Categories of focus
   ========================================================================== */

.categories {
  padding: var(--section-space) 0;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.categories__header {
  max-width: 36rem;
  margin-bottom: 3.25rem;
}

.categories__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  list-style: none;
  border: 1px solid var(--color-border);
}

.categories__card {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.6rem 2.15rem;
  border-right: 1px solid var(--color-border);
  transition: background-color 0.25s var(--ease);
}

.categories__card:last-child {
  border-right: 0;
}

.categories__card:hover {
  background-color: #fcfdff;
}

.categories__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  margin-bottom: 3.25rem;
  border: 1px solid var(--color-border-strong);
  color: var(--color-navy);
}

/* Sizing is also declared as width/height attributes on each inline <svg>, so the
   icons stay small even if this stylesheet is cached or still loading. */
.categories__icon svg {
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
}

.categories__card-title {
  margin-top: auto;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--color-navy);
}

/* ==========================================================================
   Vendor onboarding
   ========================================================================== */

.onboarding {
  padding: var(--section-space) 0 calc(var(--section-space) - 1.5rem);
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.onboarding__header {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.onboarding__intro,
.onboarding__note,
.onboarding__cta-note {
  max-width: 38rem;
  margin-top: 1.15rem;
  font-size: 0.975rem;
  line-height: 1.7;
  color: var(--color-slate);
}

.onboarding__note {
  margin-top: 0.9rem;
  font-size: 0.925rem;
  color: var(--color-slate-muted);
}

.onboarding__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  list-style: none;
  border: 1px solid var(--color-border);
}

.onboarding__card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.4rem 1.6rem;
  border-right: 1px solid var(--color-border);
}

.onboarding__card:last-child {
  border-right: 0;
}

.onboarding__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  margin-bottom: 1.35rem;
  border: 1px solid var(--color-border-strong);
  color: var(--color-navy);
}

.onboarding__icon svg {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
}

.onboarding__card-title {
  margin-top: auto;
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--color-navy);
}

.onboarding__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  margin-top: 2.25rem;
}

.onboarding__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.55rem;
  border: 1px solid var(--color-navy);
  background-color: var(--color-navy);
  color: var(--color-white);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.onboarding__cta:hover,
.onboarding__cta:focus-visible {
  background-color: var(--color-navy-soft);
  border-color: var(--color-navy-soft);
}

.onboarding__cta:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 3px;
}

/* ==========================================================================
   Partner inquiry form
   ========================================================================== */

.partner {
  padding: var(--section-space) 0;
  background-color: var(--color-surface-alt);
  border-top: 1px solid var(--color-border);
}

.partner__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 4rem 5rem;
  align-items: start;
}

.partner__note {
  max-width: 30rem;
  margin-top: 1.15rem;
  font-size: 0.975rem;
  line-height: 1.7;
  color: var(--color-slate);
}

.partner__note + .partner__note {
  margin-top: 0.9rem;
}

.partner__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 2.5rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
}

.partner__field--full,
.partner__actions {
  grid-column: 1 / -1;
}

.partner__label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-slate-muted);
}

.partner__input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.975rem;
  line-height: 1.6;
  color: var(--color-navy);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: 0;
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.partner__input::placeholder {
  color: #94a3b8;
}

/* This field's hint is longer than the input is wide, so it needs a smaller
   placeholder to stay fully visible. The typed value keeps the normal size. */
#partner-company::placeholder {
  font-size: 0.66rem;
}

.partner__input:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.07);
}

.partner__input:user-invalid {
  border-color: #b42318;
}

.partner__textarea {
  min-height: 9rem;
  resize: vertical;
}

/* Honeypot stays in the DOM but out of sight and out of the tab order. */
.partner__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.partner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.25rem;
}

.partner__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.55rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-white);
  background-color: var(--color-navy);
  border: 1px solid var(--color-navy);
  border-radius: 0;
  cursor: pointer;
  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    opacity 0.25s var(--ease);
}

.partner__submit:hover:not(:disabled),
.partner__submit:focus-visible {
  background-color: var(--color-navy-soft);
  border-color: var(--color-navy-soft);
}

.partner__submit:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 3px;
}

.partner__submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.partner__status {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-slate);
}

.partner__status--success {
  color: #15803d;
}

.partner__status--error {
  color: #b42318;
}

/* ==========================================================================
   Legal pages (Privacy Policy / Terms of Service)
   ========================================================================== */

.legal {
  padding: calc(var(--navbar-height) + 5rem) 0 var(--section-space);
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.legal__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 4rem 5rem;
  align-items: start;
}

/* The title column trails the reader down the document on desktop. */
.legal__header {
  position: sticky;
  top: calc(var(--navbar-height) + 2.5rem);
}

.legal__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--color-navy);
}

.legal__effective {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-slate-muted);
}

.legal__lead {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-slate);
}

.legal__block {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}

.legal__block-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.legal__index {
  flex: 0 0 auto;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-slate-muted);
}

.legal__block-title {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--color-navy);
}

.legal__text {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-slate);
}

.legal__text + .legal__text,
.legal__list + .legal__text {
  margin-top: 1.15rem;
}

.legal__list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.15rem;
  padding: 0;
  list-style: none;
}

.legal__list-item {
  position: relative;
  padding-left: 1.6rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-slate);
}

.legal__list-item::before {
  content: "";
  position: absolute;
  top: 0.9em;
  left: 0;
  width: 0.55rem;
  height: 1px;
  background-color: var(--color-border-strong);
}

.legal__link {
  color: var(--color-navy);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-strong);
  transition: border-color 0.25s var(--ease);
}

.legal__link:hover,
.legal__link:focus-visible {
  border-bottom-color: var(--color-navy);
}

/* ==========================================================================
   Footer / Contact
   ========================================================================== */

.footer {
  background-color: var(--color-navy);
  color: #cbd5e1;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  padding: 5.5rem 0 4.5rem;
}

.footer__eyebrow {
  color: #94a3b8;
}

.footer__heading {
  max-width: 16ch;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--color-white);
}

.footer__note {
  max-width: 28rem;
  margin-top: 1.15rem;
  font-size: 0.975rem;
  line-height: 1.7;
  color: #94a3b8;
}

.footer__meta {
  display: grid;
  gap: 1.65rem;
}

.footer__meta-item {
  padding-bottom: 1.45rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.12);
}

.footer__meta-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.footer__meta-label {
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.footer__meta-value {
  font-size: 0.975rem;
  line-height: 1.65;
  color: var(--color-white);
}

.footer__meta-role {
  display: block;
  margin-top: 0.15rem;
  color: #94a3b8;
}

.footer__link {
  color: var(--color-white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.footer__link:hover,
.footer__link:focus-visible {
  color: #e2e8f0;
  border-bottom-color: #e2e8f0;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  min-height: 4.25rem;
  border-top: 1px solid rgba(226, 232, 240, 0.12);
}

.footer__copyright {
  padding: 1.25rem 0;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.footer__legal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  padding: 0;
  list-style: none;
}

.footer__legal-link {
  display: inline-block;
  padding: 1.25rem 0;
  font-size: 0.8125rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.footer__legal-link:hover,
.footer__legal-link:focus-visible {
  color: var(--color-white);
}

/* ==========================================================================
   Responsive — tablet
   ========================================================================== */

@media (max-width: 960px) {
  :root {
    --section-space: 5.5rem;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .values__grid {
    grid-template-columns: 1fr;
  }

  .values__card {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .values__card:last-child {
    border-bottom: 0;
  }

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

  .categories__card:nth-child(2n) {
    border-right: 0;
  }

  .categories__card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-border);
  }

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

  .onboarding__card:nth-child(2n) {
    border-right: 0;
  }

  .onboarding__card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-border);
  }

  .partner__inner {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .legal__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .legal__header {
    position: static;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 4.25rem;
    padding-bottom: 3.5rem;
  }
}

/* ==========================================================================
   Responsive — mobile navigation
   ========================================================================== */

@media (max-width: 959px) {
  .navbar {
    background-color: rgba(255, 255, 255, 0.96);
    border-bottom-color: rgba(15, 23, 42, 0.08);
  }

  .navbar__inner {
    position: static;
    flex-wrap: nowrap;
  }

  .navbar__toggle {
    display: inline-flex;
  }

  .navbar__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1;
    display: block;
    padding: 0.35rem var(--container-pad) 0.85rem;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 0.25s var(--ease),
      visibility 0.25s var(--ease),
      transform 0.25s var(--ease);
  }

  .navbar__nav--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .navbar__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .navbar__link {
    display: block;
    padding: 0.95rem 0;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--color-navy);
    border-bottom: 1px solid var(--color-border);
  }

  .navbar__link::after {
    display: none;
  }

  .navbar__item:last-child .navbar__link {
    border-bottom: 0;
  }
}

/* ==========================================================================
   Responsive — mobile
   ========================================================================== */

@media (max-width: 767px) {
  :root {
    --navbar-height: 4.15rem;
    --section-space: 4.5rem;
    --container-pad: 1.25rem;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--navbar-height) + 3.25rem);
    padding-bottom: 4.25rem;
    background-size: 56px 56px;
  }

  .hero__title {
    max-width: none;
  }

  .hero__subtitle {
    font-size: 1.05rem;
  }

  .hero__cta {
    width: 100%;
  }

  .values__index {
    margin-bottom: 2.25rem;
  }

  .categories__grid {
    grid-template-columns: 1fr;
  }

  .categories__card {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .categories__card:last-child {
    border-bottom: 0;
  }

  .categories__icon {
    margin-bottom: 1.5rem;
  }

  .onboarding__grid {
    grid-template-columns: 1fr;
  }

  .onboarding__card {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .onboarding__card:last-child {
    border-bottom: 0;
  }

  .onboarding__cta {
    width: 100%;
  }

  .onboarding__actions {
    align-items: stretch;
  }

  .partner__form {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.5rem 2rem;
  }

  .partner__submit {
    width: 100%;
  }

  .partner__actions {
    align-items: stretch;
  }

  .legal {
    padding-top: calc(var(--navbar-height) + 3.25rem);
  }

  .legal__block {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
  }

  .footer__heading {
    max-width: none;
  }

  /* Stacked legal bar: drop the split alignment and the doubled vertical padding. */
  .footer__legal {
    justify-content: flex-start;
    gap: 0;
    padding: 1rem 0;
  }

  .footer__copyright,
  .footer__legal-link {
    padding: 0.35rem 0;
  }
}

@media (max-width: 480px) {
  .hero__cta {
    padding-block: 1rem;
  }
}

/* ==========================================================================
   Wholesale positioning update — new elements
   ========================================================================== */

/* Semantic <address> should read like the rest of the footer, not italic. */
.footer__address {
  font-style: normal;
}

.footer__meta-phone {
  display: inline-block;
  margin-top: 0.5rem;
}

/* The values grid gained a fourth card, so it pairs up instead of splitting 3 + 1. */
@media (min-width: 961px) {
  .values__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .values__card:nth-child(2n) {
    border-right: 0;
  }

  .values__card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-border);
  }
}

/* Eight category cards now fill two rows: close each row and separate them. */
@media (min-width: 961px) {
  .categories__card:nth-child(4n) {
    border-right: 0;
  }

  .categories__card:nth-child(-n + 4) {
    border-bottom: 1px solid var(--color-border);
  }
}

@media (min-width: 768px) and (max-width: 960px) {
  .categories__card:nth-child(-n + 6) {
    border-bottom: 1px solid var(--color-border);
  }
}
