/* ============== Gajee.co — Marketing Site ============== */

:root {
  /* Brand */
  --brand-blue: #20bf67;
  --brand-blue-dark: #082BB0;
  --brand-blue-light: #e7fef4;
  --brand-blue-50: #F3F6FF;
  --brand-green: #00C875;
  --brand-green-dark: #00A862;
  --brand-green-light: #E7FFF4;
  --brand-blue-main: #0d183f;

  /* Neutrals */
  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --border: #E3E8F2;
  --border-soft: #EEF2F7;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;

  /* Status */
  --success: #12B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #2563EB;

  /* Type */
  --font-sans: "Urbanist", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-full: 999px;

  /* Shadows */
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 1px 0 rgba(15, 23, 42, 0.03), 0 6px 18px rgba(15, 23, 42, 0.04);
  --shadow-lift: 0 24px 60px rgba(15, 23, 42, 0.10);
  --shadow-blue: 0 14px 30px rgba(11, 53, 217, 0.25);

  /* Spacing rhythm */
  --section-py: 120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }

/* ============== Layout ============== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}
section { padding: var(--section-py) 0; position: relative; }

/* ============== Type ============== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: var(--r-full);
  background: var(--brand-blue-main);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid rgba(11, 53, 217, 0.08);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(0, 200, 117, 0.18);
}

h1, h2, h3, h4 { font-family: var(--font-sans); color: var(--text-primary); margin: 0; }
h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
h3 { font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; }
h4 { font-size: 17px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; color: var(--text-secondary); }

.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 18px; margin-top: 18px; color: var(--text-secondary); }

/* ============== Buttons ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { background: var(--brand-blue-dark); transform: translateY(-1px); }
.btn-secondary {
  background: #fff;
  color: var(--brand-blue);
  border: 1px solid #D7E0F0;
}
.btn-secondary:hover { border-color: var(--brand-blue); transform: translateY(-1px); }
.btn-ghost { color: var(--text-primary); padding: 10px 14px; }
.btn-ghost:hover { color: var(--brand-blue); }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-sm { padding: 9px 14px; font-size: 13px; }

/* ============== Cards ============== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
}

/* ============== Badges ============== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.badge-blue { background: var(--brand-blue-light); color: var(--brand-blue); }
.badge-green { background: var(--brand-green-light); color: var(--brand-green-dark); }
.badge-amber { background: #FFF4DA; color: #B5740B; }
.badge-red { background: #FDE7E7; color: #B91C1C; }
.badge-slate { background: #EEF2F7; color: #475569; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; }

/* ============== Header / Nav ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 251, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: rgba(255, 255, 255, 0.6); }
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 28px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.nav-brand .brand-mark {
  width: 32px; height: 32px;
}
.nav-brand .brand-co { color: var(--brand-green); }
.nav-brand .brand-tag {
  margin-left: 0px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: #0d183f;
  border-radius: var(--r-sm);
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--brand-blue); background: var(--brand-blue-50); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-burger { display: none; width: 40px; height: 40px; border-radius: var(--r-sm); align-items: center; justify-content: center; }
.nav-burger svg { width: 22px; height: 22px; }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 72px 0 0 0;
  background: #fff;
  z-index: 49;
  padding: 24px 28px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  gap: 4px;
  animation: slideDown .25s ease;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 14px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu .mobile-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ============== Hero ============== */
.hero {
  padding: 56px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -120px -50% auto -50%;
  height: 540px;
  background:
    radial-gradient(ellipse 60% 70% at 30% 30%, rgba(11, 53, 217, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 60% at 75% 40%, rgba(0, 200, 117, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-copy { max-width: 580px; }
.hero-copy h1 { margin-top: 22px; }
.hero-copy h1 .accent { color: var(--brand-blue); position: relative; white-space: nowrap; }
.hero-copy h1 .accent::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: -2px;
  height: 8px;
  background: var(--brand-green);
  border-radius: var(--r-full);
  opacity: 0.35;
  z-index: -1;
}
.hero-sub {
  margin-top: 22px;
  font-size: 18.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 540px;
}
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
}
.hero-trust .stack { display: flex; }
.hero-trust .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #0B35D9, #00C875);
  border: 2px solid #fff;
  margin-left: -8px;
  font-size: 11px;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.hero-trust .avatar:first-child { margin-left: 0; }

/* Centered hero variant */
.hero[data-variant="centered"] .hero-grid {
  grid-template-columns: 1fr;
  text-align: center;
}
.hero[data-variant="centered"] .hero-copy { max-width: 820px; margin: 0 auto; }
.hero[data-variant="centered"] .hero-cta { justify-content: center; }
.hero[data-variant="centered"] .hero-trust { justify-content: center; }
.hero[data-variant="centered"] .hero-sub { margin-left: auto; margin-right: auto; }
.hero[data-variant="centered"] .hero-visual { margin-top: 56px; }

/* ============== Hero Visual / Dashboard mock ============== */
.hero-visual { position: relative; }
.dash-frame {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lift);
  padding: 0;
  overflow: hidden;
  transform: perspective(1600px) rotateY(-3deg) rotateX(1.5deg);
  transform-origin: center center;
}
.dash-frame .browser-bar {
  height: 36px;
  background: #F7F9FC;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
}
.dash-frame .browser-dots { display: flex; gap: 6px; }
.dash-frame .browser-dots span { width: 10px; height: 10px; border-radius: 50%; background: #DDE3EE; }
.dash-frame .browser-dots span:nth-child(1) { background: #FF5F57; }
.dash-frame .browser-dots span:nth-child(2) { background: #FEBC2E; }
.dash-frame .browser-dots span:nth-child(3) { background: #28C840; }
.dash-frame .browser-url {
  flex: 1;
  height: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Inner dashboard layout */
.dash-app {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: var(--bg);
  min-height: 540px;
}
.dash-sidebar {
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  
}
.dash-sidebar .sb-brand {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px 18px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.dash-sidebar .sb-brand .mark { width: 24px; height: 24px; }
.dash-sidebar .sb-section {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 14px 12px 6px;
}
.dash-sidebar .sb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.dash-sidebar .sb-item.is-active {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
}
.dash-sidebar .sb-item svg { width: 16px; height: 16px; opacity: .85; }
.dash-sidebar .sb-item .badge { margin-left: auto; padding: 1px 7px; font-size: 10px; }

.dash-main { padding: 22px 24px; overflow: hidden; }
.dash-topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px;
}
.dash-greet { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.dash-greet small { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); margin-top: 2px; letter-spacing: 0; }
.dash-topbar .actions { display: flex; align-items: center; gap: 8px; }
.dash-topbar .search {
  width: 220px; height: 34px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; gap: 6px;
  padding: 0 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.dash-topbar .search svg { width: 14px; height: 14px; }
.dash-topbar .ico-btn {
  width: 34px; height: 34px; border-radius: 10px; background: #fff;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.dash-topbar .ico-btn svg { width: 15px; height: 15px; color: var(--text-secondary); }
.dash-topbar .avatar-tb {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #0B35D9, #00C875);
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(2, 2fr);
  gap: 12px;
  margin-bottom: 16px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}
.stat-card .label { font-size: 11.5px; color: var(--text-muted); font-weight: 600; }
.stat-card .value { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; }
.stat-card .delta { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; margin-top: 6px; color: var(--success); }
.stat-card .delta.down { color: var(--danger); }
.stat-card .ico {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  display: inline-flex; align-items: center; justify-content: center;
  float: right;
}
.stat-card .ico svg { width: 14px; height: 14px; }
.stat-card.green .ico { background: var(--brand-green-light); color: var(--brand-green-dark); }
.stat-card.amber .ico { background: #FFF4DA; color: #B5740B; }
.stat-card.violet .ico { background: #EFE9FE; color: #6D28D9; }

.dash-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
}
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.panel .panel-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.panel .panel-head h5 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.panel .panel-head .more { font-size: 11.5px; color: var(--brand-blue); font-weight: 600; }

/* Payroll mini table */
.mini-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.mini-table th { text-align: left; font-weight: 700; color: var(--text-muted); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 6px; border-bottom: 1px solid var(--border-soft); }
.mini-table td { padding: 10px 6px; border-bottom: 1px solid var(--border-soft); font-weight: 500; color: var(--text-primary); }
.mini-table tr:last-child td { border-bottom: 0; }
.mini-table .money { font-weight: 700; }
.mini-table .mask { letter-spacing: 1.5px; color: var(--text-muted); font-weight: 700; }

/* Approval list */
.appr-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}
.appr-item:last-child { border-bottom: 0; }
.appr-item .av {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.appr-item .meta { flex: 1; min-width: 0; }
.appr-item .meta .name { font-size: 12.5px; font-weight: 700; color: var(--text-primary); }
.appr-item .meta .sub { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.appr-item .actions { display: block; gap: 4px; }
.appr-item .a-btn {
  width: 26px; height: 26px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.appr-item .a-btn.approve { background: var(--brand-green-light); color: var(--brand-green-dark); border-color: transparent; }
.appr-item .a-btn.reject { background: #fff; color: var(--danger); }
.appr-item .a-btn svg { width: 13px; height: 13px; }

/* Floating decorations on hero */
.float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  padding: 12px 14px;
  font-size: 12.5px;
  z-index: 2;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-card.f-ai {
  left: -44px;
  top: 18%;
  width: 260px;
  animation-delay: -2s;
}
.float-card.f-broad {
  right: -36px;
  bottom: 12%;
  width: 250px;
  animation-delay: -4s;
}

.float-card .fc-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 12px;
}
.float-card .fc-head .pill {
  font-size: 10px; padding: 2px 8px; border-radius: var(--r-full);
  background: var(--brand-blue-light); color: var(--brand-blue);
  font-weight: 700;
}
.float-card .fc-msg {
  color: var(--text-secondary); line-height: 1.45;
  font-size: 12px;
}
.float-card .fc-stat {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px;
  font-weight: 700;
}
.float-card .fc-stat .big { font-size: 18px; letter-spacing: -0.02em; color: var(--brand-blue); }
.float-card .fc-row { display: flex; justify-content: space-between; font-size: 11.5px; padding: 3px 0; color: var(--text-secondary); }
.float-card .fc-row b { color: var(--text-primary); }

/* ============== Trust / Industries ============== */
.trust { padding: 64px 0; }
.trust h3 {
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 28px;
}
.industries {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.ind-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ind-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: #C8D3EA; }
.ind-card .ico {
  width: 36px; height: 36px;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.ind-card .ico svg { width: 18px; height: 18px; }
.ind-card .name { font-size: 13px; font-weight: 700; color: var(--text-primary); }

/* ============== Problem section ============== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.problem-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.problem-card .x-mark {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: #FDE7E7;
  color: var(--danger);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.problem-card .x-mark svg { width: 16px; height: 16px; }
.problem-card h4 { margin-bottom: 8px; }
.problem-card p { font-size: 14.5px; color: var(--text-secondary); }
.problem-arrow {
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  margin-top: 56px;
  flex-direction: column;
}
.problem-arrow .pill {
  background: var(--brand-blue);
  color: #fff;
  border-radius: var(--r-full);
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--shadow-blue);
}

/* ============== Feature overview ============== */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.feat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: #C8D3EA; }
.feat-card .ico {
  width: 44px; height: 44px;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feat-card .ico svg { width: 22px; height: 22px; }
.feat-card.green .ico { background: var(--brand-green-light); color: var(--brand-green-dark); }
.feat-card h4 { margin-bottom: 8px; }
.feat-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }
.feat-card .tag {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-blue);
}
.feat-card .tag svg { width: 12px; height: 12px; }

/* ============== Product preview tabs ============== */
.preview-tabs {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 5px;
  gap: 2px;
  margin: 0 auto 36px;
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
}
.preview-tab {
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all .15s ease;
  white-space: nowrap;
}
.preview-tab.is-active { background: var(--brand-blue); color: #fff; box-shadow: var(--shadow-blue); }
.preview-tab:hover:not(.is-active) { background: var(--brand-blue-light); color: var(--brand-blue); }

.preview-frame {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  max-width: 1180px;
  margin: 0 auto;
}

/* Payroll fullscreen mock */
.payroll-app, .ai-app, .broad-app, .dashboard-app {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 600px;
  background: var(--bg);
}
.payroll-main, .ai-main, .broad-main, .dashboard-main { padding: 28px 32px; overflow: hidden; }
.payroll-head, .ai-head, .broad-head, .dashboard-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px;
}
.payroll-head h3, .ai-head h3, .broad-head h3, .dashboard-head h3 { font-size: 22px; }
.payroll-head .meta, .broad-head .meta { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.statutory-row {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
  margin-bottom: 18px;
}
.stat-mini {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px;
}
.stat-mini .l { font-size: 11px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.stat-mini .v { font-size: 17px; font-weight: 800; margin-top: 4px; letter-spacing: -0.02em; }

.big-table {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.big-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.big-table th {
  text-align: left; font-weight: 700; color: var(--text-muted);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 12px 18px;
  background: #FAFBFE;
  border-bottom: 1px solid var(--border);
}
.big-table td { padding: 14px 18px; border-bottom: 1px solid var(--border-soft); font-weight: 500; }
.big-table tr:last-child td { border-bottom: 0; }
.big-table tr:hover td { background: #FAFBFE; }
.big-table .money { font-weight: 700; font-variant-numeric: tabular-nums; }
.big-table .row-link { color: var(--text-muted); width: 30px; text-align: right; }
.big-table .row-link svg { width: 16px; height: 16px; }

/* AI assist */
.ai-chat {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 460px;
}
.ai-msgs { padding: 22px 26px; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.ai-msg { display: flex; gap: 12px; max-width: 80%; }
.ai-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.ai-msg .av {
  width: 32px; height: 32px; border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px;
}
.ai-msg.assistant .av { background: var(--brand-blue); color: #fff; }
.ai-msg.user .av { background: linear-gradient(135deg, #00C875, #00A862); color: #fff; }
.ai-msg .bubble {
  background: #F4F6FB;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-primary);
}
.ai-msg.user .bubble { background: var(--brand-blue); color: #fff; }
.ai-msg .summary-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 14px; margin-top: 10px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  max-width: 380px;
}
.ai-msg .sc-cell .l { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.ai-msg .sc-cell .v { font-size: 17px; font-weight: 800; margin-top: 2px; letter-spacing: -0.015em; }
.ai-input {
  display: flex; gap: 8px; padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: #FAFBFE;
}
.ai-input input {
  flex: 1; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 13.5px;
  background: #fff;
}
.ai-input input:focus { outline: none; border-color: var(--brand-blue); }
.ai-suggestions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ai-suggestion {
  padding: 7px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.ai-suggestion:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

/* Broadcasts */
.channels-row { display: flex; gap: 10px; margin-bottom: 18px; }
.channel-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
  flex: 1;
}
.channel-card .ico {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.channel-card.email .ico { background: var(--brand-blue-light); color: var(--brand-blue); }
.channel-card.tg .ico { background: #E0F2FF; color: #229ED9; }
.channel-card .meta .l { font-size: 12px; color: var(--text-muted); }
.channel-card .meta .v { font-size: 16px; font-weight: 700; margin-top: 2px; }

/* ============== Dedicated feature sections ============== */
.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.split.reverse { grid-template-columns: 1.15fr 1fr; }
.split.reverse .split-text { order: 2; }
.split.reverse .split-visual { order: 1; }
.split-text h2 { margin-top: 14px; }
.split-text > p { font-size: 18px; margin-top: 18px; color: var(--text-secondary); max-width: 480px; }
.split-bullets { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.split-bullets li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14.5px;
  color: var(--text-primary);
  font-weight: 500;
}
.split-bullets li .check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-green-light); color: var(--brand-green-dark);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.split-bullets li .check svg { width: 12px; height: 12px; }
.split-text .btn { margin-top: 28px; }

.split-visual { position: relative; }

/* Attendance summary widget */
.att-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 24px; box-shadow: var(--shadow-soft);
}
.att-card .att-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px;
}
.att-card .att-head h4 { font-size: 15px; }
.att-card .att-head .month { font-size: 13px; color: var(--text-muted); }
.att-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.att-cell {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px;
  background: #FAFBFE;
}
.att-cell .l { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.att-cell .v { font-size: 26px; font-weight: 800; letter-spacing: -0.025em; margin-top: 6px; }
.att-cell .sub { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.att-cell.green { background: linear-gradient(135deg, #E7FFF4, #FFFFFF); border-color: #C6F3DE; }
.att-cell.green .v { color: var(--brand-green-dark); }
.att-cell.warn { background: linear-gradient(135deg, #FFF4DA, #FFFFFF); border-color: #FCE3A1; }
.att-cell.warn .v { color: #B5740B; }

.att-week {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 6px; margin-top: 18px;
}
.att-day {
  border: 1px solid var(--border-soft); border-radius: 8px;
  padding: 10px 6px;
  text-align: center;
  background: #fff;
}
.att-day .dn { font-size: 10px; color: var(--text-muted); font-weight: 700; letter-spacing: 0.06em; }
.att-day .dh { font-size: 13px; font-weight: 700; margin-top: 4px; }
.att-day.in { background: var(--brand-green-light); border-color: #BFEEDA; }
.att-day.in .dh { color: var(--brand-green-dark); }
.att-day.off { background: #F4F6FB; color: var(--text-muted); }
.att-day.miss { background: #FFF4DA; border-color: #FCE3A1; }

/* Leave card */
.leave-app-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 20px; box-shadow: var(--shadow-soft);
}
.leave-app-card .head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.leave-app-card .head .av {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #6366F1, #8B5CF6); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.leave-app-card .head .meta .name { font-weight: 700; font-size: 14.5px; }
.leave-app-card .head .meta .role { font-size: 12px; color: var(--text-muted); }
.leave-app-card .row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13.5px; border-bottom: 1px dashed var(--border-soft); }
.leave-app-card .row:last-of-type { border-bottom: 0; }
.leave-app-card .row .l { color: var(--text-muted); font-weight: 500; }
.leave-app-card .row .v { font-weight: 700; }
.leave-app-card .reason {
  background: #F4F6FB; border-radius: 10px; padding: 10px 14px;
  margin-top: 12px;
  font-size: 13px; color: var(--text-secondary);
  font-style: italic;
}
.leave-app-card .actions { display: flex; gap: 8px; margin-top: 16px; }
.leave-app-card .actions .btn { flex: 1; }

.leave-balance {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px;
}
.lb-card { background: #FAFBFE; border: 1px solid var(--border-soft); border-radius: 10px; padding: 12px; }
.lb-card .l { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.lb-card .v { font-size: 18px; font-weight: 800; margin-top: 3px; }
.lb-card .v small { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.lb-bar { height: 4px; background: var(--border-soft); border-radius: 999px; margin-top: 8px; overflow: hidden; }
.lb-bar > i { display: block; height: 100%; background: var(--brand-blue); border-radius: 999px; }
.lb-card.green .lb-bar > i { background: var(--brand-green); }
.lb-card.amber .lb-bar > i { background: var(--warning); }

/* Claims card */
.claim-list { display: grid; gap: 10px; }
.claim-row {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px;
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 14px; align-items: center;
}
.claim-row .nm { font-weight: 700; font-size: 14px; }
.claim-row .nm small { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; font-weight: 500; }
.claim-row .cat { font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.claim-row .amt { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }

/* ============== Pricing ============== */
.price-toggle {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 4px;
  margin: 0 auto 40px;
}
.price-toggle button {
  padding: 8px 18px; border-radius: var(--r-full);
  font-size: 13.5px; font-weight: 700;
  color: var(--text-secondary);
}
.price-toggle button.is-active { background: var(--brand-blue); color: #fff; }
.price-toggle .saver-pill {
  font-size: 10px; padding: 2px 6px; background: var(--brand-green-light); color: var(--brand-green-dark);
  border-radius: var(--r-full); margin-left: 6px; font-weight: 700;
}

.price-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.price-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.price-card:hover { transform: translateY(-3px); border-color: #C8D3EA; box-shadow: var(--shadow-soft); }
.price-card.featured {
  border-color: var(--brand-blue);
  box-shadow: 0 12px 36px rgba(11, 53, 217, 0.18);
  background: linear-gradient(180deg, #fff, #F8FAFF);
}
.price-card .ribbon {
  position: absolute; top: -12px; right: 20px;
  background: var(--brand-blue); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 5px 12px; border-radius: var(--r-full);
  box-shadow: var(--shadow-blue);
}
.price-card .pname { font-size: 14px; font-weight: 700; color: var(--brand-blue); letter-spacing: 0.02em; }
.price-card .pdesc { font-size: 13px; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }
.price-card .pprice { margin-top: 18px; display: flex; align-items: baseline; gap: 4px; }
.price-card .pprice .currency { font-size: 16px; font-weight: 700; color: var(--text-secondary); }
.price-card .pprice .amount { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; color: var(--text-primary); }
.price-card .pprice .per { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.price-card .pprice.custom .amount { font-size: 28px; }
.price-card .feat-list {
  list-style: none; padding: 0; margin: 20px 0 24px;
  display: grid; gap: 9px; flex: 1;
}
.price-card .feat-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13.5px; color: var(--text-primary);
}
.price-card .feat-list li .ck {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-green-light); color: var(--brand-green-dark);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.price-card .feat-list li .ck svg { width: 10px; height: 10px; }

/* ============== FAQ ============== */
.faq-grid {
  max-width: 800px; margin: 0 auto;
  display: grid; gap: 12px;
}
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 6px 22px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.faq-item.is-open { border-color: #C8D3EA; box-shadow: var(--shadow-soft); }
.faq-item button.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 0;
  text-align: left;
  font-size: 16px; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.01em;
}
.faq-item .faq-chev {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-blue-light); color: var(--brand-blue);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq-item.is-open .faq-chev { transform: rotate(180deg); }
.faq-item .faq-a {
  font-size: 14.5px; color: var(--text-secondary); line-height: 1.6;
  max-height: 0; overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
}
.faq-item.is-open .faq-a { max-height: 240px; padding-bottom: 18px; }

/* ============== Final CTA ============== */
.final-cta {
  background: linear-gradient(135deg, #0B35D9 0%, #082BB0 100%);
  border-radius: var(--r-2xl);
  padding: 64px 56px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(0, 200, 117, 0.20), transparent 50%);
  pointer-events: none;
}
.final-cta h2 { color: #fff; max-width: 700px; margin: 0 auto; }
.final-cta h2 .acc { color: var(--brand-green); }
.final-cta p { color: rgba(255,255,255,0.78); margin-top: 16px; max-width: 600px; margin-left: auto; margin-right: auto; font-size: 18px; }
.final-cta .actions { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.final-cta .btn-primary { background: #fff; color: var(--brand-blue); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18); }
.final-cta .btn-primary:hover { background: #E8EEFF; }
.final-cta .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.final-cta .btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

/* ============== Footer ============== */
.site-footer {
  padding: 80px 0 32px;
}
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.foot-brand .nav-brand { margin-bottom: 16px; }
.foot-brand p { font-size: 14px; color: var(--text-secondary); max-width: 280px; }
.foot-col h5 { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 18px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-col a { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.foot-col a:hover { color: var(--brand-blue); }
.foot-bot {
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-muted);
}
.foot-socials { display: flex; gap: 8px; }
.foot-socials a {
  width: 32px; height: 32px; border-radius: 10px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.foot-socials a:hover { color: var(--brand-blue); border-color: var(--brand-blue); }
.foot-socials svg { width: 14px; height: 14px; }

/* ============== Density Tweaks ============== */
[data-density="compact"] { --section-py: 80px; }
[data-density="compact"] .hero { padding-top: 40px; padding-bottom: 80px; }
[data-density="compact"] .section-head { margin-bottom: 40px; }

/* ============== Accent override via tweaks (applied to :root) ============== */

/* Blue shade tweaks */

/* ============== Responsive ============== */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .dash-app { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .float-card { display: none; }
  .industries { grid-template-columns: repeat(5, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-text { order: 0; }
  .split.reverse .split-visual { order: 0; }
  .statutory-row { grid-template-columns: repeat(3, 1fr); }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .dash-frame { transform: none; }
  /* Collapse preview-frame app shells (sidebar already hidden) */
  .payroll-app, .ai-app, .broad-app, .dashboard-app { grid-template-columns: 1fr; }
  /* Nav: switch to hamburger earlier so CTAs don't clip */
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-brand .brand-tag { display: none; }
  .nav-burger { display: inline-flex; }
}
@media (max-width: 720px) {
  :root { --section-py: 72px; }
  .container { padding: 0 20px; }
  .nav-cta .btn-secondary { display: none; }
  .hero { padding-top: 32px; padding-bottom: 60px; }
  /* Mobile grid columns (.industries, .feat-grid, .problem-grid,
     .price-grid, .statutory-row, .foot-top, .dash-stats, .dash-cols)
     are defined below in the next @media (max-width: 720px) block
     using minmax(0, 1fr) — see "Responsive bug fixes" section. */
  .foot-top .foot-brand { grid-column: 1 / -1; }
  .foot-brand .nav-brand { justify-content: center; }
  .foot-brand p { max-width: 100%; margin-left: auto; margin-right: auto; }
  .foot-col ul { justify-items: center; }
  .foot-bot { flex-direction: column; gap: 16px; text-align: center; }
  .final-cta { padding: 48px 24px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .channels-row { flex-direction: column; }
}

/* ============== Animations ============== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
/* ═══════════════════════════════════════════════════════════════════════
   Responsive bug fixes — appended after the original media queries
   ═══════════════════════════════════════════════════════════════════════

   Problem: original media queries collapse `.split` and other grids to
   `grid-template-columns: 1fr`. But `1fr` defaults to `minmax(auto, 1fr)`,
   meaning child min-content can push the column wider than the viewport.
   Cards with long internal labels overflow both edges.

   Fix: replace `1fr` with `minmax(0, 1fr)` so columns are bounded by
   their explicit fraction, not by content. Also force overflow-x: hidden
   on body to absolutely prevent horizontal page scroll. Plus add a few
   spot fixes for cards whose internal content runs wide.
   ═══════════════════════════════════════════════════════════════════════ */

html {
    overflow-x: hidden;
}
/* body intentionally NOT included — would break position:sticky */

/* Cap any unexpected overflow on container — already has padding, but
   add max-width: 100vw with box-sizing safety */
.container {
    max-width: min(1240px, 100%);
    box-sizing: border-box;
}

/* ── Fix grid track sizing — minmax(0, 1fr) instead of 1fr ──
   Specificity note: .split.reverse needs explicit override because the original
   CSS sets it with two-class specificity (0,2,0) which beats plain .split (0,1,0).
*/
@media (max-width: 1080px) {
    .hero-grid,
    .split,
    .split.reverse,
    .dash-app,
    .payroll-app, .ai-app, .broad-app, .dashboard-app {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .industries { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .statutory-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 720px) {
    .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feat-grid { grid-template-columns: minmax(0, 1fr); }
    .problem-grid { grid-template-columns: minmax(0, 1fr); }
    .price-grid { grid-template-columns: minmax(0, 1fr); }
    .statutory-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 20px; text-align: center; }
    .foot-top .foot-brand { grid-column: 1 / -1; }
    .foot-brand .nav-brand { justify-content: center; }
    .foot-brand p { max-width: 100%; margin-left: auto; margin-right: auto; }
    .foot-col ul { justify-items: center; }
    .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash-cols { grid-template-columns: minmax(0, 1fr); }
}

/* ── Ensure split children can shrink below their content's min-size ── */
.split-text,
.split-visual {
    min-width: 0;
}

/* ── Mobile-specific card constraints ── */
@media (max-width: 720px) {

    /* Section padding should be smaller on mobile — already 72px but tighten */
    section { padding: 64px 0; }

    /* Hero font sizes scale down */
    .hero h1 { font-size: clamp(32px, 8vw, 48px); line-height: 1.1; }
    .hero-sub { font-size: 16px; }
    .split-text h2 { font-size: clamp(26px, 6.5vw, 36px); line-height: 1.15; }
    .split-text > p { font-size: 16px; }

    /* Section heads */
    .section-head h2 { font-size: clamp(26px, 6.5vw, 36px); line-height: 1.15; }

    /* Cards should fill width and clip safely */
    .att-card,
    .leave-app-card,
    .card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 16px;
    }

    /* Leave card rows — ensure values can wrap if needed */
    .leave-app-card .row {
        font-size: 13px;
        gap: 12px;
        flex-wrap: wrap;
    }
    .leave-app-card .row .l { flex-shrink: 0; }
    .leave-app-card .row .v {
        text-align: right;
        word-break: break-word;
    }
    .leave-app-card .head .meta .name { font-size: 13.5px; }
    .leave-app-card .head .meta .role { font-size: 11.5px; }

    /* Leave balance: 3 cards in a row gets cramped — stack tighter */
    .leave-balance {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .lb-card { padding: 10px 8px; }
    .lb-card .l { font-size: 10.5px; }
    .lb-card .v { font-size: 15px; }

    /* Attendance card */
    .att-card .att-head h4 { font-size: 14px; }
    .att-card .att-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .att-cell { padding: 10px 8px; }
    .att-cell .v { font-size: 18px; }
    .att-cell .l { font-size: 10.5px; }
    .att-cell .sub { font-size: 10px; }

    /* Attendance week strip: 7 cells need to fit — shrink */
    .att-week {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 4px;
    }
    .att-day {
        padding: 6px 2px;
        font-size: 9.5px;
    }
    .att-day .dn { font-size: 9.5px; }
    .att-day .dh { font-size: 10px; }

    /* Claims rows on mobile — stack icon + content vertically inside row */
    .claim-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 12px 0;
    }
    .claim-row .amt { font-size: 14px; }

    /* Payroll statutory row — values are wide ("RM 5,827") */
    .statutory-row { gap: 8px; }
    .stat-mini { padding: 10px 8px; }
    .stat-mini .v { font-size: 14px !important; }

    /* Hero CTA stacking already done at 720px — also tighten button widths */
    .hero-cta .btn-lg { padding: 12px 20px; font-size: 14px; }

    /* Final CTA padding */
    .final-cta { padding: 36px 20px; }
    .final-cta h2 { font-size: clamp(24px, 6vw, 32px); }
    .final-cta p { font-size: 15px; }
    .final-cta .actions { flex-direction: column; gap: 10px; }
    .final-cta .actions .btn { width: 100%; }

    /* Pricing card — make sure no horizontal overflow */
    .price-card { padding: 24px 20px; }
    .pprice .amount { font-size: 36px; }

    /* Preview tabs scroll horizontally on mobile if too many */
    .preview-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    .preview-tab { flex-shrink: 0; white-space: nowrap; }

    /* Preview frame: scale down the inner mockup */
    .preview-frame {
        font-size: 90%;
    }

    /* Digital name card rotation looks weird on mobile — straighten */
    .split-visual > div[style*="rotate(-3deg)"] {
        transform: none !important;
    }

    /* AI Assist dark section: gradients can leak */
    #ai { padding: 64px 0 !important; }
    #ai .container { position: relative; z-index: 1; }
}

/* ── Extra small phones (under 380px) — final tightening ── */
@media (max-width: 380px) {
    .container { padding: 0 16px; }
    .hero { padding-top: 24px; }
    .hero h1 { font-size: 30px; }
    .split-text h2 { font-size: 24px; }
    .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .statutory-row { grid-template-columns: minmax(0, 1fr); }
    .leave-balance { grid-template-columns: minmax(0, 1fr); }
}

/* ── Long words/numbers in cards: allow break ── */
.stat-mini .v,
.stat-card .value,
.leave-app-card .row .v,
.claim-row .nm,
.appr-item .meta {
    overflow-wrap: break-word;
    word-wrap: break-word;
    min-width: 0;
}

/* ── Tables: prevent overflow ── */
.mini-table {
    width: 100%;
    table-layout: fixed;
}
.mini-table td, .mini-table th {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Dashboard greet row — sits above topbar, full width so name doesn't wrap */
.dash-greet-row {
    margin-bottom: 14px;
}
.dash-greet-row .dash-greet {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-greet-row .dash-greet small {
    white-space: nowrap;
}

/* Tighten the topbar now that greeting is no longer in it */
.dash-topbar {
    margin-bottom: 16px;
}
.dash-topbar .search {
    flex: 1;
    width: auto;
    max-width: 280px;
}

/* ============== Beta banner (pricing section) ============== */
.beta-banner {
    max-width: 720px;
    margin: 0 auto 32px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #E7FFF4, #F3F6FF);
    border: 1px solid #C6F3DE;
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    box-shadow: 0 4px 16px rgba(0, 200, 117, 0.08);
}
.beta-badge {
    background: var(--brand-green);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: var(--r-full);
    flex-shrink: 0;
}
.beta-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.beta-text b {
    color: var(--text-primary);
    font-weight: 700;
}
@media (max-width: 720px) {
    .beta-banner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 14px 16px;
    }
    .beta-text { font-size: 13px; }
}