/* ==========================================================================
   Trustly Goods LLC: site styles
   Navy + white + one emerald accent. Plain CSS, no framework, no build step.
   ========================================================================== */

/* Inter (SIL Open Font License, see /assets/fonts/LICENSE-Inter.txt).
   One variable file, Latin subset, served from this site (no third-party requests). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.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 {
  /* Navy */
  --navy-950: #071a33;
  --navy-900: #0b2545;
  --navy-800: #13335e;
  --navy-700: #1d4477;

  /* Neutrals */
  --ink: #0b2545;           /* headings, key values */
  --text: #334155;          /* body copy, 10.3:1 on white */
  --muted: #5a6b82;         /* secondary copy, 5.4:1 on white */
  --line: #e1e7ef;          /* dividers, card borders */
  --field: #8190a4;         /* form field borders, 3.25:1 on white */
  --surface: #ffffff;
  --surface-alt: #f4f7fb;

  /* Accent (emerald) */
  --accent: #0a7f5c;        /* links, buttons: 5.0:1 with white */
  --accent-strong: #086a4d; /* hover */
  --accent-soft: #e6f5ef;   /* icon tiles */
  --accent-on-dark: #4ade9f;/* accent on navy: 9:1 */

  /* On navy */
  --on-dark: #ffffff;
  --on-dark-muted: #b8c5d9;
  --on-dark-soft: #dce4f0;

  --danger: #b42318;
  --focus: var(--accent);

  --radius: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.05), 0 1px 3px rgba(11, 37, 69, 0.07);
  --shadow-md: 0 18px 40px -24px rgba(11, 37, 69, 0.35);

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;

  color-scheme: light;
}

/* ---------- Base ---------- */

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-strong);
}

a[href^="tel:"] {
  white-space: nowrap;
}

address {
  font-style: normal;
}

svg {
  flex: none;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.hero,
.section--dark,
.page-hero,
.site-footer,
.contact-card {
  --focus: var(--accent-on-dark);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  top: 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.btn-lg {
  min-height: 54px;
  padding: 0 26px;
  font-size: 1.0625rem;
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9375rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(10, 127, 92, 0.9);
}

.btn-primary:hover {
  background: var(--accent-strong);
  color: #fff;
}

.btn-outline {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

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

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.btn[aria-busy="true"] {
  cursor: progress;
  opacity: 0.75;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -20px rgba(11, 37, 69, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

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

.brand-mark {
  width: 32px;
  height: 32px;
  color: var(--navy-900);
  stroke: var(--accent-on-dark);
}

.brand-name {
  font-size: 1.1875rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.brand-llc {
  margin-left: -4px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.brand--light,
.brand--light:hover {
  color: #fff;
}

.brand--light .brand-mark {
  color: #fff;
  stroke: var(--accent);
}

.brand--light .brand-llc {
  color: var(--on-dark-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a:not(.btn) {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:not(.btn):hover {
  background: var(--surface-alt);
  color: var(--ink);
}

.nav .btn {
  margin-left: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle[aria-expanded="true"] .icon-menu,
.nav-toggle[aria-expanded="false"] .icon-close {
  display: none;
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(11, 37, 69, 0.45);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a:not(.btn) {
    padding: 12px;
    font-size: 1rem;
  }

  .nav .btn {
    margin: 10px 0 0;
    min-height: 48px;
  }
}

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

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section--alt {
  background: var(--surface-alt);
}

.section--dark {
  background: var(--navy-900);
  color: var(--on-dark-muted);
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head p:not(.eyebrow) {
  margin: 0;
  font-size: 1.125rem;
  color: var(--muted);
}

.section--dark .section-head p:not(.eyebrow) {
  color: var(--on-dark-muted);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.hero .eyebrow,
.section--dark .eyebrow,
.page-hero .eyebrow {
  color: var(--accent-on-dark);
}

.h2 {
  font-size: clamp(1.875rem, 3.4vw, 2.625rem);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 120px) clamp(64px, 8vw, 104px);
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(74, 222, 159, 0.16), transparent 62%),
    radial-gradient(800px 520px at -12% 112%, rgba(29, 68, 119, 0.95), transparent 64%),
    var(--navy-900);
  color: var(--on-dark-muted);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 10%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero h1 {
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(2.5rem, 5.6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: wrap; /* "balance" strands "online" on its own line on phones */
}

.hero .lead {
  max-width: 34em;
  margin: 0 0 34px;
  color: #c9d4e5;
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  color: var(--on-dark-soft);
  font-size: 0.9375rem;
}

.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-strip .icon {
  width: 18px;
  height: 18px;
  color: var(--accent-on-dark);
  stroke-width: 2.5;
}

/* Account snapshot card */
.glance {
  padding: 26px 26px 20px;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--text);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.glance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.glance-title {
  margin: 0;
  color: var(--ink);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.glance-sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.glance-head .icon-tile {
  width: 44px;
  height: 44px;
}

.glance-list {
  margin: 0;
}

.glance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.glance-row dt {
  color: var(--muted);
}

.glance-row dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.glance-foot {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.875rem;
  font-weight: 650;
}

.badge .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.75;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.prose p {
  font-size: 1.125rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.facts {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.facts-title {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.facts dl {
  margin: 0 0 22px;
}

.facts-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.facts-row dt {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 550;
}

.facts-row dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-weight: 600;
}

.pillars {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.pillar {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 18px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}

.pillar:last-child {
  padding-bottom: 0;
}

.pillar .icon-tile {
  grid-row: span 2;
}

.pillar h3 {
  margin: 2px 0 4px;
  font-size: 1.0625rem;
}

.pillar p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Why partner (cards) ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin: 20px 0 8px;
  font-size: 1.1875rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Performance (stat tiles) ---------- */

.stats-group + .stats-group {
  margin-top: 44px;
}

.section--dark .stats-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.stats-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.stats {
  display: grid;
  gap: 16px;
  margin: 0;
}

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

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

/* Label comes first in the markup (read as "Sales: $98K"); the value shows first. */
.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 10px;
  padding: 24px 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.stat dt {
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.stat dd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.stat dd .icon {
  width: 0.72em;
  height: 0.72em;
  color: var(--accent-on-dark);
  stroke-width: 3;
}

.stats-note {
  max-width: 760px;
  margin: 32px 0 0;
  color: var(--on-dark-muted);
  font-size: 0.875rem;
}

/* ---------- Process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
}

.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  font-weight: 700;
}

/* Connector between step numbers (desktop only) */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 56px;
  right: -12px;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
}

.step h3 {
  margin: 22px 0 8px;
  font-size: 1.1875rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Categories ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.cat h3 {
  margin: 0;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.cat p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- Partner form ---------- */

.partner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 24px;
  align-items: start;
}

.form-card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.form-legend {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.875rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.field .optional {
  color: var(--muted);
  font-weight: 450;
}

.req {
  color: var(--accent);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid var(--field);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #7a889c;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(10, 127, 92, 0.18);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.field input[aria-invalid="true"]:focus,
.field textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.15);
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.8125rem;
  font-weight: 550;
}

.field-error:empty {
  display: none;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.form-error {
  margin: 20px 0 0;
  padding: 14px 16px;
  border: 1px solid #fecdca;
  border-radius: 10px;
  background: #fef3f2;
  color: #912018;
  font-size: 0.9375rem;
}

.form-error a {
  color: inherit;
  font-weight: 600;
}

.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success {
  padding: 24px 8px;
  text-align: center;
}

.form-success:focus {
  outline: none;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.success-icon .icon {
  width: 30px;
  height: 30px;
  stroke-width: 2.5;
}

.form-success h3 {
  font-size: 1.5rem;
}

.form-success p {
  max-width: 30em;
  margin: 0 auto;
  color: var(--muted);
}

.contact-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  color: var(--on-dark-muted);
}

.contact-card h3 {
  margin-bottom: 18px;
  color: #fff;
  font-size: 1.25rem;
}

.contact-name {
  margin: 0 0 18px;
  color: #fff;
  font-weight: 650;
  line-height: 1.4;
}

.contact-name span {
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
  font-weight: 450;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow-wrap: break-word;
}

.contact-list .icon {
  width: 20px;
  height: 20px;
  color: var(--accent-on-dark);
}

.contact-list a {
  color: #fff;
  text-decoration: none;
}

.contact-list a:hover {
  color: #fff;
  text-decoration: underline;
}

.contact-docs {
  margin: 0 0 24px;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9375rem;
}

.contact-docs p {
  margin: 0;
}

.contact-docs .contact-docs-title {
  margin-bottom: 4px;
  color: #fff;
  font-weight: 600;
}

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

.site-footer {
  padding: 64px 0 32px;
  background: var(--navy-950);
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer-brand p {
  max-width: 26em;
  margin: 18px 0 0;
}

.footer-title {
  margin: 0 0 14px;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.site-footer address a {
  color: var(--on-dark-soft);
  text-decoration: none;
}

.footer-links a:hover,
.site-footer address a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer address {
  display: grid;
  gap: 10px;
  overflow-wrap: break-word;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom p:last-child {
  max-width: 46em;
}

/* ---------- Inner pages (privacy, terms, thank-you, 404) ---------- */

.page-hero {
  padding-block: clamp(56px, 7vw, 88px) clamp(48px, 6vw, 72px);
  background:
    radial-gradient(800px 420px at 90% -20%, rgba(74, 222, 159, 0.14), transparent 62%),
    var(--navy-900);
  color: var(--on-dark-muted);
}

.page-hero h1 {
  margin-bottom: 10px;
  color: #fff;
  font-size: clamp(2.125rem, 4.4vw, 3rem);
  letter-spacing: -0.025em;
}

.page-hero p:not(.eyebrow) {
  max-width: 40em;
  margin: 0;
  font-size: 1.0625rem;
}

.legal {
  max-width: 760px;
}

.legal h2 {
  margin: 2.2em 0 0.6em;
  font-size: 1.375rem;
}

.legal > :first-child {
  margin-top: 0;
}

.legal ul {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.legal li {
  margin-bottom: 0.4em;
}

.legal address {
  line-height: 1.8;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
  }

  .step:not(:last-child)::after {
    display: none;
  }

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

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .partner-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  body {
    font-size: 1rem;
  }

  .hide-sm {
    display: none;
  }

  .brand-name {
    font-size: 1.0625rem;
  }

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

  .stats--3,
  .stats--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .stats--3 .stat:first-child {
    grid-column: 1 / -1;
  }

  .stats-label .sep {
    display: none;
  }

  .stats-label .when {
    display: block;
    margin-top: 2px;
  }

  .stat {
    padding: 20px 18px 18px;
  }

  .stat dd {
    font-size: 2rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .glance {
    padding: 22px 20px 16px;
  }

  .form-foot .btn {
    width: 100%;
  }

  .contact-card {
    padding: 26px 22px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media print {
  .site-header,
  .skip-link,
  .hero-actions,
  .form-card,
  .contact-card .btn {
    display: none !important;
  }

  .hero,
  .section--dark,
  .page-hero,
  .site-footer,
  .contact-card {
    background: #fff !important;
    color: #000 !important;
  }

  .hero h1,
  .section--dark h2,
  .section--dark h3,
  .stat dd,
  .page-hero h1 {
    color: #000 !important;
  }
}
