/* ================================================================
   PULSS — marketing site stylesheet
   Static single-page site. Mobile-first. No frameworks.
   ================================================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

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

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

button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-text);
  text-wrap: balance;
}

p, li { text-wrap: pretty; }

ul[role='list'] { list-style: none; }

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(37, 99, 235, 0.2); color: var(--color-text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Design tokens ---------- */
:root {
  /* Font families */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;

  /* Colors — brand */
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-active: #1e40af;
  --color-primary-soft: #eff6ff;
  --color-primary-softer: #dbeafe;

  --color-accent: #0d9488;
  --color-accent-hover: #0f766e;
  --color-accent-soft: #f0fdfa;
  --color-accent-softer: #ccfbf1;

  /* Surfaces & text */
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-2: #f8fafc;
  --color-surface-3: #f1f5f9;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-text-faint: #94a3b8;
  --color-border: #e2e8f0;
  --color-border-soft: #eef2f6;

  /* Status */
  --color-success: #16a34a;
  --color-danger: #dc2626;

  /* Type scale — fluid */
  --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm:   clamp(0.875rem, 0.82rem + 0.25vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  --text-md:   clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  --text-lg:   clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --text-xl:   clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem);
  --text-2xl:  clamp(2rem, 1.5rem + 2.2vw, 3rem);
  --text-3xl:  clamp(2.5rem, 1.8rem + 3.2vw, 4rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.1);
  --shadow-brand: 0 12px 32px rgba(37, 99, 235, 0.22);

  /* Transitions */
  --trans: 200ms cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Layout */
  --container: 1200px;
  --container-narrow: 960px;
  --header-h: 72px;
}

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  top: -48px;
  left: var(--space-4);
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { top: var(--space-4); }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

main > section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: all var(--trans);
  text-decoration: none;
}

.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.btn-lg { padding: 0.9rem 1.4rem; font-size: var(--text-base); }
.btn-block { display: flex; width: 100%; }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.3), 0 4px 12px rgba(37, 99, 235, 0.15);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover {
  background: var(--color-surface-2);
  border-color: var(--color-text-faint);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--color-primary); }

.btn-white {
  background: #fff;
  color: var(--color-primary);
}
.btn-white:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border-soft);
}

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

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 32px; width: auto; }

.nav-desktop {
  display: none;
  gap: var(--space-8);
  margin-left: auto;
  margin-right: auto;
}
.nav-desktop a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--trans);
}
.nav-desktop a:hover { color: var(--color-text); }

.header-actions {
  display: none;
  align-items: center;
  gap: var(--space-3);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: var(--radius-sm);
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-5) var(--space-6);
  background: #fff;
  border-top: 1px solid var(--color-border-soft);
}
.nav-mobile a { font-size: var(--text-base); font-weight: 500; color: var(--color-text); padding: var(--space-2) 0; }
.nav-mobile a.btn { padding: var(--space-3) var(--space-5); margin-top: var(--space-2); }
.nav-mobile.is-open { display: flex; }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .header-actions { display: inline-flex; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ---------- Eyebrow / Section heads ---------- */
.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}
.eyebrow-dark { background: rgba(13, 148, 136, 0.1); color: var(--color-accent); }
.eyebrow-light { background: rgba(255, 255, 255, 0.15); color: #fff; }

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-12);
}
.section-head.center {
  text-align: center;
  margin-inline: auto;
}
.section-head h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
}
.section-head .section-sub {
  margin-top: var(--space-4);
  font-size: var(--text-md);
  color: var(--color-text-muted);
  max-width: 60ch;
}
.section-head.center .section-sub { margin-inline: auto; }

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding-top: clamp(var(--space-12), 8vw, var(--space-24));
  padding-bottom: clamp(var(--space-16), 10vw, var(--space-32));
  background:
    radial-gradient(ellipse 60% 70% at 85% 10%, rgba(13, 148, 136, 0.08), transparent 60%),
    radial-gradient(ellipse 70% 60% at 10% 30%, rgba(37, 99, 235, 0.08), transparent 60%),
    linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: var(--space-16); }
}

.hero-copy h1 {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-top: 0;
}
.hero-copy .lede {
  margin-top: var(--space-5);
  font-size: var(--text-md);
  color: var(--color-text-muted);
  max-width: 56ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-soft);
}
.hero-stats li { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.hero-stats span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

.hero-visual { position: relative; }
.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
}
.hero-image-wrap img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: #fff;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-soft);
  font-size: var(--text-xs);
}
.hero-badge strong { display: block; font-size: var(--text-sm); color: var(--color-text); font-weight: 600; }
.hero-badge span { display: block; font-size: var(--text-xs); color: var(--color-text-muted); }
.hero-badge .badge-dot {
  width: 10px;
  height: 10px;
  background: var(--color-success);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
  animation: pulse 2s infinite;
}
.hero-badge:nth-of-type(1) { bottom: -10px; left: -18px; animation: float 6s ease-in-out infinite; }
.hero-badge-2 { top: 20px; right: -18px; animation: float 6s ease-in-out infinite 1s; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 640px) {
  .hero-badge:nth-of-type(1) { bottom: -12px; left: 8px; }
  .hero-badge-2 { top: 8px; right: 8px; }
}

/* ---------- PROBLEM / SOLUTION ---------- */
.problem-solution {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-8);
}
@media (min-width: 720px) { .problem-grid { grid-template-columns: repeat(3, 1fr); } }

.problem-card {
  background: #fff;
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-soft);
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border);
}
.problem-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}
.problem-icon-1 { background: #fef2f2; color: #dc2626; }
.problem-icon-2 { background: #fefce8; color: #ca8a04; }
.problem-icon-3 { background: #fdf4ff; color: #a21caf; }

.problem-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.problem-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.solution-statement {
  margin-top: var(--space-16);
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
}
.solution-statement p:first-child {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.025em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  line-height: 1.25;
}
.highlight {
  background: linear-gradient(120deg, transparent 0%, transparent 60%, rgba(13, 148, 136, 0.25) 60%, rgba(13, 148, 136, 0.25) 100%);
  padding: 0 var(--space-1);
}
.solution-sub {
  margin-top: var(--space-5);
  font-size: var(--text-md);
  color: var(--color-text-muted);
  max-width: 55ch;
  margin-inline: auto;
}

/* ---------- FEATURES ---------- */
.features { background: #fff; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  transition: all var(--trans);
}
.feature-card:hover {
  border-color: var(--color-primary-softer);
  box-shadow: 0 0 0 3px var(--color-primary-soft), var(--shadow-sm);
  transform: translateY(-2px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-primary-soft) 0%, var(--color-accent-soft) 100%);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.feature-card h3 {
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: var(--space-2);
  letter-spacing: -0.015em;
}
.feature-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ---------- HOW IT WORKS ---------- */
.how-it-works {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
  counter-reset: step;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } }

.step {
  position: relative;
  padding: var(--space-8) var(--space-6);
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-soft);
}

.step-num {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-md);
  margin-bottom: var(--space-5);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.step h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.step code {
  display: inline-block;
  font-family: ui-monospace, 'SF Mono', Monaco, monospace;
  font-size: 0.85em;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  padding: 1px 6px;
  border-radius: 4px;
  word-break: break-all;
}

.how-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-soft);
}
.how-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- WHY OWN / COMPARE TABLE ---------- */
.why-own { background: #fff; }

.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: #fff;
  font-size: var(--text-sm);
}
.compare-table th,
.compare-table td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  border-bottom: 1px solid var(--color-border-soft);
}
.compare-table thead th {
  background: var(--color-surface-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text);
}
.compare-table th[scope="row"] {
  font-weight: 600;
  color: var(--color-text);
  width: 30%;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }

.th-highlight {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%) !important;
  color: #fff !important;
  text-align: left;
}

.compare-table tr:has(.cell-good),
.compare-table td:has(.cell-good) {
  background: rgba(13, 148, 136, 0.035);
}

.cell-bad, .cell-good {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 500;
}
.cell-bad { color: var(--color-danger); }
.cell-bad::before {
  content: "✕";
  font-weight: 700;
  color: var(--color-danger);
}
.cell-good { color: var(--color-accent-hover); font-weight: 600; }
.cell-good::before {
  content: "✓";
  font-weight: 800;
  color: var(--color-accent);
}

/* ---------- COMPLIANCE ---------- */
.compliance {
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
}

.compliance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}
@media (min-width: 900px) {
  .compliance-grid { grid-template-columns: 1.3fr 1fr; gap: var(--space-16); }
}

.compliance h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
}

.compliance-list {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.compliance-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.compliance-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: #fff;
  background: var(--color-accent);
  border-radius: 50%;
  padding: 3px;
  width: 24px;
  height: 24px;
}
.compliance-list strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}
.compliance-list span {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.compliance-visual {
  display: flex;
  justify-content: center;
}
.compliance-visual img {
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials { background: #fff; }

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 720px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  padding: var(--space-8) var(--space-6);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition: all var(--trans);
}
.testimonial-card:hover {
  border-color: var(--color-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stars {
  color: #f59e0b;
  font-size: var(--text-md);
  letter-spacing: 2px;
}

.testimonial-card blockquote { font-style: normal; }
.testimonial-card p {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.6;
}

.testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: var(--text-sm);
  font-family: var(--font-display);
  flex-shrink: 0;
}
.avatar-1 { background: linear-gradient(135deg, #f97316, #dc2626); }
.avatar-2 { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.avatar-3 { background: linear-gradient(135deg, #0d9488, #16a34a); }

.testimonial-card figcaption strong {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  font-size: var(--text-sm);
}
.testimonial-card figcaption span {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ---------- PRICING ---------- */
.pricing {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 960px;
  margin-inline: auto;
}
@media (min-width: 820px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }

.pricing-card {
  background: #fff;
  padding: var(--space-10) var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition: all var(--trans);
}
.pricing-card:hover { box-shadow: var(--shadow-md); }

.pricing-card-alt {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  border: none;
  position: relative;
  overflow: hidden;
}
.pricing-card-alt::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.3) 0%, transparent 60%);
  pointer-events: none;
}
.pricing-card-alt h3 { color: #fff; }
.pricing-card-alt .pricing-lede { color: #cbd5e1; }
.pricing-card-alt .pricing-features li { color: #e2e8f0; }
.pricing-card-alt .pricing-features li::before { color: var(--color-accent); }
.pricing-card-alt .pricing-footnote { color: #94a3b8; }

.pricing-tag {
  display: inline-block;
  align-self: flex-start;
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}
.pricing-tag-alt { background: rgba(13, 148, 136, 0.2); color: #5eead4; }

.pricing-card h3 {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.pricing-lede {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-left: 0;
  list-style: none;
  margin-block: var(--space-2);
}
.pricing-features li {
  position: relative;
  padding-left: 28px;
  font-size: var(--text-sm);
  color: var(--color-text);
}
.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: var(--color-accent);
  font-size: var(--text-md);
}

.pricing-footnote {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
  margin-top: calc(-1 * var(--space-2));
}

/* ---------- FAQ ---------- */
.faq { background: #fff; }

.faq-list {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.faq-item {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--trans);
}
.faq-item[open] {
  background: #fff;
  border-color: var(--color-primary-softer);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-md);
  color: var(--color-text);
  list-style: none;
  transition: color var(--trans);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--color-primary); }

.faq-chevron {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform var(--trans), color var(--trans);
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--color-primary); }

.faq-answer {
  padding: 0 var(--space-6) var(--space-6);
}
.faq-answer p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: none;
}

/* ---------- FINAL CTA ---------- */
.final-cta {
  background:
    radial-gradient(ellipse at top right, rgba(13, 148, 136, 0.35) 0%, transparent 55%),
    linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  pointer-events: none;
}
.final-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.final-cta h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
}
.final-cta p {
  margin: var(--space-5) auto 0;
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.9);
  max-width: 52ch;
}
.final-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-8);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding-block: var(--space-16) var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-8); } }

.footer-brand img { filter: brightness(0) invert(1); margin-bottom: var(--space-4); }
.footer-brand p {
  font-size: var(--text-sm);
  color: #94a3b8;
  max-width: 32ch;
}

.footer-col h4 {
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a {
  font-size: var(--text-sm);
  color: #94a3b8;
  transition: color var(--trans);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-6);
  font-size: var(--text-xs);
  color: #64748b;
}
.footer-tag { color: #475569; }

/* ---------- Reveal animation on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* First-paint reveals (hero) — show on load if IntersectionObserver hasn't run */
.no-js .reveal { opacity: 1; transform: none; }


/* ================================================================
   STEMO DARK THEME
   Activated when <html data-brand="stemo"> is set by script.js
   Premium dark landing page with orange accent from logo
   ================================================================ */

html[data-brand="stemo"] {
  /* Primary — Stemo orange */
  --color-primary: #F97316;
  --color-primary-hover: #EA580C;
  --color-primary-active: #C2410C;
  --color-primary-soft: #2a1a0f;
  --color-primary-softer: #3a2a1f;

  /* Accent — warm peach */
  --color-accent: #FB923C;
  --color-accent-hover: #F97316;
  --color-accent-soft: #2a1a0f;
  --color-accent-softer: #3a2a1f;

  /* Dark surfaces */
  --color-bg: #0a0a0a;
  --color-surface: #111113;
  --color-surface-2: #17171a;
  --color-surface-3: #1f1f23;
  --color-text: #fafafa;
  --color-text-muted: #cbd5e1;      /* brighter muted for readability on dark */
  --color-text-faint: #94a3b8;      /* brighter faint so it's actually visible */
  --color-border: #27272a;
  --color-border-soft: #18181b;

  /* Success / danger stay readable */
  --color-success: #22c55e;
  --color-danger: #ef4444;

  /* Shadow colors for dark */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.7);
  --shadow-brand: 0 12px 32px rgba(249, 115, 22, 0.3);
}

/* Selection */
html[data-brand="stemo"] ::selection {
  background: rgba(249, 115, 22, 0.3);
  color: #fff;
}

/* Eyebrow / badge labels — were teal with low opacity on light, now orange glow on dark */
html[data-brand="stemo"] .eyebrow,
html[data-brand="stemo"] .eyebrow-dark,
html[data-brand="stemo"] .eyebrow-light {
  background: rgba(249, 115, 22, 0.15) !important;
  color: #FDBA74 !important;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

/* Hero text & muted paragraph text */
html[data-brand="stemo"] p,
html[data-brand="stemo"] li {
  color: #e2e8f0;
}

/* Hero badges & callouts */
html[data-brand="stemo"] .hero-badge {
  background: #17171a;
  border: 1px solid #3f3f46;
  color: #fafafa;
}
html[data-brand="stemo"] .hero-badge span {
  color: #a1a1aa !important;
}

/* Grid / dotted / pattern backgrounds on hero and sections — were dark-on-light */
html[data-brand="stemo"] .hero,
html[data-brand="stemo"] .section-hero,
html[data-brand="stemo"] .bg-grid {
  background-image:
    radial-gradient(ellipse 60% 70% at 85% 10%, rgba(249, 115, 22, 0.12), transparent 60%),
    radial-gradient(ellipse 70% 60% at 10% 30%, rgba(234, 88, 12, 0.08), transparent 60%),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px) !important;
}

/* Accent gradient overlays */
html[data-brand="stemo"] [class*="accent-stripe"],
html[data-brand="stemo"] [class*="accent-bg"] {
  background: linear-gradient(120deg, transparent 0%, transparent 60%, rgba(249, 115, 22, 0.2) 60%, rgba(249, 115, 22, 0.2) 100%) !important;
}

/* Pricing highlight glow */
html[data-brand="stemo"] .pricing-glow {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.3) 0%, transparent 60%) !important;
}

/* Pricing tags */
html[data-brand="stemo"] .pricing-tag,
html[data-brand="stemo"] .pricing-tag-alt {
  background: rgba(249, 115, 22, 0.2) !important;
  color: #FDBA74 !important;
}

/* Pulse / status dots on dark */
html[data-brand="stemo"] [class*="pulse"] {
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.3);
}

/* Feature / cta section tinted backgrounds */
html[data-brand="stemo"] [style*="rgba(13, 148, 136"],
html[data-brand="stemo"] [style*="background: rgba(13, 148, 136"] {
  background-color: rgba(249, 115, 22, 0.08) !important;
}

html[data-brand="stemo"] body {
  background: radial-gradient(ellipse at top, #17171a 0%, #0a0a0a 70%) fixed;
}

/* Headers on dark */
html[data-brand="stemo"] .site-header {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #27272a;
}

/* Sections — alternate deep black / charcoal */
html[data-brand="stemo"] section:nth-child(even),
html[data-brand="stemo"] .section-alt {
  background: #111113;
}

/* Cards */
html[data-brand="stemo"] .card,
html[data-brand="stemo"] .feature-card,
html[data-brand="stemo"] .pricing-card,
html[data-brand="stemo"] .testimonial-card,
html[data-brand="stemo"] .step-card {
  background: #17171a;
  border: 1px solid #27272a;
  color: #fafafa;
}
html[data-brand="stemo"] .card:hover,
html[data-brand="stemo"] .feature-card:hover {
  border-color: #F97316;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.2), 0 20px 40px -10px rgba(249, 115, 22, 0.15);
}

/* Buttons */
html[data-brand="stemo"] .btn-primary {
  background: linear-gradient(135deg, #D1611F 0%, #F97316 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}
html[data-brand="stemo"] .btn-primary:hover {
  background: linear-gradient(135deg, #B54E17 0%, #EA580C 100%);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}
html[data-brand="stemo"] .btn-secondary {
  background: #17171a;
  color: #fafafa;
  border: 1px solid #3f3f46;
}
html[data-brand="stemo"] .btn-secondary:hover {
  background: #27272a;
  border-color: #52525b;
}

/* Nav links */
html[data-brand="stemo"] .nav-desktop a {
  color: #a1a1aa;
}
html[data-brand="stemo"] .nav-desktop a:hover {
  color: #F97316;
}

/* Footer */
html[data-brand="stemo"] .site-footer {
  background: #0a0a0a;
  border-top: 1px solid #27272a;
  color: #a1a1aa;
}
html[data-brand="stemo"] .site-footer h4 {
  color: #fafafa;
}

/* Forms */
html[data-brand="stemo"] input,
html[data-brand="stemo"] textarea,
html[data-brand="stemo"] select {
  background: #17171a !important;
  border-color: #3f3f46 !important;
  color: #fafafa !important;
}
html[data-brand="stemo"] input:focus,
html[data-brand="stemo"] textarea:focus {
  border-color: #F97316 !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2) !important;
}
html[data-brand="stemo"] input::placeholder {
  color: #52525b !important;
}

/* Hero/highlighted sections */
html[data-brand="stemo"] .hero,
html[data-brand="stemo"] .hero-section {
  background: radial-gradient(ellipse at center top, rgba(249, 115, 22, 0.08) 0%, transparent 60%);
}

/* Badge / pill elements */
html[data-brand="stemo"] .badge,
html[data-brand="stemo"] .pill {
  background: rgba(249, 115, 22, 0.1);
  color: #F97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

/* Code / pre blocks */
html[data-brand="stemo"] code,
html[data-brand="stemo"] pre {
  background: #18181b;
  color: #F97316;
  border: 1px solid #27272a;
}

/* Scrollbar */
html[data-brand="stemo"] ::-webkit-scrollbar {
  width: 10px;
}
html[data-brand="stemo"] ::-webkit-scrollbar-track {
  background: #0a0a0a;
}
html[data-brand="stemo"] ::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 5px;
}
html[data-brand="stemo"] ::-webkit-scrollbar-thumb:hover {
  background: #F97316;
}

/* Muted text helper */
html[data-brand="stemo"] .muted,
html[data-brand="stemo"] .text-muted {
  color: #a1a1aa;
}

/* Divider */
html[data-brand="stemo"] hr {
  border-color: #27272a;
}

/* ================================================================
   STEMO — fix white-on-white cards/sections
   These sections were white in Pulss theme; in Stemo dark theme they
   need surface-dark with light text so content stays readable.
   ================================================================ */
html[data-brand="stemo"] .features,
html[data-brand="stemo"] .why-own,
html[data-brand="stemo"] .testimonials,
html[data-brand="stemo"] .faq,
html[data-brand="stemo"] .problem-section {
  background: var(--color-surface) !important;
}

/* Card surfaces that were #fff */
html[data-brand="stemo"] .feature-card,
html[data-brand="stemo"] .problem-card,
html[data-brand="stemo"] .why-own-card,
html[data-brand="stemo"] .testimonial-card,
html[data-brand="stemo"] .pricing-card,
html[data-brand="stemo"] .faq-item,
html[data-brand="stemo"] .step-card,
html[data-brand="stemo"] .stat-card,
html[data-brand="stemo"] [class*="-card"] {
  background: var(--color-surface-2) !important;
  border-color: var(--color-border) !important;
  color: var(--color-text) !important;
}

/* Headings inside cards/sections */
html[data-brand="stemo"] .features h2,
html[data-brand="stemo"] .features h3,
html[data-brand="stemo"] .why-own h2,
html[data-brand="stemo"] .why-own h3,
html[data-brand="stemo"] .testimonials h2,
html[data-brand="stemo"] .testimonials h3,
html[data-brand="stemo"] .faq h2,
html[data-brand="stemo"] .faq h3,
html[data-brand="stemo"] .problem-section h2,
html[data-brand="stemo"] .problem-section h3,
html[data-brand="stemo"] [class*="-card"] h1,
html[data-brand="stemo"] [class*="-card"] h2,
html[data-brand="stemo"] [class*="-card"] h3,
html[data-brand="stemo"] [class*="-card"] h4 {
  color: var(--color-text) !important;
}

/* Body text inside cards/sections */
html[data-brand="stemo"] [class*="-card"] p,
html[data-brand="stemo"] [class*="-card"] li,
html[data-brand="stemo"] .features p,
html[data-brand="stemo"] .why-own p,
html[data-brand="stemo"] .testimonials p,
html[data-brand="stemo"] .faq p,
html[data-brand="stemo"] .faq li,
html[data-brand="stemo"] blockquote {
  color: var(--color-text-muted) !important;
}

/* Pricing tag blocks were light-cream gradients */
html[data-brand="stemo"] .pricing,
html[data-brand="stemo"] [class*="pricing"] {
  background: var(--color-bg) !important;
}
html[data-brand="stemo"] .pricing .pricing-card {
  background: var(--color-surface-2) !important;
}

/* Footer row/links readability */
html[data-brand="stemo"] footer,
html[data-brand="stemo"] .footer {
  background: var(--color-bg) !important;
  color: var(--color-text-muted) !important;
}
html[data-brand="stemo"] footer a,
html[data-brand="stemo"] .footer a {
  color: var(--color-text-muted) !important;
}
html[data-brand="stemo"] footer a:hover {
  color: var(--color-primary) !important;
}

/* Stats/big numbers need to pop on dark */
html[data-brand="stemo"] .stat-card .stat-value,
html[data-brand="stemo"] .stat-value,
html[data-brand="stemo"] [class*="stat"] strong {
  color: var(--color-primary) !important;
}

/* Inputs in callback form etc. */
html[data-brand="stemo"] input[type="text"],
html[data-brand="stemo"] input[type="email"],
html[data-brand="stemo"] input[type="tel"],
html[data-brand="stemo"] textarea,
html[data-brand="stemo"] select {
  background: var(--color-surface-2) !important;
  color: var(--color-text) !important;
  border-color: var(--color-border) !important;
}
html[data-brand="stemo"] input::placeholder,
html[data-brand="stemo"] textarea::placeholder {
  color: var(--color-text-faint) !important;
}

/* ================================================================
   STEMO Round 4: more white-on-white fixes
   ================================================================ */

/* "How it works" section + step cards */
html[data-brand="stemo"] .how-it-works,
html[data-brand="stemo"] .pricing,
html[data-brand="stemo"] section {
  background: var(--color-bg) !important;
}

html[data-brand="stemo"] .step,
html[data-brand="stemo"] .steps > li {
  background: var(--color-surface-2) !important;
  border: 1px solid var(--color-border) !important;
  color: var(--color-text) !important;
}

html[data-brand="stemo"] .step h3,
html[data-brand="stemo"] .steps > li h3,
html[data-brand="stemo"] .step h2 {
  color: var(--color-text) !important;
}

html[data-brand="stemo"] .step p,
html[data-brand="stemo"] .steps > li p {
  color: var(--color-text-muted) !important;
}

html[data-brand="stemo"] .step code {
  background: var(--color-bg) !important;
  color: var(--color-primary) !important;
  border: 1px solid var(--color-border) !important;
}

/* Header / nav bar */
html[data-brand="stemo"] header,
html[data-brand="stemo"] .nav,
html[data-brand="stemo"] nav {
  background: var(--color-bg) !important;
}

html[data-brand="stemo"] .nav a,
html[data-brand="stemo"] header a,
html[data-brand="stemo"] nav a {
  color: var(--color-text) !important;
}
html[data-brand="stemo"] .logo,
html[data-brand="stemo"] .brand-name {
  color: var(--color-text) !important;
}

/* Generic catch-all: any element on the body that has white bg should switch to surface-2 */
html[data-brand="stemo"] body {
  background: var(--color-bg) !important;
  color: var(--color-text) !important;
}
