/* ============================================================
   Octal HR — Marketing Site v2 (Tasklio-benchmarked)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  /* ── Brand ── */
  --primary:       #0F172A;
  --navy:          #1e2a45;   /* real app sidebar color */
  --accent:        #6366F1;   /* THE brand voltage */
  --accent-light:  #818CF8;
  --accent-dark:   #4F46E5;   /* gradient terminus / pressed */
  /* ── Secondary & data accents (formalized from heavy ad-hoc use) ── */
  --blue:          #3b82f6;   /* real app accent */
  --blue-strong:   #2563eb;   /* was hardcoded 536× — data/icon blue */
  --blue-deep:     #1d4ed8;
  --highlight:     #10B981;   /* success voltage */
  --green:         #22c55e;   /* online/live */
  --green-strong:  #16a34a;   /* success text on tint */
  --amber:         #f59e0b;
  --amber-strong:  #d97706;
  --red:           #ef4444;
  --red-strong:    #dc2626;
  --violet:        #7c3aed;
  --cyan:          #06b6d4;
  /* ── Text ramp (slate) ── */
  --ink:           #0F172A;   /* = primary */
  --text-strong:   #1e293b;
  --text:          #334155;
  --text-body:     #374151;
  --text-soft:     #475569;
  --mid:           #64748B;
  --muted:         #94A3B8;
  --faint:         #CBD5E1;
  /* ── Surfaces & tints ── */
  --warm-gray:     #F8FAFC;
  --body-bg:       #f1f5f9;   /* = surface */
  --surface:       #f1f5f9;
  --divider-soft:  #f9fafb;
  --tint-blue:        #eff6ff;
  --tint-blue-strong: #dbeafe;
  --tint-green:       #f0fdf4;
  --tint-green-strong:#dcfce7;
  --tint-amber:       #fffbeb;
  --tint-amber-strong:#fef3c7;
  /* ── Borders & base ── */
  --border:        #E2E8F0;
  --border-strong: #CBD5E1;
  --white:         #FFFFFF;
  /* ── Elevation ── */
  --card-shadow:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --card-shadow-md:0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
}

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-family: 'Plus Jakarta Sans', sans-serif; }

/* ── Logo Octagon ─────────────────────────────────────── */
.logo-oct {
  width: 34px; height: 34px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: white; font-size: 13px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  flex-shrink: 0;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}
.logo-oct-white {
  width: 34px; height: 34px;
  background: transparent; border: 2px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: white; font-size: 13px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  flex-shrink: 0;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

/* ── Navbar ──────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 64px;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
#navbar.scrolled {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255,255,255,0.92) !important;
  box-shadow: 0 1px 24px rgba(0,0,0,0.07);
}

/* ── Nav Links ───────────────────────────────────────── */
.nav-link {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px;
  color: var(--mid); text-decoration: none;
  transition: color 0.15s ease;
  position: relative; padding-bottom: 2px;
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 2px;
}

/* ── Mobile Menu ─────────────────────────────────────── */
#mobile-menu {
  display: none; position: absolute; top: 64px; left: 0; right: 0;
  background: white; border-bottom: 1px solid var(--border);
  padding: 20px 24px 24px; flex-direction: column; gap: 16px;
  z-index: 999; box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
#mobile-menu.open { display: flex; }

/* ── Buttons ─────────────────────────────────────────── */
.btn-primary {
  background: var(--accent); color: white; border: none;
  border-radius: 10px; padding: 11px 24px;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px;
  cursor: pointer; transition: background 0.18s ease, transform 0.15s ease;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); color: white; }

.btn-secondary {
  background: transparent; color: white;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 10px; padding: 11px 24px;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px;
  cursor: pointer; transition: all 0.18s ease;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); color: white; }

.btn-outline-accent {
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 10px; padding: 9px 20px;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px;
  cursor: pointer; transition: all 0.18s ease;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.btn-outline-accent:hover { background: var(--accent); color: white; }

.btn-white {
  background: white; color: var(--accent);
  border: none; border-radius: 10px; padding: 13px 28px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px;
  cursor: pointer; transition: all 0.18s ease;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.btn-white:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.18); transform: translateY(-1px); color: var(--accent); }

/* ── Announcement Pill ───────────────────────────────── */
.announce-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  color: var(--accent);
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500;
  padding: 5px 14px; border-radius: 100px;
  margin-bottom: 28px;
  transition: background 0.2s ease;
}
.announce-pill:hover { background: rgba(99,102,241,0.12); }
.announce-pill .sep { color: rgba(99,102,241,0.4); margin: 0 2px; }

/* ── Pulsing Dot ─────────────────────────────────────── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
  display: inline-block; flex-shrink: 0;
}
.pulse-dot-green {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.25);
}

/* ── Dot Grid Background ─────────────────────────────── */
.dot-grid {
  background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}
.dot-grid-light {
  background-image: radial-gradient(circle, rgba(99,102,241,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ── Hero Section ────────────────────────────────────── */
.hero-section {
  background: var(--navy);
  min-height: 100vh;
  padding-top: 128px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* hero subtle gradient overlay */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,102,241,0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Hero Devices Duo (desktop + phone) ──────────────── */
.hero-devices-wrap {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1160px;
  margin: 48px auto 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 16px;
}

/* ── Phone Mockup ────────────────────────────────────── */
.phone-mockup {
  flex-shrink: 0;
  width: 210px;
  background: #131d30;
  border-radius: 36px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 0 0 8px #0f1623,
    0 0 0 9px rgba(255,255,255,0.06),
    0 32px 80px rgba(0,0,0,0.6),
    0 -4px 24px rgba(99,102,241,0.25);
  overflow: hidden;
  transform: translateY(-52px);
  margin-left: -18px;
  z-index: 3;
  position: relative;
}
.phone-notch-bar {
  background: #0d1525;
  padding: 9px 16px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.phone-notch {
  width: 52px;
  height: 5px;
  background: #0f1623;
  border-radius: 100px;
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
}
.phone-screen {
  background: var(--surface);
  overflow: hidden;
}

/* ── Dashboard Mockup ────────────────────────────────── */
.app-mockup-wrapper {
  flex: 1;
  width: 100%;
  max-width: 940px;
  margin: 0;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 -8px 48px rgba(99,102,241,0.2),
    0 40px 80px rgba(0,0,0,0.5);
  position: relative;
}

.app-titlebar {
  background: #131d30;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tbar-dots { display: flex; gap: 6px; }
.tbar-dot { width: 11px; height: 11px; border-radius: 50%; }

.app-shell {
  display: flex;
  height: 420px;
  background: var(--body-bg);
}

/* App sidebar */
.app-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: var(--navy);
  padding: 16px 0;
  display: flex; flex-direction: column;
}
.app-sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 10px;
}
.app-sidebar-logo {
  width: 28px; height: 28px;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white; font-family: 'Plus Jakarta Sans', sans-serif;
  flex-shrink: 0;
}
.app-sidebar-name { font-size: 13px; font-weight: 700; color: white; font-family: 'Plus Jakarta Sans', sans-serif; }

.sidebar-section-label {
  font-size: 9px; font-weight: 600; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.28); padding: 10px 16px 4px;
  text-transform: uppercase; font-family: 'Inter', sans-serif;
}

.sidebar-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 16px; font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.55); font-family: 'Inter', sans-serif;
  transition: all 0.15s ease; cursor: default;
  border-radius: 0;
}
.sidebar-item:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.8); }
.sidebar-item.active {
  background: rgba(255,255,255,0.1); color: white;
  border-right: 2px solid var(--accent);
}
.sidebar-item svg { flex-shrink: 0; opacity: 0.7; }
.sidebar-item.active svg { opacity: 1; }

/* App content area */
.app-content {
  flex: 1; overflow: hidden;
  display: flex; flex-direction: column;
}
.app-topbar {
  background: white; border-bottom: 1px solid #e8edf4;
  padding: 0 20px; height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.app-topbar-title { font-size: 14px; font-weight: 700; color: var(--primary); font-family: 'Plus Jakarta Sans', sans-serif; }
.app-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white; font-family: 'Plus Jakarta Sans', sans-serif;
  flex-shrink: 0; position: relative;
}
.app-avatar-dot {
  position: absolute; bottom: 0; right: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green); border: 2px solid white;
}

.app-body {
  flex: 1; padding: 16px 20px; overflow: hidden;
  background: var(--body-bg);
}

/* ── App KPI Cards ───────────────────────────────────── */
.kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-bottom: 14px;
}
.kpi-card {
  background: white; border-radius: 10px; padding: 14px 16px;
  box-shadow: var(--card-shadow);
}
.kpi-label { font-size: 10px; color: var(--mid); font-family: 'Inter', sans-serif; margin-bottom: 6px; }
.kpi-value { font-size: 22px; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif; color: var(--primary); }
.kpi-delta { font-size: 10px; font-family: 'Inter', sans-serif; margin-top: 2px; }
.kpi-delta.up   { color: var(--green); }
.kpi-delta.warn { color: var(--amber); }

/* ── Bottom grid (payroll + employees) ─────────────────── */
.app-bottom-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px;
}
.app-card {
  background: white; border-radius: 10px; padding: 14px 16px;
  box-shadow: var(--card-shadow);
}
.app-card-title {
  font-size: 11px; font-weight: 700; color: var(--primary);
  font-family: 'Plus Jakarta Sans', sans-serif; margin-bottom: 12px;
}
.payroll-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-family: 'Inter', sans-serif;
  padding: 4px 0; border-bottom: 1px solid var(--surface); color: var(--mid);
}
.payroll-row:last-child { border-bottom: none; }
.payroll-row strong { color: var(--primary); }

/* Fake mini employee table */
.mini-table-head {
  display: grid; grid-template-columns: 80px 1fr 70px 54px;
  font-size: 9px; color: var(--mid); font-family: 'Inter', sans-serif;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0 0 6px; border-bottom: 1px solid var(--surface); margin-bottom: 4px;
}
.mini-table-row {
  display: grid; grid-template-columns: 80px 1fr 70px 54px;
  font-size: 10px; font-family: 'Inter', sans-serif;
  color: var(--text-body); padding: 5px 0; align-items: center;
  border-bottom: 1px solid var(--divider-soft);
}
.status-badge {
  display: inline-block; font-size: 9px; font-weight: 600;
  padding: 2px 7px; border-radius: 100px;
  font-family: 'Inter', sans-serif;
}
.status-active  { background: var(--tint-green-strong); color: var(--green-strong); }
.status-leave   { background: var(--tint-blue-strong); color: var(--blue-deep); }
.status-late    { background: var(--tint-amber-strong); color: var(--amber-strong); }

/* ── Feature Card ────────────────────────────────────── */
.feature-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(99,102,241,0.1);
}

/* ── Pillar Card ─────────────────────────────────────── */
.pillar-card {
  border: 1px solid var(--border); border-radius: 16px; padding: 28px;
  background: white; transition: all 0.2s ease;
}
.pillar-card:hover {
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 4px 24px rgba(99,102,241,0.08);
  transform: translateY(-2px);
}

/* ── Persona Cards ───────────────────────────────────── */
.persona-card {
  border-radius: 20px; padding: 32px; position: relative; overflow: hidden;
  transition: transform 0.2s ease;
}
.persona-card:hover { transform: translateY(-4px); }

/* ── Module Tabs ─────────────────────────────────────── */
.module-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border);
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
  color: var(--mid); cursor: pointer; transition: all 0.15s ease;
  background: white;
}
.module-tab:hover { border-color: var(--accent); color: var(--accent); }
.module-tab.active {
  background: var(--accent); border-color: var(--accent);
  color: white; box-shadow: 0 4px 16px rgba(99,102,241,0.25);
}

/* ── Pricing ─────────────────────────────────────────── */
.pricing-featured {
  transform: scale(1.03);
  position: relative; z-index: 10;
}

/* ── FAQ Accordion ───────────────────────────────────── */
.faq-chevron { transition: transform 0.25s ease; flex-shrink: 0; }
.faq-item.faq-open .faq-chevron { transform: rotate(180deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.faq-open .faq-body { max-height: 300px; }

/* ── Gradient Text ───────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 50%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-green {
  background: linear-gradient(135deg, var(--highlight) 0%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Mockup Container ────────────────────────────────── */
.mockup-container {
  background: white; border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
  box-shadow: var(--card-shadow-md); overflow: hidden;
}

/* ── Eyebrow ─────────────────────────────────────────── */
.eyebrow {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 11px;
  letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase;
}

/* ── Section spacing ─────────────────────────────────── */
.section-lg  { padding-top: 100px; padding-bottom: 100px; }
.section-md  { padding-top:  72px; padding-bottom:  72px; }
.section-sm  { padding-top:  48px; padding-bottom:  48px; }

/* ── Integration logos ───────────────────────────────── */
.integration-logo {
  display: flex; align-items: center; justify-content: center;
  height: 60px; border: 1px solid var(--border);
  border-radius: 12px; background: white;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
  font-size: 13px; color: var(--muted);
  transition: all 0.2s ease; padding: 0 20px;
}
.integration-logo:hover { border-color: var(--accent); color: var(--primary); box-shadow: var(--card-shadow); }

/* ── Team / Avatar ───────────────────────────────────── */
.team-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  font-size: 20px; color: white; margin: 0 auto 16px;
}
.team-card {
  text-align: center; padding: 32px 24px;
  border: 1px solid var(--border); border-radius: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: white;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(99,102,241,0.1); }

/* ── Stats counter ───────────────────────────────────── */
.counter { display: inline-block; font-variant-numeric: tabular-nums; }

/* ── Star rating ─────────────────────────────────────── */
.stars { color: #FBBF24; letter-spacing: 2px; }

/* ── Testimonial card ────────────────────────────────── */
.testimonial-card {
  background: white; border: 1px solid var(--border);
  border-radius: 20px; padding: 32px;
  transition: box-shadow 0.2s ease;
}
.testimonial-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.06); }

/* ── Payslip rows ────────────────────────────────────── */
.payslip-row {
  display: flex; justify-content: space-between;
  font-size: 12px; padding: 5px 0;
  border-bottom: 1px solid var(--surface); color: var(--mid);
}
.payslip-row:last-child { border-bottom: none; }

/* ── Spotlight text ──────────────────────────────────── */
.spotlight-text-col { display: flex; flex-direction: column; justify-content: center; }

/* ── Pricing feature list ────────────────────────────── */
.pricing-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-family: 'Inter', sans-serif;
  color: var(--text-body); padding: 5px 0;
}
.pricing-feature.disabled { color: var(--muted); }
.pricing-feature .check-icon { color: var(--highlight); flex-shrink: 0; }
.pricing-feature.disabled .check-icon { color: var(--faint); }

/* ── Contact form ────────────────────────────────────── */
.form-input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 9px;
  font-family: 'Inter', sans-serif; font-size: 14px;
  color: var(--primary); background: white;
  transition: border-color 0.15s ease, box-shadow 0.15s ease; outline: none; appearance: none;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.form-input.is-invalid { border-color: var(--red); }
.form-input.is-invalid:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239,68,68,0.15); }
.field-error {
  display: none; font-family: 'Inter', sans-serif; font-size: 12px;
  color: var(--red); margin-top: 5px; line-height: 1.3;
}
.field-error.show { display: block; }
.form-label {
  display: block; font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 13px; color: var(--primary); margin-bottom: 5px;
}

/* ── Toggle ──────────────────────────────────────────── */
.toggle-pill {
  position: relative; width: 52px; height: 28px;
  background: var(--border); border-radius: 14px; cursor: pointer; transition: background 0.2s ease;
}
.toggle-pill.on { background: var(--accent); }
.toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; background: white;
  border-radius: 50%; transition: transform 0.2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-pill.on .toggle-thumb { transform: translateX(24px); }

/* ── Step circles ────────────────────────────────────── */
.step-circle {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  font-size: 22px; color: white; margin: 0 auto 20px; flex-shrink: 0;
}
.step-connector {
  flex: 1; height: 2px; border-top: 2px dashed var(--border);
  margin: 0 16px; align-self: flex-start; margin-top: 28px;
}

/* ── Timeline ────────────────────────────────────────── */
.timeline-item { position: relative; padding-left: 32px; }
.timeline-item::before {
  content: ''; position: absolute; left: 8px; top: 24px; bottom: -24px;
  width: 2px; background: var(--border);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); border: 3px solid white;
  box-shadow: 0 0 0 2px var(--accent);
}

/* ── Value card ──────────────────────────────────────── */
.value-card {
  border-left: 3px solid var(--accent);
  background: var(--warm-gray); border-radius: 12px;
  padding: 24px; transition: transform 0.2s ease;
}
.value-card:hover { transform: translateY(-3px); }

/* ── Contact info card ───────────────────────────────── */
.contact-info-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--warm-gray);
  transition: box-shadow 0.2s ease;
}
.contact-info-card:hover { box-shadow: 0 4px 16px rgba(99,102,241,0.08); }

/* ── Success state ───────────────────────────────────── */
.success-message { text-align: center; padding: 48px 32px; }
.success-icon {
  width: 64px; height: 64px; background: rgba(16,185,129,0.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; color: var(--highlight);
}

/* ── Page hero (inner pages) ─────────────────────────── */
.page-hero {
  background: var(--navy); padding-top: 120px; padding-bottom: 60px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(99,102,241,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Badge pill ──────────────────────────────────────── */
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.25);
  color: var(--accent-light); font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500;
  padding: 5px 14px; border-radius: 100px;
}

/* ── Module badge ────────────────────────────────────── */
.module-badge {
  display: inline-block; background: rgba(99,102,241,0.1); color: var(--accent);
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 12px; max-width: fit-content;
}

/* ── Arrow link ──────────────────────────────────────── */
.arrow-link {
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  color: var(--accent); display: inline-flex; align-items: center; gap: 4px;
  transition: gap 0.15s ease;
}
.arrow-link:hover { gap: 8px; color: var(--accent); }

/* ── Fake progress bar ───────────────────────────────── */
.fake-progress-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.fake-progress-fill { height: 100%; border-radius: 3px; background: var(--accent); }

/* ── Bar chart ───────────────────────────────────────── */
.bar-chart-bar {
  background: var(--accent); border-radius: 4px 4px 0 0; flex: 1;
  transition: opacity 0.2s ease;
}
.bar-chart-bar:hover { opacity: 0.8; }

/* ── Scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--faint); }

/* ── Social proof logos ──────────────────────────────── */
.logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
  color: var(--accent); opacity: 1;
  transition: opacity 0.2s ease; cursor: default; select-user: none;
}
.logo-text:hover { opacity: 1; }

/* ── Attendance grid cell ────────────────────────────── */
.att-cell {
  width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .app-sidebar { width: 52px; }
  .app-sidebar-name, .sidebar-section-label,
  .sidebar-item span, .app-sidebar-brand span { display: none; }
  .sidebar-item { justify-content: center; padding: 10px; }
  .app-sidebar-brand { padding: 12px; justify-content: center; }
  .mini-table-head, .mini-table-row { grid-template-columns: 80px 1fr 64px; }
  .mini-table-head :last-child, .mini-table-row :last-child { display: none; }
}

@media (max-width: 900px) {
  .phone-mockup { display: none; }
  .hero-devices-wrap { padding: 0; }
  .app-mockup-wrapper { max-width: 960px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .hero-section { padding-top: 100px; }
  .pricing-featured { transform: scale(1); }
  .step-connector { display: none; }
  .app-shell { height: 320px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .app-bottom-grid { grid-template-columns: 1fr; }
  .app-bottom-grid > :last-child { display: none; }
  .section-lg { padding-top: 64px; padding-bottom: 64px; }
  .section-md { padding-top: 48px; padding-bottom: 48px; }
}

@media (max-width: 640px) {
  .app-sidebar { display: none; }
}

.logo-text img {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.logo-text:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-2px);
}

/* ── Demo Video Modal (YouTube facade) ───────────────── */
.demo-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.demo-modal[hidden] { display: none; }
.demo-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 12, 24, 0.84);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
/* Width matters: YouTube picks resolution partly from player size, so a wider
   player earns a higher-res stream. 1120px clears the 1080p threshold. */
.demo-modal-dialog { position: relative; width: 100%; max-width: 1120px; }
.demo-modal-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #000; border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.demo-modal-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.demo-modal-close {
  position: absolute; top: -42px; right: 0;
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 0; cursor: pointer;
  color: #fff; font-family: 'Inter', sans-serif; font-size: 13px;
  padding: 6px 8px; border-radius: 8px; transition: opacity 0.15s ease;
}
.demo-modal-close:hover { opacity: 0.75; }
.demo-modal-close:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }
@media (max-width: 640px) { .demo-modal-close { top: -36px; } }
