/* ==========================================================================
   PRIME RETAIL SOLUTION — DESIGN SYSTEM
   Implements PRD Section 7 (Brand Identity) and Section 9 (UI Components)
   BRAND COLORS (matched to live primeretailsolution.com):
     Navy   #04243D  (primary / dark surfaces)
     Cyan   #00A1C7  (accent / emphasis)
     White  #FFFFFF
   Token names kept as --prs-black / --prs-orange for backwards-compat
   across all 40 pages; their VALUES are now the real navy + cyan brand.
   ========================================================================== */

:root {
  /* Brand colors — matched to the real site */
  --prs-black:  #04243D;            /* navy — primary dark */
  --prs-orange: #00A1C7;            /* cyan — accent */
  --prs-orange-dark: #0081A6;       /* cyan, pressed/hover */
  --prs-orange-soft: rgba(0, 161, 199, 0.10);
  --navy-2:     #074883;            /* mid navy for gradients */
  --white:      #FFFFFF;

  /* Tonal scale (navy-tinted neutrals for a cohesive, premium feel) */
  --ink:        #04243D;
  --graphite:   #1B2A38;            /* navy-charcoal body text */
  --slate:      #45525C;            /* muted navy-gray */
  --stone:      #6B7680;
  --smoke:      #9AA3AB;
  --mist:       #D3DAE0;
  --cloud:      #E7ECF0;
  --snow:       #F4F7FA;            /* faint cool tint */

  /* Type families */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Spacing scale (PRD Section 7.3) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px;
  --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* Layout */
  --max:        1280px;
  --pad:        clamp(24px, 4.4vw, 56px);
  --section-y:  clamp(70px, 9.5vw, 130px);
  --nav-h:      72px;

  /* Motion */
  --ease:       cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast:     180ms;
  --t-med:      400ms;
  --t-slow:     800ms;

  /* Shadows (navy-tinted) */
  --shadow-card:  0 1px 2px rgba(4,36,61,0.05);
  --shadow-hover: 0 30px 60px -25px rgba(4,36,61,0.28);
}

/* ==========================================================================
   RESET + BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--graphite);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: var(--nav-h);
}
body.pulse-dashboard-body,
body.admin-body,
body.no-site-nav {
  padding-top: 0;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img, svg { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--prs-black);
}

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

/* ==========================================================================
   TYPOGRAPHY UTILITIES (PRD Section 7.2)
   ========================================================================== */
.display-1 { font-family: var(--font-display); font-size: clamp(48px, 6.5vw, 84px); line-height: 0.96; letter-spacing: -0.035em; font-weight: 400; }
.display-2 { font-family: var(--font-display); font-size: clamp(40px, 5vw, 64px); line-height: 1.0;  letter-spacing: -0.03em;  font-weight: 400; }
.h1        { font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 500; }
.h2        { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); line-height: 1.1;  letter-spacing: -0.02em;  font-weight: 500; }
.h3        { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -0.015em; font-weight: 500; }
.h4        { font-family: var(--font-display); font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 500; }
.body-lg   { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--slate); }
.body      { font-size: 16px; line-height: 1.6; color: var(--slate); }
.small     { font-size: 14px; line-height: 1.5; color: var(--stone); }
.mono      { font-family: var(--font-mono); font-feature-settings: "ss01"; }

/* Headline emphasis pattern: italic + orange */
em.accent, .accent {
  font-style: italic;
  color: var(--prs-orange);
  font-weight: 400;
}

/* ==========================================================================
   EYEBROW (PRD Section 7.2 + Component 9.7)
   ========================================================================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--prs-orange);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--prs-orange);
}
.eyebrow.no-line::before { display: none; }
.eyebrow.on-dark { color: var(--prs-orange); }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section   { padding: var(--section-y) 0; position: relative; }
.section.dark { background: linear-gradient(160deg, #04243D 0%, #062E4D 100%); color: var(--white); }
.section.dark h1, .section.dark h2, .section.dark h3, .section.dark h4 { color: var(--white); }
.section.dark .body, .section.dark .body-lg, .section.dark p { color: rgba(255,255,255,0.75); }
.section.snow { background: var(--snow); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.section-head h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 400; }

@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
}

/* ==========================================================================
   BUTTONS (PRD Section 9.1)
   ========================================================================== */
.btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1;
  height: 44px;
}
.btn-primary { background: var(--prs-orange); color: var(--white); box-shadow: 0 4px 18px rgba(0,161,199,0.22); }
.btn-primary:hover { background: var(--prs-orange-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,161,199,0.32); }
.btn-outline { border-color: var(--mist); color: var(--graphite); }
.btn-outline:hover { background: var(--prs-black); border-color: var(--prs-black); color: var(--white); }
.btn-ghost { color: var(--slate); }
.btn-ghost:hover { color: var(--prs-black); }
.btn-black { background: var(--prs-black); color: var(--white); }
.btn-black:hover { background: var(--prs-orange); }

/* On dark sections */
.section.dark .btn-outline { border-color: rgba(255,255,255,0.25); color: var(--white); }
.section.dark .btn-outline:hover { background: var(--white); color: var(--prs-black); border-color: var(--white); }

/* ==========================================================================
   NAVIGATION (PRD Section 9.3)
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cloud);
  transition: box-shadow 0.2s var(--ease);
}
.nav.is-scrolled {
  box-shadow: 0 8px 28px rgba(4,36,61,0.08);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
}
h2.pulse-dashboard-title {
  display: none;
}


.logo { display: flex; align-items: center; gap: 12px; color: var(--prs-black); text-decoration: none; }
.logo-img {
  display: block;
  height: 54px;
  width: auto;
  max-width: min(260px, 48vw);
  object-fit: contain;
}
.logo-mark {
  width: 34px;
  height: 34px;
  background: var(--prs-black);
  display: grid;
  place-items: center;
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1.5px solid var(--prs-orange);
  border-radius: 2px;
}
.logo-mark span {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--prs-orange);
  font-size: 14px;
  z-index: 1;
  line-height: 1;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.logo-text strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.015em;
}
.logo-text small {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 500;
}

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links > li > a, .nav-links > li > button {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  cursor: pointer;
}
.nav-links > li > a:hover, .nav-links > li > button:hover { color: var(--prs-black); }
.nav-links > li.has-mega > button::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.5;
}

.nav-cta { display: flex; gap: 12px; align-items: center; }
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--prs-black);
  color: var(--white);
  align-items: center;
  justify-content: center;
}
.mobile-toggle span {
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}
.mobile-toggle span::before, .mobile-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: currentColor;
}
.mobile-toggle span::before { top: -6px; }
.mobile-toggle span::after  { top: 6px; }

/* Mega menu */
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--cloud);
  border-bottom: 1px solid var(--cloud);
  padding: 40px var(--pad);
  display: none;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.1);
}
.mega.open { display: block; }
.mega-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.2fr;
  gap: 40px;
}
.mega-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--prs-orange);
  margin-bottom: 16px;
  font-weight: 500;
}
.mega-col ul { display: flex; flex-direction: column; gap: 12px; }
.mega-col a {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--prs-black);
  display: block;
  transition: color 0.2s;
}
.mega-col a:hover { color: var(--prs-orange); }
.mega-col a small {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--stone);
  margin-top: 2px;
  font-weight: 400;
}
.mega-feature {
  background: var(--snow);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.mega-feature .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--prs-orange);
  margin-bottom: 8px;
}
.mega-feature .stat {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--prs-black);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.mega-feature .desc {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: auto;
  padding-bottom: 14px;
}
.mega-feature .link {
  font-size: 13px;
  font-weight: 500;
  color: var(--prs-orange);
  display: inline-flex;
  gap: 6px;
}

/* Marketplace mega */
.mega-marketplaces {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.mp-card {
  background: var(--snow);
  border-radius: 10px;
  padding: 20px 18px;
  transition: all 0.25s var(--ease);
  border: 1px solid transparent;
}
.mp-card:hover { background: var(--white); border-color: var(--mist); transform: translateY(-2px); }
.mp-card .mp-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--prs-black);
  margin-bottom: 4px;
}
.mp-card .mp-tag { font-size: 11px; color: var(--stone); }

/* ==========================================================================
   FOOTER (PRD Section 9.4)
   ========================================================================== */
.footer { background: var(--prs-black); color: rgba(255,255,255,0.7); padding: 80px 0 28px; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 56px; }
.footer .logo { color: var(--white); margin-bottom: 20px; }
.footer .logo-footer {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  width: fit-content;
}
.footer .logo-footer .logo-img { height: 44px; }
.footer .logo-text small { color: rgba(255,255,255,0.5); }
.footer-brand p { font-size: 14px; max-width: 340px; margin-bottom: 24px; line-height: 1.6; color: rgba(255,255,255,0.65); }
.footer-brand .social { display: flex; gap: 10px; }
.footer-brand .social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); display: grid; place-items: center; font-size: 12px; transition: all 0.25s; color: var(--white); font-weight: 500; }
.footer-brand .social a:hover { background: var(--prs-orange); border-color: var(--prs-orange); }
.footer-col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--prs-orange); margin-bottom: 18px; font-weight: 500; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-col a:hover { color: var(--prs-orange); }
.footer-bottom { max-width: var(--max); margin: 0 auto; padding: 26px var(--pad) 0; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 0.05em; }
.footer-bottom .legal-links { display: flex; gap: 24px; }

/* ==========================================================================
   HERO PATTERNS
   ========================================================================== */
.hero {
  padding: clamp(64px, 9vw, 130px) 0 clamp(64px, 8vw, 120px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, var(--prs-orange-soft) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: 999px;
  font-size: 12px;
  color: var(--slate);
  margin-bottom: 28px;
  font-weight: 500;
}
.hero-tag .dot {
  width: 8px;
  height: 8px;
  background: var(--prs-orange);
  border-radius: 50%;
  position: relative;
}
.hero-tag .dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(0,161,199,0.35);
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Hero rotating marketplace token (PRD 4.4 / Pattern adaptation) */
.rotator {
  display: inline-block;
  position: relative;
  min-width: 380px;
  height: 1.05em;
  vertical-align: top;
  font-style: italic;
  color: var(--prs-orange);
  font-weight: 300;
}
.rotator span {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 250ms ease, transform 350ms var(--ease);
  white-space: nowrap;
  transform: translateY(8px);
}
.rotator span.active {
  opacity: 1;
  transform: translateY(0);
}

.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--slate);
  max-width: 540px;
  margin: 32px 0 36px;
  line-height: 1.6;
}
.hero-paths { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 56px);
  padding-top: 28px;
  border-top: 1px solid var(--cloud);
}
.meta-item .value {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--prs-black);
  line-height: 1;
}
.meta-item .value sup { font-size: 0.5em; color: var(--prs-orange); font-weight: 400; margin-left: 2px; vertical-align: 0.7em; }
.meta-item .label { font-size: 12px; color: var(--stone); margin-top: 8px; }

/* Page hero (non-home) */
.page-hero { padding: clamp(56px, 7vw, 100px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--cloud); }
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 400; line-height: 1.0; letter-spacing: -0.03em; max-width: 880px; }
.page-hero p.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--slate); max-width: 640px; margin: 24px 0 36px; line-height: 1.55; }

/* ==========================================================================
   DASHBOARD MOCKUP (Hero & PRS Pulse)
   ========================================================================== */
.hero-visual { position: relative; aspect-ratio: 4/4.4; }
.dash-card {
  position: absolute;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--cloud);
  box-shadow: 0 30px 60px -20px rgba(10,22,40,0.2), 0 12px 24px -10px rgba(10,22,40,0.1);
  overflow: hidden;
}
.dash-main {
  inset: 0 0 16% 14%;
  background: linear-gradient(160deg, #04243D 0%, #062E4D 100%);
  color: var(--white);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.dash-header { display: flex; justify-content: space-between; align-items: center; }
.dash-header .title { font-family: var(--font-display); font-size: 14px; font-weight: 500; }
.dash-header .pill { font-family: var(--font-mono); font-size: 9px; background: rgba(0,161,199,0.18); color: var(--prs-orange); padding: 4px 9px; border-radius: 4px; letter-spacing: 0.12em; font-weight: 500; }
.dash-stat { display: flex; align-items: baseline; gap: 12px; }
.dash-stat .num { font-family: var(--font-display); font-size: 40px; font-weight: 500; letter-spacing: -0.03em; }
.dash-stat .delta { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.85); }
.dash-stat .delta.up { color: var(--prs-orange); }
.dash-chart { flex: 1; display: flex; align-items: flex-end; gap: 4px; padding-top: 10px; }
.dash-chart .bar { flex: 1; background: linear-gradient(to top, rgba(0,161,199,0.85), rgba(0,161,199,0.35)); border-radius: 2px 2px 0 0; animation: rise 1.4s var(--ease) backwards; }
@keyframes rise { from { height: 0 !important; opacity: 0; } }

.dash-side {
  top: 12%;
  left: 0;
  width: 46%;
  padding: 18px;
  background: var(--snow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
}
.dash-side .label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--stone); margin-bottom: 4px; }
.dash-side .row { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--graphite); }
.dash-side .row .swatch { width: 8px; height: 8px; border-radius: 2px; background: var(--prs-black); }
.dash-side .row .swatch.alt { background: var(--prs-orange); }
.dash-side .row .v { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--slate); }

.dash-bottom {
  bottom: 0;
  right: 6%;
  width: 60%;
  background: var(--white);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.dash-bottom .icon { width: 36px; height: 36px; background: rgba(0,161,199,0.12); border-radius: 50%; display: grid; place-items: center; color: var(--prs-orange); font-weight: 700; }
.dash-bottom .text { flex: 1; }
.dash-bottom .text .t1 { font-size: 13px; font-weight: 600; color: var(--prs-black); }
.dash-bottom .text .t2 { font-size: 11px; color: var(--stone); margin-top: 2px; }

/* ==========================================================================
   PROOF BAR
   ========================================================================== */
.proof-bar {
  background: linear-gradient(160deg, #04243D 0%, #062E4D 100%);
  color: var(--white);
  padding: 50px 0;
}
.proof-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.proof-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}
.proof-label strong { color: var(--prs-orange); font-weight: 500; }
.proof-marquee {
  display: flex;
  gap: 56px;
  align-items: center;
  flex-wrap: wrap;
}
.proof-marquee .platform {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--white);
  white-space: nowrap;
}
.proof-marquee .sep { width: 5px; height: 5px; background: var(--prs-orange); border-radius: 50%; }

/* ==========================================================================
   CARDS (PRD Section 9.2)
   ========================================================================== */
.card {
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: 18px;
  padding: clamp(28px, 3vw, 44px);
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--slate); }
.card.featured { background: linear-gradient(160deg, #04243D 0%, #062E4D 100%); color: var(--white); border-color: var(--prs-black); position: relative; overflow: hidden; }
.card.featured::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 90% 0%, rgba(0,161,199,0.18), transparent 50%); pointer-events: none; }
.card.featured h3, .card.featured h4 { color: var(--white); }
.card.featured .num { color: var(--prs-orange); }
.card.featured .desc { color: rgba(255,255,255,0.78); }
.card.featured ul li { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.1); }
.card.featured .path-cta { color: var(--prs-orange); border-color: var(--prs-orange); }

.card .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--stone); }
.card h3 { font-size: clamp(24px, 2.6vw, 32px); margin: 16px 0 14px; font-weight: 500; }
.card .desc { font-size: 15px; color: var(--slate); margin-bottom: 24px; line-height: 1.6; }
.card ul { margin-bottom: 28px; flex-grow: 1; }
.card ul li { font-size: 14px; color: var(--slate); padding: 11px 0; border-bottom: 1px solid var(--cloud); display: flex; align-items: center; gap: 12px; }
.card ul li:last-child { border-bottom: 0; }
.card ul li::before { content: '→'; color: var(--prs-orange); font-weight: 500; flex-shrink: 0; }
.card .path-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  color: var(--prs-black);
  border-bottom: 1px solid var(--prs-black);
  padding-bottom: 4px;
  align-self: flex-start;
  transition: gap 0.3s, color 0.2s;
}
.card:hover .path-cta { gap: 14px; color: var(--prs-orange); border-color: var(--prs-orange); }

/* Stat card */
.stat-card { padding: 30px; }
.stat-card .stat { font-family: var(--font-display); font-size: clamp(40px, 5vw, 64px); font-weight: 400; color: var(--prs-black); letter-spacing: -0.04em; line-height: 1; margin-bottom: 16px; }
.stat-card .stat sup { font-size: 0.4em; color: var(--prs-orange); vertical-align: 0.8em; }
.stat-card .stat-label { font-size: 14px; color: var(--slate); font-weight: 500; margin-bottom: auto; }
.stat-card .stat-source { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; color: var(--stone); margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--cloud); }

/* Two-col paths grid */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .paths { grid-template-columns: 1fr; } }

/* ==========================================================================
   CAPABILITY GRID (PRD Section 8.1 - Section 5)
   ========================================================================== */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--cloud);
  border: 1px solid var(--cloud);
  border-radius: 18px;
  overflow: hidden;
}
.cap-cell {
  background: var(--snow);
  padding: 36px 32px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  transition: background 0.3s;
}
.cap-cell:hover { background: var(--white); }
.cap-cell .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; color: var(--prs-orange); margin-bottom: auto; }
.cap-cell .icon { width: 44px; height: 44px; margin-bottom: 22px; color: var(--prs-black); }
.cap-cell .icon svg { width: 100%; height: 100%; }
.cap-cell h4 { font-family: var(--font-display); font-size: 22px; font-weight: 500; margin-bottom: 10px; }
.cap-cell p { font-size: 14px; color: var(--slate); line-height: 1.55; }
.cap-cell a { color: inherit; }
@media (max-width: 1000px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .cap-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   PRS METHOD — Process steps (PRD Section 9.10)
   ========================================================================== */
.process-list { position: relative; }
.process-step {
  display: grid;
  grid-template-columns: 100px 1fr 2fr 100px;
  gap: 40px;
  align-items: start;
  padding: 36px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  transition: background 0.3s;
}
.process-step:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.process-step:hover { background: linear-gradient(90deg, transparent, rgba(0,161,199,0.06) 30%, transparent); }
.process-step:hover h3 { color: var(--prs-orange); }
.process-step .step-num { font-family: var(--font-display); font-size: 32px; font-weight: 400; color: var(--prs-orange); font-style: italic; }
.process-step h3 { font-size: 24px; font-weight: 500; transition: color 0.3s; color: var(--white); }
.process-step p { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.6; }
.process-step .duration { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); text-align: right; padding-top: 6px; }

@media (max-width: 800px) {
  .process-step { grid-template-columns: 60px 1fr; gap: 16px; }
  .process-step p, .process-step .duration { grid-column: 2; padding-top: 0; text-align: left; }
  .process-step .duration { margin-top: 8px; }
}

/* Light variant */
.process-light .process-step { border-color: var(--cloud); }
.process-light .process-step h3 { color: var(--prs-black); }
.process-light .process-step p { color: var(--slate); }
.process-light .process-step .duration { color: var(--stone); }

/* ==========================================================================
   CASE STUDY GRID
   ========================================================================== */
.cases-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.case-card { background: var(--white); border: 1px solid var(--cloud); border-radius: 18px; overflow: hidden; transition: all 0.4s var(--ease); }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.case-large { grid-row: 1 / 3; display: flex; flex-direction: column; min-height: 540px; }
.case-large .visual { height: 280px; background: linear-gradient(135deg, #04243D, #074883); position: relative; overflow: hidden; }
.case-large .visual::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 80%, rgba(0,161,199,0.4), transparent 40%), radial-gradient(circle at 80% 20%, rgba(0,161,199,0.2), transparent 40%); }
.case-large .badge { position: absolute; top: 22px; left: 22px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; color: var(--prs-orange); padding: 6px 12px; background: rgba(0,0,0,0.5); border-radius: 4px; backdrop-filter: blur(8px); }
.case-large .big-num { position: absolute; bottom: 30px; left: 32px; right: 32px; font-family: var(--font-display); font-size: clamp(48px, 6vw, 88px); font-weight: 400; font-style: italic; line-height: 0.95; color: var(--white); letter-spacing: -0.04em; }
.case-large .big-num small { display: block; font-size: 0.32em; font-style: normal; color: var(--prs-orange); margin-top: 8px; letter-spacing: 0; font-family: var(--font-body); font-weight: 500; }
.case-large .body { padding: 30px 32px; display: flex; flex-direction: column; flex-grow: 1; }
.case-large .client { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; color: var(--stone); margin-bottom: 12px; }
.case-large h3 { font-size: 26px; font-weight: 500; margin-bottom: 14px; }
.case-large p { color: var(--slate); font-size: 15px; margin-bottom: auto; padding-bottom: 22px; }
.case-large .read { font-size: 13px; font-weight: 500; color: var(--prs-orange); display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 1000px) {
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .case-large { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .cases-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   TESTIMONIAL (PRD Section 9.9)
   ========================================================================== */
.testimonial-section { background: var(--white); padding: clamp(80px, 10vw, 140px) 0; }
.testimonial { max-width: 980px; margin: 0 auto; padding: 0 var(--pad); position: relative; }
.testimonial .mark { font-family: var(--font-display); font-size: 180px; line-height: 0.5; color: var(--prs-orange); font-style: italic; opacity: 0.3; display: block; margin-bottom: -32px; }
.testimonial blockquote { font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 44px); font-weight: 400; line-height: 1.25; letter-spacing: -0.02em; color: var(--prs-black); margin-bottom: 36px; }
.testimonial blockquote em { font-style: italic; color: var(--prs-orange); font-weight: 300; }
.testimonial .author { display: flex; align-items: center; gap: 18px; padding-top: 28px; border-top: 1px solid var(--cloud); }
.testimonial .avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--prs-orange), var(--prs-orange-dark)); display: grid; place-items: center; color: var(--white); font-family: var(--font-display); font-size: 22px; font-weight: 500; flex-shrink: 0; }
.testimonial .author-meta .name { font-weight: 600; color: var(--prs-black); font-size: 16px; }
.testimonial .author-meta .role { font-size: 13px; color: var(--stone); margin-top: 3px; }
.testimonial .other-clients { margin-top: 60px; padding-top: 36px; border-top: 1px solid var(--cloud); display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial .other-clients .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); }
.testimonial .other-clients .names { display: flex; gap: 28px; flex-wrap: wrap; font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--prs-black); }

/* ==========================================================================
   CALLOUT (Pull-quote left orange bar)
   ========================================================================== */
.callout { background: var(--snow); border-left: 4px solid var(--prs-orange); padding: 28px 32px; margin: 36px 0; }
.callout .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--prs-orange); font-weight: 500; margin-bottom: 8px; }
.callout p { font-family: var(--font-display); font-size: 22px; font-style: italic; color: var(--prs-black); line-height: 1.4; }

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq { max-width: 880px; margin: 0 auto; }
.faq details {
  border-top: 1px solid var(--cloud);
  padding: 24px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--cloud); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--prs-black);
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--prs-orange);
  font-weight: 300;
  transition: transform 0.3s;
  flex-shrink: 0;
  line-height: 1;
}
.faq details[open] summary::after { content: '–'; }
.faq details p { padding-top: 16px; color: var(--slate); font-size: 16px; max-width: 720px; }

/* ==========================================================================
   FORMS (PRD Section 9.5)
   ========================================================================== */
.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 12px; font-weight: 500; color: var(--graphite); letter-spacing: 0.02em; text-transform: uppercase; font-family: var(--font-mono); }
.form-field label .req { color: var(--prs-orange); }
.form-field input, .form-field select, .form-field textarea {
  height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--mist);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--prs-black);
  background: var(--white);
  transition: border 0.2s;
}
.form-field textarea { height: auto; min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--prs-black);
  border-width: 2px;
  padding: 11px 13px;
}
.form-field textarea:focus { padding: 11px 13px; }

/* ==========================================================================
   TABLES (PRD Section 9.6)
   ========================================================================== */
.tbl { width: 100%; border-collapse: collapse; }
.tbl thead th { background: var(--prs-black); color: var(--white); padding: 14px 16px; font-size: 14px; font-weight: 600; text-align: left; }
.tbl tbody td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--cloud); color: var(--graphite); }
.tbl tbody tr:nth-child(even) td { background: var(--snow); }
.tbl tbody tr td:first-child { font-weight: 500; }

/* ==========================================================================
   MISCELLANEOUS
   ========================================================================== */
.divider { height: 1px; background: var(--cloud); margin: 48px 0; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--snow); color: var(--slate); font-size: 11px; font-weight: 500; border-radius: 4px; font-family: var(--font-mono); letter-spacing: 0.05em; }

/* CTA section */
.cta-section { background: linear-gradient(160deg, #04243D 0%, #062E4D 100%); color: var(--white); padding: clamp(70px, 9vw, 120px) 0; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: -200px; right: -100px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(0,161,199,0.18), transparent 60%); }
.cta-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; position: relative; }
.cta-inner h2 { font-size: clamp(36px, 5.4vw, 72px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.0; color: var(--white); }
.cta-inner h2 em { font-style: italic; color: var(--prs-orange); font-weight: 300; }
.cta-inner p { color: rgba(255,255,255,0.75); font-size: 17px; margin: 24px 0 36px; max-width: 540px; line-height: 1.6; }
.cta-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-section .btn-outline {
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.cta-section .btn-outline:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.cta-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 30px; }
.cta-card .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--prs-orange); margin-bottom: 18px; }
.cta-card .item { padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; gap: 4px; }
.cta-card .item:first-of-type { padding-top: 0; border-top: 0; }
.cta-card .item .t { font-family: var(--font-display); font-size: 15px; color: var(--white); }
.cta-card .item .v { font-size: 14px; color: rgba(255,255,255,0.7); }
.cta-card a { color: var(--prs-orange); }
.cta-card a:hover { color: #5ec8e0; }

@media (max-width: 900px) {
  .cta-inner { grid-template-columns: 1fr; }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .nav-cta .btn-outline { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { aspect-ratio: 5/4; max-width: 600px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
  .proof-inner { grid-template-columns: 1fr; gap: 24px; }
  .mega-inner { grid-template-columns: 1fr 1fr; }
  .mega-marketplaces { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-paths { flex-direction: column; align-items: stretch; }
  .hero-paths .btn { justify-content: center; }
  .testimonial .mark { font-size: 100px; }
  .nav-inner { padding: 12px var(--pad); height: var(--nav-h); }
  .logo-img { height: 42px; }
  .logo-text { display: none; }
  .mega-inner { grid-template-columns: 1fr; }
  .mega-marketplaces { grid-template-columns: 1fr 1fr; }
}

/* Mobile menu (when open) — mirrors desktop Services / Marketplaces structure */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 199;
  padding: 20px var(--pad) 40px;
  display: none;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-nav > li > a,
.mobile-acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  border: none;
  border-bottom: 1px solid var(--cloud);
  background: none;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--prs-black);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}
.mobile-acc-btn::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--prs-black);
  border-bottom: 2px solid var(--prs-black);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
  margin-left: 12px;
  opacity: 0.55;
}
.mobile-acc.open .mobile-acc-btn::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.mobile-acc-panel {
  display: none;
  padding: 8px 0 20px;
  border-bottom: 1px solid var(--cloud);
}
.mobile-acc.open .mobile-acc-panel { display: block; }
.mobile-acc-group { margin-bottom: 18px; }
.mobile-acc-group:last-child { margin-bottom: 0; }
.mobile-acc-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--prs-orange);
  margin-bottom: 10px;
  font-weight: 500;
}
.mobile-acc-panel a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--cloud);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--prs-black);
  text-decoration: none;
  line-height: 1.35;
}
.mobile-acc-panel a:last-child { border-bottom: 0; }
.mobile-acc-panel a small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--slate);
  line-height: 1.4;
}
.mobile-acc-feature {
  margin-top: 8px;
  padding: 16px;
  background: var(--snow);
  border-radius: 12px;
}
.mobile-acc-stat {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--prs-black);
  letter-spacing: -0.02em;
  margin: 4px 0 8px;
}
.mobile-acc-feature p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.5;
  margin: 0 0 12px;
}
.mobile-acc-link {
  border-bottom: 0 !important;
  padding: 0 !important;
  color: var(--prs-orange) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}
.mobile-menu .mobile-cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-menu .mobile-cta .btn {
  justify-content: center;
  height: 52px;
  font-size: 15px;
}

/* ==========================================================================
   MOBILE HARDENING — end-to-end phone pass (≤768 / ≤600 / ≤400)
   Fixes overflow, spacing, tap targets, and component reflow on real devices.
   ========================================================================== */

/* Never allow horizontal scroll on any device */
html, body { max-width: 100%; overflow-x: hidden; }

/* Grid/flex children must be allowed to shrink below content width,
   otherwise long words / wide mockups blow the column past the viewport
   (which then gets clipped by overflow-x:hidden). This is the root cause
   of the hero headline + sub-paragraph clipping on phones. */
.hero-grid > *,
.cta-inner > *,
.section-head > *,
.proof-inner > *,
.paths > *,
.cases-grid > * { min-width: 0; }

@media (max-width: 768px) {
  /* Tighter vertical rhythm so phones don't feel like endless scroll */
  :root { --section-y: clamp(48px, 11vw, 72px); }

  /* Hero text must wrap to the viewport, never overflow */
  .hero-grid > div { min-width: 0; max-width: 100%; }
  .hero-sub { max-width: 100%; }

  /* The dashboard mockup is built from absolutely-positioned cards with
     no intrinsic size. On a 1-col mobile grid it collapsed to 0×0 and its
     cards bled over the stats. Give it an explicit, in-bounds size so it
     renders as a proper visual block under the hero text. */
  .hero-visual {
    width: 100%;
    max-width: 420px;
    margin: 8px auto 0;
    aspect-ratio: 4 / 3.4;
  }
  .display-1, .display-2, .h1, .page-hero h1, .cta-inner h2 {
    overflow-wrap: break-word;
    word-break: normal;
  }

  /* The hero marketplace rotator is the #1 mobile-breaker:
     it was min-width:380px + nowrap + absolute → overflowed every phone.
     Make it flow inline and wrap naturally. */
  .rotator {
    position: static;
    display: inline;
    min-width: 0;
    height: auto;
    white-space: normal;
  }
  .rotator span {
    position: static;
    opacity: 1;
    transform: none;
    white-space: normal;
    display: none;
  }
  .rotator span.active { display: inline; }

  /* Headlines: keep them bold but in-bounds */
  .display-1 { font-size: clamp(38px, 11vw, 52px); line-height: 1.02; }
  .display-2 { font-size: clamp(32px, 9vw, 44px); }
  .page-hero h1 { font-size: clamp(32px, 9vw, 46px); }
  .cta-inner h2 { font-size: clamp(30px, 8.5vw, 46px); }
  .section-head h2 { font-size: clamp(28px, 8vw, 40px); }

  /* Two-column grids that hadn't collapsed yet */
  .cta-inner,
  .proof-inner,
  .hero-meta { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn { justify-content: center; height: 52px; }

  /* Hero meta stats: 3-up row → 3 even columns that fit */
  .hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .meta-item .value { font-size: clamp(24px, 7vw, 34px); }

  /* Process steps already collapse at 800; tighten gaps */
  .process-step { padding: 26px 0; }

  /* Buttons: comfortable tap targets, full-width where they stack */
  .btn { height: 48px; padding: 12px 20px; }
}

@media (max-width: 560px) {
  /* On small phones the "Book a Call" pill + hamburger crowd each other and
     push past the viewport. The mobile menu already carries the CTAs, so
     keep just logo + hamburger in the bar. */
  .nav-cta .btn-primary { display: none; }
  .nav-inner { gap: 12px; }
}

@media (max-width: 600px) {
  /* Cards & sections: reduce inner padding so content isn't cramped */
  .card { padding: 26px 22px; border-radius: 14px; }
  .container { padding: 0 20px; }

  /* Tables overflow on phones — make any .tbl horizontally scrollable */
  .tbl { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }

  /* Testimonial quote mark + blockquote scale */
  .testimonial blockquote { font-size: clamp(22px, 6.5vw, 30px); }
  .testimonial .mark { font-size: 80px; margin-bottom: -20px; }
  .testimonial .other-clients { gap: 16px; }

  /* FAQ summary smaller so the +/- doesn't crowd the text */
  .faq summary { font-size: 18px; gap: 16px; }

  /* Footer: stack the bottom bar cleanly */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-bottom .legal-links { gap: 16px; flex-wrap: wrap; }

  /* Mega marketplace cards: single sensible column on small phones handled below */
  .mega-marketplaces { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  /* Smallest phones: drop hero meta to 1 column, ease headline */
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .display-1 { font-size: clamp(32px, 10vw, 40px); }
  .eyebrow { font-size: 10px; }
}

/* ==========================================================================
   CLIENT PORTAL + PERFORMANCE REPORTS
   ========================================================================== */
.portal-login-section {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 60px var(--pad);
  background: linear-gradient(180deg, var(--snow), var(--white));
}
.portal-login-card {
  max-width: 440px;
  width: 100%;
  background: var(--white);
  padding: 36px 32px;
  border-radius: 14px;
  border: 1px solid var(--cloud);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
.portal-login-head {
  text-align: center;
  margin-bottom: 28px;
}
.portal-login-mark {
  margin: 0 auto 24px;
  width: 56px;
  height: 56px;
}
.portal-login-mark span { font-size: 22px; }
.portal-login-head h1 {
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 12px;
}
.portal-login-head p {
  font-size: 15px;
  color: var(--slate);
}
.portal-error {
  background: #fff1f0;
  border: 1px solid #ffccc7;
  color: #a8071a;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 18px;
}
.portal-login-form { gap: 16px; }
.portal-login-btn {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.portal-login-foot {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--stone);
}
.portal-login-foot a {
  color: var(--prs-orange);
  font-weight: 500;
}

.report-bar {
  background: var(--prs-black);
  color: var(--white);
  padding: 18px var(--pad);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.report-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.report-bar-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--prs-orange);
  margin-bottom: 6px;
}
.report-bar-title {
  font-size: 24px;
  font-weight: 500;
  color: var(--white);
  margin: 0;
}
.report-bar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.report-bar-user {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.report-logout-btn {
  height: 38px;
  font-size: 13px;
  border-color: rgba(255,255,255,0.25);
  color: var(--white);
}
.report-logout-btn:hover {
  background: var(--prs-orange);
  border-color: var(--prs-orange);
  color: var(--white);
}
.report-frame-wrap {
  background: var(--snow);
  padding: 0;
}
.report-frame {
  display: block;
  width: 100%;
  border: 0;
  background: var(--white);
}

/* ==========================================================================
   PRS PULSE NATIVE DASHBOARD
   ========================================================================== */
.pulse-dashboard {
  background: var(--snow);
  padding: clamp(24px, 4vw, 40px) var(--pad) clamp(48px, 6vw, 80px);
}
.pulse-dashboard-head {
  max-width: var(--max);
  margin: 0 auto 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.pulse-dashboard-branding {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.pulse-logo-prs {
  height: 44px;
  width: auto;
  background: var(--white);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--cloud);
}
.pulse-dashboard-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--prs-orange);
  margin-bottom: 4px;
}
.pulse-dashboard-title {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--prs-black);
  margin: 0;
}
.pulse-brand-badge {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--prs-black);
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: 10px;
}
.pulse-brand-logo-chip {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: 10px;
  min-width: 120px;
  min-height: 64px;
}
.pulse-brand-logo {
  max-height: 48px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.pulse-date-filter {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.pulse-date-filter label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pulse-date-filter input[type="date"] {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--mist);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--white);
  color: var(--graphite);
}
.pulse-loading {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 0;
  text-align: center;
  color: var(--slate);
}
.pulse-dashboard-body {
  max-width: var(--max);
  margin: 0 auto;
}
.pulse-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.pulse-kpi {
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: 12px;
  padding: 16px 18px;
  min-height: 88px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: box-shadow 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}
.pulse-kpi:hover {
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.08);
  transform: translateY(-2px);
  border-color: var(--mist);
}
.pulse-kpi-label {
  font-size: 12px;
  color: var(--stone);
  line-height: 1.35;
  margin-bottom: 10px;
}
.pulse-kpi-value {
  font-family: var(--font-body);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  color: var(--prs-black);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.pulse-chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.pulse-panel {
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: 14px;
  padding: 20px 20px 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.pulse-panel-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--prs-black);
  margin: 0 0 16px;
}
.pulse-chart-wrap {
  position: relative;
  height: 280px;
}
.pulse-chart-wrap-tall {
  height: 340px;
}
.pulse-panel-table {
  margin-top: 6px;
}
.pulse-table-wrap {
  overflow: auto;
  max-height: 560px;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--cloud);
  border-radius: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--mist) var(--snow);
}
.pulse-table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.pulse-table-wrap::-webkit-scrollbar-track {
  background: var(--snow);
  border-radius: 0 12px 12px 0;
}
.pulse-table-wrap::-webkit-scrollbar-thumb {
  background: var(--mist);
  border-radius: 8px;
  border: 2px solid var(--snow);
}
.pulse-table-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--stone);
}
.pulse-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.pulse-table th,
.pulse-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--cloud);
  vertical-align: top;
}
.pulse-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stone);
  background: var(--snow);
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: inset 0 -1px 0 var(--cloud);
}
.pulse-table td.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}
.pulse-table tbody tr:hover td {
  background: rgba(0, 161, 199, 0.04);
}
.pulse-panel-empty {
  font-size: 13px;
  color: var(--stone);
  text-align: center;
  padding: 24px 12px;
}
.pulse-footnote {
  margin-top: 20px;
  font-size: 13px;
  color: var(--stone);
  text-align: center;
}

/* Stop accidental text-selection "highlight" on non-data chrome (titles,
   labels, badges, headers). Data cells stay selectable so numbers can be copied. */
.pulse-dashboard-eyebrow,
.pulse-dashboard-title,
.pulse-brand-badge,
.pulse-brand-logo-chip,
.pulse-logo-prs,
.pulse-panel-title,
.pulse-kpi-label,
.pulse-date-filter label,
.pulse-table th,
.pulse-footnote {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
/* Softer, on-brand selection color instead of the default harsh blue. */
.pulse-dashboard ::selection {
  background: rgba(0, 161, 199, 0.18);
  color: inherit;
}

@media (max-width: 1200px) {
  .pulse-kpi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .pulse-chart-row { grid-template-columns: 1fr; }
  .pulse-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pulse-kpi-grid { grid-template-columns: 1fr; }
  .pulse-date-filter { width: 100%; }
  .pulse-date-filter .btn { width: 100%; justify-content: center; }
}
