/* ============================================================
   ClientRoots Design System
   Clean lists, better messages, faster follow ups.
   ============================================================ */

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

/* ---------- CSS Variables ---------- */
:root {
  /* Brand */
  --brand:       #6C63FF;
  --brand-light: #8B85FF;
  --brand-dark:  #4F46E5;
  --cyan:        #00D4FF;
  --cyan-dark:   #00A8CC;
  --orange:      #FF6B35;
  --orange-dark: #E55A28;

  /* Darks */
  --dark-1: #080818;
  --dark-2: #0f0f28;
  --dark-3: #161630;
  --dark-4: #1e1e40;
  --mid:    #2d2d5e;
  --mid-2:  #3d3d72;

  /* Lights */
  --light:  #F4F5FF;
  --light-2:#E8EAFF;
  --white:  #ffffff;

  /* Status */
  --success: #00D68F;
  --warning: #FFB703;
  --error:   #E63946;
  --info:    #00B4D8;

  /* Tool colours */
  --tool-email:    #00B4D8;
  --tool-outreach: #A855F7;
  --tool-sms:      #10B981;
  --tool-review:   #F59E0B;
  --tool-proof:    #EF4444;
  --tool-lead:     #FF6B35;

  /* Typography */
  --font-head: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --gap-xs:  0.5rem;
  --gap-sm:  1rem;
  --gap-md:  1.5rem;
  --gap-lg:  2.5rem;
  --gap-xl:  4rem;
  --gap-2xl: 6rem;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 32px;
  --r-full: 999px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,.12);
  --shadow-md:  0 8px 30px rgba(0,0,0,.18);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.28);
  --shadow-brand: 0 8px 32px rgba(108,99,255,.35);
  --shadow-cyan:  0 8px 32px rgba(0,212,255,.25);

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms ease;

  /* Nav height */
  --nav-h: 70px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: #1a1a3a;
  line-height: 1.6;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.2;
  font-weight: 800;
  color: var(--dark-2);
}
.hero h1, .dark-section h1,
.hero h2, .dark-section h2,
.hero h3, .dark-section h3 { color: var(--white); }

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.15rem; font-weight: 700; }
p  { color: #4a4a6a; line-height: 1.75; }

.text-gradient {
  background: linear-gradient(135deg, var(--brand) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-white { color: var(--white) !important; }
.text-muted  { color: rgba(255,255,255,.65) !important; }
.text-center { text-align: center; }
.text-sm { font-size: .875rem; }
.text-lg { font-size: 1.125rem; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-lg { max-width: 1400px; }
.container-sm { max-width: 800px; }

.section { padding: var(--gap-2xl) 0; }
.section-sm { padding: var(--gap-xl) 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap-md); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-sm { gap: var(--gap-sm); }
.gap-md { gap: var(--gap-md); }
.gap-lg { gap: var(--gap-lg); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--t-base), box-shadow var(--t-base);
}
.nav.scrolled {
  background: rgba(8,8,24,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.nav-logo::before {
  content: "";
  width: 1.5em;
  height: 1.5em;
  flex-shrink: 0;
  background: url("favicon.svg") no-repeat center / contain;
}
.nav-logo span { color: var(--cyan); }
.nav-logo .logo-dot {
  width: 8px; height: 8px;
  background: var(--brand);
  border-radius: 50%;
  display: inline-block;
  margin-left: 2px;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .7; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--t-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--cyan);
  transition: width var(--t-base);
  border-radius: 2px;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: .3rem;
  cursor: pointer;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--t-fast);
}
.nav-dropdown-toggle:hover { color: var(--white); }
.nav-dropdown-toggle svg { transition: transform var(--t-base); }
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  padding: .75rem;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: all var(--t-base);
  box-shadow: var(--shadow-lg);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .75rem;
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
  color: rgba(255,255,255,.85) !important;
  font-size: .875rem !important;
}
.nav-dropdown-item::after { display: none !important; }
.nav-dropdown-item:hover { background: rgba(255,255,255,.08); color: var(--white) !important; }
.nav-dropdown-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--t-base);
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.nav-mobile {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--dark-2);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-base);
  z-index: 999;
}
.nav-mobile.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.nav-mobile a {
  display: block;
  padding: .75rem 0;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile .mobile-cta { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.6rem;
  border-radius: var(--r-full);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--t-base);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: .01em;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(108,99,255,.45);
}

.btn-glow {
  background: linear-gradient(135deg, var(--brand) 0%, var(--cyan) 100%);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(108,99,255,.30);
}
.btn-glow:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(108,99,255,.45);
}

.btn-orange {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(255,107,53,.3);
}
.btn-orange:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(255,107,53,.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.35);
}
.btn-outline:hover:not(:disabled) {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.6);
}

.btn-outline-brand {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-outline-brand:hover:not(:disabled) {
  background: var(--brand);
  color: var(--white);
}

.btn-ghost {
  background: rgba(255,255,255,.1);
  color: var(--white);
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,.18); }

.btn-lg { padding: .9rem 2.2rem; font-size: 1rem; }
.btn-sm { padding: .45rem 1.1rem; font-size: .8rem; }
.btn-xl { padding: 1.1rem 2.8rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Badge / Pill ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .85rem;
  border-radius: var(--r-full);
  font-size: .78rem;
  font-weight: 700;
  font-family: var(--font-head);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-brand { background: rgba(108,99,255,.15); color: var(--brand); border: 1px solid rgba(108,99,255,.3); }
.badge-cyan  { background: rgba(0,212,255,.12); color: var(--cyan); border: 1px solid rgba(0,212,255,.25); }
.badge-success { background: rgba(0,214,143,.15); color: var(--success); border: 1px solid rgba(0,214,143,.3); }
.badge-warning { background: rgba(255,183,3,.15); color: var(--warning); border: 1px solid rgba(255,183,3,.3); }
.badge-error { background: rgba(230,57,70,.15); color: var(--error); border: 1px solid rgba(230,57,70,.3); }
.badge-free { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.15); }

/* ---------- Section Labels ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--brand);
}
.section-label .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse-dot 2s infinite;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  background: var(--dark-1);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(108,99,255,.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(0,212,255,.15) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 60% 20%, rgba(255,107,53,.1) 0%, transparent 50%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108,99,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(108,99,255,.15);
  border: 1px solid rgba(108,99,255,.3);
  border-radius: var(--r-full);
  padding: .35rem 1rem;
  font-size: .8rem;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--brand-light);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-eyebrow .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(0,214,143,.5); }
  70% { box-shadow: 0 0 0 8px rgba(0,214,143,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,214,143,0); }
}

.hero-title { margin-bottom: 1.25rem; }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.7);
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.hero-stat-val {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.hero-stat-val span { color: var(--cyan); }
.hero-stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  margin-top: .25rem;
}

/* Hero visual */
.hero-visual {
  position: relative;
}
.hero-card {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--cyan));
}
.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.hero-card-dots {
  display: flex;
  gap: 6px;
}
.hero-card-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.hero-card-dots span:nth-child(1) { background: #FF5F57; }
.hero-card-dots span:nth-child(2) { background: #FFBD2E; }
.hero-card-dots span:nth-child(3) { background: #28CA41; }

.tool-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .75rem;
  border-radius: 10px;
  margin-bottom: .5rem;
  transition: background var(--t-fast);
  cursor: default;
}
.tool-row:hover { background: rgba(255,255,255,.06); }
.tool-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.tool-row-info { flex: 1; }
.tool-row-name {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.tool-row-usage {
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  margin-top: 2px;
}
.tool-row-bar-wrap {
  flex: 1;
  max-width: 80px;
  height: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  overflow: hidden;
}
.tool-row-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 1.5s ease;
}

/* ---------- Dark section ---------- */
.dark-section {
  background: var(--dark-2);
  color: var(--white);
}
.dark-section p { color: rgba(255,255,255,.7); }
.dark-section h2, .dark-section h3, .dark-section h4 { color: var(--white); }

/* Gradient section */
.gradient-section {
  background: linear-gradient(135deg, var(--dark-1) 0%, var(--dark-3) 50%, var(--dark-1) 100%);
  position: relative;
  overflow: hidden;
}
.gradient-section::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(108,99,255,.15) 0%, transparent 70%);
  pointer-events: none;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-2);
  transition: all var(--t-base);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(108,99,255,.2);
}

.card-dark {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: all var(--t-base);
}
.card-dark:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.14);
  transform: translateY(-4px);
}

.card-glass {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  padding: 2rem;
}

/* Feature card */
.feature-card {
  background: var(--white);
  border: 1px solid var(--light-2);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--t-base);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.feature-card h4 { margin-bottom: .5rem; color: var(--dark-2); }
.feature-card p { font-size: .9rem; color: #5a5a7a; }

/* Tool card (on homepage grid) */
.tool-card {
  background: var(--white);
  border: 1px solid var(--light-2);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.tool-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  opacity: 0;
  transition: opacity var(--t-base);
}
.tool-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tool-card:hover::after { opacity: 1; }
.tool-card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}
.tool-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.tool-card p { font-size: .875rem; color: #5a5a7a; margin-bottom: 1.25rem; }
.tool-card-link {
  font-size: .85rem;
  font-weight: 700;
  font-family: var(--font-head);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: gap var(--t-fast);
}
.tool-card:hover .tool-card-link { gap: .6rem; }

/* Tool colours applied */
.tool-email    .tool-card-icon, .tool-email    .feature-icon { background: rgba(0,180,216,.12); }
.tool-outreach .tool-card-icon, .tool-outreach .feature-icon { background: rgba(168,85,247,.12); }
.tool-sms      .tool-card-icon, .tool-sms      .feature-icon { background: rgba(16,185,129,.12); }
.tool-review   .tool-card-icon, .tool-review   .feature-icon { background: rgba(245,158,11,.12); }
.tool-proof    .tool-card-icon, .tool-proof    .feature-icon { background: rgba(239,68,68,.12); }
.tool-lead     .tool-card-icon, .tool-lead     .feature-icon { background: rgba(255,107,53,.12); }

.tool-email    .tool-card::after, .tool-email    .tool-card-link { color: var(--tool-email); background: linear-gradient(90deg, var(--tool-email), var(--cyan)); }
.tool-outreach .tool-card::after, .tool-outreach .tool-card-link { color: var(--tool-outreach); background: linear-gradient(90deg, var(--tool-outreach), var(--brand)); }
.tool-sms      .tool-card::after, .tool-sms      .tool-card-link { color: var(--tool-sms); background: linear-gradient(90deg, var(--tool-sms), #34D399); }
.tool-review   .tool-card::after, .tool-review   .tool-card-link { color: var(--tool-review); background: linear-gradient(90deg, var(--tool-review), #FCD34D); }
.tool-proof    .tool-card::after, .tool-proof    .tool-card-link { color: var(--tool-proof); background: linear-gradient(90deg, var(--tool-proof), #F87171); }
.tool-lead     .tool-card::after, .tool-lead     .tool-card-link { color: var(--tool-lead); background: linear-gradient(90deg, var(--tool-lead), var(--warning)); }

/* Fix link colour for tool-card-link (reset background for text) */
.tool-card-link { background: none !important; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--light-2);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  transition: all var(--t-base);
  position: relative;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.pricing-card.featured {
  background: linear-gradient(160deg, var(--dark-2) 0%, var(--dark-3) 100%);
  border-color: var(--brand);
  box-shadow: var(--shadow-brand);
  transform: scale(1.03);
}
.pricing-card.featured:hover { transform: scale(1.03) translateY(-4px); }
.pricing-card.featured h3,
.pricing-card.featured .pricing-price,
.pricing-card.featured .pricing-period { color: var(--white); }
.pricing-card.featured p { color: rgba(255,255,255,.65); }
.pricing-card.featured li { color: rgba(255,255,255,.85); }

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  color: var(--white);
  font-size: .72rem;
  font-weight: 800;
  font-family: var(--font-head);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: var(--r-full);
  white-space: nowrap;
}

.pricing-name {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .5rem;
}
.pricing-card.featured .pricing-name { color: var(--cyan); }

.pricing-price {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  color: var(--dark-2);
}
.pricing-price sup { font-size: 1.3rem; vertical-align: top; margin-top: .4rem; }
.pricing-period {
  font-size: .85rem;
  color: #7a7a9a;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.pricing-features { margin-bottom: 2rem; }
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .5rem 0;
  font-size: .875rem;
  color: #4a4a6a;
  border-bottom: 1px solid var(--light-2);
}
.pricing-card.featured .pricing-features li { border-color: rgba(255,255,255,.08); }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li .check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(0,214,143,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
  font-size: .7rem;
  color: var(--success);
}
.pricing-features li .cross {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(230,57,70,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
  font-size: .7rem;
  color: var(--error);
  opacity: .6;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  font-family: var(--font-head);
  color: #2a2a4a;
  margin-bottom: .4rem;
}
.form-input {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--light-2);
  border-radius: var(--r-md);
  font-size: .9rem;
  background: var(--white);
  color: var(--dark-2);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
.form-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(108,99,255,.12);
}
.form-input.error { border-color: var(--error); }
.form-error {
  font-size: .78rem;
  color: var(--error);
  margin-top: .35rem;
  font-weight: 500;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236C63FF' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ---------- CAPTCHA ---------- */
.captcha-wrap {
  background: #F8F9FA;
  border: 2px solid #E0E0E0;
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0;
  transition: border-color var(--t-base);
}
.captcha-wrap.verified { border-color: var(--success); background: rgba(0,214,143,.04); }
.captcha-checkbox {
  width: 24px; height: 24px;
  border: 2px solid #BDBDBD;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transition: all var(--t-base);
  flex-shrink: 0;
}
.captcha-checkbox.checking { border-color: var(--brand); animation: spin .8s linear infinite; }
.captcha-checkbox.done { background: var(--success); border-color: var(--success); color: white; font-size: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
.captcha-label { font-size: .875rem; color: #4a4a4a; margin-left: .75rem; flex: 1; }
.captcha-brand { font-size: .65rem; color: #9e9e9e; text-align: right; }
.captcha-brand strong { display: block; font-size: .7rem; }
.captcha-brand span { display: block; color: #bdbdbd; }

/* Math challenge modal */
.captcha-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-base);
}
.captcha-modal.open { opacity: 1; visibility: visible; }
.captcha-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
}
.captcha-modal-box {
  position: relative;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2.5rem 2rem;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  z-index: 1;
  transform: scale(.95);
  transition: transform var(--t-base);
}
.captcha-modal.open .captcha-modal-box { transform: scale(1); }
.captcha-modal-box h3 { margin-bottom: .5rem; font-size: 1.2rem; }
.captcha-modal-box p { font-size: .875rem; margin-bottom: 1.5rem; }
.captcha-math {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand);
  margin-bottom: 1.25rem;
}
.captcha-answer {
  width: 100%;
  padding: .75rem;
  border: 2px solid var(--light-2);
  border-radius: var(--r-md);
  font-size: 1.2rem;
  text-align: center;
  font-weight: 700;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color var(--t-fast);
}
.captcha-answer:focus { border-color: var(--brand); }
.captcha-error-msg { color: var(--error); font-size: .8rem; margin-top: .5rem; display: none; }

/* ---------- Auth Modal ---------- */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-base);
}
.auth-modal.open { opacity: 1; visibility: visible; }
.auth-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
}
.auth-modal-box {
  position: relative;
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 2.5rem 2rem;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  z-index: 1;
  transform: scale(.95);
  transition: transform var(--t-base);
  max-height: 90vh;
  overflow-y: auto;
}
.auth-modal.open .auth-modal-box { transform: scale(1); }
.auth-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--light);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #4a4a6a;
  transition: background var(--t-fast);
}
.auth-close:hover { background: var(--light-2); }

.auth-tabs {
  display: flex;
  background: var(--light);
  border-radius: var(--r-full);
  padding: 4px;
  margin-bottom: 2rem;
}
.auth-tab {
  flex: 1;
  padding: .6rem;
  border-radius: var(--r-full);
  border: none;
  background: transparent;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .875rem;
  cursor: pointer;
  transition: all var(--t-base);
  color: #7a7a9a;
}
.auth-tab.active {
  background: var(--white);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.plan-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.plan-option {
  border: 2px solid var(--light-2);
  border-radius: var(--r-md);
  padding: .75rem;
  cursor: pointer;
  transition: all var(--t-fast);
  text-align: center;
}
.plan-option:hover { border-color: var(--brand-light); }
.plan-option.selected { border-color: var(--brand); background: rgba(108,99,255,.06); }
.plan-option-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .875rem;
  color: var(--dark-2);
}
.plan-option-price {
  font-size: .78rem;
  color: #7a7a9a;
  margin-top: 2px;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}
.step-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 29px;
  top: 60px;
  bottom: -2.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand), transparent);
}
.step-number {
  counter-increment: step;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: var(--shadow-brand);
}
.step-content h4 { margin-bottom: .4rem; padding-top: .75rem; }
.step-content p { font-size: .9rem; }

/* ---------- Stats / Counters ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat-item {
  background: var(--dark-3);
  padding: 2.5rem 2rem;
  text-align: center;
}
.stat-value {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: .35rem;
}
.stat-value span { color: var(--cyan); }
.stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  font-weight: 500;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--light-2);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-2);
  text-align: left;
}
.faq-question:hover { color: var(--brand); }
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all var(--t-base);
  color: var(--brand);
}
.faq-item.open .faq-icon { background: var(--brand); color: white; transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.faq-answer-inner { padding-bottom: 1.25rem; }
.faq-answer-inner p { font-size: .925rem; color: #5a5a7a; line-height: 1.75; }

/* ---------- Comparison Table ---------- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: .875rem;
}
.compare-table th { font-family: var(--font-head); font-weight: 800; background: var(--dark-2); color: var(--white); }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; }
.compare-table td { border-bottom: 1px solid var(--light-2); color: #4a4a6a; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--light); }
.compare-table .featured-col { background: rgba(108,99,255,.06); }
.compare-table .featured-col th { background: var(--brand); }
.check-cell { color: var(--success); font-size: 1.1rem; }
.cross-cell { color: rgba(100,100,120,.3); font-size: 1.1rem; }

/* ---------- Notification / Toast ---------- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--dark-2);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--r-md);
  font-size: .875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--t-base);
  display: flex;
  align-items: center;
  gap: .75rem;
  max-width: 340px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 4px solid var(--success); }
.toast.error   { border-left: 4px solid var(--error); }
.toast.info    { border-left: 4px solid var(--brand); }

/* ---------- Tier Lock Banner ---------- */
.tier-lock {
  background: linear-gradient(135deg, rgba(108,99,255,.08), rgba(0,212,255,.06));
  border: 2px dashed rgba(108,99,255,.3);
  border-radius: var(--r-lg);
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}
.tier-lock .lock-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.tier-lock h4 { color: var(--dark-2); margin-bottom: .5rem; }
.tier-lock p { font-size: .875rem; color: #5a5a7a; margin-bottom: 1.25rem; }

/* ---------- Dashboard ---------- */
.dashboard-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}
.dashboard-sidebar {
  background: var(--dark-2);
  padding: 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.dashboard-main {
  background: var(--light);
  padding: 2rem;
}
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1rem;
  border-radius: var(--r-sm);
  color: rgba(255,255,255,.65);
  font-size: .875rem;
  font-weight: 600;
  font-family: var(--font-head);
  transition: all var(--t-fast);
  cursor: pointer;
  margin-bottom: .25rem;
}
.dash-nav-item:hover, .dash-nav-item.active {
  background: rgba(255,255,255,.1);
  color: var(--white);
}
.dash-nav-item.active { background: var(--brand); color: white; }
.dash-icon { font-size: 1.1rem; }

.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.dash-stat {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 1.5rem;
  border: 1px solid var(--light-2);
}
.dash-stat-val {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  color: var(--dark-2);
}
.dash-stat-label { font-size: .8rem; color: #7a7a9a; font-weight: 500; }

/* Progress bars */
.progress-wrap { background: var(--light-2); border-radius: var(--r-full); height: 8px; overflow: hidden; }
.progress-bar {
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--brand), var(--cyan));
  transition: width 1s ease;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 50%, #3730A3 100%);
  border-radius: var(--r-xl);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(0,212,255,.12);
  pointer-events: none;
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto 2rem; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--dark-1);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 2rem;
}
.footer-brand p { color: rgba(255,255,255,.5); font-size: .875rem; margin-top: 1rem; max-width: 280px; }
.footer-col h5 {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,.65);
  font-size: .875rem;
  padding: .3rem 0;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Scroll animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }

/* Floating shapes */
.float-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: .15;
  filter: blur(60px);
  animation: floatAnim 8s ease-in-out infinite;
}
@keyframes floatAnim {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(5deg); }
  66% { transform: translateY(10px) rotate(-3deg); }
}

/* Typing cursor */
.typing-cursor::after {
  content: '|';
  animation: blink .75s step-end infinite;
  color: var(--cyan);
}
@keyframes blink { 50% { opacity: 0; } }

/* Gradient border card */
.gradient-border {
  position: relative;
  border-radius: var(--r-lg);
  padding: 2px;
  background: linear-gradient(135deg, var(--brand), var(--cyan), var(--brand));
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.gradient-border-inner {
  background: var(--dark-3);
  border-radius: calc(var(--r-lg) - 2px);
  padding: 2rem;
}

/* ---------- Service hero (inner pages) ---------- */
.service-hero {
  min-height: 60vh;
  background: var(--dark-1);
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
.service-hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 0 4rem;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,.4);
}
.breadcrumb a { color: rgba(255,255,255,.5); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,.6); }

/* ---------- Tier breakdown on service pages ---------- */
.tier-breakdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.tier-item {
  background: var(--white);
  border: 2px solid var(--light-2);
  border-radius: var(--r-md);
  padding: 1.25rem;
  text-align: center;
  transition: all var(--t-base);
}
.tier-item:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.tier-item.active { border-color: var(--brand); background: rgba(108,99,255,.04); }
.tier-name {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand);
  margin-bottom: .4rem;
}
.tier-price {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--dark-2);
  line-height: 1;
}
.tier-limit {
  font-size: .75rem;
  color: #7a7a9a;
  margin: .5rem 0 .75rem;
}
.tier-features { font-size: .78rem; color: #5a5a7a; text-align: left; }
.tier-features li { padding: .25rem 0; display: flex; align-items: center; gap: .4rem; }
.tier-features li::before { content: '✓'; color: var(--success); font-size: .7rem; flex-shrink: 0; }

/* ---------- Sign Up Section ---------- */
.signup-section {
  background: var(--light);
  border-radius: var(--r-xl);
  padding: 3rem;
}
.signup-section h2 { margin-bottom: .5rem; }
.signup-section p { margin-bottom: 2rem; }

/* Honeypot */
.honeypot { display: none !important; }

/* Auth modal logo — override white on white */
.auth-modal-box .nav-logo { color: var(--dark-2); }
.auth-modal-box .nav-logo .logo-dot { background: var(--brand); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tier-breakdown { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .hero .grid-2 { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { display: none; }
  .dashboard-main { padding: 1.5rem; }
  .dash-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: scale(1); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .hero-stats { flex-direction: column; gap: 1.25rem; }
  .tier-breakdown { grid-template-columns: 1fr 1fr; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .section { padding: 4rem 0; }
  .signup-section { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; }
  .tier-breakdown { grid-template-columns: 1fr; }
  .dash-stat-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  .pricing-price { font-size: 2.2rem; }
  .plan-selector { grid-template-columns: 1fr 1fr; }
}

/* ---------- Service-hero headline (was inheriting dark colour on dark bg) ---------- */
.service-hero h1 { color: var(--white); }

/* ---------- Adaptive nav: white bar + dark text when over a light section ---------- */
.nav.scrolled.nav-light {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 14px rgba(0,0,0,.10);
}
.nav-light .nav-logo { color: var(--dark-2); }
.nav-light .nav-logo span { color: var(--cyan-dark); }
.nav-light .nav-links a,
.nav-light .nav-dropdown-toggle { color: #2a2a4a; }
.nav-light .nav-links a:hover,
.nav-light .nav-dropdown-toggle:hover { color: var(--brand); }
.nav-light .btn-ghost { background: rgba(15,15,40,.06); color: var(--dark-2); }
.nav-light .btn-ghost:hover { background: rgba(15,15,40,.12); }
.nav-light .nav-hamburger span { background: var(--dark-2); }

/* ---------- App shell (dashboard + dedicated tool pages) ---------- */
.dash-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.dash-sidebar { background: var(--dark-2); padding: 1.5rem 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid rgba(255,255,255,.06); }
.dash-main { background: var(--light); min-height: 100vh; }
.dash-topbar { background: var(--white); border-bottom: 1px solid var(--light-2); padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; }
.dash-content { padding: 2rem; }
.app-tool-card { background: var(--white); border: 1px solid var(--light-2); border-radius: var(--r-lg); padding: 2rem; max-width: 920px; }
@media (max-width: 900px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .dash-content { padding: 1.25rem; }
}
