/* ============================================================
   PrimeHR — Corporate site design system
   ============================================================ */

:root {
  /* Brand */
  --brand-50:  #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-500: #4f46e5;
  --brand-600: #4338ca;
  --brand-700: #3730a3;
  --brand-800: #312e81;
  --brand-900: #1e1b4b;

  --accent-400: #34d399;
  --accent-500: #10b981;
  --accent-600: #059669;

  --warn-500: #f59e0b;
  --rose-500: #f43f5e;

  /* Neutrals */
  --ink-900: #0b1020;
  --ink-800: #131a2e;
  --ink-700: #1f2740;
  --ink-600: #3a4467;
  --ink-500: #5b6586;
  --ink-400: #8891ad;
  --ink-300: #b6bcd1;
  --ink-200: #d8dce8;
  --ink-100: #eef0f6;
  --ink-50:  #f7f8fc;
  --paper:   #ffffff;

  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 48px -16px rgba(30, 27, 75, 0.25), 0 8px 16px -8px rgba(15, 23, 42, 0.10);
  --shadow-xl: 0 40px 80px -20px rgba(30, 27, 75, 0.32);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --f-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --f-body:    'Inter', system-ui, -apple-system, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-800);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink-900);
  font-weight: 700;
}
p { margin: 0; }
a { color: inherit; }

/* Layout ------------------------------------------------------------ */

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--xtight { padding: 40px 0; }
.section--ink {
  background: var(--ink-900);
  color: var(--ink-100);
}
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section--mesh {
  background:
    radial-gradient(60% 80% at 10% 0%, rgba(79, 70, 229, 0.12), transparent 60%),
    radial-gradient(50% 70% at 100% 30%, rgba(16, 185, 129, 0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--ink-50) 100%);
}
.section--soft { background: var(--ink-50); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-600);
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 1.5px;
  background: var(--brand-600);
}
.eyebrow--light { color: var(--accent-400); }
.eyebrow--light::before { background: var(--accent-400); }

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
}
.section-head p {
  font-size: 18px;
  color: var(--ink-600);
  max-width: 600px;
}
.section--ink .section-head p { color: var(--ink-300); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }

/* Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.18s, background 0.18s, color 0.18s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(67, 56, 202, 0.5);
}
.btn--primary:hover { background: var(--brand-700); transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(67, 56, 202, 0.6); }
.btn--ghost {
  background: transparent;
  color: var(--ink-800);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--ink-50); }
.btn--light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}
.btn--light:hover { background: rgba(255, 255, 255, 0.14); }
.btn--accent {
  background: var(--accent-500);
  color: #042f2e;
  box-shadow: 0 6px 16px -6px rgba(16, 185, 129, 0.5);
}
.btn--accent:hover { background: var(--accent-400); }
.btn-arrow { transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Cards ------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card--hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-200);
}
.card--dark {
  background: linear-gradient(160deg, var(--ink-800), var(--ink-900));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ink-100);
}

/* Grid -------------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Nav --------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 28px;
  gap: 24px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-900);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.nav-logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 12px -4px rgba(67, 56, 202, 0.5);
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-700);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--brand-600); background: var(--brand-50); }
.nav-link.is-active { color: var(--brand-700); background: var(--brand-50); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
@media (max-width: 1000px) {
  .nav-links { display: none; }
}

/* Footer ------------------------------------------------------------ */
.footer {
  background: var(--ink-900);
  color: var(--ink-300);
  padding: 72px 0 32px;
}
.footer h4 {
  color: #fff;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer a {
  color: var(--ink-300);
  text-decoration: none;
  font-size: 14px;
  display: block;
  padding: 6px 0;
  transition: color 0.15s;
}
.footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-400);
  flex-wrap: wrap;
  gap: 12px;
}

/* Tag chip ---------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
}
.chip--accent { background: rgba(16, 185, 129, 0.10); color: var(--accent-600); border-color: rgba(16, 185, 129, 0.2); }
.chip--ink { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.15); }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Reveal ------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* Animations -------------------------------------------------------- */
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes blink { 50% { opacity: 0.2; } }

.float { animation: float-y 5s ease-in-out infinite; }
.spin-slow { animation: spin-slow 24s linear infinite; }

/* Hero gradient blob ----------------------------------------------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

/* Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 19px;
  color: var(--ink-600);
  margin-bottom: 32px;
  max-width: 560px;
}

/* Pill links list */
.pill-list {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}
.pill:hover { border-color: var(--brand-200); color: var(--brand-700); background: var(--brand-50); }

/* Stat card */
.stat-card {
  display: flex; flex-direction: column; gap: 6px;
}
.stat-num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 44px;
  background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-label { color: var(--ink-600); font-size: 14px; }
.section--ink .stat-label { color: var(--ink-300); }

/* Inner page page-hero ---------------------------------------------- */
.page-hero {
  padding: 80px 0 56px;
  background:
    radial-gradient(60% 80% at 10% 0%, rgba(79, 70, 229, 0.10), transparent 60%),
    radial-gradient(40% 60% at 90% 0%, rgba(16, 185, 129, 0.08), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--ink-50) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(40px, 5.2vw, 60px); margin: 16px 0 18px; }
.page-hero p { font-size: 19px; color: var(--ink-600); max-width: 640px; }

/* Breadcrumb */
.crumbs {
  display: flex; gap: 8px; font-size: 13px; color: var(--ink-500);
  margin-bottom: 8px;
}
.crumbs a { color: var(--ink-500); text-decoration: none; }
.crumbs a:hover { color: var(--brand-600); }
.crumbs-sep { color: var(--ink-300); }

/* Feature row alternating */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row--reverse > :first-child { order: 2; }
@media (max-width: 960px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row--reverse > :first-child { order: 0; }
}
.feature-row h3 {
  font-size: clamp(28px, 3vw, 36px);
  margin-bottom: 16px;
}
.feature-row p { color: var(--ink-600); font-size: 17px; margin-bottom: 24px; }

/* List w/ check */
.feat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.feat-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.feat-list svg { flex-shrink: 0; margin-top: 2px; }

/* Logo strip */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  align-items: center;
  opacity: 0.7;
}
.logo-strip > * {
  display: grid;
  place-items: center;
  height: 32px;
  color: var(--ink-500);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
@media (max-width: 800px) { .logo-strip { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* Misc utils */
.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 12px; }

/* CTA banner */
.cta-banner {
  border-radius: var(--radius-xl);
  padding: 64px 56px;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(255,255,255,0.16), transparent 60%),
    linear-gradient(135deg, var(--brand-700), var(--brand-900) 60%, var(--ink-900));
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: #fff; font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }
.cta-banner p { color: var(--ink-200); font-size: 18px; max-width: 540px; margin: 0 auto 28px; }

/* Tabs */
.tabs {
  display: inline-flex;
  background: var(--ink-100);
  padding: 4px;
  border-radius: 999px;
  gap: 2px;
}
.tab {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-600);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.18s;
}
.tab.is-active { background: #fff; color: var(--brand-700); box-shadow: var(--shadow-sm); }

/* Solutions mega menu ---------------------------------------- */
.has-mega { position: relative; }
.mega {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  top: 64px;
  width: min(960px, 94vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  padding: 22px;
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.1fr 0.9fr;
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 60;
}
.mega.is-open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-col h5 {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 0 0 10px;
  padding: 0 8px;
}
.mega-link {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink-800);
  transition: background 0.15s;
}
.mega-link:hover { background: var(--brand-50); }
.mega-link .mi {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--brand-50);
  color: var(--brand-600);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.mega-link.is-soon { opacity: 0.65; }
.mega-link.is-soon .mi { background: var(--ink-100); color: var(--ink-500); }
.mega-link .mt { font-size: 13px; font-weight: 600; line-height: 1.2; display: flex; align-items: center; gap: 6px; }
.mega-link .ms { font-size: 11px; color: var(--ink-500); margin-top: 2px; }
.mega-soon-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--warn-500);
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mega-promo {
  background: linear-gradient(160deg, var(--brand-700), var(--brand-900));
  color: #fff;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mega-promo h6 { font-family: var(--f-display); font-size: 15px; margin: 0 0 6px; color: #fff; }
.mega-promo p { color: var(--ink-300); font-size: 12px; margin: 0 0 12px; line-height: 1.5; }
.mega-promo a { font-size: 12px; font-weight: 700; color: var(--accent-400); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }

/* Soon badge inline */
.soon-pill {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--warn-500);
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 6px;
}

/* Feature index grid (on product pages) ---------------------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 960px) { .feat-grid { grid-template-columns: 1fr; } }
.feat-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.18s;
  align-items: flex-start;
}
.feat-card:hover {
  border-color: var(--brand-300, var(--brand-200));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feat-card .fi {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-600);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.feat-card .ft { font-weight: 700; font-size: 15px; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.feat-card .fd { font-size: 13px; color: var(--ink-500); line-height: 1.5; }

/* Detail mock frame */
.mock {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--ink-50);
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-500);
}
.mock-bar .dot { width: 9px; height: 9px; border-radius: 50%; }

/* Module pill (used on home for product cards) */
.module-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: #fff;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.module-icon--brand { background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); }
.module-icon--accent { background: linear-gradient(135deg, var(--accent-400), var(--accent-600)); }
.module-icon--warn { background: linear-gradient(135deg, #fbbf24, #d97706); }

/* ============================================================
   RESPONSIVE — Mobile-first breakpoints
   ============================================================ */

/* ------ Hamburger nav toggle (mobile only) ------ */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--ink-800);
  border-radius: 8px;
  transition: background 0.15s;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-toggle:hover { background: var(--ink-100); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: 61px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  z-index: 49;
  padding: 24px 20px;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile .nav-link {
  font-size: 17px;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: 10px;
  display: block;
}
.nav-mobile .nav-actions {
  margin-top: 16px;
  flex-direction: column;
  gap: 10px;
}
.nav-mobile .nav-actions .btn {
  justify-content: center;
  width: 100%;
}

/* ---- Large tablet: <= 1100px — start compressing nav actions ---- */
@media (max-width: 1100px) {
  .nav-inner { gap: 16px; }
}

/* ================================================================
   TABLET — <= 900px
   ================================================================ */
@media (max-width: 900px) {

  /* Container */
  .container { padding: 0 20px; }

  /* Sections */
  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
  .section--xtight { padding: 32px 0; }

  /* --- Nav --- */
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner { padding: 12px 20px; }

  /* --- Hero --- */
  .hero { padding: 64px 0 40px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero h1 { font-size: clamp(34px, 5.5vw, 56px); }
  .hero-sub { font-size: 17px; max-width: 600px; margin-left: auto; margin-right: auto; }
  .hero-grid .row { justify-content: center; }
  /* Scale dashboard mock instead of hiding -- works at any zoom level */
  .hero-grid > div:last-child {
    overflow: hidden;
    border-radius: 20px;
    zoom: 0.62;
    margin: 0 auto;
  }

  /* --- Grids --- */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  /* --- Feature rows --- */
  .feature-row {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 60px;
  }
  .feature-row--reverse > :first-child { order: 0; }

  /* --- Footer --- */
  .footer .grid { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; }

  /* --- Page hero --- */
  .page-hero { padding: 56px 0 40px; }
  .page-hero h1 { font-size: clamp(30px, 5vw, 52px); }
  .page-hero p { font-size: 16px; }

  /* --- Section head --- */
  .section-head h2 { font-size: clamp(26px, 4vw, 40px); }
  .section-head p { font-size: 16px; }
  .section-head { margin-bottom: 44px; }

  /* --- Solutions feat grid --- */
  .feat-grid { grid-template-columns: repeat(2, 1fr); }

  /* --- CTA banner --- */
  .cta-banner { padding: 48px 32px; }
  .cta-banner h2 { font-size: clamp(26px, 3.5vw, 40px); }
  .cta-banner p { font-size: 16px; }

  /* --- Logo strip 3-col --- */
  .logo-strip { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  /* --- Pricing page trust bar --- */
  .card > div[style*="gridTemplateColumns: 'repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ================================================================
   MOBILE — <= 600px
   ================================================================ */
@media (max-width: 600px) {

  /* Container */
  .container { padding: 0 16px; }

  /* Sections */
  .section { padding: 48px 0; }
  .section--tight { padding: 36px 0; }
  .section--xtight { padding: 28px 0; }

  /* --- Nav --- */
  .nav-inner { padding: 10px 16px; }
  .nav-mobile { top: 57px; padding: 20px 16px; }
  .nav-logo img { height: 26px !important; }

  /* --- Hero --- */
  .hero { padding: 48px 0 32px; }
  .hero h1 { font-size: clamp(28px, 7.5vw, 40px); }
  .hero-sub { font-size: 15px; }
  /* Further scale down at mobile */
  .hero-grid > div:last-child { zoom: 0.44; }

  /* --- All grids -> single column --- */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }

  /* --- Feature rows --- */
  .feature-row { gap: 24px; margin-bottom: 40px; }

  /* --- Footer --- */
  .footer .grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .footer { padding: 48px 0 24px; }

  /* --- Page hero --- */
  .page-hero { padding: 40px 0 28px; }
  .page-hero h1 { font-size: clamp(24px, 7vw, 38px); }
  .page-hero p { font-size: 15px; }

  /* --- Section head --- */
  .section-head { margin-bottom: 32px; gap: 12px; }
  .section-head h2 { font-size: clamp(22px, 6.5vw, 32px); }
  .section-head p { font-size: 15px; }

  /* --- Stats --- */
  .stat-num { font-size: 36px; }

  /* --- Cards --- */
  .card { padding: 20px; }

  /* --- Buttons --- */
  .btn { font-size: 14px; padding: 11px 16px; }
  .row { gap: 10px; flex-wrap: wrap; }
  .row .btn { flex: 1 1 auto; min-width: 140px; justify-content: center; }

  /* --- CTA banner --- */
  .cta-banner { padding: 36px 20px; border-radius: 16px; }
  .cta-banner h2 { font-size: clamp(20px, 6vw, 30px); }
  .cta-banner p { font-size: 14px; }
  .cta-banner .row { flex-direction: column; }
  .cta-banner .row .btn { min-width: unset; }

  /* --- Logo strip 2-col --- */
  .logo-strip { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* --- Module icons --- */
  .module-icon { width: 48px; height: 48px; border-radius: 12px; }

  /* --- Integrations grid (inline style override) --- */
  .grid[style*="repeat(6"] { grid-template-columns: repeat(3, 1fr) !important; }

  /* --- Company page stat dividers: remove right border, add bottom --- */
  div[style*="borderRight"] {
    border-right: none !important;
    border-bottom: 1px solid var(--line) !important;
    padding-bottom: 20px !important;
  }

  /* --- Pricing page trust bar: 2 col --- */
  .card > div[style*="gridTemplateColumns"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }

  /* --- FAQ accordion button --- */
  button[style*="fontSize: 17"] { font-size: 15px !important; padding: 16px 18px !important; }

  /* --- Soon/best chip position fix --- */
  .chip[style*="position: absolute"] { top: -12px !important; right: 16px !important; }

  /* --- Solutions mega (never shows on mobile anyway) --- */
  .mega { display: none !important; }
}

/* ================================================================
   SMALL PHONE — <= 380px
   ================================================================ */
@media (max-width: 380px) {
  .hero h1 { font-size: 26px; }
  .btn { font-size: 13px; padding: 10px 14px; }
  .stat-num { font-size: 30px; }
  .section-head h2 { font-size: 20px; }
  .page-hero h1 { font-size: 24px; }
  .hero-grid > div:last-child { zoom: 0.36; }
  .nav-logo img { height: 22px !important; }
}
