/* ─── RESET & BASE ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: #F8FAFF;
  color: #0A1628;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── CSS VARIABLES ────────────────────────────────────────────────────────── */
:root {
  --primary:      #2E86C1;
  --primary-dark: #1A6A9E;
  --primary-glow: rgba(46,134,193,0.22);
  --green:        #10B981;
  --amber:        #F59E0B;
  --red:          #EF4444;
  --bg:           #F8FAFF;
  --surface:      #EDF2FB;
  --card:         #FFFFFF;
  --border:       rgba(46,134,193,0.13);
  --border-hover: rgba(46,134,193,0.30);
  --text:         #0A1628;
  --subtext:      #4B607A;
  --muted:        #8FA3BA;
  --radius:       14px;
  --radius-sm:    8px;
  --radius-lg:    20px;
  --shadow-card:  0 2px 16px rgba(46,134,193,0.09), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-glow:  0 0 60px rgba(46,134,193,0.12);
}

/* ─── UTILITIES ────────────────────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.gradient-text {
  background: linear-gradient(135deg, #2E86C1 0%, #7C3AED 50%, #0E7490 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.section-heading {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 24px;
}
.w-full { width: 100%; justify-content: center; }

/* ─── SCROLL REVEAL ────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--delay, 0ms);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── BUTTONS ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px var(--primary-glow);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(46,134,193,0.07);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(46,134,193,0.13); border-color: var(--border-hover); }
.btn-outline {
  background: transparent;
  color: var(--subtext);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(46,134,193,0.05); }
.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.btn-white:hover { background: #F0F7FF; transform: translateY(-1px); }
.btn-ghost-white {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.24); }

/* ─── NAV ──────────────────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(248,250,255,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
#nav.scrolled {
  border-color: var(--border);
  background: rgba(248,250,255,0.97);
}
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  height: 64px; max-width: 1160px;
  margin: 0 auto; padding: 0 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800; color: var(--text);
  flex-shrink: 0;
}
.logo-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--primary), #7C3AED);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; color: #fff;
}
.nav-links { display: flex; gap: 28px; list-style: none; margin-left: auto; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--subtext); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu {
  display: none; flex-direction: column; gap: 16px;
  padding: 20px 24px; border-top: 1px solid var(--border);
  background: rgba(248,250,255,0.98);
}
.mobile-menu a { font-size: 15px; color: var(--subtext); }
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .btn { align-self: flex-start; }
.mobile-menu.open { display: flex; }

/* ─── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 60px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(120px);
  animation: blobDrift 12s ease-in-out infinite alternate;
}
.blob-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(46,134,193,0.28), rgba(124,58,237,0.16));
  top: -200px; right: -200px; animation-duration: 14s;
}
.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,0.18), rgba(46,134,193,0.16));
  bottom: -100px; left: -100px;
  animation-duration: 10s; animation-direction: alternate-reverse;
}
@keyframes blobDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(46,134,193,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,134,193,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}
.hero-content {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 64px;
  position: relative; z-index: 1;
}
.hero-text { max-width: 560px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(46,134,193,0.09);
  border: 1px solid rgba(46,134,193,0.24);
  border-radius: 999px; padding: 6px 14px;
  font-size: 12px; font-weight: 600; color: var(--primary);
  margin-bottom: 24px;
}
.badge-dot {
  width: 6px; height: 6px; background: var(--primary);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -1px; color: var(--text); margin-bottom: 20px;
}
.hero-sub { font-size: 17px; color: var(--subtext); line-height: 1.7; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust { display: flex; align-items: center; gap: 20px; }
.trust-item { display: flex; align-items: baseline; gap: 4px; }
.trust-num {
  font-size: 22px; font-weight: 800;
  font-family: 'Space Grotesk', sans-serif; color: var(--primary);
}
.trust-item span:last-child { font-size: 13px; color: var(--subtext); }
.trust-sep { width: 1px; height: 24px; background: var(--border); }

/* ─── HERO VISUAL / MOCKUP CARDS ───────────────────────────────────────────── */
.hero-visual { position: relative; height: 480px; }
.mockup-stack { position: relative; width: 100%; height: 100%; }
.mock-card {
  position: absolute; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-card);
}
.card-project { width: 260px; top: 20px; right: 20px; z-index: 3; }
.card-att { width: 230px; top: 140px; left: 0; z-index: 2; }
.card-finance { width: 220px; bottom: 20px; right: 60px; z-index: 1; }

@keyframes float1 { 0%,100%{transform:translateY(0px)} 50%{transform:translateY(-12px)} }
@keyframes float2 { 0%,100%{transform:translateY(0px)} 50%{transform:translateY(-8px)} }
@keyframes float3 { 0%,100%{transform:translateY(0px)} 50%{transform:translateY(-15px)} }
.float-1 { animation: float1 5s ease-in-out infinite; }
.float-2 { animation: float2 6.5s ease-in-out infinite; }
.float-3 { animation: float3 4.5s ease-in-out infinite; }

.mock-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px; font-size: 12px; font-weight: 600; color: var(--subtext);
}
.mock-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mock-dot.blue { background: var(--primary); box-shadow: 0 0 8px var(--primary-glow); }
.mock-dot.green { background: #10B981; box-shadow: 0 0 8px rgba(16,185,129,0.4); }
.mock-dot.amber { background: #F59E0B; box-shadow: 0 0 8px rgba(245,158,11,0.4); }
.mock-title { font-size: 12px; font-weight: 600; color: var(--text); }
.mock-badge { margin-left: auto; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.mock-badge.active { background: rgba(16,185,129,0.12); color: #059669; }
.mock-progress-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mock-progress-bar { flex: 1; height: 6px; background: rgba(46,134,193,0.1); border-radius: 3px; overflow: hidden; }
.mock-progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #7C3AED); border-radius: 3px; }
.mock-pct { font-size: 11px; font-weight: 700; color: var(--primary); }
.mock-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.mock-label { font-size: 11px; color: var(--subtext); }
.mock-value { font-size: 12px; font-weight: 600; color: var(--text); }
.att-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0; border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 500; color: var(--text);
}
.att-row:last-of-type { border-bottom: none; }
.att-footer { margin-top: 8px; font-size: 10px; color: var(--subtext); text-align: center; }
.chip { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; flex-shrink: 0; }
.chip.present { background: rgba(16,185,129,0.12); color: #059669; }
.chip.half { background: rgba(245,158,11,0.12); color: #D97706; }
.chip.absent { background: rgba(239,68,68,0.12); color: #DC2626; }
.chip.task-planned { background: rgba(100,116,139,0.12); color: #64748B; }
.finance-amount { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 800; color: var(--text); }
.finance-sub { font-size: 11px; color: var(--subtext); margin-bottom: 10px; }
.finance-bar { display: flex; align-items: flex-end; gap: 4px; height: 40px; }
.fb-item { flex: 1; background: linear-gradient(to top, var(--primary), rgba(46,134,193,0.25)); border-radius: 3px 3px 0 0; }

/* ─── FEATURES BENTO ───────────────────────────────────────────────────────── */
.features { background: var(--surface); }
.features .section-heading { text-align: center; margin: 0 auto 12px; }
.features .section-label { display: block; text-align: center; }
.features-sub {
  text-align: center; color: var(--subtext); font-size: 15px;
  margin: 0 auto 52px; max-width: 520px;
}
.bento-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.bento-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.bento-card:hover {
  border-color: var(--border-hover); transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(46,134,193,0.12);
}
.bento-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.bento-icon svg { width: 22px; height: 22px; }
.bento-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.bento-card p { font-size: 13.5px; color: var(--subtext); line-height: 1.6; }

/* Featured showcase — flagship modules advertised in depth */
.feature-showcase {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  border-color: var(--border-hover); transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(46,134,193,0.12);
}
.feature-card .bento-icon { width: 52px; height: 52px; border-radius: 12px; }
.feature-card .bento-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.feature-card > p { font-size: 14.5px; color: var(--subtext); line-height: 1.7; margin-bottom: 18px; }
.feature-points { list-style: none; display: grid; gap: 9px; margin: 0; padding: 0; }
.feature-points li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--subtext); line-height: 1.5;
}
.feature-points li svg {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: #10B981;
}
.features-more-label {
  text-align: center; font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--subtext); margin: 40px 0 20px;
}

/* Homepage "highlights" grid — icon + title only, full detail lives on
   the dedicated /features page (see .feature-showcase/.bento-card above,
   reused there as-is). */
.mini-feature-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.mini-feature-tile {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
  transition: border-color 0.3s, transform 0.3s;
}
.mini-feature-tile:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.mini-feature-tile .bento-icon {
  width: 36px; height: 36px; border-radius: 8px; margin-bottom: 0; flex-shrink: 0;
}
.mini-feature-tile .bento-icon svg { width: 18px; height: 18px; }
.mini-feature-tile h3 { font-size: 13.5px; font-weight: 700; color: var(--text); }
.features-cta { text-align: center; margin-top: 32px; }

/* ─── AI ADVISOR SECTION ────────────────────────────────────────────────────── */
.ai-section { background: var(--bg); }
.ai-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.ai-soon-badge {
  display: inline-block;
  background: linear-gradient(135deg, #7C3AED, var(--primary));
  color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: 0.5px; padding: 4px 12px;
  border-radius: 999px; margin-bottom: 16px; text-transform: uppercase;
}
.ai-sub { font-size: 15px; color: var(--subtext); line-height: 1.75; margin-bottom: 24px; }
.ai-langs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.lang-chip {
  background: rgba(46,134,193,0.08); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 14px;
  font-size: 13px; font-weight: 600; color: var(--primary);
}

/* Chat mock */
.chat-mock {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.chat-avatar-wrap { position: relative; }
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7C3AED);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff;
}
.chat-online-dot {
  position: absolute; bottom: 1px; right: 1px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green); border: 2px solid var(--surface);
}
.chat-name { font-size: 14px; font-weight: 700; color: var(--text); }
.chat-status { font-size: 11px; color: var(--green); }
.chat-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble {
  max-width: 85%; padding: 10px 14px;
  border-radius: 14px; font-size: 13px; line-height: 1.5;
}
.chat-bubble.user {
  background: var(--primary); color: #fff;
  align-self: flex-end; border-bottom-right-radius: 4px;
}
.chat-bubble.bot {
  background: var(--surface); color: var(--text);
  align-self: flex-start; border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}
.chat-detail { font-size: 11.5px; color: var(--subtext); display: block; margin-top: 4px; }
.chat-typing {
  display: flex; gap: 4px; align-items: center;
  padding: 8px 12px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px;
  border-bottom-left-radius: 4px; align-self: flex-start; width: fit-content;
}
.chat-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted); animation: typingDot 1.4s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%,60%,100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.chat-input-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-top: 1px solid var(--border);
  background: var(--surface);
}
.chat-input-mock {
  flex: 1; font-size: 13px; color: var(--muted);
  background: var(--card); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 16px;
}
.chat-send {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0; cursor: default;
}

/* Checklist rows — used in the AI Advisor section */
.spot-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.spot-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--subtext); }
.spot-check { color: var(--green); font-size: 14px; font-weight: 700; flex-shrink: 0; margin-top: 1px; }


/* ─── CLIENT EXPERIENCE ─────────────────────────────────────────────────────── */
.client-section { background: var(--bg); }
.client-section .section-label { display: block; text-align: center; }
.client-section .section-heading { text-align: center; margin: 0 auto 16px; }
.client-sub {
  text-align: center; font-size: 16px; color: var(--subtext);
  line-height: 1.7; max-width: 560px; margin: 0 auto 52px;
}
.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.client-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 22px; text-align: center;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.client-card:hover {
  border-color: var(--border-hover); transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(46,134,193,0.10);
}
.client-icon { font-size: 32px; margin-bottom: 14px; }
.client-card h4 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.client-card p { font-size: 13px; color: var(--subtext); line-height: 1.6; }

/* ─── ROLES ─────────────────────────────────────────────────────────────────── */
.roles { background: var(--surface); }
.roles .section-heading { text-align: center; margin: 0 auto 48px; }
.roles .section-label { display: block; text-align: center; }
.roles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.role-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 18px; text-align: center;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.role-card:hover {
  border-color: var(--primary); transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(46,134,193,0.12);
}
.role-icon { font-size: 28px; margin-bottom: 10px; }
.role-card h4 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.role-card p { font-size: 12.5px; color: var(--subtext); line-height: 1.5; }

/* ─── PRICING ────────────────────────────────────────────────────────────────── */
/* Now its own standalone page (pricing.html), no hero above it — extra
   top clearance for the fixed nav, matching .legal-page's convention. */
.pricing { background: var(--surface); padding-top: 160px; }
.pricing .section-heading { text-align: center; margin: 0 auto 32px; }
.pricing .section-label { display: block; text-align: center; }
.pricing-note { text-align: center; font-size: 15px; color: var(--subtext); margin-bottom: 48px; }
.price-enquiry {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 18px; font-weight: 700; color: var(--primary);
  transition: gap 0.2s, color 0.2s;
}
.price-enquiry:hover { color: var(--primary-dark); gap: 10px; }
.enquiry-arrow { font-size: 16px; transition: transform 0.2s; }
.price-enquiry:hover .enquiry-arrow { transform: translateX(3px); }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; position: relative;
  transition: border-color 0.3s, transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
}
.pricing-grid:hover .plan-card {
  opacity: 0.42;
  transform: translateY(0);
}
.pricing-grid .plan-card:hover {
  opacity: 1;
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(46,134,193,0.18);
}
.plan-popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(46,134,193,0.25), 0 8px 32px rgba(46,134,193,0.10);
}
.plan-enterprise { border-color: rgba(124,58,237,0.28); }
.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.plan-name { font-size: 14px; font-weight: 700; color: var(--subtext); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 12px; }
.plan-price { display: flex; align-items: baseline; gap: 2px; margin-bottom: 4px; }
.plan-trial { font-size: 11.5px; color: var(--green); font-weight: 600; margin-bottom: 20px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; }
.plan-features li { font-size: 13px; color: var(--subtext); display: flex; align-items: center; gap: 8px; }
.plan-features li.yes::before { content: '✓'; color: var(--green); font-weight: 700; font-size: 12px; flex-shrink: 0; }
.plan-features li.no { color: var(--muted); }
.plan-features li.no::before { content: '×'; color: var(--muted); font-weight: 700; font-size: 14px; flex-shrink: 0; }

/* ─── CTA ────────────────────────────────────────────────────────────────────── */
.cta-section {
  background: var(--primary); position: relative;
  overflow: hidden; text-align: center;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.28), transparent);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cta-inner h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800; color: #fff; margin-bottom: 16px;
}
.cta-inner p { font-size: 16px; color: rgba(255,255,255,0.82); line-height: 1.7; margin-bottom: 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.cta-note { font-size: 12px; color: rgba(255,255,255,0.58); }

/* ─── FOOTER ─────────────────────────────────────────────────────────────────── */
.footer { background: #0A1628; padding: 60px 0 0; }
.footer-inner { display: flex; gap: 60px; margin-bottom: 48px; }
.footer-brand { flex: 1; }
.footer-brand .logo { margin-bottom: 14px; color: #fff; }
.footer-brand p { font-size: 13px; color: #8FA3BA; line-height: 1.6; max-width: 260px; }
.footer-links { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h5 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.footer-col a { font-size: 13px; color: #8FA3BA; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 24px; font-size: 12px; color: #4B607A;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-showcase { grid-template-columns: 1fr; }
  .mini-feature-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .roles-grid { grid-template-columns: repeat(3, 1fr); }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-inner { gap: 48px; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .bento-grid { grid-template-columns: 1fr; }
  .mini-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid:hover .plan-card { opacity: 1; }
  .pricing-grid .plan-card:hover { transform: translateY(-6px); }
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .client-grid { grid-template-columns: 1fr 1fr; }
  .ai-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { flex-direction: column; gap: 36px; }
  .footer-links { flex-wrap: wrap; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .hero-heading { font-size: 40px; }
}

/* ─── LEGAL PAGES (Privacy Policy, Terms, etc.) ────────────────────────────── */
.legal-page { padding: 160px 0 100px; }
.legal-container { max-width: 780px; }
.legal-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 10px;
}
.legal-updated { font-size: 14px; color: var(--muted); margin-bottom: 40px; }
.legal-body p { font-size: 16px; color: var(--subtext); margin-bottom: 18px; }
.legal-body h2 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 44px 0 16px;
}
.legal-body h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 12px;
}
.legal-body ul { margin: 0 0 18px 22px; }
.legal-body li { font-size: 16px; color: var(--subtext); margin-bottom: 8px; }
.legal-body a { color: var(--primary); text-decoration: underline; }
.legal-body strong { color: var(--text); }

/* ─── REFUND REQUEST FORM ──────────────────────────────────────────────────── */
.refund-form-card {
  margin-top: 24px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.refund-form-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
  pointer-events: none;
}
.refund-form-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.refund-form-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: var(--radius-sm);
}
.refund-form-header h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 18px; font-weight: 700; color: var(--text);
  margin-bottom: 4px;
}
.refund-form-header p { font-size: 13.5px; color: var(--subtext); margin: 0; }

.refund-form { position: relative; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-row label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-row input,
.form-row textarea {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--muted); }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.form-submit {
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  width: 100%; justify-content: center;
  margin-top: 4px;
}
.form-note {
  display: flex; align-items: flex-start; gap: 7px;
  font-size: 12.5px; color: var(--muted); margin-top: 14px; line-height: 1.5;
}
.form-note svg { flex-shrink: 0; margin-top: 1px; }

@media (max-width: 640px) {
  .refund-form-card { padding: 24px 20px; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .roles-grid { grid-template-columns: 1fr 1fr; }
  .hero-trust { flex-wrap: wrap; gap: 16px; }
  .trust-sep { display: none; }
  .client-grid { grid-template-columns: 1fr; }
  .ai-langs { gap: 6px; }
}

/* ─── ROLES DETAIL PAGE (roles.html) ────────────────────────────────────────── */
/* Distinct from the homepage's compact .role-card grid above: these are the
   full per-role cards, built on .feature-card so the two pages stay visually
   related without one overriding the other. */
.role-detail h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.role-purpose {
  font-size: 14.5px; color: var(--subtext); line-height: 1.7;
  margin-bottom: 18px; font-style: italic;
}
.role-tag {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.4px;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  background: rgba(46,134,193,0.10); color: var(--primary);
  border: 1px solid rgba(46,134,193,0.22);
}
.role-tag-ent { background: rgba(139,92,246,0.10); color: #8B5CF6; border-color: rgba(139,92,246,0.24); }
.role-tag-soon { background: rgba(143,163,186,0.14); color: var(--muted); border-color: rgba(143,163,186,0.28); }

/* What a role can NOT see. Selling permission boundaries is the point of this
   page, so the limit is stated as plainly as the capability. */
.role-limit, .role-note {
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border);
  font-size: 12.5px; line-height: 1.6; color: var(--muted);
}
.role-limit::before { content: "🔒 "; }
.role-note::before  { content: "↳ "; }

/* ─── APPROVAL CHAIN ────────────────────────────────────────────────────────── */
.chain {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px; margin: 8px 0 8px;
}
.chain-head h2 { font-size: 24px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.chain-head p { font-size: 14.5px; color: var(--subtext); line-height: 1.7; max-width: 720px; }
.chain-steps {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.chain-step { display: flex; gap: 12px; align-items: flex-start; position: relative; }
/* The connector reads left-to-right on wide screens; it is removed rather than
   rotated once the steps stack, where an arrow between rows would mislead. */
.chain-step:not(:last-child)::after {
  content: ""; position: absolute; top: 13px; right: -13px;
  width: 8px; height: 8px; border-top: 2px solid var(--border-hover);
  border-right: 2px solid var(--border-hover); transform: rotate(45deg);
}
.chain-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.chain-step h4 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.chain-step p { font-size: 12.5px; color: var(--subtext); line-height: 1.55; }

/* ─── OUTCOMES ──────────────────────────────────────────────────────────────── */
.outcome-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.outcome-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.outcome-card:hover {
  border-color: var(--border-hover); transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.outcome-stat {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; font-weight: 700; color: var(--primary); line-height: 1.2;
}
.outcome-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; font-weight: 700; color: var(--text);
  line-height: 1.2; margin-bottom: 12px;
}
.outcome-card p { font-size: 14px; color: var(--subtext); line-height: 1.7; }

@media (max-width: 1024px) {
  .chain-steps { grid-template-columns: repeat(2, 1fr); }
  .chain-step:not(:last-child)::after { display: none; }
  .outcome-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .chain { padding: 24px; }
  .chain-steps { grid-template-columns: 1fr; }
}

/* ─── INLINE MOCK SCREENS ───────────────────────────────────────────────────── */
/* The hero's .mock-card is absolutely positioned for its floating stack. These
   sit inside a feature or role card instead, so position and shadow are reset
   and the card supplies the frame. Built in markup rather than as screenshots:
   they stay sharp at any DPI, restyle with the theme, and cannot drift out of
   date the way an exported PNG of a screen does. */
.mock-inline {
  position: static; width: 100%; margin-top: 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px; box-shadow: none;
}
.mock-inline .mock-header { margin-bottom: 10px; font-size: 11px; }
.mock-inline .att-row { font-size: 11.5px; padding: 4px 0; }
.mock-inline .mock-row { margin-bottom: 5px; }

/* Headline figure — the number a role opens the app to see. */
.mock-metric { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mock-metric-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px; font-weight: 800; color: var(--text); line-height: 1.1;
}
.mock-metric-value.pos { color: #059669; }
.mock-metric-value.neg { color: #DC2626; }
.mock-metric-sub { font-size: 11px; color: var(--subtext); }

/* Tiny comparison chart — district margin, weekly wages, phase progress. */
.mock-bars { display: flex; align-items: flex-end; gap: 14px; height: 58px; margin-top: 12px; }
.mock-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.mock-bar {
  /* Capped: a full-width bar at 30px tall reads as a slab, not a chart —
     the height difference only carries meaning at a bar-like aspect ratio. */
  width: 100%; max-width: 34px; border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, var(--primary), rgba(46,134,193,0.30));
}
.mock-bar.alt { background: linear-gradient(to top, #10B981, rgba(16,185,129,0.30)); }
.mock-bar-label { font-size: 9.5px; color: var(--muted); white-space: nowrap; }

/* Approval queue rows — the proof thumbnail is what makes the row credible. */
.mock-approval { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.mock-approval:last-of-type { border-bottom: none; }
.mock-thumb {
  width: 26px; height: 26px; border-radius: 6px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(46,134,193,0.22), rgba(16,185,129,0.18));
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.mock-approval-body { flex: 1; min-width: 0; }
.mock-approval-title {
  font-size: 11.5px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mock-approval-sub { font-size: 10px; color: var(--muted); }
.chip.pending  { background: rgba(245,158,11,0.14); color: #D97706; }
.chip.approved { background: rgba(16,185,129,0.14); color: #059669; }

/* The one-line "so what" under each mock. */
.mock-caption {
  margin-top: 10px; font-size: 11.5px; line-height: 1.55; color: var(--muted);
}
.mock-caption strong { color: var(--subtext); font-weight: 700; }

/* ─── ROLE ACTION MOCKS ─────────────────────────────────────────────────────── */
/* A role touches more than one layer of data, so each card carries a mock per
   layer with the verb it performs there — reviews / approves / records / views.
   The verb matters: two roles can open the same screen with very different
   rights, and the label is what makes that visible. */
.mock-action {
  display: flex; align-items: center; gap: 7px;
  margin-top: 16px; font-size: 10px; font-weight: 800;
  letter-spacing: 0.7px; text-transform: uppercase; color: var(--muted);
}
.mock-action::before {
  content: ""; flex: 1; height: 1px; background: var(--border); order: 2;
}
.mock-action span { order: 1; }
.mock-action + .mock-inline { margin-top: 8px; }

/* ─── DATA LAYERS ───────────────────────────────────────────────────────────── */
.layers {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; margin-bottom: 8px;
}
.layers-head h2 { font-size: 24px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.layers-head p { font-size: 14.5px; color: var(--subtext); line-height: 1.7; max-width: 720px; }
.layer-rows { margin-top: 24px; display: grid; gap: 8px; }
.layer-row {
  display: grid; grid-template-columns: 132px 1fr auto; gap: 16px; align-items: center;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
}
.layer-name { font-size: 13px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 8px; }
/* Indent step communicates depth without needing a drawn tree. */
.layer-row[data-depth="1"] .layer-name { padding-left: 10px; }
.layer-row[data-depth="2"] .layer-name { padding-left: 20px; }
.layer-row[data-depth="3"] .layer-name { padding-left: 30px; }
.layer-row[data-depth="4"] .layer-name { padding-left: 40px; }
.layer-what { font-size: 12.5px; color: var(--subtext); line-height: 1.5; }
.layer-who { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.who-chip {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: rgba(46,134,193,0.10); color: var(--primary);
  border: 1px solid rgba(46,134,193,0.20); white-space: nowrap;
}
.who-chip.owner { background: rgba(16,185,129,0.10); color: #059669; border-color: rgba(16,185,129,0.22); }
.who-chip.none  { background: rgba(143,163,186,0.12); color: var(--muted); border-color: rgba(143,163,186,0.24); }

@media (max-width: 768px) {
  .layers { padding: 22px; }
  .layer-row { grid-template-columns: 1fr; gap: 6px; }
  .layer-who { justify-content: flex-start; }
  .layer-row[data-depth] .layer-name { padding-left: 0; }
}

/* ══════════════════════════════════════════════════════════════════════════
   SEO landing pages  (/construction-project-management, /worker-wage-management,
   /daily-progress-report)

   These pages are content-led rather than mockup-led: they exist to answer a
   search query fully on the page, so the type is sized for reading a few
   hundred words rather than scanning feature tiles.
   ══════════════════════════════════════════════════════════════════════════ */

.hero-compact { min-height: auto; padding: 132px 0 64px; }
.hero-compact .hero-content { display: block; }
.lp-hero-text { max-width: 780px; }
.lp-hero-text .hero-heading { font-size: clamp(32px, 5vw, 54px); }
.lp-hero-text .hero-sub { max-width: 680px; }

.lp-crumbs {
  font-size: 13px; color: var(--muted); margin-bottom: 18px;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.lp-crumbs a { color: var(--primary); text-decoration: none; }
.lp-crumbs a:hover { text-decoration: underline; }

.lp-trustline { margin-top: 20px; font-size: 13.5px; color: var(--muted); }

.section-alt { background: var(--surface); }

/* Cards — same language as .feature-card, but text-only, so they need their
   own grid rather than inheriting the bento sizing. */
.lp-grid {
  display: grid; gap: 18px; margin-top: 38px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.lp-grid .feature-card { padding: 26px; }
.lp-grid .feature-card > p { margin-bottom: 0; }

/* Numbered process list. An <ol> because the order is real information. */
.lp-steps { list-style: none; margin: 38px 0 0; padding: 0; display: grid; gap: 14px; }
.lp-step {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-card);
}
.lp-step-num {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.lp-step h3 { font-size: 17px; font-weight: 800; color: var(--text); margin: 4px 0 6px; }
.lp-step p { font-size: 14.5px; color: var(--subtext); line-height: 1.7; margin: 0; }

/* Running prose. Capped near 68 characters so long-form copy stays readable. */
.lp-prose { max-width: 720px; }
.lp-prose h2 {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(24px, 3vw, 32px);
  font-weight: 700; color: var(--text); margin-bottom: 18px; letter-spacing: -0.02em;
}
.lp-prose p { font-size: 16px; line-height: 1.85; color: var(--subtext); margin-bottom: 18px; }
.lp-prose p:last-child { margin-bottom: 0; }

/* FAQ — <details> so answers are collapsed but still in the DOM and indexable,
   which is what FAQPage structured data requires. */
.lp-faq { margin-top: 34px; display: grid; gap: 12px; }
.lp-faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 4px 22px;
}
.lp-faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after {
  content: '+'; font-size: 22px; color: var(--primary); font-weight: 700;
  line-height: 1; flex: 0 0 auto; transition: transform .2s ease;
}
.lp-faq-item[open] summary::after { content: '−'; }
.lp-faq-item summary h3 {
  font-size: 16.5px; font-weight: 700; color: var(--text); margin: 0; display: inline;
}
.lp-faq-item summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.lp-faq-answer { padding: 0 0 20px; }
.lp-faq-answer p { font-size: 15px; line-height: 1.8; color: var(--subtext); margin: 0; }

/* Internal links between the three pages — the cluster that tells Google these
   pages belong together. */
.lp-related {
  display: grid; gap: 18px; margin-top: 34px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.lp-related-card {
  display: block; text-decoration: none; padding: 26px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  transition: border-color .2s ease, transform .2s ease;
}
.lp-related-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.lp-related-card h3 { font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.lp-related-card p { font-size: 14.5px; color: var(--subtext); line-height: 1.7; margin-bottom: 14px; }
.lp-related-more { font-size: 14px; font-weight: 700; color: var(--primary); }

@media (max-width: 640px) {
  .hero-compact { padding: 110px 0 48px; }
  .lp-step { padding: 18px; gap: 14px; }
  .lp-faq-item { padding: 2px 16px; }
}

/* Keyword line above the hero triplet. Sized well below the headline so it
   reads as a category label, not as competing with the statement under it. */
.hero-kicker {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

/* Hub links from the homepage into the three solution pages. Without these the
   new pages are orphans — nothing links to them, so nothing crawls them. */
.solutions-grid {
  display: grid; gap: 18px; margin-top: 38px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.solution-card {
  display: block; text-decoration: none; padding: 30px 26px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  transition: border-color .2s ease, transform .2s ease;
}
.solution-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.solution-card h3 { font-size: 19px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.solution-card p { font-size: 14.5px; color: var(--subtext); line-height: 1.7; margin-bottom: 16px; }
.solution-card .lp-related-more { font-size: 14px; font-weight: 700; color: var(--primary); }

/* ─── FREE CALCULATORS ─────────────────────────────────────────────────────── */
/* Reuses .refund-form-card's card chrome under a name that reads correctly on
   a calculator page — same visual, honest class name. */
.calc-card { margin-top: 24px; padding: 32px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); position: relative; overflow: hidden; }
.calc-card::before { content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
  pointer-events: none; }
.form-row select {
  font-family: 'Inter', sans-serif; font-size: 15px; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238FA3BA' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row select:focus { outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow); }
.form-hint { font-size: 12px; color: var(--muted); margin-top: -10px; margin-bottom: 18px; }

.calc-result { margin-top: 22px; padding: 26px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; text-align: center; display: none; }
.calc-result.visible { display: block; }
.calc-result-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; opacity: 0.85; margin-bottom: 6px; }
.calc-result-value { font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(30px, 5vw, 42px); font-weight: 700; line-height: 1.15; }
.calc-result-sub { font-size: 13.5px; opacity: 0.85; margin-top: 6px; }
.calc-breakdown { margin-top: 18px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.25); display: flex;
  flex-direction: column; gap: 8px; }
.calc-breakdown-row { display: flex; justify-content: space-between;
  font-size: 13.5px; }
.calc-breakdown-row span:first-child { opacity: 0.85; }
.calc-breakdown-row span:last-child { font-weight: 700; }
.calc-disclaimer { font-size: 12px; color: var(--muted); margin-top: 14px;
  line-height: 1.5; }

.tools-grid { display: grid; gap: 18px; margin-top: 30px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.tool-card { display: block; text-decoration: none; padding: 26px 24px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  transition: border-color .2s ease, transform .2s ease; position: relative; }
.tool-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.tool-card.coming-soon { opacity: 0.68; }
.tool-card.coming-soon:hover { transform: none; }
.tool-card-badge { position: absolute; top: 18px; right: 18px; font-size: 10px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 3px 9px; border-radius: 999px; background: rgba(16,185,129,0.14);
  color: #059669; }
.tool-card.coming-soon .tool-card-badge { background: var(--surface); color: var(--muted); }
.tool-card h3 { font-size: 17px; font-weight: 800; color: var(--text);
  margin-bottom: 8px; padding-right: 70px; }
.tool-card p { font-size: 13.5px; color: var(--subtext); line-height: 1.6; }

@media (max-width: 640px) {
  .calc-card { padding: 24px 20px; }
}

/* ─── COMPARISON PAGES ─────────────────────────────────────────────────────── */
.compare-table-wrap { overflow-x: auto; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); border: 1px solid var(--border);
  background: var(--card); margin-top: 30px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px;
  min-width: 560px; }
.compare-table th, .compare-table td { padding: 14px 20px; text-align: left;
  border-bottom: 1px solid var(--border); vertical-align: top; }
.compare-table thead th { background: var(--surface); font-weight: 800;
  color: var(--text); font-size: 12.5px; text-transform: uppercase;
  letter-spacing: 0.04em; white-space: nowrap; }
.compare-table tbody th { font-weight: 700; color: var(--text);
  white-space: nowrap; }
.compare-table td.cs-col { font-weight: 600; color: var(--primary-dark);
  background: rgba(46,134,193,0.05); }
.compare-table tbody tr:last-child td, .compare-table tbody tr:last-child th
  { border-bottom: none; }
.compare-note { font-size: 12px; color: var(--muted); margin-top: 10px;
  line-height: 1.5; }

.verdict-grid { display: grid; gap: 20px; margin-top: 30px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.verdict-card { padding: 26px 24px; border-radius: var(--radius-lg);
  border: 1.5px solid var(--border); background: var(--card); }
.verdict-card.is-crewsense { border-color: var(--primary);
  background: rgba(46,134,193,0.04); }
.verdict-card h3 { font-size: 16px; font-weight: 800; color: var(--text);
  margin-bottom: 10px; }
.verdict-card ul { list-style: none; display: flex; flex-direction: column;
  gap: 9px; }
.verdict-card li { font-size: 13.5px; color: var(--subtext); line-height: 1.5;
  padding-left: 20px; position: relative; }
.verdict-card li::before { content: '\2713'; position: absolute; left: 0;
  color: var(--green); font-weight: 700; }

@media (max-width: 640px) {
  .compare-table th, .compare-table td { padding: 11px 14px; font-size: 13px; }
}

/* ─── DOCUMENTATION PAGE ───────────────────────────────────────────────────── */
.role-tag-all { background: rgba(16,185,129,0.10); color: var(--green);
  border-color: rgba(16,185,129,0.24); }

.docs-page { padding: 140px 0 100px; }
.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px; max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.docs-sidebar { position: sticky; top: 96px; align-self: start;
  max-height: calc(100vh - 116px); overflow-y: auto; padding-right: 8px; }
.docs-sidebar-group { margin-bottom: 20px; }
.docs-sidebar-group h5 { font-size: 11px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.docs-sidebar a { display: block; font-size: 13.5px; color: var(--subtext);
  text-decoration: none; padding: 4px 0; line-height: 1.4; }
.docs-sidebar a:hover { color: var(--primary); }

.docs-content { min-width: 0; }
.docs-intro { margin-bottom: 36px; }
.docs-intro p { font-size: 15px; color: var(--subtext); line-height: 1.7; }

.docs-group { margin-bottom: 48px; scroll-margin-top: 90px; }
.docs-group-title { font-size: 22px; font-weight: 800; color: var(--text);
  margin-bottom: 4px; font-family: 'Space Grotesk', 'Inter', sans-serif; }
.docs-group-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }

.doc-feature { display: flex; gap: 14px; padding: 20px 0;
  border-top: 1px solid var(--border); scroll-margin-top: 90px; }
.docs-group .doc-feature:first-of-type { border-top: none; padding-top: 8px; }
.doc-feature-icon { flex-shrink: 0; width: 38px; height: 38px;
  border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.doc-feature-icon svg { width: 19px; height: 19px; }
.doc-feature-body { min-width: 0; flex: 1; }
.doc-feature-head { display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 6px; }
.doc-feature-head h3 { font-size: 15.5px; font-weight: 700; color: var(--text); }
.doc-feature p { font-size: 14px; color: var(--subtext); line-height: 1.65;
  margin-bottom: 8px; }
.doc-use-case { background: var(--surface); border-radius: var(--radius-sm);
  padding: 10px 13px; font-size: 13px; color: var(--subtext); line-height: 1.55;
  margin-bottom: 10px !important; }
.doc-use-case strong { color: var(--primary-dark); }
.doc-find { font-size: 12.5px; color: var(--muted); margin-bottom: 0; }
.doc-find strong { color: var(--subtext); font-weight: 700; }
.doc-find code { background: var(--surface); border-radius: 4px;
  padding: 1px 5px; font-size: 12px; color: var(--primary-dark); }

.doc-shot { margin-top: 12px; }
.doc-shot a { display: inline-block; border-radius: var(--radius-sm);
  overflow: hidden; border: 1px solid var(--border); line-height: 0; }
.doc-shot img { display: block; max-width: 100%; height: auto; }
.doc-shot.is-phone img { max-height: 380px; width: auto; }
.doc-shot.is-wide img { width: 100%; max-width: 480px; }
.doc-shot-cap { font-size: 11.5px; color: var(--muted); margin-top: 5px !important; }

@media (max-width: 860px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; max-height: none; overflow-y: visible;
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px 18px; background: var(--card); margin-bottom: 8px; }
  .docs-sidebar-group { margin-bottom: 14px; }
}

@media (max-width: 480px) {
  .doc-feature { gap: 10px; }
  .doc-feature-icon { width: 32px; height: 32px; }
  .doc-feature-icon svg { width: 16px; height: 16px; }
}
