/* Premium Merchant Funding: one stylesheet, no build step. */

/* ---------- Tokens ---------- */
:root {
  --navy: #293955;
  --navy-900: #1b263b;
  --navy-700: #34486b;
  --green: #8dc03b;
  --green-600: #6ab165;
  --green-text: #3d6b10;
  --green-light: #b9e07a;
  --ink: #232a36;
  --muted: #535d6e;
  --line: #e1e6ee;
  --soft: #f4f6f9;
  --white: #fff;
  --focus: var(--navy);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  /* Type scale (fluid, ~1.25 ratio) */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --fs-lg: clamp(1.3rem, 1.15rem + 0.7vw, 1.6rem);
  --fs-xl: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem);
  --fs-2xl: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: clamp(3rem, 2rem + 4vw, 5.5rem);

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(27 38 59 / 6%), 0 8px 24px rgb(27 38 59 / 8%);
  --wrap: 74rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy-900); margin: 0 0 var(--space-4); letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--fs-2xl); font-weight: 750; }
h2 { font-size: var(--fs-xl); font-weight: 700; }
h3 { font-size: var(--fs-lg); font-weight: 700; }
h4 { font-size: var(--fs-md); font-weight: 650; }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
li + li { margin-top: var(--space-2); }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--green-text); }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.on-dark { --focus: var(--green-light); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--navy); color: var(--white); padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip:focus { top: var(--space-4); color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0.75rem 1.5rem; border-radius: 999px;
  font: inherit; font-weight: 650; font-size: var(--fs-sm); line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--green); color: var(--navy-900); }
.btn-primary:hover { background: #9fd04b; color: var(--navy-900); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.on-dark .btn-outline { border-color: var(--white); color: var(--white); }
.on-dark .btn-outline:hover { background: var(--white); color: var(--navy-900); }
.btn-arrow::after { content: "\2192"; font-size: 1.1em; }
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
}

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--navy-900); flex-shrink: 0; }
.brand img { width: 76px; height: auto; }
@media (min-width: 75em) and (max-width: 99.99em) { .brand-name { display: none; } }
@media (max-width: 30em) {
  .header-bar { gap: var(--space-2); }
  .brand { gap: var(--space-2); }
  .brand img { width: 58px; }
  .brand-name { font-size: 0.75rem; max-width: 7.5rem; }
}
@media (max-width: 23.5em) { .brand-name { display: none; } }
figure { margin: 0; }
/* call.svg / mail.svg are drawn in white for dark backgrounds; tint them navy on light cards */
.side-contact img[src$="call.svg"], .side-contact img[src$="mail.svg"], .contact-list img { filter: brightness(0) saturate(100%) invert(19%) sepia(21%) saturate(1200%) hue-rotate(181deg); }
.brand-name { font-weight: 700; font-size: var(--fs-sm); line-height: 1.15; letter-spacing: 0.02em; text-transform: uppercase; max-width: 9rem; }

.nav-toggle {
  display: none; align-items: center; gap: var(--space-2);
  min-height: 44px; padding: 0.5rem 0.9rem; border-radius: 999px;
  border: 2px solid var(--navy); background: var(--white); color: var(--navy);
  font: inherit; font-weight: 650; font-size: var(--fs-sm); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.nav-list, .sub, .sub ul { list-style: none; margin: 0; padding: 0; }
.nav-list li + li, .sub li + li { margin-top: 0; }
.nav-list a {
  display: block; text-decoration: none; color: var(--navy-900);
  font-weight: 600; font-size: var(--fs-sm); padding: 0.55rem 0.6rem; border-radius: var(--radius-sm);
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--green-text); background: var(--soft); }
.nav-list .nav-cta > a { background: var(--green); color: var(--navy-900); padding-inline: 1rem; border-radius: 999px; }
.nav-list .nav-cta > a:hover { background: #9fd04b; }
.sub-title { display: block; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 0.5rem 0.6rem 0.25rem; }

@media (min-width: 75em) {
  .nav-list { display: flex; align-items: center; gap: 0; }
  .nav-list > li > a { white-space: nowrap; padding-inline: 0.45rem; font-size: 0.875rem; }
  .nav-list .nav-cta { margin-left: 0.4rem; }
  .has-sub { position: relative; }
  .has-sub > a::after { content: ""; display: inline-block; margin-left: 0.35em; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
  .sub {
    display: none; position: absolute; top: 100%; left: 0; z-index: 60;
    min-width: 15rem; padding: var(--space-3); background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  }
  .sub-mega { grid-template-columns: repeat(2, minmax(14rem, 1fr)); gap: var(--space-4); min-width: 32rem; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
  .has-sub:hover > .sub-mega, .has-sub:focus-within > .sub-mega { display: grid; }
}
@media (max-width: 74.99em) {
  .js .nav-toggle { display: inline-flex; }
  .site-nav { width: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .header-bar { flex-wrap: wrap; }
  .site-nav { padding-bottom: var(--space-4); max-height: calc(100vh - 80px); overflow-y: auto; }
  .nav-list { display: grid; gap: 0.1rem; border-top: 1px solid var(--line); padding-top: var(--space-3); }
  .sub { padding-left: var(--space-4); border-left: 2px solid var(--line); margin: 0 0 var(--space-2) var(--space-3); }
  .nav-list .nav-cta > a { display: inline-block; margin: var(--space-2) 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: var(--white); background: var(--navy-900); overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgb(27 38 59 / 92%) 0%, rgb(27 38 59 / 80%) 45%, rgb(27 38 59 / 45%) 100%);
}
.hero-inner { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); max-width: var(--wrap); }
.hero-inner > * { max-width: 42rem; }
.hero h1 { color: var(--white); margin-bottom: var(--space-4); }
.hero .eyebrow { color: var(--green-light); }
.hero-sub { font-size: var(--fs-lg); font-weight: 600; line-height: 1.35; color: var(--white); }
.hero-sub .hl, .hl-green { color: var(--green-light); }
.hero p { color: rgb(255 255 255 / 92%); }
.hero a:not(.btn) { color: var(--white); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); align-items: center; }
.hero-note { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-sm); margin: 0; }
.hero-note img { width: 22px; filter: brightness(0) invert(1); }
.hero-sm .hero-inner { padding-block: clamp(2.75rem, 2rem + 4vw, 4.5rem); }
.eyebrow { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-text); margin-bottom: var(--space-3); }

/* Home hero stats strip */
.hero-stats { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: var(--space-3); max-width: 46rem; }
.hero-stats li { margin: 0; padding: var(--space-4); border: 1px solid rgb(255 255 255 / 22%); border-radius: var(--radius); background: rgb(255 255 255 / 7%); }
.hero-stats strong { display: block; font-size: var(--fs-xl); line-height: 1.1; color: var(--green-light); }
.hero-stats span { font-size: var(--fs-sm); }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-8); }
.section-soft { background: var(--soft); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy a:not(.btn) { color: var(--white); }
.section-navy .subscribe-card a:not(.btn) { color: var(--navy); }
.split + .card-grid { margin-top: var(--space-7); }
.section-head { max-width: 46rem; margin: 0 auto var(--space-6); text-align: center; }
.section-lead { color: var(--muted); font-size: var(--fs-md); }
.section-navy .section-lead { color: rgb(255 255 255 / 85%); }

.back-link { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; margin-bottom: var(--space-5); }
.back-link::before { content: "\2190"; }

/* Cards */
.card-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); padding: 0; list-style: none; margin: 0; }
.card-grid > li { margin: 0; }
.card {
  position: relative; height: 100%; display: flex; flex-direction: column; gap: var(--space-3);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-5); box-shadow: var(--shadow);
}
.card h3 { font-size: var(--fs-md); margin: 0; }
.card p { margin: 0; color: var(--muted); }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: #eef6e2; }
.card-icon img { width: 30px; height: 30px; object-fit: contain; }
.card-link { text-decoration: none; color: inherit; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card:has(.card-link:hover) { border-color: var(--green); }
.card:has(.card-link:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.card-link:focus-visible { outline: none; }

/* Split media/text rows */
.split { display: grid; gap: var(--space-6); align-items: center; }
.split + .split { margin-top: var(--space-8); }
@media (min-width: 56em) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-7); }
  .split-flip > :first-child { order: 2; }
}
.media-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--navy-900); }
.media-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media-card figcaption, .media-card .media-caption {
  position: absolute; inset: auto 0 0 0; padding: var(--space-5);
  background: linear-gradient(0deg, rgb(27 38 59 / 92%), rgb(27 38 59 / 0%));
  color: var(--white);
}
.media-caption h3 { color: var(--white); font-size: var(--fs-md); margin-bottom: var(--space-2); }
.media-caption p { margin: 0; font-size: var(--fs-sm); color: rgb(255 255 255 / 90%); }
.media-caption a { color: var(--white); }

.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.75rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231b263b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

/* ---------- Service page layout ---------- */
.page-grid { display: grid; gap: var(--space-7); padding-block: var(--space-8); }
@media (min-width: 62em) {
  .page-grid { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; }
  .sidebar { position: sticky; top: 6rem; }
}
.prose { max-width: 46rem; }
.prose h2 { margin-top: var(--space-6); }
.prose h2:first-child, .prose .back-link + h2 { margin-top: 0; }
.prose h3 { margin-top: var(--space-5); }

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: var(--space-4); margin: var(--space-5) 0; }
.steps > li {
  counter-increment: step; position: relative; margin: 0;
  padding: var(--space-5) var(--space-5) var(--space-4) calc(var(--space-5) + 3rem);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.steps > li::before {
  content: counter(step); position: absolute; left: var(--space-5); top: var(--space-5);
  width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--navy); color: var(--white); font-weight: 700; font-size: var(--fs-sm);
}
.steps h3 { font-size: var(--fs-md); margin: 0.3rem 0 var(--space-3); }
.steps ul { margin: 0; }
.steps li li::marker { color: var(--green-text); }
.steps-skip-2 > li:nth-child(2) { counter-increment: step 2; } /* CPA page skips "2" on the original */

.apply-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5) var(--space-6); border-radius: var(--radius); background: var(--navy); color: var(--white); margin: var(--space-6) 0;
}
.apply-box h2, .apply-box h3 { color: var(--white); margin: 0; font-size: var(--fs-lg); }

/* FAQ (equipment) */
.faq { display: grid; gap: var(--space-3); }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--space-4) var(--space-5); font-weight: 650; color: var(--navy-900);
  display: flex; justify-content: space-between; gap: var(--space-4); border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--green-text); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 var(--space-5) var(--space-4); margin: 0; }

.sidebar { display: grid; gap: var(--space-5); }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); background: var(--white); }
.side-card h2 { font-size: var(--fs-md); margin-bottom: var(--space-3); }
.side-card p:last-child { margin-bottom: 0; }
.side-contact { background: var(--soft); border-color: transparent; }
.side-contact img { width: 32px; height: 32px; object-fit: contain; margin-bottom: var(--space-3); }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links li { margin: 0; border-top: 1px solid var(--line); }
.side-links li:first-child { border-top: 0; }
.side-links a { display: flex; justify-content: space-between; padding: 0.6rem 0; text-decoration: none; font-weight: 600; }
.side-links a::after { content: "\2192"; color: var(--green-text); }
.feature-card { padding: 0; overflow: hidden; }
.feature-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.feature-card .feature-body { padding: var(--space-5); }
.feature-card h2 { font-size: var(--fs-md); }
.side-tool { display: flex; gap: var(--space-4); align-items: flex-start; }
.side-tool img { width: 40px; flex-shrink: 0; }
.side-tool h2 { font-size: var(--fs-sm); font-weight: 650; line-height: 1.45; margin: 0; }
.side-tool a { text-decoration: none; }

/* Definition-style lists (CRE, advisory) */
.term-list { display: grid; gap: var(--space-3); margin: var(--space-5) 0; }
.term-list > div { padding: var(--space-4) var(--space-5); border-left: 4px solid var(--green); background: var(--soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.term-list dt { font-weight: 700; color: var(--navy-900); margin-bottom: var(--space-1); }
.term-list dd { margin: 0; color: var(--ink); }

.pill-list { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; }
.pill-list li { margin: 0; padding: 0.35rem 0.85rem; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: var(--fs-sm); }

/* ---------- Stats ---------- */
.stat-grid { list-style: none; padding: 0; margin: 0 0 var(--space-6); display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.stat-grid li { margin: 0; padding: var(--space-5); border-radius: var(--radius); background: rgb(255 255 255 / 6%); border: 1px solid rgb(255 255 255 / 16%); }
.stat-num { display: block; font-size: var(--fs-2xl); font-weight: 750; line-height: 1; color: var(--green-light); }
.stat-label { display: block; font-weight: 700; margin: var(--space-3) 0 var(--space-1); color: var(--white); }
.stat-desc { display: block; font-size: var(--fs-sm); color: rgb(255 255 255 / 82%); }

/* ---------- Testimonials ---------- */
.t-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); margin-bottom: var(--space-6); }
.t-card { margin: 0; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.t-card > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.t-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); flex: 1; }
.t-card blockquote { margin: 0; position: relative; flex: 1; }
.t-card blockquote p { margin: 0 0 var(--space-3); }
.t-card blockquote::before { content: "\201C"; display: block; font-size: 3rem; line-height: 0.6; color: var(--green); font-family: Georgia, serif; margin-bottom: var(--space-2); }
.t-card figcaption strong { display: block; color: var(--navy-900); }
.t-card figcaption span { font-size: var(--fs-sm); color: var(--muted); }
.t-tag { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-text); margin: 0; }
.t-tag-lead { font-weight: 600; color: var(--navy-900); margin: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-4); }
.form-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); margin: 0; display: grid; gap: var(--space-4); }
.form legend { font-weight: 700; font-size: var(--fs-md); color: var(--navy-900); padding: 0 var(--space-2); }
.field { display: grid; gap: var(--space-1); }
.field label { font-weight: 600; font-size: var(--fs-sm); }
.req { color: #b42318; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="file"], select, textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.85rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid #9aa4b4; border-radius: var(--radius-sm);
}
textarea { min-height: 9rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--navy); outline-offset: 1px; }
.check { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; font-size: var(--fs-xs); line-height: 1.55; color: var(--muted); }
.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; accent-color: var(--navy); }
.form-note { font-size: var(--fs-sm); color: var(--muted); }
.on-dark .check { color: rgb(255 255 255 / 85%); }
.on-dark .check a { color: var(--white); }
.on-dark .field label { color: var(--white); }

.subscribe-inner { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 56em) { .subscribe-inner { grid-template-columns: 1fr 1.1fr; gap: var(--space-7); } }
.subscribe-card { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: var(--space-6); box-shadow: var(--shadow); --focus: var(--navy); }
.on-dark .subscribe-card .check { color: var(--muted); }
.on-dark .subscribe-card .check a, .on-dark .subscribe-card a:not(.btn) { color: var(--navy); }
.on-dark .subscribe-card .field label { color: var(--ink); }
.subscribe-card .check { color: var(--muted); }

/* ---------- Timeline (home / about) ---------- */
.split + .timeline { margin-top: var(--space-7); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.timeline li { margin: 0; padding: var(--space-4) var(--space-5); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--green); }
.timeline time, .timeline .tl-date { display: block; font-weight: 750; color: var(--navy); font-size: var(--fs-md); }
.timeline span { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Values (careers) ---------- */
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.values li { margin: 0; display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.values img { width: 44px; height: 44px; }
.values h3 { font-size: var(--fs-base); margin: 0; }

/* Rate card */
.rate-card { max-width: 52rem; margin-inline: auto; padding-block: var(--space-8); }
.rate-card img { margin-inline: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Resources */
.post-card { display: flex; flex-direction: column; gap: var(--space-2); }
.post-meta { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-text); }
.deal-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.deal-list li { margin: 0; display: flex; align-items: center; gap: var(--space-4); }
.deal-list img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; }
.deal-list span { display: block; font-size: var(--fs-xs); color: var(--muted); }

/* Contact */
.contact-list { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.contact-list li { margin: 0; display: flex; gap: var(--space-3); align-items: flex-start; }
.contact-list img { width: 24px; height: 24px; margin-top: 0.2rem; }
.city-list { columns: 2 11rem; padding-left: 1.1rem; }
.city-list li { break-inside: avoid; margin: 0 0 var(--space-1); }

/* Legal pages */
.legal h3 { font-size: var(--fs-md); margin-top: var(--space-6); }
.legal h2 { margin-top: var(--space-7); }

/* 404 */
.error-page { padding-block: var(--space-8); text-align: center; }
.error-page .hero-actions { justify-content: center; }
.error-code { font-size: clamp(4rem, 3rem + 6vw, 8rem); font-weight: 800; line-height: 1; color: var(--green); margin: 0 0 var(--space-4); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgb(255 255 255 / 86%); padding-top: var(--space-8); font-size: var(--fs-sm); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--green-light); text-decoration: underline; }
.footer-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); padding-bottom: var(--space-7); }
.footer-brand .footer-logo { width: 78px; margin-bottom: var(--space-4); background: var(--white); border-radius: var(--radius-sm); padding: 6px; box-sizing: content-box; }
.footer-phone { font-size: var(--fs-md); font-weight: 700; }
.footer-col h2 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.08em; color: var(--green-light); margin-bottom: var(--space-3); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0; }
.footer-col li a { display: inline-block; padding: 0.3rem 0; }
.social { list-style: none; display: flex; gap: var(--space-2); padding: 0; margin: var(--space-4) 0; }
.social li { margin: 0; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgb(255 255 255 / 30%); }
.social a:hover { background: rgb(255 255 255 / 10%); }
.social img { width: 18px; height: 18px; object-fit: contain; filter: brightness(0) invert(1); }
.syep { background: var(--white); border-radius: var(--radius-sm); padding: var(--space-2); max-width: 240px; margin-top: var(--space-4); }
.footer-legal { border-top: 1px solid rgb(255 255 255 / 14%); padding-block: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); justify-content: space-between; font-size: var(--fs-xs); }
.footer-legal p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .hero-media, .subscribe, .nav-toggle { display: none !important; }
  .hero { color: #000; background: none; }
  .hero::after { display: none; }
  .hero h1, .hero p { color: #000; }
}

/* Bot trap on every form (forms/receiver.py drops anything that fills it): off-screen, not display:none, so bots see it */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Apply Now (js/apply.js): steps bar, one step at a time, consents and signature pads */
.apply-wrap { max-width: 56rem; }
.steps-nav { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-2); counter-reset: step; }
.steps-nav li { counter-increment: step; display: flex; align-items: center; gap: var(--space-2); padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-sm); color: var(--navy-900); background: var(--white); }
.steps-nav li::before { content: counter(step); display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--line); font-weight: 700; font-size: .8em; }
.steps-nav li.is-current { border-color: var(--navy-900); font-weight: 700; }
.steps-nav li.is-current::before { background: var(--navy-900); color: var(--white); }
.steps-nav li.is-done::before { background: var(--green); color: var(--navy-900); }
.apply-form fieldset.addr-block { border-style: dashed; }
.step-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: flex-end; }
.check.consent label { font-weight: 400; font-size: var(--fs-sm); line-height: 1.5; }
.field-help, .sig-help { font-size: var(--fs-sm); margin: 0; }
.sig-label { font-weight: 600; font-size: var(--fs-sm); }
.sig-pad { width: 100%; max-width: 350px; aspect-ratio: 350 / 200; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; touch-action: none; cursor: crosshair; }
.sig-pad:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.form-status { min-height: 1.5em; margin: 0; font-weight: 600; }
[hidden] { display: none !important; }
