/* ============================================================
   PAGE-SPECIFIC STYLES
   Shared styles + design tokens live in main.css.
   Each section below holds the rules unique to one page.

   Structure:
     1. BASE (desktop-first, no media queries)
     2. RESPONSIVE OVERRIDES (consolidated at end by breakpoint)
   ============================================================ */


/* ─────────────────────────────────────────────
   home (index.html)
   ───────────────────────────────────────────── */

/* Hero photo collage (Figma 10043:163) — 3 columns anchored to the right
   edge of the .max-w-7xl container (so it respects the same px-6 gutter as
   the heading/copy), clipped to the hero height. Columns auto-scroll
   vertically at different speeds/directions for a gentle marquee. */
.hero-top { position: relative; }
.hero-collage {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
}
.hc-col { flex: none; width: 180px; }
/* each track lists its images twice (in the markup) and scrolls from 0 to
   -50% so the loop is seamless */
.hc-track { display: flex; flex-direction: column; }
.hc-track img {
  width: 180px;
  height: 216px;
  object-fit: cover;
  border-radius: var(--r-lg);
  display: block;
  margin-bottom: var(--sp-5);
}
.hc-track .hc-feat { border-radius: var(--r-2xl); }
@keyframes hc-scroll { to { transform: translateY(-50%); } }
.hc-col:nth-child(1) .hc-track { animation: hc-scroll 54s linear infinite; }
.hc-col:nth-child(2) .hc-track { animation: hc-scroll 74s linear infinite reverse; }
.hc-col:nth-child(3) .hc-track { animation: hc-scroll 49s linear infinite; animation-delay: -15s; }

/* "Real Problem" comparison — gradient bg for the "With Fastboy" items
   (Figma 10079:102 — 2 radial highlights over a blue linear) */
.rp-item--good {
  background:
    radial-gradient(120% 80% at 30% 0%, rgba(85,76,255,.45), transparent 70%),
    radial-gradient(80% 100% at 100% 100%, rgba(34,105,238,.4), transparent 60%),
    linear-gradient(102.5deg, rgba(58,127,255,.5), rgba(25,83,211,.5));
}

/* Business Solutions card — Figma 10083:524.
   5 product cards + 1 CTA card. All radius 40px, padding 32px. */
.biz-card {
  background: #fff;
  border: 1px solid var(--border-mid);
  border-radius: var(--sp-10);          /* 40px */
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  text-decoration: none;
  color: inherit;
  transition: border-color .25s ease, transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s;
}
.biz-card:hover {
  border-color: var(--cobalt);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-soft);
}
.biz-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-32);
  line-height: var(--lh-40);
  color: var(--ink);
  margin: 0;
}
.biz-card-image {
  height: 280px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--r-lg);
  margin: 0;
}
.biz-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.biz-card-footer {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-4);
  margin-top: auto;
}
.biz-card-desc {
  flex: 1;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-16);
  line-height: var(--lh-24);
  color: var(--ink);
  opacity: .7;
  margin: 0;
}
.biz-card-arrow {
  flex-shrink: 0;
  width: var(--sp-12);
  height: var(--sp-12);
  border-radius: var(--r-full);
  background: var(--cobalt);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-pop), background var(--t-fast);
}
.biz-card:hover .biz-card-arrow { transform: translateX(4px); background: #1D5FE0; }

/* CTA variant — gradient bg, no border, contains title group + button */
.biz-card--cta {
  background: linear-gradient(138.72deg, #D2E0FF 1%, #8EB1FF 100%);
  border: none;
  justify-content: space-between;
  gap: var(--sp-6);
}
.biz-card--cta:hover { transform: none; box-shadow: none; border: none; }
.biz-card-cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-32);
  line-height: var(--lh-40);
  color: #1b4ebc;
  margin: 0 0 var(--sp-4);
}
.biz-card-cta-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-16);
  line-height: var(--lh-24);
  color: #1b4ebc;
  opacity: .7;
  margin: 0;
}
.biz-card-cta-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--sp-6);
  background: var(--surface);
  border-radius: var(--r-lg);
  color: var(--cobalt);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-20);
  line-height: var(--lh-28);
  text-decoration: none;
  transition: transform var(--t-pop), box-shadow var(--t-smooth);
}
.biz-card-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,.18);
}
.biz-card-cta-btn svg          { transition: transform var(--t-smooth); }
.biz-card-cta-btn:hover svg    { transform: translateX(4px); }

/* btn-primary state polish (lives here because they were added page-side) */
.btn-primary:active         { transform: translateY(0); }
.btn-primary:focus-visible  { outline: 2px solid var(--cobalt-light); outline-offset: 3px; }

/* "Why we win" numbered list (dark hero) */
.num-item       { display: flex; gap: var(--sp-6); padding: var(--sp-8) 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.num-item:last-child { border-bottom: none; }
.num-badge      { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-12); color: rgba(255,255,255,.65); flex-shrink: 0; width: var(--sp-8); padding-top: 4px; }

/* Fade-in animation utilities (used across hero sections) */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeUp .6s cubic-bezier(.22,1,.36,1) both; }
.d1 { animation-delay: .05s; }
.d2 { animation-delay: .12s; }
.d3 { animation-delay: .2s; }
.d4 { animation-delay: .3s; }

/* Vertical scrolling testimonial wall */
@keyframes testi-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
.testi-scroll-wrap {
  display: flex;
  gap: var(--sp-6);
  max-height: 740px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}
.testi-scroll-col { flex: 1; overflow: hidden; min-width: 0; }
.testi-scroll-inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  padding-bottom: var(--sp-6);
  animation: testi-scroll var(--dur, 15s) linear infinite;
}

/* Testimonial card — Figma 10103:252.
   Markup stays: .testi-scroll-card > .testi-scroll-stars + .testi-scroll-quote + .testi-scroll-footer (img + .testi-scroll-name / .testi-scroll-role)
   Quote-icon added via .testi-scroll-stars::before (no HTML change needed). */
.testi-scroll-card {
  background: var(--surface);
  border: none;
  border-radius: var(--r-2xl);
  padding: var(--sp-8) var(--sp-6) var(--sp-6);
  box-shadow: 0 4px 6px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}
.testi-scroll-stars {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
}
.testi-quote-icon       { display: block; width: var(--sp-7); height: var(--sp-6); flex-shrink: 0; }
.testi-stars-icon       { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.testi-stars-icon img   { display: block; width: 18px; height: 17px; }

.testi-scroll-quote {
  color: var(--ink);
  font-weight: 400;                    /* explicit — Figma `normal` */
  font-size: var(--fs-20);
  line-height: var(--lh-30);
  margin: 0;
}

.testi-scroll-footer {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
  border: none;
}
.testi-scroll-footer img {
  width: var(--sp-12);
  height: var(--sp-12);
  border-radius: var(--r-full);
  object-fit: cover;
  flex-shrink: 0;
}
.testi-scroll-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-18);
  line-height: var(--lh-28);
  color: var(--ink);
}
.testi-scroll-role {
  font-family: var(--font-body);
  font-size: var(--fs-14);
  line-height: var(--lh-20);
  color: var(--ink);
  opacity: .7;
  margin-top: 0;
}

/* Extra BGA orb — used on home only */
.bga-ptr {
  background: radial-gradient(circle at center, rgba(140,100,255,.8) 0, rgba(140,100,255,0) 50%) no-repeat;
  mix-blend-mode: hard-light;
  position: absolute;
  width: 100%; height: 100%;
  top: -50%; left: -50%;
  opacity: .7;
  pointer-events: none;
}


/* ─────────────────────────────────────────────
   about (about.html)
   ───────────────────────────────────────────── */
.timeline-item {
  position: relative;
  padding-left: var(--sp-10);
  padding-bottom: var(--sp-10);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: var(--sp-3);
  top: var(--sp-6);
  bottom: 0;
  width: 1.5px;
  background: var(--border);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: var(--sp-6);
  height: var(--sp-6);
  background: var(--cobalt);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Who It's For — alternate right-column layout (Figma 10160:1315)
   Reuses common .industry-tag (with .dark-section dark variant from main.css). */
.who-section .who-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: flex-start;
  width: 100%;
}
.who-section .who-cta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  padding: var(--sp-6) var(--sp-6) var(--sp-6) var(--sp-8);
  background: rgba(255,255,255,0.20);
  border-radius: var(--r-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-top: var(--sp-6);
}
.who-section .who-cta-text { display: flex; flex-direction: column; gap: 4px; width: 100%; }
/* CTA button inside .who-cta uses common .btn-white .btn-md — no custom override needed */

/* Who It's For — dark gradient mesh section with staggered cards (Figma 10155:260) */
.who-section {
  position: relative;
  overflow: hidden;
  background: #0E1342 url('../assets/img/who-bg.webp') center/cover no-repeat;
}
.who-card {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  width: 100%;
  max-width: 560px;
  padding: var(--sp-6) var(--sp-6) var(--sp-6) var(--sp-8);
  background: rgba(255,255,255,0.20);
  border-radius: var(--r-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.who-icon {
  width: var(--sp-12); height: var(--sp-12);
  border-radius: var(--r-md);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.who-icon svg { width: var(--sp-7); height: var(--sp-7); color: var(--cobalt); }
/* .who-section prefix → specificity 0,2,0 beats .dark-section p (0,1,1);
   applies inside both .who-card (Social Media) and .who-cta (SEO) */
.who-section .who-title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-20); line-height: var(--lh-28); color: var(--surface) !important; margin: 0; }
.who-section .who-desc  { font-family: var(--font-body);    font-weight: 400; font-size: var(--fs-18); line-height: var(--lh-28); color: var(--surface) !important; opacity: .7; margin: 4px 0 0; }
.who-section .who-cta .who-desc { margin: 0; }   /* CTA stacks via flex-gap, no top margin */

/* Our Journey — zigzag desktop timeline (Figma 10107:2133)
   6 year markers with cards alternating above (years 1,3,5) and below (years 2,4,6) */
.journey-grid {
  display: grid;
  /* Last col 1.4fr — "2024–2026" at 40px nowrap needs ~260px, more than 1/6 of 1280 viewport */
  grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.4fr);
  column-gap: var(--sp-6);
  row-gap: var(--sp-4);
}
.journey-card     { display: flex; flex-direction: column; gap: var(--sp-4); }
.journey-card-top { align-self: end; }
.journey-card-bot { align-self: start; }
.journey-title    { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-20); line-height: var(--lh-28); color: var(--ink); margin: 0; }
.journey-body     { font-family: var(--font-body);    font-weight: 400; font-size: var(--fs-18); line-height: var(--lh-28); color: var(--text-muted); margin: 0; }
.journey-line     { width: 2px; height: var(--sp-12); background: var(--ink); }
.journey-year     { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-40); line-height: var(--lh-48); color: var(--ink); margin: 0; }
.journey-year-last { white-space: nowrap; }

/* Founder section — Figma 10107:2087
   Full-bleed dark gradient bg, 3-col grid: heading+caption | portrait | body.
   Vertical padding follows .pad-section (56/80); bottom collapses to 0 at ≥1280
   so the portrait can extend to the section's bottom edge. */
.founder-section {
  background: radial-gradient(ellipse 60% 100% at 50% 50%,
              #2F1A91 0%, #18116A 50%, #0C0C56 75%, #000842 100%);
  overflow: hidden;
  padding-top: var(--sp-14);
  padding-bottom: var(--sp-14);
}
.founder-inner {
  max-width: 100rem;                   /* match max-w-7xl (1600px) */
  margin: 0 auto;
  display: grid;
  grid-template-columns: 343px 480px 1fr;
  gap: var(--sp-6);
  align-items: stretch;
  /* Horizontal padding matches .pad-x (16/24/32); caption overlap handled via .founder-left margin-right */
  padding-left: var(--sp-4);
  padding-right: var(--sp-4);
}
.founder-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-right: -48px;       /* caption block extends right, overlapping image */
  position: relative;
  z-index: 1;
}
.founder-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-40);
  line-height: var(--lh-48);
  color: var(--surface);
  margin: 0;
}
.founder-caption {
  padding: var(--sp-6) var(--sp-12);
  color: var(--surface);
  background: linear-gradient(to right,
              #4127C5 0%, rgba(40,34,215,.3) 59%, rgba(37,99,235,0) 100%);
}
.founder-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-24);
  line-height: var(--lh-32);
}
.founder-role {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-16);
  line-height: var(--lh-24);
  opacity: .6;
  margin-top: 4px;
}
.founder-portrait {
  width: 480px;
  height: 600px;
  align-self: end;
}
.founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.founder-body {
  align-self: center;
  padding: var(--sp-10) 0;
  font-family: var(--font-body);
  font-size: var(--fs-18);
  line-height: var(--lh-28);
  color: var(--surface);
  opacity: .7;
}
.founder-body p              { margin: 0 0 var(--sp-7); }
.founder-body p:last-child   { margin-bottom: 0; }


/* ─────────────────────────────────────────────
   blog (blog.html)
   ───────────────────────────────────────────── */
.blog-card {
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color var(--t-smooth), box-shadow var(--t-smooth), transform var(--t-pop);
}
.blog-card:hover { border-color: var(--cobalt-light); box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }

.cat-pill {
  display: inline-block;
  font-size: var(--fs-10);            /* .65rem ≈ 10.4px */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 5px 11px;                  /* .3rem .7rem off-grid */
  border-radius: var(--r-pill);
}

/* ─────────────────────────────────────────────
   blog detail (blog/*.html)
   ───────────────────────────────────────────── */
.back-link {
  color: var(--cobalt);
  text-decoration: none;
  transition: color var(--t-fast), gap var(--t-pop);
}
.back-link:hover { color: var(--cobalt-dark, #1d4ed8); }
.back-link:hover svg { transform: translateX(-2px); }
.back-link svg { transition: transform var(--t-pop); }

.article-prose { color: var(--text); font-size: 17px; line-height: 1.78; }
.article-prose > * + * { margin-top: 1.25em; }
.article-prose p { font-size: 17px; line-height: 1.78; color: var(--text); }
.article-prose strong { font-weight: 600; color: #0F172A; }
.article-prose em { font-style: italic; color: var(--text); }
.article-prose h2 {
  font-family: var(--font-display);
  font-weight: 800;
  color: #030712;
  font-size: clamp(22px, 3.5vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}
@media (min-width: 640px) {
  .article-prose h2 { margin-top: 2.25em; margin-bottom: 0.6em; }
}
.article-prose h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #030712;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em 0;
}
.article-prose ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.article-prose ul li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  margin-top: 0.6em;
}
.article-prose ul li::before {
  content: '';
  position: absolute;
  left: 0.4rem;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cobalt);
}

.callout-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
  margin: 1.5em 0 !important;
}
@media (min-width: 640px) {
  .callout-card { padding: 1.75rem; margin: 2em 0 !important; }
}
.callout-card h3 { margin-bottom: 0.4em; }
.callout-card p { margin-top: 0 !important; color: var(--text-soft); font-size: 15px; line-height: 1.7; }

.related-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color var(--t-smooth), box-shadow var(--t-smooth), transform var(--t-pop);
}
.related-card:hover { border-color: var(--cobalt-light); box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.related-card__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.related-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}
@media (min-width: 640px) {
  .related-card { flex-direction: row; min-height: 220px; }
  .related-card__thumb { width: 280px; aspect-ratio: auto; flex-shrink: 0; }
  .related-card__body { padding: 1.75rem; justify-content: space-between; }
}


/* ─────────────────────────────────────────────
   contact (contact.html)
   ───────────────────────────────────────────── */
.contact-card {
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;                       /* 1.75rem — slightly off-grid from sp scale */
  background: #fff;
  transition: border-color var(--t-smooth), box-shadow var(--t-smooth);
}
.contact-card:hover { border-color: var(--cobalt-light); box-shadow: var(--shadow-card-soft); }
/* Override inline Tailwind: h3 title 18, p body 16 */
.contact-card h3 { font-size: var(--fs-18) !important; line-height: 1.4 !important; }
.contact-card p  { font-size: var(--fs-16) !important; line-height: var(--lh-normal) !important; }


/* ─────────────────────────────────────────────
   pricing (pricing.html)
   ───────────────────────────────────────────── */
.check-item svg { flex-shrink: 0; margin-top: 2px; }
.sol-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-4);
  padding: var(--sp-5) 28px;          /* 1.25rem 1.75rem */
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
}
.sol-row:last-child { border-bottom: none; }


/* ─────────────────────────────────────────────
   services (services.html)
   ───────────────────────────────────────────── */
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;                            /* .375rem */
  background: var(--border-soft);
  color: #4B5563;
  font-size: var(--fs-12);            /* .75rem */
  font-weight: 500;
  padding: 5px 11px;                   /* .3rem .7rem */
  border-radius: var(--r-pill);
  margin: 3px;                         /* .2rem ≈ 3.2px */
}


/* ─────────────────────────────────────────────
   website-design — Process + Who It's For (Figma 10185:2339)
   Single dark gradient section, vertical stack
   ───────────────────────────────────────────── */
.wd-process-section {
  position: relative;
  isolation: isolate;
  padding: var(--sp-20) 0;
  overflow: hidden;
}
.wd-process-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 60% at 80% 95%, rgba(217,70,239,.95) 0%, rgba(217,70,239,0) 60%),
    radial-gradient(55% 55% at 50% 55%, rgba(124,58,237,.85) 0%, rgba(124,58,237,0) 65%),
    radial-gradient(45% 55% at 30% 35%, rgba(37,99,235,.9)  0%, rgba(37,99,235,0)  65%),
    radial-gradient(40% 45% at 5% 0%,   rgba(34,211,238,.8) 0%, rgba(34,211,238,0) 60%),
    linear-gradient(135deg, #06143a 0%, #11146b 35%, #2b0c8a 60%, #5a0a76 100%);
}
.wd-process-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/img/services/website-design/process-bg.png");
  background-size: cover;
  background-position: center;
  mix-blend-mode: screen;
  opacity: .55;
  pointer-events: none;
}
.wd-process-inner {
  max-width: 1344px;
  margin: 0 auto;
  padding: 0 var(--sp-12);
  display: flex;
  flex-direction: column;
  gap: var(--sp-20);
}
.wd-block      { display: flex; flex-direction: column; gap: var(--sp-10); }
.wd-block-head { max-width: 800px; display: flex; flex-direction: column; gap: var(--sp-4); color: var(--surface); }
.wd-eyebrow {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-14);
  line-height: var(--lh-20);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--surface);
}
.wd-h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.14;
  letter-spacing: -.01em;
  margin: 0;
  color: var(--surface);
}
.wd-lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-18);
  line-height: var(--lh-28);
  color: var(--surface);
  opacity: .7;
  margin: 0;
}

/* Process — 4 frosted cards */
.wd-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  align-items: stretch;
}
.wd-step-card {
  background: rgba(255,255,255,.2);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-10);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.wd-step-num {
  width: var(--sp-14);
  height: var(--sp-14);
  border-radius: 30px;
  background: var(--surface);
  color: var(--cobalt);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-32);
  line-height: var(--lh-40);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wd-step-text       { display: flex; flex-direction: column; gap: 4px; color: var(--surface); }
.wd-step-text h3    { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-20); line-height: var(--lh-28); margin: 0; }
.wd-step-text p     { font-family: var(--font-body);    font-weight: 400; font-size: var(--fs-18); line-height: var(--lh-28); margin: 0; opacity: .7; }

/* Who It's For */
.wd-who-stack { display: flex; flex-direction: column; gap: var(--sp-8); align-items: flex-start; }

/* Reuse common .industry-tag — apply dark-glass treatment + hover for this context.
   Same pattern as `.dark-section .industry-tag` in main.css; not using .dark-section here to avoid
   cascade conflicts with .wd-h2 / .wd-lead body color rules.
   Size (48px height / 18px font) comes from base .industry-tag for uniformity site-wide. */
.wd-process-section .industry-tag {
  background: rgba(255,255,255,.20);
  border: none;
  color: var(--surface);
  transition: background var(--t-smooth), transform var(--t-fast);
}
.wd-process-section .industry-tag:hover      { background: rgba(255,255,255,.28); transform: translateY(-1px); }
.wd-process-section .industry-tag img        { filter: brightness(0) invert(1); }


/* ============================================================================================================
   ============================================================================================================
                          RESPONSIVE OVERRIDES
   Order: motion query → min-width ascending → max-width descending.
   ============================================================================================================
   ============================================================================================================ */


/* ====================================================================
   prefers-reduced-motion — disable hero collage marquee
   ==================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hc-track { animation: none !important; }
}


/* ====================================================================
   @media (min-width:1024px)  —  DESKTOP+
   ==================================================================== */
@media (min-width: 1024px) {
  /* Who It's For — staggered desktop offsets (Figma: ml 0/60/120/180, mt 0/152/304) */
  .who-cards { display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-8); }
  .who-card:nth-child(1) { margin-right: 0;             align-self: flex-end; }
  .who-card:nth-child(2) { margin-right: var(--sp-15); }   /* 60 */
  .who-card:nth-child(3) { margin-right: var(--sp-30); }   /* 120 */
  .who-card:nth-child(4) { margin-right: 180px; }          /* 180 off-grid */
}


/* ====================================================================
   @media (min-width:640px)  —  SM+ (founder section vertical + horizontal padding scales like .pad-section / .pad-x)
   ==================================================================== */
@media (min-width: 640px) {
  .founder-section { padding-top: var(--sp-20); padding-bottom: var(--sp-20); }
  .founder-inner   { padding-left: var(--sp-6); padding-right: var(--sp-6); }
}

/* ====================================================================
   @media (min-width:1024px)  —  LG+ (founder-inner horizontal padding bumps to match .pad-x)
   ==================================================================== */
@media (min-width: 1024px) {
  .founder-inner   { padding-left: var(--sp-8); padding-right: var(--sp-8); }
}

/* ====================================================================
   @media (min-width:1280px)  —  XL+ (collage absolute, founder portrait extends to edge)
   ==================================================================== */
@media (min-width: 1280px) {
  /* Hero collage pinned to the right of hero copy */
  .hero-collage { position: absolute; top: 0; bottom: 0; right: var(--sp-6); }

  /* Founder section bottom collapses so portrait extends to the section's bottom edge */
  .founder-section { padding-bottom: 0; }
}


/* ====================================================================
   @media (max-width:1279px)  —  BELOW XL — Tablet/laptop
   ==================================================================== */
@media (max-width: 1279px) {
  /* Collage flows below copy as a marquee strip with fade mask.
     Breaks out of parent pad-x to span the full viewport width so images can grow. */
  .hero-collage {
    position: relative;
    margin-top: var(--sp-10);
    max-height: 520px;
    margin-left:  calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left:  var(--sp-6);
    padding-right: var(--sp-6);
    box-sizing: border-box;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
    mask-image:         linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
    justify-content: center;
    gap: var(--sp-5);
  }
  .hc-col              { width: clamp(180px, calc((100vw - 88px) / 3), 280px); }
  .hc-track img        { width: 100%; height: auto; aspect-ratio: 5/6; margin-bottom: var(--sp-5); border-radius: 18px; }
  .hc-track .hc-feat   { border-radius: 26px; }

  /* Founder section drops to 1-col stack (3-col 343+480+1fr only fits cleanly at 1280+) */
  .founder-inner       { grid-template-columns: 1fr; gap: var(--sp-8); }
  .founder-left        { margin-right: 0; gap: var(--sp-6); }
  .founder-heading     { padding-left: 0; font-size: var(--fs-32); line-height: var(--lh-40); }
  .founder-caption     { padding: var(--sp-5) var(--sp-6); border-radius: var(--r-md); align-self: flex-start; }
  .founder-portrait    { width: 100%; height: auto; max-width: 480px; aspect-ratio: 4/5; margin: 0 auto; }
  .founder-body        { padding: 0; }
}


/* ====================================================================
   @media (max-width:1023px)  —  TABLET/MOBILE
   (1024px ≈ 1023px — unified; the 1px diff has no visible effect)
   ==================================================================== */
@media (max-width: 1023px) {
  /* Business Solutions — slightly tighter */
  .biz-card                                   { padding: var(--sp-7); border-radius: var(--sp-8); }   /* 28 / 32 */
  .biz-card-title, .biz-card-cta-title        { font-size: var(--fs-28); line-height: var(--lh-36); }
  .biz-card-image                             { height: 240px; }

  /* Who It's For — simple vertical stack */
  .who-cards   { display: flex; flex-direction: column; gap: var(--sp-4); }
  .who-card    { max-width: none; padding: var(--sp-5); }

  /* wd-process grid → 2-col */
  .wd-process-grid { grid-template-columns: repeat(2, 1fr); }

}

/* Tablet-only — 2 cols × 3 cards each (vs desktop's 2 cards). Slow durations to match scroll pace. */
@media (min-width: 640px) and (max-width: 1023px) {
  .testi-scroll-col:nth-child(1) .testi-scroll-inner { animation-duration: 22.5s; }
  .testi-scroll-col:nth-child(2) .testi-scroll-inner { animation-duration: 28.5s; }
}


/* ====================================================================
   @media (max-width:639px)  —  MOBILE overrides
   (640px ≈ 639px — unified; the 1px diff has no visible effect)
   ==================================================================== */
@media (max-width: 639px) {
  /* wd-process — single column, tighter spacing */
  .wd-process-section { padding: var(--sp-16) 0; }
  .wd-process-inner   { padding: 0 var(--sp-5); gap: var(--sp-14); }
  .wd-block           { gap: var(--sp-7); }
  .wd-process-grid    { grid-template-columns: 1fr; gap: var(--sp-4); }
  .wd-step-card       { gap: var(--sp-7); padding: var(--sp-5); }

  /* Hero collage — 2 cols, hide 3rd, tighter padding/gap */
  .hero-collage                            { gap: var(--sp-4); max-height: 440px; margin-top: var(--sp-8);
                                             padding-left: var(--sp-4); padding-right: var(--sp-4); }
  .hero-collage .hc-col:nth-child(3)       { display: none; }
  .hc-col                                  { width: calc((100vw - 48px) / 2); max-width: 200px; }
  .hc-track img                            { width: 100%; margin-bottom: var(--sp-4); border-radius: var(--r-lg); }
  .hc-track .hc-feat                       { border-radius: 22px; }

  /* Business Solutions */
  .biz-card                                { padding: var(--sp-6); border-radius: var(--r-3xl); gap: var(--sp-3); }
  .biz-card-title, .biz-card-cta-title     { font-size: var(--fs-26); line-height: var(--lh-32); }
  .biz-card-image                          { height: 200px; border-radius: var(--r-md); }
  .biz-card-arrow                          { width: var(--sp-11); height: var(--sp-11); }   /* 44px */
  .biz-card-footer                         { gap: var(--sp-3); }
  .biz-card-cta-title                      { margin-bottom: var(--sp-3); }
  .biz-card-cta-btn                        { padding: 14px 18px; font-size: var(--fs-18); line-height: var(--lh-24); }

  /* Service-page hero banner — wide 1024:420 inline ratio overridden to 4:3 portrait-ish on mobile so the photo gets vertical real-estate */
  img[src*="hero-banner"]                  { aspect-ratio: 4 / 3 !important; object-position: center; }

  /* Testimonial cards */
  .testi-scroll-card                       { padding: var(--sp-6) var(--sp-5); gap: var(--sp-5); }
  /* Mobile col 1 has 6 cards vs 2 on desktop — bump duration so scroll speed stays comparable */
  .testi-scroll-col .testi-scroll-inner    { animation-duration: 45s; }
  .testi-scroll-quote                      { font-size: var(--fs-18); line-height: var(--lh-28); }
  .testi-quote-icon                        { width: var(--sp-6); height: 21px; }
  .testi-stars-icon                        { gap: 5px; }
  .testi-stars-icon img                    { width: var(--sp-4); height: 15px; }
  .testi-scroll-footer img                 { width: var(--sp-11); height: var(--sp-11); }   /* 44px */
  .testi-scroll-name                       { font-size: 17px; line-height: var(--lh-24); }

  /* Founder section */
  .founder-inner                           { gap: var(--sp-6); }
  .founder-heading                         { font-size: var(--fs-28); line-height: var(--lh-36); }
  .founder-name                            { font-size: var(--fs-20); line-height: var(--lh-28); }
  .founder-role                            { font-size: var(--fs-14); }
  .founder-portrait                        { aspect-ratio: 3/4; }
  .founder-body                            { font-size: var(--fs-16); line-height: var(--lh-26); }
  .founder-body p                          { margin-bottom: var(--sp-5); }
}

/* ─────────────────────────────────────────────
   merchant-service (merchant-service.html)
   ───────────────────────────────────────────── */
.ms-hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 0;
  background:
    linear-gradient(180deg, #041A6C 0%, #1B61E3 53%, #72DBC1 85.5%, #58D995 100%);
}
.ms-hero__inner {
  position: relative;
  z-index: 3;
  padding: 20px 24px 0;
  text-align: center;
}
.ms-hero__product {
  position: relative;
  z-index: 10;
  display: block;
  width: 100%;
  height: auto;
  margin: -100px 0 140px;
  pointer-events: none;
}
/* Override main.css's 1024px+ hide of #mobile-menu — merchant page uses
   xl: (1280px) breakpoint for desktop nav, so hamburger needs to work
   between 1024–1279px too. */
@media (min-width: 1024px) and (max-width: 1279px) {
  body.header-translucent #mobile-menu { display: none !important; }
  body.header-translucent #mobile-menu.open { display: block !important; }
}

.ms-hero__rings {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  width: 0; height: 0;
}
.ms-hero__ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  aspect-ratio: 1 / 1;
}
.ms-hero__ring--1  { width: 200px;  background: rgba(63,130,255,.22); }
.ms-hero__ring--2  { width: 320px;  background: rgba(63,130,255,.18); }
.ms-hero__ring--3  { width: 460px;  background: rgba(63,130,255,.14); }
.ms-hero__ring--4  { width: 620px;  background: rgba(63,130,255,.11); }
.ms-hero__ring--5  { width: 800px;  background: rgba(63,130,255,.09); }
.ms-hero__ring--6  { width: 1000px; background: rgba(63,130,255,.07); }
.ms-hero__ring--7  { width: 1220px; background: rgba(63,130,255,.055); }
.ms-hero__ring--8  { width: 1460px; background: rgba(63,130,255,.045); }
.ms-hero__ring--9  { width: 1720px; background: rgba(63,130,255,.035); }
.ms-hero__ring--10 { width: 2000px; background: rgba(63,130,255,.025); }

.ms-cta-green {
  display: inline-flex; align-items: center; justify-content: center;
  background: #2ACE64;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: background var(--t-fast), transform var(--t-pop);
}
.ms-cta-green:hover { background: #25B859; transform: translateY(-1px); }

.ms-cta-white {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  color: #142958;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: background var(--t-fast), transform var(--t-pop);
}
.ms-cta-white:hover { background: #F4F7FF; transform: translateY(-1px); }

/* Accept payments overlapping card — straddles hero/bamboo boundary */
.ms-accept-wrap {
  position: relative;
  z-index: 5;
  margin-top: -200px;
  margin-bottom: -200px;
  pointer-events: none;
}
.ms-accept-wrap > * { pointer-events: auto; }
.ms-accept-card {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 64px;
  display: flex;
  gap: 64px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 30px 60px -20px rgba(8,40,140,.25);
}
.ms-accept-card__text { flex: 0 0 482px; }
.ms-accept-card__icons {
  flex: 0 0 672px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ms-accept-row {
  display: flex;
  gap: 64px;
}
.ms-accept-row--offset { padding-left: 92px; }
.ms-pay-icon {
  width: 120px; height: 120px;
  background: #fff;
  border: 1px solid #ACCEFF;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 120px;
}
.ms-pay-icon img { max-width: 64%; max-height: 64%; width: auto; height: auto; display: block; }

/* Bamboo section */
.ms-bamboo {
  position: relative;
  background-color: #2a8c45;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 280px 0 0;
  overflow: hidden;
}
.ms-bamboo__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,40,30,.25) 0%, rgba(8,40,30,.4) 100%);
  z-index: 1;
}
.ms-bamboo__inner { position: relative; z-index: 2; padding-bottom: 80px; }
.ms-bamboo__product {
  position: relative;
  z-index: 2;
  display: block;
  width: 140%;
  max-width: none;
  margin: -80px -20% 0;
  border-radius: 0;
  box-shadow: none;
}

/* Pricing 3 cards */
.ms-price-card {
  position: relative;
  border-radius: 24px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  text-decoration: none;
}
.ms-price-card__bg {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 200px;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  object-position: right bottom;
  opacity: .35;
  pointer-events: none;
}
.ms-price-card__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 16px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  transition: gap var(--t-pop);
}
.ms-price-card__link:hover { gap: 22px; }

/* Trusted section */
.ms-trusted {
  background: linear-gradient(180deg, rgba(217,251,255,0) 0%, #D9FBFF 68%);
  padding: 80px 0 100px;
}

/* Stats section */
.ms-stats {
  background: linear-gradient(180deg, #EBFCFC 0%, #DCF7F5 100%);
  padding: 80px 0 100px;
}
.ms-visa-pill {
  background: #fff;
  border-radius: 9999px;
  padding: 24px 56px;
  box-shadow: 0 4px 20px rgba(8,40,140,.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ms-visa-pill img { width: 140px; height: auto; display: block; }
.ms-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  color: #00B75F;
  line-height: 1;
  margin: 0 0 12px;
  font-size: clamp(40px, 5.5vw, 64px);
  letter-spacing: -0.02em;
}
.ms-stat-sym {
  color: #00B75F;
}
.ms-stat-label {
  color: #0A0B17;
  font-weight: 500;
  font-size: 18px;
  margin: 0;
}
.ms-event-grid {
  display: flex; flex-direction: column; gap: 24px;
}
.ms-event-grid__row {
  display: grid;
  grid-template-columns: 400px 1fr 280px;
  gap: 24px;
}
.ms-event-grid__row:nth-child(2) {
  grid-template-columns: 600px 280px 1fr;
}
.ms-event {
  height: 320px;
  border-radius: 24px;
  overflow: hidden;
  background: #ddd;
}
.ms-event img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Responsive — Tablet */
@media (max-width: 1279px) {
  .ms-hero__product {
    width: 100%;
    margin: -100px 0 180px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center 35%;
  }
  .ms-accept-wrap { margin-top: -140px; margin-bottom: -140px; }
  .ms-accept-card { flex-direction: column; padding: 40px; gap: 32px; align-items: stretch; }
  .ms-accept-card__text { flex: 1; width: 100%; }
  .ms-accept-card__icons { flex: 1; width: 100%; align-items: center; }
  .ms-accept-row { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .ms-accept-row--offset { padding-left: 0; }
  .ms-pay-icon { width: 92px; height: 92px; flex: 0 0 92px; }
  .ms-bamboo { padding: 200px 0 0; }
  .ms-bamboo__product {
    width: 100%;
    margin: -40px 0 0;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center bottom;
  }
  .ms-event-grid__row,
  .ms-event-grid__row:nth-child(2) { grid-template-columns: 1fr 1fr; gap: 20px; }
  .ms-event-grid__row .ms-event:nth-child(3) { grid-column: 1 / -1; }
  .ms-event { height: 260px; }
  .ms-stats { padding: 60px 0 80px; }
}

/* Responsive — Mobile */
@media (max-width: 640px) {
  .ms-hero { padding: 80px 0 0; }
  .ms-hero__inner { padding: 20px 16px 0; }
  .ms-hero__ring--1  { width: 140px; }
  .ms-hero__ring--2  { width: 220px; }
  .ms-hero__ring--3  { width: 320px; }
  .ms-hero__ring--4  { width: 440px; }
  .ms-hero__ring--5  { width: 580px; }
  .ms-hero__ring--6  { width: 740px; }
  .ms-hero__ring--7  { width: 920px; }
  .ms-hero__ring--8,
  .ms-hero__ring--9,
  .ms-hero__ring--10 { display: none; }
  .ms-hero__product {
    margin: -30px 0 140px;
    aspect-ratio: 16 / 9;
    object-position: center 30%;
  }
  .ms-accept-wrap { margin-top: -100px; margin-bottom: -100px; }
  .ms-accept-card { padding: 24px; gap: 24px; border-radius: 20px; }
  .ms-accept-row { gap: 12px; }
  .ms-pay-icon { width: 64px; height: 64px; flex: 0 0 64px; }
  .ms-bamboo { padding: 140px 0 0; }
  .ms-bamboo__inner { padding-bottom: 60px; }
  .ms-bamboo__product {
    margin: -20px 0 0;
    aspect-ratio: 4 / 3;
    object-position: center bottom;
  }
  .ms-price-card { padding: 32px 24px; min-height: 240px; }
  .ms-price-card__bg { width: 140px; max-height: 140px; right: -16px; bottom: -16px; }
  .ms-event-grid__row,
  .ms-event-grid__row:nth-child(2) { grid-template-columns: 1fr; }
  .ms-event { height: 200px; }
  .ms-stats { padding: 50px 0 60px; }
  .ms-visa-pill { padding: 16px 36px; }
  .ms-visa-pill img { width: 100px; }
  .ms-stat-num { font-size: 40px; margin-bottom: 8px; }
  .ms-stat-label { font-size: 16px; }
  .ms-cta-green, .ms-cta-white { font-size: 18px; padding: 12px 24px; }
}
