/* ==========================================================================
   THE POCKET INFO — Design System (v3.0)
   Component-based, token-driven. Maps 1:1 to GenerateBlocks globals.
   ========================================================================== */

/* ----------  Design Tokens  ---------- */
:root {
  /* Brand colors */
  --c-primary: #F5A623;
  --c-primary-dark: #D4891A;
  --c-secondary: #112040;
  --c-accent: #FFC85A;
  --c-accent-dark: #E0A930;
  --c-dark: #112040;
  --c-dark-2: #1A2E55;
  --c-neutral: #F8FAFC;
  --c-neutral-2: #F1F5F9;
  --c-light: #FFFFFF;

  /* Text */
  --c-text: #112040;
  --c-text-muted: #3A4A6B;
  --c-text-soft: #6B7A99;
  --c-text-inverse: #F8FAFC;

  /* Borders & surfaces */
  --c-border: #E2E8F0;
  --c-border-strong: #CBD5E1;
  --c-card: #FFFFFF;

  /* Gradients */
  --g-brand: linear-gradient(135deg, #F5A623 0%, #FFC85A 100%);
  --g-brand-soft: linear-gradient(135deg, rgba(245,166,35,0.10) 0%, rgba(255,200,90,0.10) 100%);
  --g-accent: linear-gradient(135deg, #112040 0%, #1A2E55 100%);
  --g-dark: linear-gradient(160deg, #112040 0%, #1A2E55 100%);

  /* Typography */
  --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-h1: clamp(2rem, 1.3rem + 2.8vw, 3rem);       /* 32 -> 48 */
  --fs-h2: clamp(1.625rem, 1.2rem + 1.7vw, 2.25rem); /* 26 -> 36 */
  --fs-h3: clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem);  /* 20 -> 24 */
  --fs-lead: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.6;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.08);
  --sh-md: 0 4px 12px rgba(15,23,42,0.08), 0 2px 4px rgba(15,23,42,0.04);
  --sh-lg: 0 12px 32px rgba(15,23,42,0.12), 0 4px 8px rgba(15,23,42,0.06);
  --sh-glow: 0 0 0 4px rgba(245,166,35,0.18);
  --sh-brand: 0 8px 24px rgba(245,166,35,0.32);

  /* Layout */
  --container: 1200px;
  --container-narrow: 820px;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);

  /* Header */
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.15s;
  --t-base: 0.25s;
  --t-slow: 0.4s;
}

/* ----------  Reset & Base  ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.no-smooth { scroll-behavior: auto; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--c-text);
  background: var(--c-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  line-height: var(--lh-snug);
  font-weight: 600;
  color: var(--c-dark);
  letter-spacing: -0.02em;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { color: var(--c-text-muted); }
a { color: var(--c-primary); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--c-primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.25rem; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 2px; border-radius: 4px; }

::selection { background: var(--c-primary); color: #fff; }

/* ----------  Layout helpers  ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(3rem, 1.5rem + 6vw, 6rem); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem); }
.section--neutral { background: var(--c-neutral); }
.section--dark { background: var(--g-dark); color: var(--c-text-inverse); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(248,250,252,0.78); }
.section--gradient { background: var(--g-brand-soft); }

.section-head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head .eyebrow { margin-bottom: 0.75rem; }

/* eyebrow / kicker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary);
}
.eyebrow--accent { color: var(--c-accent); }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--center::before { display: none; }
.section-head .eyebrow { justify-content: center; }

.lead { font-size: var(--fs-lead); color: var(--c-text-muted); line-height: 1.55; }
.section--dark .lead { color: rgba(248,250,252,0.82); }

.text-center { text-align: center; }

/* ----------  Buttons  ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.875rem 1.5rem;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), background var(--t-base) var(--ease), color var(--t-base) var(--ease);
  min-height: 44px;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn--primary { background: var(--g-brand); color: #fff; box-shadow: var(--sh-brand); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(245,166,35,0.42); }
.btn--accent { background: var(--g-accent); color: #fff; box-shadow: 0 8px 24px rgba(17,32,64,0.30); }
.btn--accent:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(17,32,64,0.35); }
.btn--ghost { background: transparent; color: var(--c-primary); border-color: var(--c-border-strong); }
.btn--ghost:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--c-dark); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); color: var(--c-dark); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn--outline-light:hover { background: rgba(255,255,255,0.10); color: #fff; transform: translateY(-2px); }
.btn--lg { padding: 1.05rem 1.85rem; font-size: 1rem; }
.btn--sm { padding: 0.6rem 1rem; font-size: 0.8125rem; min-height: 38px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.btn-row--center { justify-content: center; }

/* ----------  Header  ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--c-border); box-shadow: var(--sh-sm); }
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--c-dark);
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--c-dark); }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--g-brand);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-family: var(--font-head);
  box-shadow: var(--sh-brand);
  flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand small { display: block; font-size: 0.6875rem; font-weight: 500; color: var(--c-text-soft); letter-spacing: 0.02em; }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  color: var(--c-text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav a:hover { color: var(--c-primary); background: rgba(245,166,35,0.06); }
.nav .has-sub { position: relative; }
.nav .has-sub > a::after { content: "▾"; font-size: 0.7em; margin-left: 0.25rem; opacity: 0.6; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.header-cta-compact { display: none; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: none;
  background: transparent;
  border-radius: var(--r-sm);
  align-items: center; justify-content: center;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--c-dark); position: relative; transition: var(--t-base); }
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--c-dark);
  transition: var(--t-base);
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-toggle.is-open span { background: transparent; }
.menu-toggle.is-open span::before { transform: rotate(45deg); top: 0; }
.menu-toggle.is-open span::after { transform: rotate(-45deg); top: 0; }

/* ----------  Hero  ---------- */
.hero { position: relative; padding-top: clamp(2.5rem, 1rem + 5vw, 5rem); padding-bottom: clamp(3rem, 1.5rem + 5vw, 6rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 90% 0%, rgba(17,32,64,0.12), transparent 60%),
    radial-gradient(50% 40% at 0% 10%, rgba(245,166,35,0.10), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 .grad { background: var(--g-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .lead { margin-bottom: 1.75rem; max-width: 540px; }
.hero .btn-row { margin-bottom: 1.75rem; }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; font-size: var(--fs-sm); color: var(--c-text-soft); }
.hero-trust .stars { color: #F59E0B; letter-spacing: 1px; }
.hero-trust .dot { width: 4px; height: 4px; background: var(--c-border-strong); border-radius: 50%; }

/* dashboard mockup */
.hero-visual { position: relative; }
.dashboard-mock {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  border: 1px solid var(--c-border);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
}
.dashboard-mock .dm-head { display: flex; gap: 6px; padding: 12px 16px; background: var(--c-neutral); border-bottom: 1px solid var(--c-border); }
.dashboard-mock .dm-head i { width: 11px; height: 11px; border-radius: 50%; background: var(--c-border-strong); display: block; }
.dashboard-mock .dm-head i:nth-child(1) { background: #F87171; }
.dashboard-mock .dm-head i:nth-child(2) { background: #FBBF24; }
.dashboard-mock .dm-head i:nth-child(3) { background: #34D399; }
.dashboard-mock .dm-body { padding: 1.25rem; }
.dm-score-row { display: flex; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--c-neutral-2); margin-bottom: 1rem; }
.dm-score-circle { width: 76px; height: 76px; border-radius: 50%; background: conic-gradient(var(--c-accent) 0% 96%, var(--c-neutral-2) 96% 100%); display: grid; place-items: center; flex-shrink: 0; position: relative; }
.dm-score-circle::after { content: ""; position: absolute; inset: 7px; background: #fff; border-radius: 50%; }
.dm-score-circle span { position: relative; z-index: 1; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--c-accent-dark); }
.dm-score-meta strong { display: block; font-family: var(--font-head); font-size: 0.9375rem; }
.dm-score-meta small { color: var(--c-text-soft); font-size: var(--fs-sm); }
.dm-bars { display: grid; gap: 0.6rem; }
.dm-bar { display: grid; grid-template-columns: 90px 1fr 40px; align-items: center; gap: 0.75rem; font-size: var(--fs-sm); }
.dm-bar .track { height: 8px; background: var(--c-neutral-2); border-radius: 4px; overflow: hidden; }
.dm-bar .fill { height: 100%; border-radius: 4px; background: var(--g-brand); }
.dm-bar .val { text-align: right; color: var(--c-text-soft); font-variant-numeric: tabular-nums; }
.dm-spark { margin-top: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.dm-spark .mini { background: var(--c-neutral); border-radius: var(--r-sm); padding: 0.75rem; }
.dm-spark .mini b { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--c-dark); }
.dm-spark .mini small { color: var(--c-text-soft); font-size: var(--fs-xs); }
.dm-spark .delta { color: var(--c-accent); font-weight: 600; }

.hero-badge {
  position: absolute; top: -14px; left: -18px;
  background: #fff; border: 1px solid var(--c-border); box-shadow: var(--sh-md);
  border-radius: var(--r-md); padding: 0.65rem 0.9rem;
  display: flex; align-items: center; gap: 0.6rem;
  font-size: var(--fs-sm); font-weight: 600; color: var(--c-dark);
  z-index: 2;
}
.hero-badge .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 0 rgba(245,166,35,0.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(245,166,35,0); } 100% { box-shadow: 0 0 0 0 rgba(245,166,35,0); } }

.hero-badge-2 {
  position: absolute; bottom: -16px; right: -10px;
  background: var(--c-dark); color: #fff;
  border-radius: var(--r-md); padding: 0.65rem 0.95rem;
  display: flex; align-items: center; gap: 0.6rem;
  font-size: var(--fs-sm); font-weight: 600;
  box-shadow: var(--sh-lg); z-index: 2;
}
.hero-badge-2 .num { font-family: var(--font-head); font-size: 1.15rem; color: var(--c-accent); }

/* ----------  Trust marquee  ---------- */
.trust-bar { padding-block: 1.75rem; border-block: 1px solid var(--c-border); background: var(--c-neutral); }
.trust-bar .lead-line { text-align: center; font-size: var(--fs-sm); color: var(--c-text-soft); margin-bottom: 1.25rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.marquee { display: flex; gap: 3rem; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 3rem; flex-shrink: 0; min-width: 100%; animation: marquee 28s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.logo-chip {
  font-family: var(--font-head); font-weight: 600; font-size: 1.125rem;
  color: var(--c-text-soft); white-space: nowrap; opacity: 0.75;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.logo-chip svg { width: 20px; height: 20px; opacity: 0.7; }

/* ----------  Stat counters  ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stat-card {
  text-align: center;
  padding: 1.75rem 1rem;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--c-border);
}
.stat-num { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.85rem, 1.2rem + 2vw, 2.6rem); background: var(--g-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.stat-num .suffix { -webkit-text-fill-color: var(--c-primary); }
.stat-label { margin-top: 0.5rem; font-size: var(--fs-sm); color: var(--c-text-soft); font-weight: 500; }

/* ----------  Tri-fold (Build / Rank / Automate)  ---------- */
.trifold {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: tri;
}
.trifold-card {
  position: relative;
  padding: 2rem 1.75rem 1.75rem;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--c-border);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base);
}
.trifold-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: rgba(245,166,35,0.35); }
.trifold-card .ti { counter-increment: tri; }
.trifold-card .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 1.1rem; }
.trifold-card .ico svg { width: 26px; height: 26px; }
.trifold-card:nth-child(1) .ico { background: var(--g-brand); }
.trifold-card:nth-child(2) .ico { background: var(--g-accent); }
.trifold-card:nth-child(3) .ico { background: linear-gradient(135deg, #4F46E5, #7C3AED); }
.trifold-card h3 { margin-bottom: 0.5rem; }
.trifold-card .ti::before { content: "0" counter(tri); display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 0.8125rem; color: var(--c-primary); margin-bottom: 0.75rem; letter-spacing: 0.06em; }
.trifold-card .tag { display: inline-block; margin-top: 1rem; font-size: var(--fs-sm); font-weight: 600; color: var(--c-primary); }

/* ----------  Service cards  ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: flex; flex-direction: column;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base);
  overflow: hidden;
}
.service-card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--g-brand); transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: rgba(245,166,35,0.30); }
.service-card:hover::after { transform: scaleX(1); }
.service-card .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--g-brand-soft); color: var(--c-primary); margin-bottom: 1.1rem; }
.service-card .ico svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.1875rem; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.9375rem; margin-bottom: 1rem; }
.service-card ul { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 0.4rem; }
.service-card ul li { font-size: var(--fs-sm); color: var(--c-text-muted); display: flex; align-items: center; gap: 0.5rem; }
.service-card ul li::before { content: "✓"; color: var(--c-accent); font-weight: 700; }
.service-card .link { margin-top: auto; font-weight: 600; font-size: 0.9375rem; color: var(--c-primary); display: inline-flex; align-items: center; gap: 0.35rem; }
.service-card .link::after { content: "→"; transition: transform var(--t-base); }
.service-card:hover .link::after { transform: translateX(3px); }

/* ----------  Comparison table  ---------- */
.compare-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--c-border); box-shadow: var(--sh-sm); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; background: #fff; min-width: 640px; }
.compare th, .compare td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--c-border); font-size: 0.9375rem; }
.compare thead th { background: var(--c-neutral); font-family: var(--font-head); font-size: 0.9375rem; }
.compare thead th.us { background: var(--g-brand); color: #fff; border-radius: 12px 12px 0 0; }
.compare tbody td:first-child { font-weight: 600; color: var(--c-dark); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--c-accent); font-weight: 700; }
.compare .no { color: var(--c-text-soft); }
.compare .partial { color: #D97706; font-weight: 600; }
.compare tbody tr:hover td { background: rgba(245,166,35,0.03); }
.compare .yes::before { content: "✓ "; }
.compare .no::before { content: "✕ "; opacity: 0.5; }
.compare .partial::before { content: "~ "; }

/* ----------  Process  ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; position: relative; }
.process-step { counter-increment: step; position: relative; padding: 1.5rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--c-border); }
.process-step .num { font-family: var(--font-head); font-weight: 700; font-size: 0.8125rem; color: var(--c-primary); margin-bottom: 0.5rem; letter-spacing: 0.06em; }
.process-step .num::before { content: "STEP " counter(step, decimal-leading-zero); }
.process-step h3 { font-size: 1.0625rem; margin-bottom: 0.4rem; }
.process-step p { font-size: 0.9rem; }
.process-step .pill { display: inline-block; margin-top: 0.85rem; font-size: var(--fs-xs); font-weight: 600; color: var(--c-accent-dark); background: rgba(255,200,90,0.15); padding: 0.25rem 0.6rem; border-radius: var(--r-pill); }

/* ----------  Portfolio / Cards  ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.proj-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--c-border);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  display: block;
  color: inherit;
}
.proj-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); color: inherit; }
.proj-thumb { position: relative; aspect-ratio: 16/9; background: var(--c-dark); overflow: hidden; }
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.proj-card:hover .proj-thumb img { transform: scale(1.06); }
.proj-thumb .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(15,23,42,0) 30%, rgba(15,23,42,0.55));
  color: #fff;
}
.proj-thumb .play svg { width: 52px; height: 52px; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); transition: transform var(--t-base); }
.proj-card:hover .play svg { transform: scale(1.1); }
.proj-thumb .cat { position: absolute; top: 0.6rem; left: 0.6rem; font-size: var(--fs-xs); font-weight: 600; background: rgba(15,23,42,0.75); color: #fff; padding: 0.25rem 0.6rem; border-radius: var(--r-pill); backdrop-filter: blur(6px); }
.proj-thumb .views { position: absolute; bottom: 0.6rem; right: 0.6rem; font-size: var(--fs-xs); font-weight: 600; background: rgba(15,23,42,0.78); color: #fff; padding: 0.25rem 0.55rem; border-radius: var(--r-sm); }
.proj-body { padding: 1rem 1.1rem 1.2rem; }
.proj-body h3 { font-size: 1rem; line-height: 1.35; margin-bottom: 0.35rem; }
.proj-body p { font-size: var(--fs-sm); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; }
.filter-btn {
  border: 1px solid var(--c-border-strong);
  background: #fff;
  color: var(--c-text-muted);
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--t-fast);
  min-height: 38px;
}
.filter-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.filter-btn.is-active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* ----------  Case study (featured)  ---------- */
.case-study { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center; }
.case-visual { border-radius: var(--r-lg); overflow: hidden; background: var(--g-dark); padding: 2rem; color: #fff; position: relative; }
.case-visual .label { font-size: var(--fs-sm); color: rgba(248,250,252,0.7); margin-bottom: 0.25rem; }
.case-visual .client { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 1.5rem; }
.case-metric { display: flex; align-items: baseline; gap: 1rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,0.12); }
.case-metric:first-of-type { border-top: 0; }
.case-metric .ba { display: flex; gap: 1rem; align-items: baseline; flex: 1; }
.case-metric .ba small { color: rgba(248,250,252,0.6); font-size: var(--fs-xs); display: block; }
.case-metric .ba .from { color: rgba(248,250,252,0.55); font-family: var(--font-head); font-size: 1.1rem; }
.case-metric .ba .arrow { color: rgba(248,250,252,0.4); }
.case-metric .ba .to { color: var(--c-accent); font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; }
.case-metric .name { font-size: var(--fs-sm); color: rgba(248,250,252,0.85); flex-shrink: 0; }

/* ----------  Industries grid  ---------- */
.industries-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.industry-card {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md);
  transition: all var(--t-base) var(--ease);
  color: var(--c-text);
}
.industry-card:hover { border-color: var(--c-primary); transform: translateY(-2px); box-shadow: var(--sh-md); color: var(--c-text); }
.industry-card .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--g-brand-soft); color: var(--c-primary); display: grid; place-items: center; flex-shrink: 0; }
.industry-card .ico svg { width: 22px; height: 22px; }
.industry-card b { display: block; font-family: var(--font-head); font-size: 0.9375rem; }
.industry-card small { color: var(--c-text-soft); font-size: var(--fs-xs); }

/* ----------  Testimonials  ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.testi-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.testi-card .stars { color: #F59E0B; letter-spacing: 2px; }
.testi-card blockquote { font-size: 1rem; line-height: 1.6; color: var(--c-text); margin: 0; }
.testi-card .who { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; }
.testi-card .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--g-brand); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; flex-shrink: 0; }
.testi-card .who b { display: block; font-size: 0.9375rem; }
.testi-card .who small { color: var(--c-text-soft); font-size: var(--fs-sm); }
.testi-card .result { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--fs-sm); font-weight: 600; color: var(--c-accent-dark); background: rgba(255,200,90,0.15); padding: 0.35rem 0.75rem; border-radius: var(--r-pill); align-self: flex-start; }

/* ----------  FAQ accordion  ---------- */
.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: 0.75rem; }
.faq-item { border: 1px solid var(--c-border); border-radius: var(--r-md); background: #fff; overflow: hidden; transition: box-shadow var(--t-base), border-color var(--t-base); }
.faq-item.is-open { box-shadow: var(--sh-md); border-color: rgba(245,166,35,0.30); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 1.15rem 1.35rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem; color: var(--c-dark); }
.faq-q .ico { width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--g-brand-soft); color: var(--c-primary); transition: transform var(--t-base); font-size: 1.1rem; }
.faq-item.is-open .faq-q .ico { transform: rotate(45deg); background: var(--c-primary); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--t-slow) var(--ease); }
.faq-a .inner { padding: 0 1.35rem 1.25rem; color: var(--c-text-muted); }

/* ----------  Blog cards  ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.blog-card { border-radius: var(--r-md); overflow: hidden; background: #fff; border: 1px solid var(--c-border); transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.blog-thumb { aspect-ratio: 16/9; background: var(--g-brand); position: relative; display: grid; place-items: center; color: rgba(255,255,255,0.85); font-family: var(--font-head); font-weight: 600; padding: 1.5rem; text-align: center; }
.blog-thumb.purple { background: linear-gradient(135deg, #4F46E5, #7C3AED); }
.blog-thumb.green { background: var(--g-accent); }
.blog-thumb .tag { position: absolute; top: 0.75rem; left: 0.75rem; background: rgba(255,255,255,0.92); color: var(--c-dark); font-size: var(--fs-xs); font-weight: 600; padding: 0.25rem 0.6rem; border-radius: var(--r-pill); }
.blog-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-body h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; line-height: 1.35; }
.blog-body p { font-size: 0.9rem; margin-bottom: 1rem; }
.blog-body .meta { margin-top: auto; font-size: var(--fs-sm); color: var(--c-text-soft); display: flex; gap: 0.75rem; align-items: center; }

/* ----------  Final CTA  ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); text-align: center; background: var(--g-brand); color: #fff; box-shadow: var(--sh-lg); }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; opacity: 0.2; background: #fff; }
.cta-band::before { width: 280px; height: 280px; top: -120px; right: -60px; }
.cta-band::after { width: 200px; height: 200px; bottom: -100px; left: -50px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 580px; margin: 0.85rem auto 1.75rem; font-size: var(--fs-lead); }
.cta-band .btn-row { justify-content: center; }

/* ----------  Footer (mega)  ---------- */
.site-footer { background: var(--c-dark); color: rgba(248,250,252,0.7); padding-top: clamp(3rem, 2rem + 4vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-col h4 { color: #fff; font-family: var(--font-head); font-size: 0.9375rem; margin-bottom: 1rem; letter-spacing: 0.02em; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.footer-col ul a { color: rgba(248,250,252,0.7); font-size: 0.9375rem; }
.footer-col ul a:hover { color: #fff; }
.footer-about .brand { color: #fff; margin-bottom: 0.85rem; }
.footer-about p { font-size: 0.9375rem; color: rgba(248,250,252,0.65); margin-bottom: 1rem; max-width: 280px; }
.footer-social { display: flex; gap: 0.5rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.08); display: grid; place-items: center; color: #fff; transition: background var(--t-fast); }
.footer-social a:hover { background: var(--c-primary); }
.footer-social svg { width: 18px; height: 18px; }
.footer-contact li { display: flex; gap: 0.6rem; font-size: 0.9375rem; margin-bottom: 0.65rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--c-accent); }
.footer-news { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.footer-news input { flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #fff; padding: 0.6rem 0.85rem; border-radius: var(--r-sm); font-size: 0.875rem; }
.footer-news input::placeholder { color: rgba(248,250,252,0.4); }
.footer-news input:focus { outline: 2px solid var(--c-primary); border-color: var(--c-primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem; font-size: var(--fs-sm); }
.footer-badges { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.footer-badges .b { background: rgba(255,255,255,0.06); padding: 0.3rem 0.65rem; border-radius: var(--r-sm); font-size: var(--fs-xs); display: inline-flex; align-items: center; gap: 0.3rem; }
.footer-badges .b svg { width: 13px; height: 13px; color: var(--c-accent); }

/* ----------  Sticky bottom bar (mobile)  ---------- */
.mobile-cta-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--c-border);
  padding: 0.5rem;
  box-shadow: 0 -4px 16px rgba(15,23,42,0.08);
}
.mobile-cta-bar .row { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 0.5rem; }
.mobile-cta-bar .btn { padding: 0.7rem 0.5rem; font-size: 0.875rem; }

/* ----------  WhatsApp FAB  ---------- */
.whatsapp-fab {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  transition: transform var(--t-base) var(--ease);
}
.whatsapp-fab:hover { color: #fff; transform: scale(1.08); }
.whatsapp-fab svg { width: 30px; height: 30px; }
.whatsapp-fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366;
  animation: ring 2.2s ease-out infinite; opacity: 0;
}
@keyframes ring { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.6); opacity: 0; } }

/* ----------  Exit-intent modal  ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,23,42,0.6); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 1rem;
  opacity: 0; visibility: hidden; transition: opacity var(--t-base), visibility var(--t-base);
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal {
  background: #fff; border-radius: var(--r-xl); max-width: 480px; width: 100%;
  box-shadow: var(--sh-lg); overflow: hidden;
  transform: scale(0.94) translateY(10px); transition: transform var(--t-slow) var(--ease-out);
}
.modal-overlay.is-open .modal { transform: scale(1) translateY(0); }
.modal-top { background: var(--g-brand); color: #fff; padding: 1.75rem 1.75rem 1.5rem; position: relative; }
.modal-top .close { position: absolute; top: 0.75rem; right: 0.75rem; background: rgba(255,255,255,0.18); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 1.1rem; display: grid; place-items: center; }
.modal-top .close:hover { background: rgba(255,255,255,0.30); }
.modal-top .eyebrow { color: rgba(255,255,255,0.85); }
.modal-top .eyebrow::before { background: rgba(255,255,255,0.7); }
.modal-top h3 { color: #fff; margin-top: 0.25rem; }
.modal-top p { color: rgba(255,255,255,0.88); font-size: 0.9375rem; margin-top: 0.4rem; }
.modal-body { padding: 1.5rem 1.75rem 1.75rem; }

/* ----------  Forms  ---------- */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--c-dark); margin-bottom: 0.4rem; }
.field label .req { color: #EF4444; }
.input, .select, .textarea {
  width: 100%; padding: 0.75rem 0.9rem; border-radius: var(--r-sm);
  border: 1.5px solid var(--c-border-strong); background: #fff;
  font-family: inherit; font-size: 0.9375rem; color: var(--c-text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  min-height: 44px;
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(245,166,35,0.12); }
.input::placeholder, .textarea::placeholder { color: var(--c-text-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); box-shadow: var(--sh-md);
}
.form-success { display: none; text-align: center; padding: 1.5rem 0; }
.form-success.is-shown { display: block; }
.form-success .check { width: 64px; height: 64px; border-radius: 50%; background: var(--g-accent); color: #fff; display: grid; place-items: center; margin: 0 auto 1rem; }
.form-success .check svg { width: 32px; height: 32px; }

/* multi-step form */
.steps-progress { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.75rem; }
.steps-progress .step-dot { flex: 1; height: 6px; border-radius: 3px; background: var(--c-neutral-2); transition: background var(--t-base); }
.steps-progress .step-dot.is-active { background: var(--c-primary); }
.steps-progress .step-dot.is-done { background: var(--c-accent); }
.steps-progress .step-label { font-size: var(--fs-sm); font-weight: 600; color: var(--c-text-soft); white-space: nowrap; }
.form-step { display: none; animation: fadeUp var(--t-slow) var(--ease); }
.form-step.is-active { display: block; }
.form-step h3 { margin-bottom: 0.35rem; font-size: 1.125rem; }
.form-step .step-sub { font-size: var(--fs-sm); color: var(--c-text-soft); margin-bottom: 1.25rem; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.choice {
  border: 1.5px solid var(--c-border-strong); border-radius: var(--r-sm);
  padding: 0.75rem 0.85rem; cursor: pointer; font-size: 0.9375rem; font-weight: 500;
  display: flex; align-items: center; gap: 0.5rem; transition: all var(--t-fast);
  background: #fff; min-height: 44px;
}
.choice input { position: absolute; opacity: 0; }
.choice:hover { border-color: var(--c-primary); }
.choice.is-selected { border-color: var(--c-primary); background: rgba(245,166,35,0.06); color: var(--c-primary); box-shadow: var(--sh-glow); }
.form-nav { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 1.25rem; }

/* ----------  Interactive Tool: Audit  ---------- */
.tool-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-xl);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--sh-lg);
  max-width: 720px; margin-inline: auto;
}
.tool-input-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.tool-input-row .input { flex: 1; min-width: 220px; }
.tool-result { display: none; margin-top: 1.75rem; animation: fadeUp var(--t-slow) var(--ease); }
.tool-result.is-shown { display: block; }
.audit-scores { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.audit-score { background: var(--c-neutral); border-radius: var(--r-md); padding: 1.1rem; text-align: center; }
.audit-score .ring { width: 80px; height: 80px; margin: 0 auto 0.5rem; border-radius: 50%; display: grid; place-items: center; position: relative; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; }
.audit-score .ring::after { content: ""; position: absolute; inset: 6px; background: var(--c-neutral); border-radius: 50%; }
.audit-score .ring span { position: relative; z-index: 1; }
.audit-score .label { font-size: var(--fs-sm); font-weight: 600; color: var(--c-text-muted); }
.audit-score.good .ring { color: var(--c-accent-dark); }
.audit-score.ok .ring { color: #D97706; }
.audit-score.bad .ring { color: #DC2626; }
.tool-gate { background: var(--c-neutral); border-radius: var(--r-md); padding: 1.25rem; text-align: center; }
.tool-gate.is-blurred { filter: blur(4px); opacity: 0.6; pointer-events: none; }

/* ----------  Interactive Tool: ROI Calculator  ---------- */
.roi-tool { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; align-items: start; }
.roi-inputs { display: grid; gap: 1rem; }
.roi-output { background: var(--g-dark); color: #fff; border-radius: var(--r-lg); padding: 1.75rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.roi-output .label { font-size: var(--fs-sm); color: rgba(248,250,252,0.7); margin-bottom: 0.35rem; }
.roi-output .big { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2.5vw, 2.75rem); color: var(--c-accent); line-height: 1.1; margin-bottom: 0.25rem; }
.roi-output .sub { font-size: var(--fs-sm); color: rgba(248,250,252,0.7); margin-bottom: 1.25rem; }
.roi-output .breakdown { display: grid; gap: 0.6rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.12); }
.roi-output .row { display: flex; justify-content: space-between; font-size: 0.9375rem; }
.roi-output .row span:last-child { font-family: var(--font-head); font-weight: 600; color: #fff; }
.range-input { width: 100%; accent-color: var(--c-primary); }

/* ----------  Interactive Tool: Scraper  ---------- */
.scrape-tool { max-width: 880px; margin-inline: auto; }
.scrape-inputs { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.75rem; margin-bottom: 1.5rem; }
.leads-list { display: grid; gap: 0.6rem; }
.lead-row { display: grid; grid-template-columns: 36px 1.2fr 1.5fr 1fr 80px; gap: 1rem; align-items: center; padding: 0.85rem 1rem; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-sm); }
.lead-row .av { width: 36px; height: 36px; border-radius: 50%; background: var(--g-brand-soft); color: var(--c-primary); display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; font-size: 0.875rem; }
.lead-row b { font-size: 0.9375rem; }
.lead-row .muted { color: var(--c-text-soft); font-size: var(--fs-sm); }
.lead-row .tag { font-size: var(--fs-xs); background: var(--c-neutral-2); padding: 0.2rem 0.5rem; border-radius: var(--r-pill); color: var(--c-text-muted); text-align: center; }

/* ----------  Chatbot  ---------- */
.chat-fab {
  position: fixed; bottom: 1.25rem; right: 5.5rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--g-brand); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--sh-brand);
  transition: transform var(--t-base) var(--ease);
}
.chat-fab:hover { transform: scale(1.08); color: #fff; }
.chat-fab svg { width: 26px; height: 26px; }
.chat-window {
  position: fixed; bottom: 5.5rem; right: 1.25rem; z-index: 91;
  width: 340px; max-width: calc(100vw - 2.5rem);
  height: 460px; max-height: calc(100vh - 8rem);
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  display: none; flex-direction: column; overflow: hidden;
  border: 1px solid var(--c-border);
}
.chat-window.is-open { display: flex; animation: fadeUp var(--t-base) var(--ease); }
.chat-head { background: var(--g-brand); color: #fff; padding: 0.9rem 1.1rem; display: flex; align-items: center; gap: 0.65rem; }
.chat-head .av { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.2); display: grid; place-items: center; }
.chat-head b { display: block; font-size: 0.9375rem; font-family: var(--font-head); }
.chat-head small { font-size: var(--fs-xs); color: rgba(255,255,255,0.85); display: flex; align-items: center; gap: 0.3rem; }
.chat-head small::before { content: ""; width: 7px; height: 7px; background: #34D399; border-radius: 50%; }
.chat-body { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.6rem; background: var(--c-neutral); }
.chat-msg { max-width: 80%; padding: 0.6rem 0.85rem; border-radius: var(--r-md); font-size: 0.875rem; line-height: 1.45; }
.chat-msg.bot { background: #fff; border: 1px solid var(--c-border); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.user { background: var(--g-brand); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 0.85rem 0.75rem; background: var(--c-neutral); }
.chat-quick button { font-size: var(--fs-xs); padding: 0.4rem 0.7rem; border: 1px solid var(--c-border-strong); background: #fff; border-radius: var(--r-pill); color: var(--c-primary); font-weight: 500; transition: all var(--t-fast); }
.chat-quick button:hover { background: var(--c-primary); color: #fff; }
.chat-input { display: flex; gap: 0.4rem; padding: 0.65rem; border-top: 1px solid var(--c-border); background: #fff; }
.chat-input input { flex: 1; border: 1px solid var(--c-border-strong); border-radius: var(--r-pill); padding: 0.55rem 0.85rem; font-size: 0.875rem; }
.chat-input input:focus { outline: none; border-color: var(--c-primary); }
.chat-input button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--c-primary); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.chat-input button svg { width: 18px; height: 18px; }

/* ----------  Page hero (inner pages)  ---------- */
.page-hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) clamp(2rem, 1rem + 3vw, 3rem); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 90% 10%, rgba(245,166,35,0.10), transparent 60%); }
.page-hero .container { position: relative; }
.breadcrumbs { font-size: var(--fs-sm); color: var(--c-text-soft); margin-bottom: 1rem; display: flex; gap: 0.4rem; align-items: center; }
.breadcrumbs a { color: var(--c-text-soft); }
.breadcrumbs a:hover { color: var(--c-primary); }
.breadcrumbs span { opacity: 0.5; }
.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero .lead { max-width: 640px; margin-bottom: 1.5rem; }
.page-hero .btn-row { margin-bottom: 1.5rem; }

/* ----------  Prose (for service/blog pages)  ---------- */
.prose { max-width: 720px; }
.prose h2 { margin: 2rem 0 0.75rem; }
.prose h3 { margin: 1.5rem 0 0.5rem; }
.prose p { margin-bottom: 1rem; line-height: 1.7; }
.prose ul, .prose ol { margin-bottom: 1rem; color: var(--c-text-muted); }
.prose li { margin-bottom: 0.4rem; }

.checklist { list-style: none; padding: 0; display: grid; gap: 0.65rem; }
.checklist li { display: flex; gap: 0.65rem; align-items: flex-start; color: var(--c-text-muted); }
.checklist li::before { content: "✓"; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: rgba(255,200,90,0.18); color: var(--c-accent-dark); display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; margin-top: 1px; }

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.feature-row.flip .feature-text { order: 2; }
.feature-text h2 { margin-bottom: 0.75rem; }
.feature-text .lead { margin-bottom: 1.25rem; }
.feature-visual { border-radius: var(--r-lg); background: var(--g-brand-soft); padding: 2rem; min-height: 280px; display: grid; place-items: center; }

/* ----------  Team grid  ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.team-card { text-align: center; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 1.75rem 1.25rem; transition: transform var(--t-base), box-shadow var(--t-base); }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.team-card .ph { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 1rem; background: var(--g-brand); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; }
.team-card:nth-child(2) .ph { background: var(--g-accent); }
.team-card:nth-child(3) .ph { background: linear-gradient(135deg, #4F46E5, #7C3AED); }
.team-card:nth-child(4) .ph { background: linear-gradient(135deg, #EC4899, #F43F5E); }
.team-card h3 { font-size: 1.0625rem; }
.team-card .role { font-size: var(--fs-sm); color: var(--c-primary); font-weight: 600; margin-bottom: 0.5rem; }
.team-card .spec { font-size: var(--fs-sm); color: var(--c-text-soft); }

/* ----------  Utility / misc  ---------- */
.badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.7rem; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; }
.badge--green { background: rgba(16,185,129,0.12); color: var(--c-accent-dark); }
.badge--blue { background: rgba(245,166,35,0.10); color: var(--c-primary); }
.badge--amber { background: rgba(245,158,11,0.12); color: #B45309; }

.kpi-strip { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; justify-content: center; padding: 1.5rem; background: var(--c-neutral); border-radius: var(--r-md); }
.kpi-strip .k { text-align: center; }
.kpi-strip .k b { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--c-primary); }
.kpi-strip .k small { color: var(--c-text-soft); font-size: var(--fs-sm); }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ----------  Animations  ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; vertical-align: middle; }
.spinner--dark { border-color: rgba(15,23,42,0.15); border-top-color: var(--c-primary); }

/* ----------  Responsive  ---------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: #fff; padding: 1rem var(--gutter) 2rem;
    overflow-y: auto; gap: 0.25rem; z-index: 99;
  }
  .nav.is-open a { padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--c-border); font-size: 1rem; }
  .nav.is-open .header-actions { display: flex; margin-top: 1rem; }
  .menu-toggle { display: inline-flex; }
  .header-actions .btn--ghost { display: none; }
  .header-cta-compact { display: inline-flex; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin-inline: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid, .portfolio-grid, .testi-grid, .blog-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .trifold { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .case-study, .feature-row, .roi-tool { grid-template-columns: 1fr; }
  .feature-row.flip .feature-text { order: 0; }
  .roi-output { position: static; }
  .scrape-inputs { grid-template-columns: 1fr; }
  .lead-row { grid-template-columns: 36px 1fr auto; gap: 0.75rem; }
  .lead-row .hide-sm { display: none; }
  .contact-layout, .book-layout { grid-template-columns: 1fr !important; }
}

@media (max-width: 640px) {
  .section { padding-block: clamp(2.5rem, 1.5rem + 4vw, 3.5rem); }
  .stats-grid, .cards-grid, .portfolio-grid, .testi-grid, .blog-grid, .process-grid, .industries-grid, .team-grid { grid-template-columns: 1fr; }
  .audit-scores { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row, .choice-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 0.75rem; }
  .mobile-cta-bar { display: block; }
  body { padding-bottom: 70px; }
  .whatsapp-fab { bottom: 5rem; }
  .chat-fab { bottom: 5rem; right: 1.25rem; }
  .chat-window { right: 0.75rem; bottom: 5rem; }
  .hero-badge, .hero-badge-2 { display: none; }
  .dashboard-mock { transform: none; }
  .cta-band { border-radius: var(--r-lg); }
}
/* ----------  Reduced motion  ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* Header Logo */
.custom-logo-link {
    display: flex;
    align-items: center;
}

.custom-logo {
    height: 52px;
    width: auto;
    max-width: 220px;
    display: block;
}