/* ═══════════════════════════════════════════════════════════
   VIRTUAL PAY SOLUTIONS — styles.css
   Design: taste-skill / white bg / single accent / asymmetric
═══════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  --bg:              #FFFFFF;
  --surface:         #F8FAFC;
  --surface-raised:  #F1F5F9;
  --border:          #E2E8F0;
  --text-primary:    #0F172A;
  --text-secondary:  #475569;
  --text-muted:      #94A3B8;
  --accent:          #2563EB;
  --accent-hover:    #1D4ED8;
  --accent-light:    #EFF6FF;
  --accent-text:     #1E40AF;

  --font-heading: 'Inter', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm:     0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md:     0 4px 16px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.04);
  --shadow-lg:     0 8px 32px rgba(15,23,42,.10), 0 4px 8px rgba(15,23,42,.04);
  --shadow-accent: 0 8px 32px rgba(37,99,235,.20);

  --nav-height:   72px;
  --section-pad:  clamp(4.5rem, 9vw, 7.5rem);
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

img, svg { display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }

/* ─── Container ─────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 600; }
p  { color: var(--text-secondary); }

/* ─── Pills ──────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--accent-light);
  color: var(--accent-text);
  border: 1px solid rgba(37,99,235,.18);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pill-sm {
  padding: 3px 10px;
  font-size: 0.75rem;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(37,99,235,.28);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.btn-lg  { padding: 13px 28px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark    { width: 30px; height: 30px; }
.logo-img     { height: 36px; width: auto; display: block; }
.logo-wordmark {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 3px; left: 12px; right: 12px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  width: 34px;
}

.ham-line {
  display: block;
  width: 100%;
  height: 1.8px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.navbar.menu-open .ham-line:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.navbar.menu-open .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar.menu-open .ham-line:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  border-bottom: none;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.25s ease;
}

.mobile-menu.open {
  display: flex;
  max-height: 420px;
  padding: 12px clamp(1.25rem, 5vw, 3rem) 20px;
  border-bottom: 1px solid var(--border);
}

.mobile-link {
  padding: 10px 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}

.mobile-link:hover {
  background: var(--surface);
  color: var(--text-primary);
}

.mobile-cta { margin-top: 10px; width: 100%; justify-content: center; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: var(--nav-height);
  overflow: hidden;
}

/* Full-width Spline canvas — shifted 15% right so the model moves
   further right and white space expands on the left.
   130% tall so only the top portion of the model shows. */
.hero-bg-spline {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 130%;
  z-index: 0;
  transform: translateX(15%) scale(0.8);
}

spline-viewer,
.spline-scene {
  display: block;
  width: 100%;
  height: 100%;
}

/* Feathered edge where white bg meets the right-side Spline scene */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,1) 36%,
    rgba(255,255,255,0.55) 44%,
    transparent 54%
  );
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255,255,255,0.7) 55%,
    rgba(255,255,255,1) 100%
  );
  pointer-events: none;
}

/* Text overlay container */
.hero-layout {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--nav-height));
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  /* Pass mouse events through to Spline — links/buttons override below */
  pointer-events: none;
}

.hero-layout a,
.hero-layout button {
  pointer-events: auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  max-width: 560px;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero-line-1 {
  display: block;
  color: var(--text-secondary);
  font-weight: 700;
}

.hero-line-2 {
  display: block;
  color: var(--text-primary);
}

.hero-tagline {
  max-width: 480px;
  font-size: clamp(1.0625rem, 1.4vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero entrance animations */
@media (prefers-reduced-motion: no-preference) {
  .hero-pill    { animation: fadeUp .6s ease both; animation-delay: .18s; }
  .hero-line-1  { animation: fadeUp .6s ease both; animation-delay: .36s; }
  .hero-line-2  { animation: fadeUp .6s ease both; animation-delay: .50s; }
  .hero-tagline { animation: fadeUp .6s ease both; animation-delay: .65s; }
  .hero-ctas    { animation: fadeUp .6s ease both; animation-delay: .80s; }
  .hero-bg-spline { animation: fadeIn 1s ease both; animation-delay: .2s; }
}

/* ─── Section Base ───────────────────────────────────────── */
.section { padding: var(--section-pad) 0; }

.section-header {
  text-align: left;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.section-header h2 { max-width: 580px; }

.section-subtext {
  max-width: 540px;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─── Bento Grid ─────────────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.8vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition:
    transform .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37,99,235,.28);
  box-shadow: 0 8px 28px rgba(37,99,235,.08);
}

.bento-tall {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.bento-wide {
  grid-column: 2 / span 2;
  grid-row: 2;
}

.card-icon-wrap {
  width: 52px; height: 52px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon { width: 28px; height: 28px; }

.bento-card h3 {
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  font-weight: 600;
  color: var(--text-primary);
}

.bento-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.card-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-features li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 15px;
  position: relative;
  line-height: 1.5;
}

.card-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s ease, transform .2s ease, color .2s ease;
}

.bento-card:hover .card-link {
  opacity: 1;
  transform: translateY(0);
}

.card-link:hover { color: var(--accent-hover); }

/* Wide card */
.bento-wide-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.bento-wide-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
}

.bento-wide-metric {
  text-align: right;
  flex-shrink: 0;
}

.big-metric {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}

.big-metric-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ─── How It Works ───────────────────────────────────────── */
.how-it-works { background: var(--surface); }

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.step-num {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 800;
  color: rgba(37, 99, 235, 0.13);
  line-height: 1;
  position: absolute;
  top: 12px; right: 16px;
  pointer-events: none;
  letter-spacing: -0.04em;
}

.step-icon-wrap {
  width: 42px; height: 42px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-icon-wrap svg { width: 20px; height: 20px; }

.step-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.step-connector {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 4px;
  padding-top: calc(clamp(1.25rem, 2.5vw, 1.75rem) + 21px);
}

.step-connector svg { width: 40px; height: 20px; }

/* ─── Why Us ─────────────────────────────────────────────── */
.why-grid {
  display: grid;
  /* minmax(0, Xfr) overrides the default min-width:auto on grid tracks,
     preventing content changes (count-up numbers) from resizing columns
     and reflowing the left column text */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}

/* Prevent grid blowout — grid children default to min-width: auto
   which stops them shrinking to fit their column */
.why-statement {
  min-width: 0;
  width: 100%;
}

.why-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.2vw, 1.875rem);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.55;
  letter-spacing: -0.02em;
  border-left: 4px solid var(--accent);
  padding-left: 24px;
  padding-bottom: 0.2em;
  margin-bottom: 28px;
  font-style: normal;
  overflow: visible;
  width: 100%;
}

.why-trust {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.trust-item svg { flex-shrink: 0; }

.metrics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}

.metric-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.875rem);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .25s ease, border-color .25s ease;
  min-width: 0;
  overflow: hidden;
}

.metric-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(37,99,235,.22);
}

.metric-number {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-height: 1.1em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.metric-static { font-size: clamp(1.25rem, 2vw, 1.75rem); }

.metric-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.45;
}

/* ─── Contact ────────────────────────────────────────────── */
.contact {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  left: -250px; top: 50%;
  transform: translateY(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, rgba(37,99,235,.045), transparent);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
  position: relative;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding-top: 8px;
}

.contact-content h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.08;
}

.contact-subtext {
  font-size: 1.0625rem;
  line-height: 1.65;
}

.contact-trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

/* Form */
.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 2.8vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--bg);
  outline: none;
  resize: vertical;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: clamp(3.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 2.5rem);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 230px;
  line-height: 1.55;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: auto;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color .2s ease;
}

.footer-links a:hover { color: var(--text-primary); }

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.social-link {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
}

/* ─── Scroll Animations ──────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .animate-on-scroll {
    opacity: 0;
    transform: translateY(26px);
    transition:
      opacity .65s ease,
      transform .65s ease;
    transition-delay: calc(var(--stagger-delay, 0) * 0.1s);
  }

  .animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}

/* Accessibility: skip animations if user prefers */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll { opacity: 1; transform: none; }
  .hero-pill, .hero-line-1, .hero-line-2,
  .hero-tagline, .hero-ctas, .hero-graphic {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* ─── About ──────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.about-heading-col .pill { margin-bottom: 1.25rem; }
.about-heading-col h2 { margin-top: 0; }

.about-body p {
  color: var(--text-secondary);
  line-height: 1.75;
}
.about-body p + p { margin-top: 1rem; }

/* ─── Services (bento 3-up) ──────────────────────────────── */
.card-best-for {
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.card-best-for strong { color: var(--text-secondary); }

/* ─── Who We Serve ───────────────────────────────────────── */
.serve-content {
  max-width: 760px;
}

.serve-intro {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.serve-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.serve-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.serve-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.serve-note {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  line-height: 1.6;
}

/* ─── Pillars (Why Us) ───────────────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pillar-card {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pillar-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.pillar-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-primary);
  margin-bottom: 0.625rem;
  line-height: 1.35;
}

.pillar-body {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ─── Footer contact info ────────────────────────────────── */
.footer-contact-info {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0.5rem 0 0.75rem;
}
.footer-contact-info a {
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.footer-contact-info a:hover { color: var(--accent); }

/* ─── Responsive: Tablet (< 1024px) ──────────────────────── */
@media (max-width: 1023px) {
  .hero::after {
    background: linear-gradient(
      to right,
      rgba(255,255,255,1) 0%,
      rgba(255,255,255,1) 28%,
      rgba(255,255,255,0.6) 40%,
      transparent 56%
    );
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-tall {
    grid-column: 1;
    grid-row: auto;
  }
  .bento-wide {
    grid-column: 1 / span 2;
    grid-row: auto;
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .step-connector { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pillars-grid { grid-template-columns: 1fr; }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .why-quote { margin-bottom: 20px; }

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    row-gap: 2.5rem;
  }
  .footer-brand {
    grid-column: 1 / span 2;
  }
}

/* ─── Responsive: Mobile (< 768px) ──────────────────────── */
@media (max-width: 767px) {
  :root {
    --section-pad: clamp(3rem, 8vw, 5rem);
  }

  /* ── Navbar ── */
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .hamburger { display: flex; }
  .nav-right { margin-left: auto; }
  .mobile-menu { display: flex; }

  /* Larger touch target for hamburger (min 44×44px) */
  .hamburger {
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px;
  }

  /* ── Hero: Spline on mobile ── */
  .hero-bg-spline {
    display: block;
    transform: translateX(0);
    height: 100%;
    top: 0;
    opacity: 0.45;
  }
  .hero::after {
    background: linear-gradient(
      to bottom,
      rgba(255,255,255,0.15) 0%,
      rgba(255,255,255,0.55) 60%,
      rgba(255,255,255,0.85) 100%
    );
  }

  .hero-layout {
    align-items: flex-start;
    padding-top: 2.5rem;
    padding-bottom: 3rem;
    min-height: calc(100svh - var(--nav-height));
  }

  .hero-headline {
    font-size: clamp(2.4rem, 9vw, 3.25rem);
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  /* ── About ── */
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  /* ── Pillars ── */
  .pillars-grid { grid-template-columns: 1fr; }

  /* ── Bento ── */
  .bento-grid { grid-template-columns: 1fr; }
  .bento-wide { grid-column: 1; }
  .bento-wide-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .bento-wide-metric { text-align: left; }

  /* ── Steps ── */
  .steps-grid { grid-template-columns: 1fr; }

  /* ── Metrics ── */
  .metrics-grid { grid-template-columns: 1fr 1fr; }

  /* ── Contact form ──
     font-size >= 16px prevents iOS Safari from zooming on focus */
  .form-row { grid-template-columns: 1fr; }

  .form-group input,
  .form-group textarea {
    font-size: 1rem;
  }

  /* ── Footer ── */
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }

  /* Safe area insets for notched iPhones */
  .footer {
    padding-bottom: calc(clamp(2rem, 4vw, 2.5rem) + env(safe-area-inset-bottom));
  }
  .mobile-menu.open {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}

/* ─── Responsive: Small Mobile (< 480px) ────────────────── */
@media (max-width: 479px) {
  .metrics-grid { grid-template-columns: 1fr; }

  .hero-headline {
    font-size: clamp(2.1rem, 8.5vw, 2.6rem);
  }

  /* Ensure logo wordmark doesn't overflow on tiny screens */
  .logo-wordmark {
    font-size: 0.8125rem;
  }

  /* Tighter bento card padding at small sizes */
  .bento-card {
    padding: 1.25rem;
  }

  /* Single column footer links already handled above */
  .footer-inner {
    gap: 2rem;
  }
}
