/* =======================================================================
   STONEWALL SYSTEMS — MAIN STYLESHEET
   -----------------------------------------------------------------------
   How this file is organized (search for these section titles):
   1. CSS Reset & base element styles
   2. Design tokens (CSS variables — colors, spacing, radius, shadow, type)
   3. Typography
   4. Layout helpers (container, section spacing, grid)
   5. Buttons
   6. Header & navigation (incl. mobile menu)
   7. Footer
   8. Hero sections
   9. Cards (generic + variants)
   10. Flow diagram — the recurring "lead pipeline" visual used sitewide
   11. Free Automation Review callout component
   12. Testimonials
   13. FAQ accordion
   14. Example message / chat bubble component (med spas page)
   15. Checklist component (industries page)
   16. Contact form
   17. Utility classes
   18. Scroll-reveal animation
   19. Responsive tweaks
   20. Reduced motion & accessibility
   ======================================================================= */


/* =======================================================================
   1. CSS RESET & BASE ELEMENT STYLES
   A light reset so every browser starts from the same baseline.
   ======================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-dark);
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
}

/* Visible, consistent focus state for every interactive element.
   This is required for keyboard and switch-device accessibility —
   never remove this without replacing it with something equally visible. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* =======================================================================
   2. DESIGN TOKENS
   Every color, spacing value, radius, and shadow in the site is defined
   here once. Change a value here and it updates everywhere — this is
   the fastest way to re-skin the whole site with a new brand color.
   ======================================================================= */

:root {
  /* ---- Color: backgrounds ---- */
  --color-bg: #08090A;
  --color-bg-alt: #0C0D10;
  --color-surface: rgba(255, 255, 255, 0.03);
  --color-surface-dark: #060608;

  /* ---- Color: text ---- */
  --color-text: #E4E4EA;
  --color-text-on-dark: #E4E4EA;
  --color-text-muted: #8A8F9A;
  --color-text-muted-on-dark: #8A8F9A;
  --color-text-faint: #555A64;

  /* ---- Color: brand accent (teal/cyan) ---- */
  --color-accent: #6366F1;
  --color-accent-dark: #818CF8;
  --color-accent-soft: rgba(99, 102, 241, 0.08);
  --color-accent-contrast: #0A0A10;

  /* ---- Color: secondary accent, used sparingly for "problem" cues ---- */
  --color-flag: #F97066;
  --color-flag-soft: rgba(249, 112, 102, 0.08);

  /* ---- Color: borders ---- */
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-strong: rgba(255, 255, 255, 0.10);

  /* ---- Spacing scale ---- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* ---- Border radius ---- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  /* ---- Shadows / Glows ---- */
  --shadow-sm: 0 0 0 1px rgba(255, 255, 255, 0.03);
  --shadow-md: 0 0 30px rgba(99, 102, 241, 0.06);
  --shadow-lg: 0 0 60px rgba(99, 102, 241, 0.10);

  /* ---- Typography ----
     Display face: Space Grotesk — used for headlines only, with restraint.
     Body face: Inter — used for everything readable.
     Utility face: IBM Plex Mono — used only for small numbered/eyebrow
     labels on real sequences (workflow steps, FAQ numbers). */
  --font-display: 'Space Grotesk', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* ---- Layout ---- */
  --container-max: 1180px;
  --header-height: 76px;

  /* ---- Motion ---- */
  --transition-fast: 150ms ease;
  --transition-base: 240ms ease;
}


/* =======================================================================
   3. TYPOGRAPHY
   ======================================================================= */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-text);
  line-height: 1.15;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

p { margin: 0; }

.lede {
  /* Larger intro paragraph used under headlines */
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 42rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: inline-block;
  margin-bottom: var(--space-xs);
}

.section-head {
  max-width: 46rem;
  margin-bottom: var(--space-lg);
}

.section-head p {
  margin-top: var(--space-sm);
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}


/* =======================================================================
   4. LAYOUT HELPERS
   ======================================================================= */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section { padding: var(--space-xl) 0; }
.section--tight { padding: var(--space-lg) 0; }
.section--alt { background-color: var(--color-bg-alt); }
.section--dark {
  background-color: var(--color-surface-dark);
  color: var(--color-text-on-dark);
}
.section--dark h2,
.section--dark h3 { color: var(--color-text-on-dark); }
.section--dark .section-head p { color: var(--color-text-muted-on-dark); }

/* Generic responsive grid — 1 col mobile, 2 col tablet, 3/4 col desktop. */
.grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}


/* =======================================================================
   5. BUTTONS
   ======================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
              background-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-accent-contrast);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

/* Shimmer sweep effect on hover */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 10%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 90%,
    transparent 100%
  );
  transition: none;
  pointer-events: none;
}

.btn-primary:hover::after {
  animation: btn-shimmer 0.7s ease forwards;
}

@keyframes btn-shimmer {
  0%   { left: -100%; }
  100% { left: 130%; }
}

.btn-primary:hover {
  background-color: var(--color-accent-dark);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.45), 0 0 80px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
  color: var(--color-accent-contrast);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
  transform: translateY(-1px);
}

.btn-on-dark {
  background-color: var(--color-text-on-dark);
  color: var(--color-surface-dark);
}

.btn-on-dark:hover {
  background-color: #ffffff;
  color: var(--color-surface-dark);
}

.btn-block { width: 100%; }

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}


/* =======================================================================
   6. HEADER & NAVIGATION
   ======================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(8, 9, 10, 0.85);
  backdrop-filter: saturate(120%) blur(16px);
  -webkit-backdrop-filter: saturate(120%) blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}

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

.logo-mark {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-md);
}

.nav-links a {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: var(--space-2xs) 0;
  border-bottom: 2px solid transparent;
}

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

.nav-links a[aria-current="page"] {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

.nav-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
}

.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile dropdown panel */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--space-2xs);
  background-color: rgba(14, 14, 22, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) var(--space-md) var(--space-lg);
}

.mobile-menu.is-open { display: flex; }

.mobile-menu a {
  padding: var(--space-sm) var(--space-2xs);
  color: var(--color-text);
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu a[aria-current="page"] { color: var(--color-accent); }
.mobile-menu .btn { margin-top: var(--space-xs); }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}


/* =======================================================================
   7. FOOTER
   ======================================================================= */

.site-footer {
  background-color: var(--color-surface-dark);
  color: var(--color-text-muted-on-dark);
  padding: var(--space-xl) 0 var(--space-md);
  margin-bottom: 0;
}

.footer-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.footer-brand .logo { color: var(--color-text-on-dark); }

.footer-brand p {
  margin-top: var(--space-sm);
  max-width: 22rem;
  font-size: 0.95rem;
}

.footer-col h4 {
  color: var(--color-text-on-dark);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.footer-col a {
  color: var(--color-text-muted-on-dark);
  font-size: 0.92rem;
}

.footer-col a:hover { color: var(--color-text-on-dark); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-top: var(--space-lg);
  font-size: 0.85rem;
  color: var(--color-text-muted-on-dark);
}

@media (min-width: 720px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

.footer-bottom a { color: var(--color-text-muted-on-dark); }


/* =======================================================================
   8. HERO SECTIONS
   ======================================================================= */

.hero { padding: var(--space-xl) 0 var(--space-lg); }

.hero-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

.hero h1 { margin-bottom: var(--space-sm); }
.hero .lede { margin-bottom: var(--space-lg); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero--page {
  /* Shorter hero used on interior pages (services, industries, etc.) */
  padding: var(--space-xl) 0;
  text-align: left;
}

.hero--page .lede { margin-top: var(--space-sm); }


/* =======================================================================
   9. CARDS
   ======================================================================= */

.card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--transition-base), box-shadow var(--transition-base),
              border-color var(--transition-base), background-color var(--transition-base);
}

.card:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.15);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.06);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: var(--space-2xs); }
.card p { color: var(--color-text-muted); font-size: 0.97rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
  margin-top: var(--space-sm);
  font-weight: 600;
  font-size: 0.92rem;
}

/* "Problem" card variant — used for pain-point lists, slightly warmer tone */
.card--flag .card-icon {
  background-color: var(--color-flag-soft);
  color: var(--color-flag);
}

.card--compact { padding: var(--space-md); }

/* Industry / detailed card with internal list */
.card--detailed ul {
  margin-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.card--detailed li {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  padding-left: var(--space-md);
  position: relative;
}

.card--detailed li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.card--detailed .list-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-top: var(--space-md);
  display: block;
}

.card--detailed .list-label:first-of-type { margin-top: var(--space-sm); }


/* =======================================================================
   10. FLOW DIAGRAM
   This is the site's recurring signature visual: a connected sequence of
   numbered nodes representing a lead moving through an automated process.
   It appears in two forms:
   - .flow-strip    → compact horizontal version (hero workflow card)
   - .flow-timeline → vertical version for longer step-by-step sequences
   ======================================================================= */

.flow-strip {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.flow-strip-row {
  display: flex;
  align-items: flex-start;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 92px;
  flex-shrink: 0;
}

.flow-node-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(99, 102, 241, 0.06);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xs);
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.flow-node-circle svg { width: 24px; height: 24px; }

.flow-node-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.25;
}

.flow-connector {
  flex: 1;
  height: 2px;
  background-image: linear-gradient(to right, var(--color-accent) 50%, transparent 50%);
  background-size: 8px 2px;
  margin-top: 26px;
  min-width: 16px;
}

/* ---- Vertical timeline (longer sequences, e.g. 7-8 steps) ---- */
.flow-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding-left: 1px;
}

.flow-timeline::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-image: linear-gradient(to bottom, var(--color-accent) 50%, transparent 50%);
  background-size: 2px 8px;
}

.flow-timeline-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: var(--space-md);
  align-items: flex-start;
  position: relative;
}

.flow-timeline-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.flow-timeline-content h4 { margin-bottom: var(--space-3xs); }
.flow-timeline-content p { color: var(--color-text-muted); font-size: 0.95rem; }

@media (max-width: 639px) {
  /* Stack the horizontal strip vertically on small screens */
  .flow-strip-row { flex-direction: column; align-items: flex-start; }

  .flow-node {
    flex-direction: row;
    width: 100%;
    text-align: left;
    align-items: center;
    gap: var(--space-sm);
  }

  .flow-node-circle { margin-bottom: 0; }

  .flow-connector {
    width: 2px;
    height: 28px;
    margin: 0 0 0 25px;
    background-image: linear-gradient(to bottom, var(--color-accent) 50%, transparent 50%);
    background-size: 2px 8px;
  }
}


/* =======================================================================
   11. FREE AUTOMATION REVIEW CALLOUT
   Reusable component dropped onto multiple pages.
   ======================================================================= */

.callout {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0.02) 100%);
  border: 1px solid rgba(99, 102, 241, 0.12);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.callout::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.callout h2 { color: var(--color-text); margin-bottom: var(--space-sm); position: relative; }

.callout p {
  color: var(--color-text-muted);
  max-width: 38rem;
  margin: 0 auto var(--space-lg);
  position: relative;
}

.callout .btn-primary {
  background-color: var(--color-accent);
  color: var(--color-accent-contrast);
  position: relative;
}

.callout .btn-primary:hover { background-color: var(--color-accent-dark); }


/* =======================================================================
   12. TESTIMONIALS
   ======================================================================= */

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--transition-base);
}

.testimonial-card:hover {
  border-color: rgba(99, 102, 241, 0.12);
}

.testimonial-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  background-color: rgba(99, 102, 241, 0.06);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.7rem;
  margin-bottom: var(--space-md);
}

.testimonial-quote {
  font-size: 1.02rem;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.testimonial-name { font-weight: 600; font-size: 0.92rem; }
.testimonial-role { color: var(--color-text-muted); font-size: 0.85rem; }


/* =======================================================================
   13. FAQ ACCORDION
   Built on native <details>/<summary> so it works and is screen-reader
   accessible even with JavaScript disabled.
   ======================================================================= */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 44rem;
}

.faq-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-2xs) 0;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-accent);
  transition: transform var(--transition-base);
}

.faq-item[open] .faq-icon { transform: rotate(45deg); }

.faq-answer {
  padding-top: var(--space-xs);
  color: var(--color-text-muted);
  font-size: 0.95rem;
}


/* =======================================================================
   14. EXAMPLE MESSAGE / CHAT BUBBLE COMPONENT (med spas page)
   ======================================================================= */

.message-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.message-card-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}

.message-bubble {
  background-color: var(--color-accent-soft);
  border-radius: var(--radius-md) var(--radius-md) var(--radius-md) var(--space-3xs);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.95rem;
  color: var(--color-text);
  max-width: 34rem;
}


/* =======================================================================
   15. CHECKLIST COMPONENT (industries page)
   ======================================================================= */

.checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
}

.checklist-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 0.1rem;
}

.checklist-item p { font-size: 0.97rem; }


/* =======================================================================
   16. CONTACT FORM
   ======================================================================= */

.form-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.form-row { margin-bottom: var(--space-md); }

.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-2xs);
}

.form-row .hint {
  display: block;
  font-size: 0.82rem;
  color: var(--color-text-faint);
  font-weight: 400;
  margin-top: var(--space-3xs);
}

.form-grid-2 {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background-color: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--transition-fast);
}

.form-control:focus { border-color: var(--color-accent); }

textarea.form-control { resize: vertical; min-height: 110px; }

.form-control[aria-invalid="true"] { border-color: var(--color-flag); }

.field-error {
  color: var(--color-flag);
  font-size: 0.82rem;
  margin-top: var(--space-3xs);
  display: none;
}

.field-error.is-visible { display: block; }

/* Honeypot field — invisible to sighted users and screen readers, but
   present in the DOM so basic spam bots fill it in by themselves. */
.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  left: -9999px;
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.form-success.is-visible { display: block; }

.form-success-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto var(--space-md);
  color: var(--color-accent);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-info-item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.contact-info-item .card-icon { margin-bottom: 0; flex-shrink: 0; }

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.radio-option {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  padding: 0.55rem 1.1rem;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.radio-option:hover { border-color: var(--color-accent); }

.radio-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
  margin: 0;
}

.radio-option:has(input:checked) {
  border-color: var(--color-accent);
  background-color: var(--color-accent-soft);
}

.privacy-note {
  font-size: 0.85rem;
  color: var(--color-text-faint);
  margin-bottom: var(--space-md);
}


/* =======================================================================
   17. UTILITY CLASSES
   ======================================================================= */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background-color: var(--color-accent);
  color: #fff;
  padding: var(--space-xs) var(--space-md);
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
}

.skip-link:focus { left: 0; }

.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  background-color: var(--color-accent-soft);
  color: var(--color-accent-dark);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.75rem;
}

.icon-sm { width: 16px; height: 16px; flex-shrink: 0; }

.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-xl) 0;
}


/* =======================================================================
   18. SCROLL-REVEAL ANIMATION
   Progressive enhancement only — content is fully visible without it.
   JavaScript adds "is-visible" once an element scrolls into view.
   ======================================================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  filter: blur(4px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}


/* =======================================================================
   19. RESPONSIVE TYPE/SPACING TWEAKS
   ======================================================================= */

@media (max-width: 639px) {
  .section { padding: var(--space-lg) 0; }
  .hero { padding: var(--space-lg) 0 var(--space-md); }
  .hero--page { padding: var(--space-md) 0; }
  .service-row { padding: var(--space-md) 0; }
}


/* =======================================================================
   20. REDUCED MOTION
   Respect visitors who have asked their OS for less motion.
   ======================================================================= */

/* =======================================================================
   HERO GLOW — multi-layer gradient mesh behind the hero
   ======================================================================= */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -50% -20%;
  background:
    radial-gradient(ellipse at 25% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 60%, rgba(129, 140, 248, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 40%, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: glow-drift 12s ease-in-out infinite alternate;
}

.hero > .container { position: relative; z-index: 1; }

@keyframes glow-drift {
  0%   { opacity: 0.7; transform: scale(1) translate(0, 0); }
  50%  { opacity: 1;   transform: scale(1.08) translate(2%, -1%); }
  100% { opacity: 0.8; transform: scale(1.12) translate(-1%, 2%); }
}


/* =======================================================================
   HERO TEXT ENTRANCE ANIMATION
   ======================================================================= */

.hero .eyebrow {
  animation: text-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero h1 {
  animation: text-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero .lede {
  animation: text-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.hero-actions {
  animation: text-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero .card,
.hero .hero-automation-flow {
  animation: text-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

@keyframes text-in {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}


/* =======================================================================
   GRADIENT TEXT — shimmering headline effect
   ======================================================================= */

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #fff 40%, rgba(129, 140, 248, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* =======================================================================
   HEADER GRADIENT LINE
   ======================================================================= */

.site-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.3) 50%, transparent 100%);
}


/* =======================================================================
   GRADIENT DIVIDER — replaces plain <hr>
   ======================================================================= */

.gradient-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.2) 50%, transparent 100%);
  margin: 0;
}


/* =======================================================================
   STATS SECTION
   ======================================================================= */

.stat {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 20%, rgba(129, 140, 248, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
}

.stats-grid::before,
.stats-grid::after {
  content: "";
  position: absolute;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.2), transparent);
}

.stats-grid::before { left: 33.33%; }
.stats-grid::after { right: 33.33%; }

@media (max-width: 639px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .stats-grid::before,
  .stats-grid::after { display: none; }
}


/* =======================================================================
   CURSOR GLOW — ambient light that follows the mouse
   ======================================================================= */

.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.04) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cursor-glow.is-active { opacity: 1; }


/* =======================================================================
   DASHBOARD MOCKUP — hero visual element (legacy, kept for reference)
   ======================================================================= */

.hero-dashboard {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-dashboard:hover {
  transform: none;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.dashboard-header .eyebrow { margin-bottom: 0; }

.dashboard-status {
  font-size: 0.75rem;
  color: #34D399;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dashboard-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.dashboard-leads {
  display: flex;
  flex-direction: column;
}

.lead-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background-color var(--transition-fast);
}

.lead-row:last-child { border-bottom: none; }

.lead-row:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.lead-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(129, 140, 248, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--color-accent);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lead-info {
  flex: 1;
  min-width: 0;
}

.lead-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lead-action {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.lead-time {
  font-size: 0.75rem;
  color: var(--color-text-faint);
  flex-shrink: 0;
}

.tag--success {
  background-color: rgba(52, 211, 153, 0.1);
  color: #34D399;
}

.tag--pending {
  background-color: rgba(251, 191, 36, 0.1);
  color: #FBBF24;
}

.tag--auto {
  background-color: rgba(99, 102, 241, 0.1);
  color: #818CF8;
}

@media (max-width: 639px) {
  .lead-time { display: none; }
  .lead-row .tag { font-size: 0.68rem; padding: 0.2rem 0.5rem; }
}


/* =======================================================================
   HERO AUTOMATION FLOW — animated system visualization
   ======================================================================= */

.hero-automation-flow {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  position: relative;
  overflow: hidden;
}

.hero-automation-flow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(99, 102, 241, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.automation-flow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.automation-flow-header .eyebrow { margin-bottom: 0; }

.automation-flow-pipeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 1;
}

.automation-flow-step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  position: relative;
}

/* Vertical connecting line between steps */
.automation-flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 100%;
  width: 2px;
  height: var(--space-sm);
  background-image: linear-gradient(to bottom, rgba(99, 102, 241, 0.4) 50%, transparent 50%);
  background-size: 2px 6px;
  animation: dash-flow-v 1.2s linear infinite;
}

.flow-step-node {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.flow-step-node svg {
  width: 18px;
  height: 18px;
}

/* Step states */
.flow-step-node--active {
  background: rgba(99, 102, 241, 0.15);
  border: 1.5px solid rgba(99, 102, 241, 0.5);
  color: #818CF8;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.2);
  animation: node-pulse 2.5s ease-in-out infinite;
}

.flow-step-node--complete {
  background: rgba(52, 211, 153, 0.12);
  border: 1.5px solid rgba(52, 211, 153, 0.4);
  color: #34D399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.15);
}

.flow-step-node--pending {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-faint);
}

@keyframes node-pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(99, 102, 241, 0.2); }
  50%      { box-shadow: 0 0 28px rgba(99, 102, 241, 0.4); }
}

.flow-step-content {
  flex: 1;
  min-width: 0;
}

.flow-step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  display: block;
}

.flow-step-detail {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: block;
}

.flow-step-status {
  flex-shrink: 0;
}

.flow-step-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.flow-step-tag--live {
  background: rgba(52, 211, 153, 0.1);
  color: #34D399;
}

.flow-step-tag--processing {
  background: rgba(99, 102, 241, 0.1);
  color: #818CF8;
  animation: tag-blink 2s ease-in-out infinite;
}

.flow-step-tag--queued {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-faint);
}

@keyframes tag-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

.automation-flow-stats {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.flow-stat {
  text-align: center;
  flex: 1;
}

.flow-stat-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  display: block;
  line-height: 1.2;
}

.flow-stat-label {
  font-size: 0.68rem;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 639px) {
  .hero-automation-flow {
    padding: var(--space-sm) var(--space-md);
  }
  .automation-flow-stats {
    gap: var(--space-sm);
  }
  .flow-stat-value {
    font-size: 1rem;
  }
}


/* =======================================================================
   ANIMATED FLOW CONNECTORS
   ======================================================================= */

.flow-connector {
  animation: dash-flow 1.5s linear infinite;
}

@keyframes dash-flow {
  0% { background-position: 0 0; }
  100% { background-position: 16px 0; }
}

.flow-timeline::before {
  animation: dash-flow-v 1.5s linear infinite;
}

@keyframes dash-flow-v {
  0% { background-position: 0 0; }
  100% { background-position: 0 16px; }
}


/* =======================================================================
   SECTION GLOW
   ======================================================================= */

.section--glow {
  position: relative;
}

.section--glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
  pointer-events: none;
}


/* =======================================================================
   3D CARD TILT
   ======================================================================= */

.card-3d {
  transform-style: preserve-3d;
  perspective: 800px;
}


/* =======================================================================
   STAGGER DELAYS
   ======================================================================= */

.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 500ms; }


/* =======================================================================
   FORM CONTROLS — dark theme
   ======================================================================= */

.form-control {
  background-color: rgba(255, 255, 255, 0.04);
}

.form-card {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.radio-option {
  border-color: rgba(255, 255, 255, 0.1);
}

.radio-option:has(input:checked) {
  border-color: var(--color-accent);
  background-color: rgba(99, 102, 241, 0.06);
}


/* =======================================================================
   FAQ — dark theme
   ======================================================================= */

.faq-item {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}


/* =======================================================================
   3D MOCKUP SYSTEM — floating panels, phone frames, message bubbles
   ======================================================================= */

.mockup-scene {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 320px;
}

.mockup-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-panel:hover {
  transform: rotateY(0) rotateX(0) !important;
}

.mockup-tilt-left { transform: rotateY(6deg) rotateX(3deg); }
.mockup-tilt-right { transform: rotateY(-6deg) rotateX(3deg); }

.mockup-stack {
  position: relative;
  perspective: 1200px;
  width: 100%;
  min-height: 340px;
}

.mockup-stack .mockup-panel--back {
  width: 85%;
  transform: rotateY(6deg) rotateX(2deg);
}

.mockup-stack .mockup-panel--front {
  position: absolute;
  right: 0;
  top: 12%;
  width: 55%;
  transform: rotateY(3deg) rotateX(1deg);
  z-index: 2;
}

.mockup-phone {
  width: 280px;
  background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.03);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-phone:hover { transform: rotateY(0) rotateX(0) !important; }

.mockup-phone-notch {
  width: 100px;
  height: 22px;
  background: #08090A;
  border-radius: 0 0 14px 14px;
  margin: 0 auto 8px;
}

.mockup-phone-screen {
  background: #0C0D10;
  border-radius: 18px;
  overflow: hidden;
}

.mockup-phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 6px;
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

.mockup-phone-bar-title {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.8rem;
}

.msg-thread {
  padding: 10px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.msg {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--color-text);
}

.msg--in {
  background: rgba(255, 255, 255, 0.06);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.msg--out {
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.12);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.msg-time {
  font-size: 0.65rem;
  color: var(--color-text-faint);
  text-align: center;
  padding: 4px 0;
}

.msg-link {
  display: inline-block;
  margin-top: 4px;
  padding: 5px 12px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: #818CF8;
}

.mockup-notification {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 20px;
  width: 300px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-notification:hover { transform: rotateY(0) rotateX(0) !important; }

.notif-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.notif-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.12);
  color: #818CF8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-icon svg { width: 18px; height: 18px; }

.notif-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text);
}

.notif-subtitle {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.notif-detail {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.notif-detail strong { color: var(--color-text); }

.notif-checks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.notif-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #34D399;
}

.notif-check svg { width: 14px; height: 14px; flex-shrink: 0; }

.mockup-chat {
  width: 320px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-chat:hover { transform: rotateY(0) rotateX(0) !important; }

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.chat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(129, 140, 248, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-avatar svg { width: 16px; height: 16px; color: #818CF8; }

.chat-header-text {
  font-size: 0.85rem;
  font-weight: 600;
}

.chat-header-sub {
  font-size: 0.72rem;
  color: #34D399;
}

.chat-body { padding: 14px; }

.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: var(--color-text-faint);
}

.chat-input-field {
  flex: 1;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--color-text-faint);
}

.chat-send {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  border: none;
  color: #818CF8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-send svg { width: 14px; height: 14px; }

.chat-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.chat-action-btn {
  padding: 6px 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: #818CF8;
}

/* Review stars */
.review-stars {
  color: #FBBF24;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin: 6px 0;
}


/* =======================================================================
   SERVICE ROW — two-column layout for services page
   ======================================================================= */

.service-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-lg) 0;
}

.service-row:first-child {
  padding-top: 0;
}

.service-row + .service-row {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

@media (min-width: 960px) {
  .service-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .service-row--reverse .service-row-content { order: 2; }
  .service-row--reverse .service-row-visual { order: 1; }
}

.service-row-visual {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.service-row-content .card-icon { margin-bottom: var(--space-sm); }

.service-row-content h2 { margin-bottom: var(--space-sm); }

.service-row-content .lede { margin-bottom: var(--space-md); }

.service-row-content ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  margin-bottom: var(--space-md);
}

.service-row-content li {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  padding-left: var(--space-md);
  position: relative;
  list-style: none;
}

.service-row-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

@media (max-width: 959px) {
  .service-row-visual { margin-top: var(--space-md); }
  .mockup-phone { width: 240px; }
  .mockup-notification { width: 260px; }
  .mockup-chat { width: 280px; }
  .mockup-stack { min-height: 280px; }
  .mockup-stack .mockup-panel--back { width: 90%; }
  .mockup-stack .mockup-panel--front { width: 60%; }
}


/* =======================================================================
   HOMEPAGE MOCKUP SHOWCASE
   ======================================================================= */

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 960px) {
  .showcase-grid { grid-template-columns: 1fr 1.2fr; }
}

.showcase-panels {
  display: flex;
  gap: var(--space-md);
  perspective: 1200px;
  justify-content: center;
  align-items: flex-start;
}

@media (max-width: 639px) {
  .showcase-panels {
    flex-direction: column;
    align-items: center;
  }
  .showcase-panels > * { transform: none !important; }
}


/* =======================================================================
   CARD GLOW BORDER — gradient border on hover
   ======================================================================= */

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0) 0%, rgba(99, 102, 241, 0) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: background 0.4s ease;
}

.card { position: relative; }

.card:hover::before {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(129, 140, 248, 0.1) 100%);
}


/* =======================================================================
   HOMEPAGE "WHAT WE BUILD" — asymmetric grid with featured card
   ======================================================================= */

#services-preview .grid--3 {
  gap: var(--space-sm);
}

#services-preview .grid--3 > .card {
  padding: var(--space-md);
}

/* Featured first card — spans 2 columns on desktop */
@media (min-width: 960px) {
  #services-preview .grid--3 > .card:first-child {
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    column-gap: var(--space-md);
    padding: var(--space-lg);
  }

  #services-preview .grid--3 > .card:first-child .card-icon {
    grid-row: 1 / 3;
    width: 56px;
    height: 56px;
    margin-bottom: 0;
    align-self: start;
  }

  #services-preview .grid--3 > .card:first-child .card-icon svg {
    width: 28px;
    height: 28px;
  }

  #services-preview .grid--3 > .card:first-child h3 {
    font-size: 1.35rem;
    align-self: end;
  }

  #services-preview .grid--3 > .card:first-child p {
    grid-column: 2;
  }

  #services-preview .grid--3 > .card:first-child .card-link {
    grid-column: 2;
  }
}

/* Gradient backgrounds for alternate cards */
#services-preview .grid--3 > .card:nth-child(2) {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
}

#services-preview .grid--3 > .card:nth-child(4) {
  background: linear-gradient(145deg, rgba(129, 140, 248, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

#services-preview .grid--3 > .card:nth-child(6) {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.04) 0%, rgba(129, 140, 248, 0.03) 100%);
}

/* On tablet, featured card spans full width */
@media (min-width: 640px) and (max-width: 959px) {
  #services-preview .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  #services-preview .grid--3 > .card:first-child {
    grid-column: 1 / -1;
  }
}


/* =======================================================================
   20. REDUCED MOTION
   ======================================================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal { opacity: 1; transform: none; filter: none; transition: none; }

  .card:hover,
  .btn:hover { transform: none; }

  .hero-glow { animation: none; }
  .hero .eyebrow,
  .hero h1,
  .hero .lede,
  .hero-actions,
  .hero .card,
  .hero .hero-automation-flow { animation: none; opacity: 1; filter: none; transform: none; }
  .flow-connector,
  .flow-timeline::before { animation: none; }
  .dashboard-status::before { animation: none; }
  .flow-step-node--active { animation: none; }
  .flow-step-tag--processing { animation: none; }
  .btn-primary:hover::after { animation: none; }

  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
