/* ==========================================================================
   PSGroup Landing — index.css
   Page-specific sections for index.html (relies on main.css primitives).
   Block order follows the approved mockup.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 130px var(--section-x) 140px;
  background: var(--hero-panel);
  color: var(--color-white);
}

/* Square mesh, faded out towards the bottom-right */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(189, 242, 235, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(189, 242, 235, 0.09) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(120% 100% at 20% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 100% at 20% 0%, #000 30%, transparent 78%);
}

/* Dot field, picking up where the mesh fades */
.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.4px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(70% 70% at 85% 90%, #000 10%, transparent 70%);
  mask-image: radial-gradient(70% 70% at 85% 90%, #000 10%, transparent 70%);
}

.hero__orb-a {
  right: -120px;
  top: -120px;
  width: 620px;
  height: 620px;
  animation-duration: 18s;
}

.hero__orb-b {
  left: 38%;
  bottom: -220px;
  width: 520px;
  height: 520px;
  animation-duration: 24s;
  animation-direction: reverse;
}

/* 3x2 square motif in the top-right corner */
.hero__squares {
  position: absolute;
  right: var(--section-x);
  top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  opacity: 0.5;
}

.hero__square {
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(189, 242, 235, 0.6);
}

.hero__square--faint {
  border-color: rgba(189, 242, 235, 0.35);
}

.hero__square--fainter {
  border-color: rgba(189, 242, 235, 0.25);
}

.hero__square--accent {
  border: 0;
  background: rgba(255, 91, 4, 0.85);
}

.hero__square--mint {
  border: 0;
  background: rgba(189, 242, 235, 0.5);
}

/* Animated dashed payment rails crossing the panel */
.hero__rails {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.hero__rail {
  fill: none;
  stroke-width: 2;
  animation: psg-dash 6s linear infinite;
}

.hero__rail--mint {
  stroke: rgba(189, 242, 235, 0.55);
  stroke-dasharray: 10 14;
}

.hero__rail--white {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-dasharray: 4 18;
  animation-duration: 11s;
}

.hero__rail--accent {
  stroke: rgba(255, 91, 4, 0.35);
  stroke-dasharray: 6 16;
  animation-duration: 9s;
  animation-direction: reverse;
}

.hero__inner {
  position: relative;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.hero__title {
  font-size: 78px;
  line-height: 1.02;
  font-weight: var(--weight-black);
  color: var(--color-white);
  text-wrap: balance;
}

.hero__subtitle {
  max-width: 720px;
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  text-wrap: pretty;
}

.hero__cta {
  margin-top: var(--space-1);
}

/* --------------------------------------------------------------------------
   Expertise pillars — four columns hanging off one navy rule
   -------------------------------------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--color-secondary);
}

.pillar {
  position: relative;
  padding: 36px 32px 44px;
  border-right: 1px solid var(--color-border);
  transition: transform 0.3s ease;
}

.pillar:first-child {
  padding-left: 0;
}

.pillar:last-child {
  padding-right: 0;
  border-right: 0;
}

.pillar:hover {
  transform: translateY(-6px);
}

/* Accent rule that draws itself along the top of the hovered column */
.pillar__bar {
  position: absolute;
  top: -2px;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--color-accent);
  /* scaleX rather than width — keeps the transition on the compositor */
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s ease;
}

.pillar:hover .pillar__bar {
  transform: scaleX(1);
}

.pillar__index {
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--color-text-faint);
  transition: color 0.3s ease;
}

.pillar:hover .pillar__index {
  color: var(--color-accent);
}

.pillar__title {
  margin-bottom: var(--space-2);
  font-size: 22px;
  line-height: 1.25;
}

.pillar__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-muted);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Transaction lifecycle — five stages plus a progress rail
   -------------------------------------------------------------------------- */
.lifecycle {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.stage {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  color: var(--color-text);
  cursor: default;
  transition: background 0.35s ease, border-color 0.35s ease,
    transform 0.35s ease, box-shadow 0.35s ease;
}

.stage.is-active {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-8px);
  box-shadow: 0 18px 38px rgba(0, 92, 102, 0.24);
}

.stage__dot {
  width: 36px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--color-border-strong);
  transition: background 0.35s ease;
}

/* Stages already passed read teal; the current one reads accent */
.stage.is-done .stage__dot {
  background: var(--color-secondary);
}

.stage.is-active .stage__dot {
  background: var(--brand-mint);
}

.stage__label {
  font-size: 17px;
  font-weight: var(--weight-bold);
  line-height: 1.3;
}

.lifecycle__rail {
  margin-top: 22px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--color-border);
  overflow: hidden;
}

.lifecycle__fill {
  height: 100%;
  width: 100%;
  background: var(--seam);
  /* JS drives scaleX; the gradient is painted once and compressed by the compositor */
  transform: scaleX(0.2);
  transform-origin: 0 50%;
  transition: transform 0.45s ease;
}

/* --------------------------------------------------------------------------
   Numbers strip
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}

.stat__value {
  font-size: 70px;
  font-weight: var(--weight-black);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stat__value--teal {
  color: var(--color-secondary);
}

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

.stat__label {
  margin-top: var(--space-2);
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Mid-page CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 76px var(--section-x);
  background: var(--brand-mint);
}

.cta-band__orb {
  right: -80px;
  top: -140px;
  width: 420px;
  height: 420px;
}

.cta-band__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.cta-band__title {
  font-size: 34px;
  line-height: 1.15;
}

.cta-band__text {
  font-size: 19px;
  color: var(--color-secondary);
}

.cta-band__cta {
  position: relative;
}

/* --------------------------------------------------------------------------
   Beyond core payments — 2x2 cards with a decorative footer strip
   -------------------------------------------------------------------------- */
.beyond {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.beyond-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  background: var(--color-surface);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.beyond-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-border-strong);
  box-shadow: 0 26px 52px rgba(13, 48, 89, 0.12);
}

/* Teal-to-orange seam across the top edge */
.beyond-card__seam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--seam);
}

.beyond-card__glow {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 91, 4, 0.09), transparent 70%);
}

.beyond-card__head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 36px 36px 0;
}

.beyond-card__index {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: var(--weight-bold);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--color-ghost);
}

.beyond-card__body {
  position: relative;
  padding: var(--space-3) 36px 30px;
}

.beyond-card__title {
  margin-bottom: var(--space-2);
  font-size: 24px;
}

.beyond-card__text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Only the card footers take the teal label; diagram captions stay neutral */
.beyond-card__foot .mono-label {
  color: var(--color-label-teal);
}

.beyond-card__foot {
  position: relative;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 36px;
  border-top: 1px dashed var(--color-border);
  background: var(--color-surface-3);
}

/* Footer motif — card chips */
.chips {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chips__card {
  width: 44px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--color-border-strong);
}

.chips__card--solid {
  border: 0;
  background: var(--color-primary);
}

.chips__card--dashed {
  border-style: dashed;
}

/* Footer motif — billing cycle dots */
.cycle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cycle__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
}

.cycle__dot--accent { background: var(--color-accent); }
.cycle__dot--teal { background: var(--color-secondary); }
.cycle__dot--navy { background: var(--color-primary); }
.cycle__dot--strong { background: var(--color-border-strong); }

/* Footer motif — two-way flow */
.two-way {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.two-way__line {
  height: 5px;
  border-radius: var(--radius-pill);
}

.two-way__line--out {
  width: 78px;
  background: linear-gradient(90deg, #0d3059, #c9d5e2);
}

.two-way__line--in {
  width: 60px;
  background: linear-gradient(90deg, #c9d5e2, #ff5b04);
}

/* Footer motif — carrier channel bars */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.bars__bar {
  width: 9px;
  border-radius: 2px;
}

.bars__bar--1 { height: 12px; background: var(--color-border-strong); }
.bars__bar--2 { height: 18px; background: var(--color-secondary); }
.bars__bar--3 { height: 26px; background: var(--color-primary); }
.bars__bar--4 { height: 34px; background: var(--color-accent); }

/* --------------------------------------------------------------------------
   Built for fintech businesses — cards with a teal art header
   -------------------------------------------------------------------------- */
.audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.audience-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.audience-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 52px rgba(13, 48, 89, 0.12);
}

.audience-card__art {
  position: relative;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--teal-panel);
}

.audience-card__mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
}

.motif {
  position: relative;
}

.motif--squares {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.motif__sq {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
}

.motif__sq--outline { border: 1.5px solid rgba(255, 255, 255, 0.55); }
.motif__sq--outline-faint { border: 1.5px solid rgba(255, 255, 255, 0.35); }
.motif__sq--accent { background: rgba(255, 91, 4, 0.9); }
.motif__sq--solid { background: rgba(255, 255, 255, 0.35); }

.motif--chain {
  display: flex;
  align-items: center;
}

.motif__node {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.motif__node--solid { background: var(--color-white); }
.motif__node--outline { border: 1.5px solid rgba(255, 255, 255, 0.7); }

.motif__node--accent {
  width: 22px;
  height: 22px;
  background: rgba(255, 91, 4, 0.95);
}

.motif__wire {
  width: 34px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.5);
}

.motif--columns {
  display: flex;
  align-items: flex-end;
  gap: var(--space-1);
}

.motif__col {
  width: 14px;
  border-radius: 4px;
}

.motif__col--1 { height: 26px; background: rgba(255, 255, 255, 0.35); }
.motif__col--2 { height: 42px; background: rgba(255, 255, 255, 0.6); }
.motif__col--3 { height: 58px; background: rgba(255, 91, 4, 0.9); }
.motif__col--4 { height: 34px; background: rgba(255, 255, 255, 0.45); }

.audience-card__body {
  position: relative;
  padding: 0 36px 36px;
}

/* The tile straddles the art header and the body */
.audience-card__tile {
  margin-top: -28px;
  margin-bottom: 22px;
}

.audience-card__title {
  margin-bottom: var(--space-2);
  font-size: 23px;
}

.audience-card__text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Nesting diagram — tenant > company > merchants
   -------------------------------------------------------------------------- */
.nesting__caption {
  margin-top: var(--space-4);
  margin-bottom: 18px;
  color: var(--color-text-muted);
}

.nesting {
  position: relative;
  overflow: hidden;
  padding: var(--space-4) 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-3xl);
}

.nesting__mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 48, 89, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 48, 89, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(90% 90% at 100% 0%, #000 20%, transparent 80%);
  mask-image: radial-gradient(90% 90% at 100% 0%, #000 20%, transparent 80%);
}

.nesting__level {
  position: relative;
  padding: 22px;
}

.nesting__level--tenant {
  border: 1.5px dashed var(--color-border-strong);
  border-radius: var(--radius-2xl);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nesting__level--tenant:hover {
  border-color: var(--color-primary);
  background: rgba(13, 48, 89, 0.02);
}

.nesting__level--company {
  border: 1.5px solid var(--brand-mint);
  border-radius: var(--radius-xl);
  background: rgba(189, 242, 235, 0.32);
  transition: border-color 0.3s ease;
}

.nesting__level--company:hover {
  border-color: var(--color-secondary);
}

.nesting__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.nesting__marker {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.nesting__level--company .mono-label {
  color: var(--color-text-muted);
}

.nesting__marker--navy { background: var(--color-primary); }
.nesting__marker--teal { background: var(--color-secondary); }

.nesting__name {
  font-size: 15px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.02em;
}

.nesting__merchants {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.merchant {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.merchant:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent);
}

.merchant--active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
}

.merchant--active:hover {
  border-color: var(--color-primary-hover);
  background: var(--color-primary-hover);
}

.merchant--more {
  justify-content: center;
  border-style: dashed;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-faint);
}

.merchant__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border-strong);
}

.merchant--active .merchant__dot {
  background: var(--color-accent);
}

.merchant__name {
  font-size: 15px;
  font-weight: var(--weight-bold);
}

/* --------------------------------------------------------------------------
   Built for teams — accordion
   -------------------------------------------------------------------------- */
.accordion {
  display: flex;
  flex-direction: column;
}

.accordion__item {
  border-top: 1px solid var(--color-border);
}

.accordion__item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.accordion__heading {
  margin: 0;
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  padding: 30px 0;
  background: none;
  border: 0;
  font-family: var(--font-sans);
  cursor: pointer;
  text-align: left;
}

.accordion__title {
  font-size: 26px;
  font-weight: var(--weight-bold);
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--color-text-muted);
  transition: color 0.25s ease;
}

.accordion__item.is-open .accordion__title,
.accordion__trigger:hover .accordion__title {
  color: var(--color-primary);
}

.accordion__icon {
  font-size: 26px;
  line-height: 1;
  color: var(--color-accent);
  transition: transform 0.3s ease;
}

.accordion__item.is-open .accordion__icon {
  transform: rotate(45deg);
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.3s ease;
}

.accordion__item.is-open .accordion__panel {
  grid-template-rows: 1fr;
}

.accordion__text {
  max-width: 720px;
  min-height: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.accordion__item.is-open .accordion__text {
  padding-bottom: 30px;
}

/* --------------------------------------------------------------------------
   Why PSGroup — dark panel, 2x2 rules
   -------------------------------------------------------------------------- */
.why__orb {
  left: -140px;
  bottom: -180px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(189, 242, 235, 0.14), transparent 68%);
  animation-duration: 22s;
}

.why {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 72px;
}

.why-card {
  padding-top: 26px;
  border-top: 1px solid rgba(189, 242, 235, 0.32);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.why-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.why-card .tile {
  margin-bottom: 26px;
}

.why-card__title {
  margin-bottom: var(--space-2);
  font-size: 24px;
  color: var(--color-white);
}

.why-card__text {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 760px;
}

.about__lead {
  font-size: 24px;
  line-height: 1.5;
  font-weight: var(--weight-medium);
  text-wrap: pretty;
}

.about__text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-muted);
  text-wrap: pretty;
}

.about__slogan {
  font-size: 22px;
  line-height: 1.4;
  font-weight: var(--weight-bold);
  color: var(--color-accent-text);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact__text {
  max-width: 560px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.contact__email {
  align-self: flex-start;
  font-size: 34px;
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  color: var(--color-primary);
  transition: color 0.2s ease;
}

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

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 36px var(--section-x);
  border-top: 3px solid var(--brand-mint);
}

.footer__meta {
  font-size: 14px;
  color: var(--color-text-faint);
}

/* ==========================================================================
   Responsive — tablet (<=1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero {
    padding-top: 96px;
    padding-bottom: 104px;
  }

  .hero__title {
    font-size: 54px;
  }

  .hero__subtitle {
    font-size: 18px;
  }

  .hero__squares {
    display: none;
  }

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

  .pillar {
    padding: 32px 24px 36px;
  }

  .pillar:nth-child(odd) {
    padding-left: 0;
  }

  .pillar:nth-child(even) {
    padding-right: 0;
    border-right: 0;
  }

  .pillar:nth-child(n + 3) {
    border-top: 1px solid var(--color-border);
  }

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

  .stats {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .stat__value {
    font-size: 54px;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .cta-band__title {
    font-size: 28px;
  }

  .beyond,
  .audience,
  .why {
    grid-template-columns: 1fr;
  }

  .why {
    gap: var(--space-4);
  }

  .nesting {
    padding: var(--space-3) 24px;
  }

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

  .about__lead {
    font-size: 21px;
  }
}

/* ==========================================================================
   Responsive — mobile (<=640px)
   ========================================================================== */
@media (max-width: 640px) {
  /* Continuous decorative motion costs paint we would rather spend on FCP */
  .orb,
  .hero__rail {
    animation: none;
  }

  .hero {
    padding-top: 72px;
    padding-bottom: 80px;
  }

  .hero__title {
    font-size: 38px;
  }

  .hero__subtitle {
    font-size: 16.5px;
  }

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

  .pillar {
    padding: 26px 0 30px;
    border-right: 0;
  }

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

  .pillar__title {
    font-size: 20px;
  }

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

  .stage {
    flex-direction: row;
    align-items: center;
    gap: var(--space-2);
    padding: 18px 20px;
  }

  .stage.is-active {
    transform: none;
  }

  .stage__dot {
    width: 6px;
    height: 24px;
  }

  .stage__label {
    font-size: 16px;
  }

  .stat__value {
    font-size: 44px;
  }

  .stat__label {
    font-size: 15.5px;
  }

  .beyond-card__head {
    padding: 26px 22px 0;
  }

  .beyond-card__index {
    font-size: 34px;
  }

  .beyond-card__body {
    padding: 20px 22px 24px;
  }

  .beyond-card__title {
    font-size: 21px;
  }

  .beyond-card__text,
  .audience-card__text,
  .why-card__text,
  .accordion__text {
    font-size: 15.5px;
  }

  .beyond-card__foot {
    padding: 16px 22px;
  }

  .audience-card__body {
    padding: 0 22px 26px;
  }

  .audience-card__title {
    font-size: 20px;
  }

  .nesting {
    padding: 20px 16px;
  }

  .nesting__level {
    padding: 16px;
  }

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

  .accordion__trigger {
    padding: 22px 0;
  }

  .accordion__title {
    font-size: 20px;
  }

  .accordion__item.is-open .accordion__text {
    padding-bottom: 22px;
  }

  .why-card__title {
    font-size: 20px;
  }

  .about__lead {
    font-size: 19px;
  }

  .about__text {
    font-size: 16px;
  }

  .about__slogan {
    font-size: 19px;
  }

  .contact__text {
    font-size: 16.5px;
  }

  .contact__email {
    font-size: 24px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}
