/* CoAxn redesign — OpenXcell structure + CoAxn brand */
:root {
  --blue: #00A651;
  --blue-dark: #008C44;
  --blue-deep: #006B34;
  --cyan: #6EE7A8;
  --navy: #0b1220;
  --slate: #1e293b;
  --muted: #64748b;
  --text: #334155;
  --bg: #ffffff;
  --bg-soft: #F0F9F4;
  --bg-softer: #f8fafc;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0, 166, 81, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  /* Bootstrap-style container + tighter section rhythm (less empty white space) */
  --container-max: 100%;
  --container-gutter: 1rem;
  --section-y: 2.75rem;
  --section-y-sm: 2rem;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  max-width: 100%;
  /* hidden first for older Safari; clip preferred where supported */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
  position: relative;
}

/* Kill accidental page-wide horizontal scroll (marquee / float cards / 100vw) */
main,
.hero,
.trust,
.about,
.services,
.solutions,
.work,
.impact,
.testimonials,
.contact,
.footer,
.home-blog {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

/**
 * Responsive container (Bootstrap-aligned practice)
 * xs <576: 100% + gutter
 * sm ≥576: 540px | md ≥768: 720px | lg ≥992: 960px
 * xl ≥1200: 1140px | xxl ≥1400: 1320px
 */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
  box-sizing: border-box;
}

@media (min-width: 576px) {
  :root {
    --container-max: 540px;
    --container-gutter: 0.75rem;
  }
}

@media (min-width: 768px) {
  :root {
    --container-max: 720px;
    --container-gutter: 1rem;
    --section-y: 3.25rem;
    --section-y-sm: 2.25rem;
  }
}

@media (min-width: 992px) {
  :root {
    --container-max: 960px;
    --container-gutter: 1.15rem;
    --section-y: 3.5rem;
  }
}

@media (min-width: 1200px) {
  :root {
    --container-max: 1140px;
    --container-gutter: 1.25rem;
    --section-y: 3.75rem;
  }
}

@media (min-width: 1400px) {
  :root {
    --container-max: 1320px;
    --container-gutter: 1.5rem;
    --section-y: 4rem;
  }
}

/* Topbar */
.topbar {
  background: var(--navy);
  color: #cbd5e1;
  font-size: 0.8125rem;
  padding: 0.55rem 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar a {
  color: #e2e8f0;
  transition: color 0.2s;
}

.topbar a:hover {
  color: #fff;
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #475569;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.header.scrolled {
  border-color: var(--border);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--slate);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(0, 166, 81, 0.35);
}

.logo-text span {
  color: var(--blue);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.35rem;
}

.nav a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--blue);
}

.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600 !important;
  box-shadow: 0 6px 18px rgba(0, 166, 81, 0.28);
}

.nav-cta:hover {
  background: var(--blue-dark) !important;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--slate);
  border-radius: 2px;
  transition: 0.25s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 166, 81, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 14px 32px rgba(0, 166, 81, 0.4);
}

.btn-ghost {
  background: #fff;
  color: var(--slate);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn.full {
  width: 100%;
}

.text-link {
  color: var(--blue);
  font-weight: 600;
  display: inline-block;
  margin-top: 0.5rem;
}

.text-link:hover {
  text-decoration: underline;
}

/* Eyebrow + section heads */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.eyebrow.dark {
  color: var(--blue);
}

.eyebrow.light {
  color: var(--cyan);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
}

.section-head {
  max-width: 720px;
  margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
  .section-head {
    margin-bottom: 1.85rem;
  }
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  color: var(--slate);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-head.light h2 {
  color: #fff;
}

.section-head.light p {
  color: #94a3b8;
}

.gradient-text {
  background: linear-gradient(120deg, var(--blue) 0%, #34D399 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(1.75rem, 3vw, 2.75rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(0, 166, 81, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(110, 231, 168, 0.1), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(0, 166, 81, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 40%, transparent);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--slate);
  margin: 0 0 1.25rem;
  font-weight: 800;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 0 1.75rem;
}

.hero-lead strong {
  color: var(--slate);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 480px;
}

.metric {
  padding: 0.85rem 0 0;
  border-top: 2px solid var(--blue);
}

.metric strong {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--slate);
  line-height: 1.1;
}

.metric span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Hero visual cards */
.hero-visual {
  position: relative;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  /* Keep float cards inside the visual box so they don't widen the page */
  overflow: visible;
  padding-inline: 0;
}

.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  max-width: 100%;
}

.main-card {
  padding: 1.35rem;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 1rem;
  width: 100%;
}

.pipe-step {
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  padding: 0.45rem 0.2rem;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pipe-step.done {
  background: #dcfce7;
  color: #15803d;
}

.pipe-step.active {
  background: rgba(0, 166, 81, 0.12);
  color: var(--blue);
  outline: 1px solid rgba(0, 166, 81, 0.35);
}

.code-block {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  background: var(--navy);
  color: #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.c-key { color: #c084fc; }
.c-fn { color: #34D399; }
.c-str { color: #A7F3D0; }
.c-num { color: #fbbf24; }

.card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  width: 100%;
}

.card-stats > div {
  min-width: 0;
}

.card-stats span {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--slate);
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  z-index: 2;
  animation: float 5s ease-in-out infinite;
  box-sizing: border-box;
}

.float-card.one {
  top: 8%;
  right: 0;
  max-width: min(220px, 48%);
  animation-delay: 0s;
}

.float-card.two {
  bottom: 8%;
  left: 0;
  max-width: min(220px, 48%);
  animation-delay: 1.2s;
}

.float-card strong {
  display: block;
  font-size: 0.85rem;
  color: var(--slate);
  line-height: 1.25;
}

.float-card span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
  word-break: break-word;
}

.float-card .mini-icon {
  flex-shrink: 0;
}

.float-card > div:last-child {
  min-width: 0;
  flex: 1;
}

.mini-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.mini-icon.blue {
  background: rgba(0, 166, 81, 0.12);
}

.mini-icon.cyan {
  background: rgba(110, 231, 168, 0.18);
  color: var(--blue-deep);
  font-weight: 800;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Desktop only: room for absolutely positioned float cards */
@media (min-width: 1025px) {
  .hero-visual {
    min-height: 380px;
    padding-bottom: 0.5rem;
  }
}


/* Trust marquee */
.trust {
  padding: 1.5rem 0;
  border-block: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
}

.trust-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.trust-marquee {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  max-width: none;
  animation: marquee 32s linear infinite;
  will-change: transform;
}

.marquee-track span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    row-gap: 0.65rem;
  }
}

/* About */
.about {
  padding: var(--section-y) 0;
  background: var(--bg-softer);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}

.about-letter h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--slate);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.about-letter .lead {
  font-size: 1.1rem;
  color: var(--slate);
}

.about-letter p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.mission-box {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.35rem;
  margin: 1.5rem 0 1.75rem;
  box-shadow: var(--shadow);
}

.mission-box h3 {
  margin: 0 0 0.5rem;
  color: var(--slate);
  font-size: 1rem;
}

.mission-box p {
  margin: 0;
  font-size: 0.95rem;
}

/* About right-column — industry use-case auto slider */
.about-widget {
  display: flex;
  min-height: 100%;
}

.about-widget-card {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 0.9rem 0.9rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.about-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.about-widget-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
}

.use-case-counter {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  background: rgba(15, 23, 42, 0.04);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

.use-case-viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border-radius: 14px;
}

.use-case-track {
  position: relative;
  /* Height follows active slide content — no tall empty box */
  min-height: 0;
}

.use-case-slide {
  display: none;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  background: #fff;
}

.use-case-slide.is-active {
  display: flex;
  opacity: 1;
  animation: use-case-in 0.4s ease;
}

@keyframes use-case-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Case-study cover image */
.use-case-media {
  position: relative;
  height: 132px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f8ef, #dbeafe);
}

.use-case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.use-case-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.4) 100%);
  pointer-events: none;
}

.use-case-media-icon {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
}

.use-case-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.7rem 0.1rem 0.15rem;
  flex: 1 1 auto;
}

.use-case-tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: rgba(0, 166, 81, 0.1);
  padding: 0.2rem 0.48rem;
  border-radius: 999px;
}

.use-case-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.08rem;
  line-height: 1.25;
  color: var(--slate);
  letter-spacing: -0.02em;
}

.use-case-label {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue);
}

.use-case-desc {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}

.use-case-desc-strong {
  color: var(--slate);
}

.use-case-points {
  list-style: none;
  margin: 0.2rem 0 0.15rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.use-case-points li {
  position: relative;
  padding-left: 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--slate);
}

.use-case-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.12);
}

.use-case-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.use-case-metrics > div {
  background: var(--bg-softer);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.48rem 0.45rem;
  text-align: center;
}

.use-case-metrics strong {
  display: block;
  font-family: var(--display);
  font-size: 0.98rem;
  color: var(--blue);
  line-height: 1.1;
}

.use-case-metrics span {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
}

.use-case-footer {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex-shrink: 0;
}

.use-case-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.use-case-play {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--slate);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
  flex-shrink: 0;
}

.use-case-play:hover {
  border-color: rgba(0, 166, 81, 0.35);
  color: var(--blue-deep);
  background: rgba(0, 166, 81, 0.06);
}

.use-case-play.is-paused {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.use-case-play-icon {
  font-size: 0.7rem;
  line-height: 1;
}

.use-case-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex: 1 1 auto;
}

.use-case-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: #cbd5e1;
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}

.use-case-dot.is-active {
  width: 18px;
  background: var(--blue);
}

.use-case-progress {
  height: 3px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.use-case-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #34d399);
  transition: width 0.05s linear;
}

.use-case-progress-bar.is-running {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .use-case-slide {
    transition: none;
  }
  .use-case-progress-bar {
    display: none;
  }
}

/* Services */
.services {
  padding: var(--section-y) 0;
}

.service-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1rem;
  min-height: 0;
}

.service-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.service-tab {
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 0.95rem 1rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: 0.2s;
}

.service-tab:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--slate);
}

.service-tab.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.service-panels {
  background: #fff;
  border-radius: 18px;
  padding: 1.75rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.service-panel {
  display: none;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.service-panel.active {
  display: grid;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.panel-copy h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--slate);
  margin: 0 0 0.75rem;
}

.panel-copy > p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  color: var(--slate);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

/* Service panel visuals */
.panel-visual {
  display: grid;
  place-items: center;
  min-height: 220px;
}

.phone {
  width: 150px;
  height: 280px;
  border-radius: 28px;
  background: var(--navy);
  padding: 10px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

.phone-notch {
  width: 48px;
  height: 6px;
  background: #334155;
  border-radius: 999px;
  margin: 4px auto 10px;
}

.phone-screen {
  background: linear-gradient(180deg, #0f172a, #1e293b);
  border-radius: 20px;
  height: calc(100% - 20px);
  padding: 1rem 0.85rem;
}

.app-row,
.app-cta {
  height: 10px;
  border-radius: 6px;
  background: rgba(52, 211, 153, 0.35);
  margin-bottom: 0.65rem;
}

.app-row.short {
  width: 60%;
  background: rgba(148, 163, 184, 0.35);
}

.app-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 1rem 0;
}

.app-card {
  height: 64px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(0, 166, 81, 0.5), rgba(110, 231, 168, 0.25));
}

.app-cta {
  margin-top: auto;
  background: var(--blue);
  height: 28px;
  border-radius: 8px;
}

.browser-mock {
  width: 100%;
  max-width: 280px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.browser-bar {
  background: #f1f5f9;
  padding: 0.55rem 0.75rem;
  display: flex;
  gap: 0.35rem;
}

.browser-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.browser-body {
  display: grid;
  grid-template-columns: 56px 1fr;
  min-height: 160px;
  background: #fff;
}

.b-sidebar {
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
}

.b-main {
  padding: 0.85rem;
}

.b-line {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.b-line.short {
  width: 50%;
}

.b-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.b-grid div {
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 166, 81, 0.15), rgba(110, 231, 168, 0.2));
}

.ai-nodes {
  position: relative;
  width: 280px;
  height: 200px;
}

.node-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.node-lines path {
  fill: none;
  stroke: rgba(0, 166, 81, 0.35);
  stroke-width: 2;
}

.node {
  position: absolute;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue);
  box-shadow: var(--shadow);
}

.n1 { top: 20px; left: 20px; }
.n2 { top: 80px; left: 105px; }
.n3 { top: 20px; right: 20px; }
.n4 { bottom: 20px; right: 20px; }

.stack-layers {
  width: 100%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.layer {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  text-align: center;
}

.layer:nth-child(1) { background: #34D399; }
.layer:nth-child(2) { background: var(--blue); }
.layer:nth-child(3) { background: var(--blue-dark); }
.layer:nth-child(4) { background: var(--navy); }

.devops-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.flow-box {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--slate);
}

.flow-box.highlight {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.flow-arrow {
  color: var(--muted);
  font-weight: 700;
}

/* Solutions — tight bottom so no empty navy band before Case Studies */
.solutions {
  padding: var(--section-y) 0 var(--section-y-sm);
  background: linear-gradient(180deg, var(--navy) 0%, #0f1c33 100%);
  color: #e2e8f0;
}

.solutions .section-head {
  margin-bottom: 1.35rem;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.solution-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  transition: 0.25s;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.solution-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(52, 211, 153, 0.35);
}

.sol-icon {
  font-size: 1.5rem;
  margin-bottom: 0.85rem;
}

.solution-card h3 {
  margin: 0 0 0.6rem;
  color: #fff;
  font-family: var(--display);
  font-size: 1.15rem;
}

.solution-card p {
  margin: 0 0 1rem;
  color: #94a3b8;
  font-size: 0.92rem;
  flex: 0 1 auto;
}

.sol-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(110, 231, 168, 0.1);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-top: auto;
  width: fit-content;
}

.center-cta {
  text-align: center;
  margin-top: 1.35rem;
  margin-bottom: 0;
}

.center-cta .btn {
  margin: 0;
}

/* Work / Case Studies — less top white space after Solutions */
.work {
  padding: var(--section-y-sm) 0 var(--section-y);
  background: var(--bg-softer);
}

.work .section-head {
  margin-bottom: 1.35rem;
}

/* Anchor targets sit clear of sticky header without extra visual gap */
#solutions,
#work,
#services,
#about,
#contact,
#testimonials {
  scroll-margin-top: calc(var(--header-h) + 0.5rem);
}

.work-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

.work-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: 0.25s;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.work-card.large {
  grid-row: span 2;
  background: linear-gradient(160deg, #fff 0%, #E8F8EF 100%);
  display: flex;
  flex-direction: column;
}

.work-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(0, 166, 81, 0.1);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  width: fit-content;
}

.work-card h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--slate);
  margin: 0 0 0.65rem;
}

.work-card p {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.tech-pills span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.pointers {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.pointers li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--slate);
  font-weight: 500;
}

/* Impact */
.impact {
  padding: var(--section-y) 0;
  background: var(--navy);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.impact-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.impact-item strong {
  font-family: var(--display);
  font-size: 2.2rem;
  color: var(--cyan);
  display: block;
  margin-bottom: 0.35rem;
}

.impact-item h4 {
  margin: 0 0 0.4rem;
  color: #fff;
  font-size: 1.05rem;
}

.impact-item p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Tech stack */
.tech {
  padding: var(--section-y) 0;
}

.tech-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tab {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
}

.tech-tab:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.tech-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.tech-panel {
  display: none;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.tech-panel.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.tech-panel span {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1.1rem;
  font-weight: 600;
  color: var(--slate);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* Industries */
.industries {
  padding: var(--section-y) 0;
  background: linear-gradient(180deg, #0f1c33, var(--navy));
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.industry-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: 0.25s;
}

.industry-card:hover {
  border-color: rgba(52, 211, 153, 0.4);
  transform: translateY(-3px);
}

.industry-card span {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.65rem;
}

.industry-card h3 {
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Process */
.process {
  padding: var(--section-y) 0;
  background: var(--bg-softer);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.step-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.75rem;
  color: rgba(0, 166, 81, 0.2);
  margin-bottom: 0.75rem;
}

.step h3 {
  margin: 0 0 0.5rem;
  color: var(--slate);
  font-family: var(--display);
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Free consultation / Calendly */
.consultation {
  padding: var(--section-y) 0;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 55%);
  border-top: 1px solid rgba(0, 166, 81, 0.12);
  border-bottom: 1px solid rgba(0, 166, 81, 0.08);
}
.consultation-head {
  max-width: 720px;
  margin: 0 auto 1.75rem;
  text-align: center;
}
.consultation-head h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  color: var(--slate);
  margin: 0.5rem 0 0.75rem;
  letter-spacing: -0.02em;
}
.consultation-head > p {
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}
.consultation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.calendly-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
}
.calendly-inline-widget {
  width: 100%;
}
.consultation-fallback {
  text-align: center;
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
}
.consultation-fallback a {
  color: var(--blue);
  font-weight: 600;
}
.calendly-missing {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: 16px;
  border: 1px dashed var(--border);
  color: var(--slate);
}
.calendly-missing a {
  color: var(--blue);
  font-weight: 600;
}
.nav-cta-book {
  background: #00a651 !important;
  color: #fff !important;
  border-radius: 999px;
  padding: 0.45rem 0.9rem !important;
}
.nav-cta-book:hover {
  background: #009548 !important;
  color: #fff !important;
}
.nav-link-contact {
  font-weight: 600;
}

/* Contact */
.contact {
  padding: var(--section-y) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  color: var(--slate);
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.contact-info > p {
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-list li {
  display: grid;
  gap: 0.2rem;
}

.contact-list strong {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.contact-list a,
.contact-list span {
  color: var(--slate);
  font-weight: 600;
}

.contact-list a:hover {
  color: var(--blue);
}

.contact-form {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  color: var(--slate);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 0.85rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  background: #fff;
  color: var(--slate);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.15);
}

.form-note {
  margin: 0.85rem 0 0;
  color: #15803d;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background: #070c16;
  color: #94a3b8;
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 0.85rem;
}

.footer-brand p {
  margin: 0;
  max-width: 280px;
  font-size: 0.92rem;
}

.footer h4 {
  color: #fff;
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
}

.footer a {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer a:hover {
  color: #fff;
}

.socials {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #e2e8f0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

.to-top:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-widget {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .use-case-media {
    height: 120px;
  }

  .use-case-metrics {
    grid-template-columns: 1fr 1fr 1fr;
  }

  /* Main card full-width; two feature cards side-by-side underneath (no absolute floats) */
  .hero-visual {
    max-width: min(440px, 100%);
    width: 100%;
    margin: 0 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    overflow: visible;
    padding-inline: 0;
  }

  .hero-visual .main-card {
    grid-column: 1 / -1;
  }

  .float-card,
  .float-card.one,
  .float-card.two {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    max-width: none !important;
    width: 100%;
    animation: none !important;
    transform: none !important;
    margin: 0;
  }

  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .pipe-step {
    white-space: normal;
    font-size: 0.68rem;
    padding: 0.5rem 0.35rem;
  }

  .code-block {
    font-size: 0.72rem;
    padding: 0.85rem;
  }

  .tech-chip-row {
    gap: 0.35rem;
  }

  .tech-chip {
    font-size: 0.68rem;
    padding: 0.22rem 0.5rem;
  }

  .card-stats span {
    font-size: 0.95rem;
  }

  .service-layout {
    grid-template-columns: 1fr;
  }

  .service-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .service-tab {
    white-space: nowrap;
  }

  .service-panel,
  .service-panel.active {
    grid-template-columns: 1fr;
  }

  .solution-grid {
    grid-template-columns: 1fr 1fr;
  }

  .work-grid {
    grid-template-columns: 1fr 1fr;
  }

  .work-card.large {
    grid-row: auto;
    grid-column: 1 / -1;
  }

  .impact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .industry-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: calc(var(--header-h) + 32px) 1rem auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.15rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 0.25s;
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav a {
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
  }

  .nav a:hover {
    background: var(--bg-soft);
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.35rem;
  }

  .hero {
    padding: 1.75rem 0 1.5rem;
  }

  .hero-visual {
    min-height: 0;
    padding-inline: 0;
    max-width: 100%;
    gap: 0.65rem;
  }

  .hero-actions {
    margin-bottom: 1.5rem;
  }

  .hero-grid {
    gap: 1.5rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .main-card {
    padding: 1.1rem;
    border-radius: 16px;
  }

  .float-card {
    position: static !important;
    animation: none !important;
    transform: none !important;
    margin: 0;
    max-width: none !important;
    width: 100%;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
  }

  .float-card.one,
  .float-card.two {
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
  }

  .float-card strong {
    font-size: 0.8rem;
  }

  .float-card span {
    font-size: 0.68rem;
  }

  .mini-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1rem;
  }

  .card-stats {
    gap: 0.5rem;
  }

  .card-stats span {
    font-size: 0.9rem;
  }

  .card-stats em {
    font-size: 0.72rem;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .trust-label {
    padding-inline: 0.5rem;
    letter-spacing: 0.06em;
    font-size: 0.72rem;
  }

  .solution-grid,
  .work-grid,
  .impact-grid,
  .process-steps,
  .industry-grid,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-tagline {
    display: none;
  }
}

@media (max-width: 480px) {
  :root {
    --container-gutter: 0.875rem;
    --section-y: 2.75rem;
  }

  .about-stats:not(.about-stats-inline) {
    grid-template-columns: 1fr;
  }

  /* Full-width stacked feature cards on small phones */
  .hero-visual {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 0.6rem;
  }

  .hero-visual .main-card {
    grid-column: auto;
  }

  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .code-block {
    font-size: 0.68rem;
    padding: 0.75rem;
    line-height: 1.55;
  }

  .card-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Logo ───────────────────────────────── */
.logo-img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}
.logo-img-light {
  /* white bg logo works on dark footer with slight invert? keep as-is with bg pill */
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  height: 48px;
}
.logo {
  display: inline-flex;
  align-items: center;
}

/* ── Blog listing ───────────────────────── */
.blog-hero {
  padding: 3.5rem 0 2rem;
  background: linear-gradient(180deg, #F0F9F4 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}
.blog-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--slate);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.blog-hero p {
  color: var(--muted);
  max-width: 560px;
  margin: 0;
  font-size: 1.05rem;
}
.blog-views {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.blog-layout {
  padding: 3rem 0 5rem;
}
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.blog-filters a {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  transition: 0.2s;
}
.blog-filters a:hover,
.blog-filters a.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: var(--shadow);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 166, 81, 0.35);
}
/* Cover must clip images — large banners were painting over title/meta below */
.blog-card-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  min-height: 0;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #00A651 0%, #006B34 60%, #0b1220 100%);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1;
}
.blog-card-cover::before {
  /* Fallback label centering when no image */
  content: none;
}
.blog-card-cover:not(:has(img)) {
  display: grid;
  place-items: center;
}
.blog-card-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
  display: block;
  z-index: 0;
  pointer-events: none;
}
.blog-card-body {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  background: #fff;
  gap: 0.55rem;
}
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
  line-height: 1.3;
}
.blog-cat {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 166, 81, 0.1);
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.blog-meta time,
.blog-meta > span:not(.blog-cat) {
  flex-shrink: 0;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
.blog-card h2,
.blog-card h3 {
  font-family: var(--display);
  font-size: 1.08rem;
  margin: 0;
  color: var(--slate);
  line-height: 1.35;
  letter-spacing: -0.01em;
  /* Keep titles to 2 lines so cards align */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.blog-card h2 a,
.blog-card h3 a {
  color: inherit;
  display: inline;
}
.blog-card h2 a:hover,
.blog-card h3 a:hover {
  color: var(--blue);
}
.blog-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.55;
  flex: 1 1 auto;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.blog-card .read-more {
  font-weight: 700;
  color: var(--blue);
  font-size: 0.9rem;
  margin-top: 0.35rem;
  align-self: flex-start;
}
.blog-card .read-more:hover {
  text-decoration: underline;
}
.blog-empty {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
  grid-column: 1 / -1;
}

/* Home blog teaser */
.home-blog {
  padding: var(--section-y) 0;
  background: var(--bg-softer);
}
.home-blog .section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  max-width: none;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Single post ────────────────────────── */
.post-page {
  padding: 3rem 0 5rem;
}
.post-header {
  max-width: 760px;
  margin: 0 auto 2rem;
}
.post-header h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  color: var(--slate);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0.75rem 0 1rem;
}
.post-header .blog-meta {
  margin-bottom: 0;
}
.post-article {
  max-width: 760px;
  margin: 0 auto;
}
.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
/* Keep blog images natural size (wrap content); never stretch from HTML width/height attrs */
.post-content img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.25rem auto;
  object-fit: contain;
  border-radius: 12px;
}
.post-content h2 {
  font-family: var(--display);
  color: var(--slate);
  margin: 2rem 0 0.75rem;
  font-size: 1.45rem;
}
.post-content h3 {
  color: var(--slate);
  margin: 1.5rem 0 0.5rem;
}
.post-content p { margin: 0 0 1.1rem; }
.post-content ul, .post-content ol {
  margin: 0 0 1.1rem;
  padding-left: 1.35rem;
}
.post-content li { margin-bottom: 0.35rem; }
.post-content a { color: var(--blue); font-weight: 600; }
.post-content a:hover { text-decoration: underline; }
.post-content strong { color: var(--slate); }
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}
.post-content th, .post-content td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.85rem;
  text-align: left;
}
.post-content th {
  background: var(--bg-soft);
  color: var(--slate);
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 2rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.post-tags span {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate);
}
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.related-posts h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--slate);
  margin: 0 0 1.25rem;
}

/* ── Admin ──────────────────────────────── */
.admin-body {
  background: #f4f7f5;
  min-height: 100vh;
}
.admin-layout {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 250px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #0f2a1c 0%, #143524 100%);
  color: #e8f5ee;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0.85rem;
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  z-index: 40;
}
.admin-sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1rem;
}
.admin-sidebar-brand .logo-img {
  height: 36px;
  max-width: 140px;
  filter: brightness(1.05);
}
.admin-sidebar-brand span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 245, 238, 0.65);
}
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  color: rgba(232, 245, 238, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  background: transparent;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.admin-nav-link:hover {
  background: rgba(0, 166, 81, 0.18);
  color: #fff;
}
.admin-nav-link.active {
  background: rgba(0, 166, 81, 0.28);
  color: #fff;
  box-shadow: inset 3px 0 0 #00a651;
}
.admin-nav-icon {
  width: 1.25rem;
  text-align: center;
  opacity: 0.9;
}
.admin-nav-badge {
  margin-left: auto;
  background: #00a651;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 0.35rem;
}
.admin-sidebar-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 0.85rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex-shrink: 0;
  background: linear-gradient(180deg, transparent 0%, #0f2a1c 18%);
}
.admin-logout-btn {
  color: #fca5a5 !important;
}
.admin-user-label {
  font-size: 0.72rem;
  color: rgba(232, 245, 238, 0.55);
  margin: 0.65rem 0.85rem 0;
}
.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.admin-mobile-bar {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
}
.admin-menu-toggle {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  font-size: 1.15rem;
  cursor: pointer;
}
.admin-content {
  padding: 1.75rem 1.5rem 3rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
}
.admin-page-header h1 {
  font-family: var(--display);
  font-size: 1.55rem;
  color: var(--slate);
  margin: 0;
}
.admin-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.admin-top h1 {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--slate);
  margin: 0;
}
.admin-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.admin-stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.admin-stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.admin-stat-value {
  font-family: var(--display);
  font-size: 1.75rem;
  color: var(--slate);
  line-height: 1.1;
}
.admin-stat-meta {
  font-size: 0.8rem;
  color: var(--muted);
}
.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.admin-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.admin-card-header h2 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin: 0;
  color: var(--slate);
}
.admin-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.85rem 0.65rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.admin-table th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-published {
  background: #dcfce7;
  color: #15803d;
}
.badge-draft {
  background: #fef3c7;
  color: #b45309;
}
.badge-lead-new { background: #dbeafe; color: #1d4ed8; }
.badge-lead-contacted { background: #fef3c7; color: #b45309; }
.badge-lead-qualified { background: #e0e7ff; color: #4338ca; }
.badge-lead-won { background: #dcfce7; color: #15803d; }
.badge-lead-lost { background: #fee2e2; color: #b91c1c; }
.admin-row-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.admin-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--slate);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}
.filter-pill.active,
.filter-pill:hover {
  border-color: rgba(0, 166, 81, 0.45);
  background: rgba(0, 166, 81, 0.08);
  color: #00a651;
}
.lead-status-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  font: inherit;
  font-size: 0.8rem;
  background: #fff;
  text-transform: capitalize;
}
.lead-notes-details summary {
  list-style: none;
  cursor: pointer;
}
.lead-notes-details summary::-webkit-details-marker { display: none; }
.lead-notes-form {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.45rem;
  min-width: 200px;
}
.lead-notes-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  font: inherit;
  font-size: 0.85rem;
  resize: vertical;
}
.seo-fieldset {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem 0.5rem;
  margin: 0.5rem 0 1rem;
}
.seo-fieldset legend {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate);
  padding: 0 0.4rem;
}
.btn-sm {
  padding: 0.4rem 0.75rem !important;
  font-size: 0.8rem !important;
}
.btn-danger {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fecaca !important;
  box-shadow: none !important;
}
.btn-secondary {
  background: #fff !important;
  color: var(--slate) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
}
.flash {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.flash-success {
  background: #dcfce7;
  color: #15803d;
}
.flash-error {
  background: #fee2e2;
  color: #b91c1c;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 166, 81, 0.12), transparent),
    #f4f7f5;
}
.login-card {
  width: min(100%, 420px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.login-card .logo-img {
  height: 48px;
  margin: 0 auto 1.25rem;
}
.login-card h1 {
  text-align: center;
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  color: var(--slate);
}
.login-card .sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}
.form-stack label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 0.9rem;
}
.form-stack input,
.form-stack textarea,
.form-stack select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: #fff;
  color: var(--slate);
}
.form-stack input:focus,
.form-stack textarea:focus,
.form-stack select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.15);
}
.form-stack textarea {
  min-height: 220px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875rem;
  line-height: 1.55;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.form-hint {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}
.admin-form-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.email-attach-label input[type="file"] {
  padding: 0.55rem 0.75rem;
  background: #f8faf9;
  cursor: pointer;
}
.email-attach-label input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  border: none;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  background: var(--blue, #00a651);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
}
.email-attach-label #attachmentList.attach-warn {
  color: #b45309;
  font-weight: 600;
}
@media (max-width: 1024px) {
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-lg);
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-mobile-bar { display: flex; }
  .admin-content { padding: 1.15rem 1rem 2.5rem; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
}
.nav a.active {
  color: var(--blue);
}

.page-404 {
  min-height: 50vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}
.page-404 h1 {
  font-family: var(--display);
  font-size: 3rem;
  color: var(--blue);
  margin: 0;
}
.page-404 p {
  color: var(--muted);
}

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: minmax(0, 1fr); gap: 1.15rem; }
  .blog-card-cover { aspect-ratio: 16 / 9; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .admin-table { display: block; overflow-x: auto; }
}


/* ── Outreach ───────────────────────────── */
.outreach-filters label { margin-bottom: 0.65rem; }
.channel-chips {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}
.channel-icons {
  gap: 0.3rem;
}
.ch-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.ch-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(15, 42, 28, 0.12);
}
.ch-icon svg {
  display: block;
  width: 15px;
  height: 15px;
}
.ch-email {
  background: #dbeafe;
  color: #1d4ed8;
}
.ch-wa {
  background: #dcfce7;
  color: #128c7e;
}
.ch-li {
  background: #e0e7ff;
  color: #0a66c2;
}
.ch-discord {
  background: #ede9fe;
  color: #5865f2;
}
.chip {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.2;
}
.chip-email { background: #dbeafe; color: #1d4ed8; }
.chip-wa { background: #dcfce7; color: #15803d; }
.chip-li { background: #e0e7ff; color: #3730a3; }
.chip-discord { background: #ede9fe; color: #6d28d9; }

/* Outreach table — prevent column overlap */
.admin-content {
  max-width: none;
}
.outreach-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.75rem !important;
}
.outreach-table {
  table-layout: fixed;
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
}
/* Mobile status chip under name — desktop table uses Status column */
.outreach-card-status-mobile { display: none !important; }

/* Action buttons — clean horizontal row (desktop + mobile) */
.outreach-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  width: 100%;
}
.outreach-actions .delete-customer-form {
  margin: 0;
  width: auto;
  display: inline-flex;
}
.outreach-btn-open {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  white-space: nowrap !important;
  width: auto !important;
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.75rem !important;
  border-radius: 0.55rem !important;
  line-height: 1 !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}
.outreach-btn-open-text { display: none; }
.outreach-btn-open-icon { display: block; flex-shrink: 0; }
/* WhatsApp — open chat with stage-based prefilled follow-up message */
.outreach-btn-wa {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  white-space: nowrap !important;
  width: auto !important;
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.65rem !important;
  border-radius: 0.55rem !important;
  line-height: 1 !important;
  background: #25d366 !important;
  color: #fff !important;
  border: 1px solid #1ebe57 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.02em;
}
.outreach-btn-wa:hover {
  background: #1ebe57 !important;
  color: #fff !important;
  filter: brightness(1.03);
}
.outreach-btn-wa.is-muted {
  background: #dcfce7 !important;
  color: #128c7e !important;
  border-color: #86efac !important;
}
.outreach-btn-wa-text { display: inline; }
.outreach-btn-delete {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.35rem !important;
  min-width: 2.35rem !important;
  height: 2.35rem !important;
  padding: 0 !important;
  border-radius: 0.55rem !important;
  background: #fff !important;
  color: #b91c1c !important;
  border: 1px solid #fecaca !important;
}
.outreach-btn-delete:hover {
  background: #fef2f2 !important;
}
.outreach-table col.col-contact { width: 18%; }
.outreach-table col.col-req { width: 28%; }
.outreach-table col.col-channels { width: 9%; }
.outreach-table col.col-status { width: 12%; }
.outreach-table col.col-fu { width: 8%; }
.outreach-table col.col-month { width: 10%; }
.outreach-table col.col-actions { width: 15%; }

.outreach-table th,
.outreach-table td {
  vertical-align: top;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  padding: 0.75rem 0.55rem;
}
.outreach-table th {
  white-space: nowrap;
}
.outreach-table .cell-stack {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.outreach-table .cell-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.outreach-table .cell-sub {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.outreach-table .cell-req-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  max-height: 4.2em;
  color: var(--slate);
  word-break: break-word;
  overflow-wrap: anywhere;
}
.outreach-table .cell-link {
  display: inline-block;
  margin-top: 0.25rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.outreach-table .cell-channels {
  overflow: visible;
}
.outreach-table .cell-status .badge {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  display: inline-block;
}
.outreach-table .cell-fu {
  text-align: center;
}
.outreach-table .fu-count {
  font-weight: 700;
  color: var(--slate);
}
.outreach-table .cell-contact .last-fu-remark {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.35;
  font-weight: 500;
  white-space: normal;
}
.outreach-table .email-open-line {
  display: block;
  margin-top: 0.25rem;
}
.email-open-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
}
.email-open-badge.is-opened {
  background: #dcfce7;
  color: #15803d;
}
.email-open-badge.is-pending {
  background: #f1f5f9;
  color: #64748b;
}
.outreach-table .cell-actions {
  vertical-align: middle;
}
.outreach-table .cell-actions .admin-row-actions {
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
}
.outreach-table .cell-actions .btn {
  width: auto;
  justify-content: center;
  text-align: center;
}
.outreach-table .cell-actions form {
  margin: 0;
  width: auto;
}
.badge-or-contacted { background: #dbeafe; color: #1d4ed8; }
.badge-or-responded { background: #fef3c7; color: #b45309; }
.badge-or-in_conversation { background: #ffedd5; color: #c2410c; border: 1px solid #fdba74; }
.badge-or-meeting_scheduled { background: #dbeafe; color: #1d4ed8; border: 1px solid #93c5fd; }
.badge-or-awarded { background: #dcfce7; color: #15803d; }
.badge-or-linkedin_req_sent { background: #e0e7ff; color: #3730a3; border: 1px solid #a5b4fc; }
.badge-or-linkedin_pm_sent { background: #ecfeff; color: #0e7490; border: 1px solid #67e8f9; }
.badge-or-closed { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.badge-or-followup_closed { background: #ede9fe; color: #5b21b6; border: 1px solid #c4b5fd; }
.badge-or-we_rejected { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.outreach-table .close-remark-line {
  color: #64748b;
  font-weight: 500;
}
.close-remark-field textarea {
  border-color: #cbd5e1;
}
/* legacy badge aliases (if any old HTML cached) */
.badge-or-new { background: #e2e8f0; color: #475569; }
.badge-or-important { background: #ffedd5; color: #c2410c; border: 1px solid #fdba74; }
.badge-or-linkedin_sent { background: #e0e7ff; color: #3730a3; border: 1px solid #a5b4fc; }
.badge-or-customer_responded { background: #fef3c7; color: #b45309; }
.badge-or-rejected { background: #fee2e2; color: #b91c1c; }
.badge-or-won { background: #dcfce7; color: #15803d; }
.outreach-table .meeting-remark {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1d4ed8;
  line-height: 1.35;
}

/* Active outreach filter buttons */
.btn-filter-active {
  background: #00a651 !important;
  color: #fff !important;
  border-color: #00a651 !important;
  box-shadow: 0 0 0 2px rgba(0, 166, 81, 0.2);
  font-weight: 700;
}
.btn-pending-filter .pending-filter-count,
.filter-pill-pending .pending-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  margin-left: 0.2rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.25);
  color: inherit;
}
.btn-secondary .pending-filter-count {
  background: #fee2e2;
  color: #b91c1c;
}
.filter-pill-pending {
  border-color: #fecaca;
  color: #b91c1c;
}
.filter-pill-pending.active,
.filter-pill.filter-pill-pending.active {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fca5a5;
  font-weight: 700;
}
.filter-pill-important.active,
.filter-pill.filter-pill-important.active {
  background: #ffedd5;
  color: #c2410c;
  border-color: #fdba74;
}
.outreach-table tr.row-important {
  background: linear-gradient(90deg, #fff7ed 0%, #fffbeb 55%, #fff 100%);
  box-shadow: inset 3px 0 0 #f97316;
}
.outreach-table tr.row-important:hover {
  background: #ffedd5;
}
.important-star {
  color: #ea580c;
  margin-right: 0.2rem;
  font-size: 0.95em;
}
.admin-row-actions-icons {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3rem;
  align-items: center;
  justify-content: flex-start;
}
.admin-row-actions-icons .icon-action-form {
  margin: 0;
  width: auto;
  display: inline-flex;
}
.btn-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2rem !important;
  min-width: 2rem !important;
  height: 2rem;
  padding: 0 !important;
  border-radius: 0.5rem;
}
.btn-icon svg {
  display: block;
  flex-shrink: 0;
}
.btn-important-on {
  background: #ffedd5 !important;
  color: #c2410c !important;
  border-color: #fdba74 !important;
}
.outreach-table .cell-actions .admin-row-actions-icons .btn {
  width: auto;
}
.outreach-table .cell-actions .admin-row-actions-icons form {
  width: auto;
}
.outreach-filter-grid-simple {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

/* Last 7 days — clickable day chips */
.outreach-day-strip {
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.outreach-day-strip-label {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.outreach-day-strip-label strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate);
  letter-spacing: 0.01em;
}
.outreach-day-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.15rem 0.1rem 0.35rem;
  scrollbar-width: thin;
}
.day-chip {
  flex: 1 1 0;
  min-width: 4.25rem;
  max-width: 6.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.5rem 0.4rem 0.45rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--slate);
  text-decoration: none;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  cursor: pointer;
  user-select: none;
}
.day-chip:hover {
  border-color: rgba(0, 166, 81, 0.45);
  background: rgba(0, 166, 81, 0.06);
  color: #00a651;
  transform: translateY(-1px);
}
.day-chip.active {
  background: #00a651;
  border-color: #00a651;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(0, 166, 81, 0.22);
  font-weight: 700;
}
.day-chip.active:hover {
  background: #009548;
  border-color: #009548;
  color: #fff;
}
.day-chip.is-today:not(.active) {
  border-color: rgba(0, 166, 81, 0.4);
  background: rgba(0, 166, 81, 0.04);
}
.day-chip.is-empty:not(.active) .day-chip-count {
  color: #94a3b8;
}
.day-chip-wd {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
  line-height: 1.2;
}
.day-chip-date {
  display: flex;
  align-items: baseline;
  gap: 0.22rem;
  line-height: 1.1;
}
.day-chip-num {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--display), inherit;
  line-height: 1;
}
.day-chip-month {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.75;
}
.day-chip-count {
  margin-top: 0.12rem;
  min-width: 1.35rem;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.06);
  line-height: 1.25;
}
.day-chip.active .day-chip-count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.day-chip.active .day-chip-wd,
.day-chip.active .day-chip-month {
  opacity: 0.95;
}
@media (max-width: 640px) {
  .day-chip {
    flex: 0 0 auto;
    min-width: 3.85rem;
    max-width: none;
  }
}
.outreach-table col.col-actions { width: 8%; }
.followup-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.followup-timeline li {
  border-left: 3px solid rgba(0,166,81,0.35);
  padding: 0.35rem 0 0.35rem 0.85rem;
}
.followup-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.2rem; }
.followup-note { font-size: 0.9rem; color: var(--slate); white-space: pre-wrap; }
.outreach-quick-actions strong { color: var(--slate); }
.outreach-table td { font-size: 0.86rem; }
.outreach-table a { word-break: break-word; }

/* ── Outreach list: mobile-friendly card layout ───────── */
@media (max-width: 820px) {
  .admin-page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .admin-page-header h1 {
    font-size: 1.35rem;
  }
  .admin-page-header .admin-actions {
    display: flex;
    gap: 0.5rem;
  }
  .admin-page-header .admin-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .outreach-filters-card {
    padding: 0.9rem !important;
  }
  .outreach-filter-grid-simple {
    grid-template-columns: 1fr !important;
  }
  .outreach-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .outreach-filter-actions .btn {
    flex: 1 1 auto;
    min-width: calc(50% - 0.4rem);
    justify-content: center;
    text-align: center;
  }
  .admin-filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    gap: 0.35rem;
  }
  .admin-filter-pills .filter-pill {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .cal-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .cal-current-label {
    font-size: 1rem;
    line-height: 1.3;
  }

  .admin-stats.outreach-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }
  .admin-stats.outreach-stats .admin-stat-card {
    padding: 0.65rem 0.7rem;
    min-width: 0;
  }
  .admin-stats.outreach-stats .admin-stat-label {
    font-size: 0.68rem;
    line-height: 1.25;
  }
  .admin-stats.outreach-stats .admin-stat-value {
    font-size: 1.15rem;
  }

  /* Table → stacked cards */
  .outreach-table-wrap {
    overflow: visible !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  .outreach-table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0 0.75rem;
  }
  .outreach-table colgroup { display: none; }
  .outreach-table thead { display: none; }
  .outreach-table tbody {
    display: block;
    width: 100%;
  }
  .outreach-table tr.outreach-row,
  .outreach-table tr.outreach-empty-row {
    display: block;
    width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 42, 28, 0.06);
    padding: 0.85rem 0.9rem 0.75rem;
    margin: 0;
  }
  .outreach-table tr.outreach-empty-row td {
    border: none !important;
    padding: 0.5rem 0 !important;
  }
  .outreach-table tr.outreach-row td {
    display: block;
    width: 100% !important;
    max-width: 100%;
    border: none !important;
    padding: 0.35rem 0 !important;
    overflow: visible;
  }
  .outreach-table tr.outreach-row td + td {
    border-top: 1px solid #f1f5f9 !important;
    margin-top: 0.35rem;
    padding-top: 0.5rem !important;
  }
  .outreach-table tr.outreach-row td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-bottom: 0.2rem;
  }
  .outreach-table tr.outreach-row td.cell-contact[data-label]::before {
    display: none;
  }
  .outreach-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .outreach-card-status-mobile {
    display: inline-block !important;
    flex-shrink: 0;
    font-size: 0.72rem !important;
    max-width: 42%;
  }
  .outreach-table .cell-name {
    white-space: normal;
    font-size: 1.02rem;
    line-height: 1.3;
  }
  .outreach-table .cell-sub {
    white-space: normal;
  }
  .outreach-table .cell-req-text {
    -webkit-line-clamp: 4;
    max-height: none;
  }
  .outreach-table tr.outreach-row td.cell-status {
    display: none !important;
  }
  .outreach-table .cell-fu {
    text-align: left;
  }
  .outreach-table .fu-progress {
    justify-content: flex-start;
  }

  /* Actions: one clean horizontal row — [ Open  ] [🗑] */
  .outreach-table tr.outreach-row td.cell-actions {
    border-top: 1px solid #f1f5f9 !important;
    margin-top: 0.45rem;
    padding-top: 0.65rem !important;
  }
  .outreach-table tr.outreach-row td.cell-actions[data-label]::before {
    display: none;
  }
  .outreach-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: stretch;
    gap: 0.5rem;
    width: 100%;
  }
  .outreach-btn-wa {
    flex: 0 0 auto !important;
    min-width: 3.5rem !important;
    height: 2.75rem !important;
    padding: 0 0.85rem !important;
    border-radius: 12px !important;
    font-size: 0.85rem !important;
  }
  .outreach-btn-open {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 2.75rem !important;
    padding: 0 1rem !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    white-space: nowrap !important;
    writing-mode: horizontal-tb !important;
  }
  .outreach-btn-open-text {
    display: inline !important;
  }
  .outreach-btn-open-icon {
    display: none !important;
  }
  .outreach-btn-delete {
    flex: 0 0 2.75rem !important;
    width: 2.75rem !important;
    min-width: 2.75rem !important;
    height: 2.75rem !important;
    border-radius: 12px !important;
  }
  .outreach-table .cell-actions .btn {
    width: auto !important;
  }
  .outreach-table .cell-actions form,
  .outreach-table .cell-actions .delete-customer-form {
    width: auto !important;
    margin: 0 !important;
  }
  .outreach-table .ch-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .outreach-table .ch-icon svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .admin-stats.outreach-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .outreach-filter-actions .btn {
    min-width: 100%;
  }
  .day-chip {
    min-width: 3.5rem;
  }
}


/* ── Outreach calendar + smart paste ────── */
.outreach-calendar {
  margin-bottom: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.cal-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.cal-picker-form { flex: 1; min-width: 200px; }
.cal-picker-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
  margin: 0 !important;
}
.cal-picker-label input[type="month"] {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  background: #fff;
}
.cal-meta {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.cal-current-label {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--slate);
}
.cal-quick { margin: 0; }
.smart-paste-box {
  background: linear-gradient(135deg, rgba(0,166,81,0.06), rgba(0,166,81,0.02));
  border: 1px dashed rgba(0,166,81,0.35);
  border-radius: 14px;
  padding: 1rem 1.1rem 0.75rem;
  margin-bottom: 0.5rem;
}
.smart-paste-status {
  font-size: 0.82rem;
  margin: 0.45rem 0 0;
  min-height: 1.1em;
}
.smart-paste-status.ok { color: #15803d; font-weight: 600; }
.smart-paste-status.err { color: #b91c1c; font-weight: 600; }
.form-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1rem 0 1.15rem;
}


.setup-steps {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--slate);
  line-height: 1.65;
  font-size: 0.92rem;
}
.setup-steps li { margin-bottom: 0.65rem; }
.code-block {
  background: #0f2a1c;
  color: #e8f5ee;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  overflow-x: auto;
  margin: 0.5rem 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}


.email-stage-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.email-stage-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.65rem 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8faf9;
  text-align: center;
}
.email-stage-step.done {
  background: #dcfce7;
  border-color: #86efac;
}
.email-stage-step.current {
  background: rgba(0,166,81,0.1);
  border-color: rgba(0,166,81,0.45);
  box-shadow: 0 0 0 2px rgba(0,166,81,0.12);
}
.email-stage-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--slate);
}
.email-stage-step.done .email-stage-num {
  background: #15803d;
  border-color: #15803d;
  color: #fff;
}
.email-stage-step.current .email-stage-num {
  background: #00a651;
  border-color: #00a651;
  color: #fff;
}
.email-stage-txt {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}
.email-stage-step.current .email-stage-txt,
.email-stage-step.done .email-stage-txt {
  color: var(--slate);
}
@media (max-width: 640px) {
  .email-stage-bar { grid-template-columns: 1fr 1fr; }
}


.date-filter-form { margin: 0; }
.date-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem 1rem;
}
.date-filter-grid label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate);
  margin: 0 !important;
}
.date-filter-grid input,
.date-filter-grid select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  background: #fff;
}
.fu-progress {
  display: flex;
  gap: 3px;
  justify-content: center;
  margin-bottom: 0.25rem;
}
.fu-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e2e8f0;
  display: inline-block;
}
.fu-dot.on { background: #00a651; }
@media (max-width: 900px) {
  .date-filter-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .date-filter-grid { grid-template-columns: 1fr; }
}


.req-preview {
  background: #f0fdf4;
  border: 1px solid rgba(0,166,81,0.25);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.45;
}
.req-preview strong { display: block; font-size: 0.75rem; color: var(--muted); margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.03em; }


.simple-flow {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--slate);
  font-size: 0.9rem;
  line-height: 1.55;
}
.simple-flow li { margin-bottom: 0.25rem; }
.ai-gen-form {
  background: #f8faf9;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.5rem;
}

/* ── Transparent logo polish ────────────── */
.logo-img {
  height: 44px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  background: transparent !important;
}
.logo-img-footer {
  height: 48px;
  max-width: 160px;
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
}
.logo-img-light {
  background: transparent !important;
  padding: 0;
}

/* ── Dynamic hero extras ────────────────── */
.live-badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #15803d;
  background: #dcfce7;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}
.card-header {
  width: 100%;
}
.tech-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.tech-chip {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-deep);
  background: rgba(0, 166, 81, 0.1);
  border: 1px solid rgba(0, 166, 81, 0.2);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  animation: chipIn 0.35s ease;
}
@keyframes chipIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.card-stats em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}
.hero-card.scene-pulse {
  animation: scenePulse 0.4s ease;
}
@keyframes scenePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

/* ── Dynamic tech panel ─────────────────── */
.tech-dynamic {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.tech-dynamic-copy h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  color: var(--slate);
  font-size: 1.25rem;
}
.tech-dynamic-copy p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.tech-panel.fade-swap {
  animation: fadeIn 0.35s ease;
}
#techPanelItems {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: transparent;
  border: none;
  padding: 0;
}

/* ── Rich case studies ──────────────────── */
.case-grid {
  grid-template-columns: 1.15fr 1fr 1fr;
}
.case-rich .case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 0 0 1rem;
}
.case-rich .case-metrics.compact {
  grid-template-columns: 1fr 1fr;
}
.case-metrics div {
  background: rgba(0, 166, 81, 0.08);
  border-radius: 10px;
  padding: 0.65rem 0.55rem;
  text-align: center;
}
.case-metrics strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--blue);
  line-height: 1.1;
}
.case-metrics span {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}
.work-card.case-rich {
  display: flex;
  flex-direction: column;
}
.work-card.case-rich .pointers {
  margin-top: auto;
}

@media (max-width: 1024px) {
  .case-grid {
    grid-template-columns: 1fr 1fr;
  }
  .work-card.large.case-rich {
    grid-column: 1 / -1;
  }
}
@media (max-width: 768px) {
  .case-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Testimonials (single-slide carousel) ─ */
.testimonials {
  padding: 3.5rem 0;
  background: var(--bg-softer);
  position: relative;
  overflow: hidden;
}

.testimonials-head.section-head,
.testimonials-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.15rem;
  max-width: none;
}

.testimonials-head > div:first-child {
  min-width: 0;
  flex: 1;
}

.testimonials-head h2 {
  margin-bottom: 0.3rem;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
}

.testimonials-head p {
  margin: 0;
  max-width: 34rem;
  font-size: 0.95rem;
}

.testimonials-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.t-nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--slate);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.2s;
  box-shadow: var(--shadow);
}

.t-nav:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--bg-soft);
}

.t-nav:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.t-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.25rem;
}

.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: #cbd5e1;
  cursor: pointer;
  transition: 0.25s;
}

.t-dot.active {
  width: 22px;
  background: var(--blue);
}

.t-dot:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.testimonials-slider {
  overflow: hidden;
  border-radius: var(--radius);
  touch-action: pan-y;
}

.testimonials-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
}

.testimonial-card.google-review {
  background: linear-gradient(160deg, #fff 0%, #f8fafc 100%);
}

.g-review-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.g-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #5f6368;
  background: #f1f3f4;
  border-radius: 999px;
  padding: 0.28rem 0.6rem 0.28rem 0.45rem;
  flex-shrink: 0;
}

.g-logo {
  display: block;
}

.g-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.g-rating .g-stars {
  color: #fbbc04;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

.g-rating strong {
  color: var(--slate);
  font-weight: 700;
}

.testimonial-stars {
  color: #fbbc04;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.55rem;
  line-height: 1;
}

.testimonial-card blockquote {
  margin: 0;
}

.testimonial-card blockquote p {
  margin: 0;
  color: var(--slate);
  font-size: 0.98rem;
  line-height: 1.65;
  font-weight: 500;
  max-width: 52rem;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  background: linear-gradient(135deg, #4285f4, #34a853);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.testimonial-author cite {
  display: block;
  font-style: normal;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a73e8;
  line-height: 1.25;
}

.testimonial-author span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.12rem;
  font-weight: 500;
}

.testimonials-footer {
  margin-top: 1.15rem;
  display: flex;
  justify-content: center;
}

.g-all-reviews {
  font-weight: 600;
}

@media (max-width: 768px) {
  .testimonials {
    padding: 2.75rem 0;
  }

  .testimonials-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .testimonial-card {
    padding: 1.15rem 1.15rem 1.1rem;
  }

  .testimonial-card blockquote p {
    font-size: 0.95rem;
  }
}

/* ── Floating chatbot ───────────────────── */
.chatbot-root {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  /* Above page chrome; keep out of overflow-clip traps */
  z-index: 2147483000;
  font-family: var(--font);
  /* Root is only a positioning anchor — do NOT size to parent % */
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
}
.chatbot-fab {
  pointer-events: auto;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #00A651, #006B34);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 166, 81, 0.4);
  display: grid;
  place-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.chatbot-fab:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 40px rgba(0, 166, 81, 0.5);
}
.chatbot-fab.is-open {
  background: var(--slate);
}
.chatbot-fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0, 166, 81, 0.5);
  animation: fabPulse 2s infinite;
  pointer-events: none;
}
.chatbot-fab.is-open .chatbot-fab-pulse {
  display: none;
}
@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.45); opacity: 0; }
}
.chatbot-panel {
  pointer-events: auto;
  position: absolute;
  /* Anchor to bottom-right FAB; open UP and LEFT into the viewport */
  right: 0;
  bottom: 72px;
  left: auto;
  /* Width must use viewport — NOT % of the tiny FAB parent (that was collapsing the panel) */
  width: 380px;
  max-width: min(380px, calc(100vw - 2rem));
  max-width: min(380px, calc(100dvw - 2rem));
  height: min(520px, calc(100vh - 7.5rem));
  height: min(520px, calc(100dvh - 7.5rem));
  max-height: calc(100dvh - 7.5rem);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Keep fully on-screen even on narrow phones */
  transform-origin: bottom right;
}
/* Critical: keep panel closed when hidden (display:flex would override default [hidden]) */
.chatbot-panel[hidden] {
  display: none !important;
}

@media (max-width: 480px) {
  .chatbot-root {
    right: max(0.65rem, env(safe-area-inset-right, 0px));
    bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
  }
  .chatbot-panel {
    /* Nearly full-width card above the FAB */
    width: calc(100vw - 1.3rem);
    width: calc(100dvw - 1.3rem);
    max-width: calc(100dvw - 1.3rem);
    height: min(70dvh, 520px);
    max-height: calc(100dvh - 6.5rem);
    bottom: 70px;
    border-radius: 18px;
  }
  .chatbot-fab {
    width: 56px;
    height: 56px;
  }
}
.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, #00A651, #008C44);
  color: #fff;
}
.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.chatbot-header-info img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
  padding: 4px;
}
.chatbot-header-info strong {
  display: block;
  font-size: 0.95rem;
}
.chatbot-header-info span {
  font-size: 0.72rem;
  opacity: 0.9;
}
.chatbot-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: #f7faf8;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.chat-bubble {
  max-width: 88%;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  animation: fadeIn 0.25s ease;
}
.chat-bubble.bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--slate);
  border-bottom-left-radius: 4px;
}
.chat-bubble.user {
  align-self: flex-end;
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chatbot-input-row {
  display: flex;
  gap: 0.45rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  background: #fff;
}
/* display:flex above overrides native [hidden] — force hide when hidden */
.chatbot-input-row[hidden] {
  display: none !important;
}
.chatbot-input-row input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  font: inherit;
  font-size: 0.9rem;
}
.chatbot-input-row input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.15);
}
.chatbot-send {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.chatbot-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem 0.9rem;
  border-top: 1px solid var(--border);
  background: #fff;
}
.chatbot-quick[hidden] {
  display: none !important;
}
.chat-quick-btn {
  border: 1px solid rgba(0, 166, 81, 0.3);
  background: rgba(0, 166, 81, 0.08);
  color: var(--blue-deep);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.15s;
}
.chat-quick-btn:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.footer-address {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 0.35rem;
  max-width: 260px;
}

/* AI generate form layout */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}
@media (max-width: 700px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

/* Aalia CC row on send form */
.cc-aalia-row .cc-aalia-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--ink, #1a2e28);
}
.cc-aalia-row input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--green, #1f8f5f);
}

/* CRM nav */
.admin-nav-divider {
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 0.65rem 0.75rem;
}
.admin-nav-muted {
  opacity: 0.75;
  font-size: 0.9rem;
}
.admin-nav-muted:hover { opacity: 1; }
.delete-customer-form { margin: 0; width: auto; }
.outreach-table .cell-actions .delete-customer-form {
  margin: 0;
  width: auto;
}
.outreach-table .cell-actions .delete-customer-form .btn {
  width: auto;
}

/* Office expense / P&L */
.profit-pos { color: #15803d !important; }
.profit-neg { color: #b91c1c !important; }
.chart-wrap {
  position: relative;
  height: 260px;
  width: 100%;
}
.chart-wrap-sm { height: 220px; }
.expense-add-form { margin-bottom: 0.5rem; }
.admin-table tfoot td {
  border-top: 2px solid var(--border, #e2e8f0);
  padding-top: 0.65rem;
}

/* ── Dashboard people lists (clean recent rows) ── */
.dash-list-card {
  overflow: hidden;
}
.dash-people-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Employee tracker quick widget on main dashboard */
.tracker-widget-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.tracker-mini-stat {
  background: #f8fafc;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.tracker-mini-stat strong {
  font-size: 1.15rem;
  color: var(--slate, #0f172a);
  font-variant-numeric: tabular-nums;
}
.tracker-widget-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}
.tracker-widget-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto auto;
  gap: 0.65rem 0.85rem;
  align-items: center;
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
  border-radius: 0.5rem;
}
.tracker-widget-row:last-child { border-bottom: none; }
.tracker-widget-row.is-working {
  background: linear-gradient(90deg, rgba(22, 163, 74, 0.08) 0%, transparent 70%);
  box-shadow: inset 3px 0 0 #16a34a;
}
.tracker-widget-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.tracker-widget-mid {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.tracker-widget-time {
  font-size: 0.95rem;
  min-width: 4.5rem;
  text-align: right;
}
.tracker-widget-actions {
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 720px) {
  .tracker-widget-stats { grid-template-columns: 1fr 1fr; }
  .tracker-widget-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "main actions"
      "mid time";
  }
  .tracker-widget-main { grid-area: main; }
  .tracker-widget-mid { grid-area: mid; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 0.4rem; }
  .tracker-widget-time { grid-area: time; text-align: right; }
  .tracker-widget-actions { grid-area: actions; }
}

.dash-person-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.85rem 0.15rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
}
.dash-person-row:last-child {
  border-bottom: none;
  padding-bottom: 0.25rem;
}
.dash-person-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.dash-person-name {
  font-weight: 700;
  color: var(--slate, #0f172a);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
a.dash-person-name:hover {
  color: var(--blue, #00A651);
}
.dash-person-meta {
  font-size: 0.8rem;
  color: var(--muted, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-person-mid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}
.dash-person-date {
  font-size: 0.78rem;
  color: var(--muted, #64748b);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dash-person-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.dash-person-actions form {
  margin: 0;
}
.badge-compact {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.68rem !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.22rem 0.55rem !important;
  border-radius: 999px !important;
  line-height: 1.2;
  max-width: 100%;
  text-transform: none;
}
.btn-xs {
  padding: 0.32rem 0.65rem !important;
  font-size: 0.75rem !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .dash-person-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "main actions"
      "mid actions";
    gap: 0.35rem 0.75rem;
  }
  .dash-person-main { grid-area: main; }
  .dash-person-mid {
    grid-area: mid;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
  }
  .dash-person-actions { grid-area: actions; flex-direction: column; }
}

/* ── QA fixes (2026-07-27) ─────────────────────────────── */

/* Trust strip: category → sub-tech (replaces dense marquee) */
.trust-by-category {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 920px;
  margin: 0 auto;
}

.trust-cat-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.75rem 1rem;
  align-items: center;
}

.trust-cat-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  text-align: right;
}

.trust-cat-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
}

.trust-cat-items span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .trust-cat-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .trust-cat-label {
    text-align: left;
  }
}

/* Services: category → sub-category */
.service-tabs-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
  padding: 0 0.25rem;
}

.service-breadcrumb {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.service-breadcrumb strong {
  color: var(--blue);
  font-weight: 700;
}

.subcat-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.85rem 0 0.45rem;
}

.subcat-list li {
  position: relative;
}

/* Reviews: content → stars → owner → position; controls below */
.testimonials-controls-below {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
}

.g-review-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.review-content {
  margin: 0 0 0.85rem;
  flex: 1;
}

.testimonial-card .review-content p {
  -webkit-line-clamp: 8;
}

.testimonial-stars {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.testimonial-stars .star-empty {
  color: #e2e8f0;
}

.testimonial-stars .star-label {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0;
}

.review-owner {
  display: block;
  font-style: normal;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.25;
}

.review-position {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.12rem;
  font-weight: 500;
}

/* Blog teaser: CTA under posts */
.blog-teaser-footer {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

/* Industries as links */
a.industry-card {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

a.industry-card .industry-cta {
  display: block;
  margin-top: 0.55rem;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(52, 211, 153, 0.9);
  opacity: 0;
  transition: opacity 0.2s;
}

a.industry-card:hover .industry-cta,
a.industry-card:focus-visible .industry-cta {
  opacity: 1;
}

a.industry-card:focus-visible {
  outline: 2px solid rgba(52, 211, 153, 0.7);
  outline-offset: 2px;
}

/* Footer social + legal */
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-social-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600 !important;
}

.footer-social-link svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.1rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: #fff;
}

/* Legal + industry detail pages */
.legal-page {
  padding-bottom: 3rem;
}

.legal-hero {
  padding: calc(var(--header-h, 72px) + 2.5rem) 0 1.75rem;
  background: linear-gradient(180deg, var(--bg-soft), #fff);
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
}

.legal-lead {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.55;
}

.legal-back {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-body {
  padding: 2.25rem 0 1rem;
}

.legal-prose {
  max-width: 720px;
}

.legal-prose h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.2rem;
}

.legal-prose p,
.legal-prose li {
  color: var(--slate);
  line-height: 1.7;
  font-size: 0.98rem;
}

.legal-prose ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0 1rem;
}

.legal-prose li {
  margin-bottom: 0.4rem;
}

.legal-cta-box {
  margin-top: 2rem;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.legal-cta-box h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.legal-cta-box p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.industry-hero-icon {
  font-size: 2.25rem;
  margin-bottom: 0.35rem;
}

.industry-prose {
  max-width: 760px;
}

/* Extra hero mobile safety */
@media (max-width: 480px) {
  .hero-visual {
    max-width: 100%;
    padding-inline: 0;
  }

  .hero-card.main-card {
    padding: 1rem;
  }

  .code-block {
    font-size: 0.68rem;
    overflow-x: auto;
  }

  .float-card strong {
    font-size: 0.82rem;
  }

  .float-card span {
    font-size: 0.72rem;
  }
}
