/* ================================================
   main.css — Jesse Millard Portfolio
   ================================================
   1.  CSS Variables & Theme
   2.  Base Reset & Typography
   3.  Layout
   4.  Scrollbar & Cursor
   5.  Navigation
   6.  Hero
   7.  Stats Bar
   8.  Section Scaffolding
   9.  Testimonials
   10. Case Studies
   10b. Landing Pages
   11. Bio
   12. FAQ
   13. Contact
   14. Footer
   15. Buttons & Tags
   16. Scroll Animations
   17. Mobile
   ================================================ */

/* ── 1. CSS Variables & Theme ─────────────────── */
:root {
  --bg:          #07070d;
  --surface:     #0f0f18;
  --card:        #121219;
  --card-hover:  #191921;
  --border:      rgba(255, 255, 255, 0.07);
  --border-md:   rgba(255, 255, 255, 0.12);
  --text:        #e8e8f2;
  --text-muted:  #8080a0;
  --text-subtle: #48486a;
  --accent:      #378b9b;
  --accent-alt:  #fee101;
  --accent-dim:  rgba(55, 139, 155, 0.14);
  --accent-glow: rgba(55, 139, 155, 0.22);
  --blue:        #3b82f6;
  --blue-dim:    rgba(59, 130, 246, 0.12);
  --blue-border: rgba(59, 130, 246, 0.25);
  --nav-bg:      rgba(7, 7, 13, 0.85);
  --shadow:      0 4px 32px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.4);
  --radius:      14px;
  --radius-sm:   8px;
  --font:        'Montserrat', sans-serif;
  --font-brand:  'Montserrat', sans-serif;
  --brand-gradient: linear-gradient(90deg, #378b9b 0%, #6fae86 50%, #fee101 100%);
}

[data-theme="light"] {
  --bg:          #f3f3fb;
  --surface:     #ffffff;
  --card:        #ffffff;
  --card-hover:  #f0f0f8;
  --border:      rgba(0, 0, 0, 0.07);
  --border-md:   rgba(0, 0, 0, 0.13);
  --text:        #0d0d1a;
  --text-muted:  #4a4a6a;
  --text-subtle: #9090b0;
  --accent:      #256b78;
  --accent-alt:  #378b9b;
  --accent-dim:  rgba(37, 107, 120, 0.08);
  --accent-glow: rgba(37, 107, 120, 0.15);
  --blue:        #1d4ed8;
  --blue-dim:    rgba(29, 78, 216, 0.08);
  --blue-border: rgba(29, 78, 216, 0.2);
  --nav-bg:      rgba(243, 243, 251, 0.90);
  --shadow:      0 4px 32px rgba(0, 0, 0, 0.10);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.07);
}

/* ── 2. Base Reset & Typography ───────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

strong {
  color: var(--text);
  font-weight: 600;
}

/* Stylized bullet list */
.styled-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.styled-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-muted);
}

.styled-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--accent);
  font-size: 0.55em;
  line-height: 1.8;
}

/* ── 3. Layout ────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background-image: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  color: var(--text);
}

.accent {
  background-image: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ── 4. Scrollbar & Cursor ────────────────────── */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-alt) 0%, var(--accent) 100%);
  border-radius: 999px;
}

@media (pointer: fine) {
  *, *::before, *::after {
    cursor: none !important;
  }

  .cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 9px; height: 9px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s, opacity 0.25s;
    will-change: left, top;
  }

  .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 36px; height: 36px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg, #ffe94d, #378b9b, #235662, #378b9b, #ffe94d);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 2px));
    mask:         radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 2px));
    transition: width 0.3s cubic-bezier(0.23,1,0.32,1), height 0.3s cubic-bezier(0.23,1,0.32,1), opacity 0.25s;
    will-change: left, top;
    opacity: 0.85;
  }

  .cursor-dot.hovering  { width: 11px; height: 11px; }
  .cursor-ring.hovering { width: 56px; height: 56px; opacity: 1; }
  .cursor-dot.clicking  { transform: translate(-50%,-50%) scale(0.6); }
  .cursor-ring.clicking { transform: translate(-50%,-50%) scale(0.75); opacity: 0.6; }
  .cursor-dot.hidden, .cursor-ring.hidden { opacity: 0; }
}

/* ── 5. Navigation ────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-container {
  display: flex;
  align-items: center;
  height: 68px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 2rem;
}

.nav-logo {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo-desktop {
  height: 53px;
  width: auto;
  display: block;
}

.nav-logo-mobile {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text);
  background: var(--accent-dim);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle svg {
  width: 16px; height: 16px;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.nav-mobile {
  display: none;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}

.nav-mobile.open {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  animation: slideDown 0.3s ease forwards;
}

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

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-mobile-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.nav-mobile-link:hover {
  color: var(--accent);
}

.nav-mobile-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-contact-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-contact-link:hover {
  color: var(--accent);
}

/* ── 6. Hero ──────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(7, 7, 13, 0.88) 0%,
    rgba(7, 7, 13, 0.70) 50%,
    rgba(7, 7, 13, 0.40) 100%
  );
}

[data-theme="light"] .hero-overlay {
  background: linear-gradient(
    105deg,
    rgba(243, 243, 251, 0.90) 0%,
    rgba(243, 243, 251, 0.75) 50%,
    rgba(243, 243, 251, 0.45) 100%
  );
}

.hero-container {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 110px;
  padding-bottom: 40px;
  /* No custom max-width — inherits 1240px from .container so left edge
     aligns exactly with the nav logo */
}

.hero-content {
  max-width: 700px;
}

/* Stats bar anchored to bottom of hero */
.hero-stats {
  position: relative;
  z-index: 1;
  background: rgba(4, 4, 10, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stats .stats-container {
  padding-top: 24px;
  padding-bottom: 24px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-domain {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}

.hero-updated {
  font-size: 0.78rem;
  color: var(--text-subtle);
  font-weight: 500;
}

.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  margin: 0 0 2rem;
  background: transparent;
  border: none;
  transition: opacity 0.2s;
}

.hero-trust-badge:hover {
  opacity: 0.8;
}

.hero-trust-google-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.hero-trust-divider {
  width: 1px;
  height: 18px;
  background: var(--border-md);
  flex-shrink: 0;
}

.hero-trust-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-trust-stars {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.hero-trust-stars svg {
  width: 13px;
  height: 13px;
  fill: #fbbf24;
}

.hero-trust-rating {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-left: 0.25rem;
}

.hero-trust-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .hero-trust-badge {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-trust-text {
    white-space: normal;
  }
}

.hero-headline {
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  color: var(--accent);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero-plain {
  color: var(--text);
}

.hero-body {
  font-size: 0.975rem;
  color: rgba(232, 232, 242, 0.82); /* white for dark mode video bg */
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 620px;
}

[data-theme="light"] .hero-body {
  color: rgba(13, 13, 26, 0.75); /* dark for light mode tinted bg */
}

/* Value Proposition List */
.hero-vp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2rem;
}

.hero-vp-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.hero-vp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(55, 139, 155, 0.3);
  color: var(--accent);
  flex-shrink: 0;
}

.hero-vp-icon svg {
  width: 16px;
  height: 16px;
}

.hero-vp-item span:last-child {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f0f0f8; /* white for dark mode */
  letter-spacing: -0.01em;
}

[data-theme="light"] .hero-vp-item span:last-child {
  color: #0d0d1a; /* dark for light mode tinted bg */
}

.hero-signature {
  width: 220px;
  margin-bottom: 2rem;
  opacity: 0.85;
}

[data-theme="light"] .hero-signature {
  filter: invert(1);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-ghost-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-md);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

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

/* ── 7. Stats (inside hero bottom bar) ────────── */
.stats-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.stat-item {
  text-align: center;
  padding: 0.5rem 0.75rem;
}

.stat-number {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  background-image: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* ── 8. Section Scaffolding ───────────────────── */
.section-header .section-label {
  margin-bottom: 10px;
}

/* ── Force-dark section (testimonials always dark) ── */
.force-dark {
  --bg:          #07070d;
  --surface:     #0f0f18;
  --card:        #1a1a24;
  --card-hover:  #222230;
  --border:      rgba(255, 255, 255, 0.08);
  --border-md:   rgba(255, 255, 255, 0.14);
  --text:        #e8e8f2;
  --text-muted:  #9090a8;
  --text-subtle: #50506a;
  --accent-dim:  rgba(55, 139, 155, 0.14);
  background: #07070d !important;
  color: #e8e8f2;
}

.force-dark .section-label {
  background-image: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.force-dark h2 {
  color: #e8e8f2;
}

/* ── 9. Testimonials ──────────────────────────── */
.testimonials {
  background: #07070d;
  padding-top: 80px; /* reduced — no gap below hero stats */
}

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

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
}

.testimonial-card:hover {
  border-color: var(--border-md);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.testimonial-card.featured {
  grid-column: span 2;
  border-color: var(--accent-dim);
}

.testimonial-card.featured:hover {
  border-color: rgba(55, 139, 155, 0.3);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.reviewer-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.reviewer-info {
  flex: 1;
}

.reviewer-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.reviewer-date {
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.google-badge {
  flex-shrink: 0;
}

.stars {
  color: #fee101;
  font-size: 1rem;
  letter-spacing: 0.12em;
  line-height: 1;
  flex-shrink: 0;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── 10. Case Studies Slider ──────────────────── */
.case-studies {
  background: var(--surface);
}

/* Slider wrapper */
.cs-slider {
  position: relative;
  padding: 0 52px;
}

.cs-viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.cs-track {
  display: flex;
  will-change: transform;
}

/* Each slide: 2 vertical cards side by side */
.cs-slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* Vertical case study card */
.cs-card-v {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.cs-card-v:hover {
  transform: translateY(-4px);
  border-color: rgba(55, 139, 155, 0.3);
  box-shadow: 0 12px 40px rgba(55, 139, 155, 0.1);
}

.cs-video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.cs-video-thumb .cs-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.cs-card-v:hover .cs-video {
  transform: scale(1.04);
}

.cs-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,7,13,0.6) 0%, transparent 60%);
}

/* Card content area — increased padding for breathing room */
.cs-content {
  padding: 1.75rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.cs-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.cs-meta {
  font-size: 0.82rem;
  color: var(--text-subtle);
  font-weight: 500;
}

.cs-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.cs-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s;
}

.cs-slide:hover .cs-cta {
  gap: 0.75rem;
}

.btn-arrow-sm {
  width: 14px;
  height: auto;
  opacity: 0.9;
}

/* Arrows */
.cs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 28px));
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border-md);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.cs-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cs-arrow-prev { left: 0; }
.cs-arrow-next { right: 0; }

.cs-arrow svg {
  width: 20px;
  height: 20px;
}

/* Dots */
.cs-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.cs-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--border-md);
  border: none;
  cursor: pointer;
  transition: background 0.25s, width 0.25s;
  padding: 0;
}

.cs-dot.active {
  background: var(--accent);
  width: 28px;
}

/* ── 10b. Landing Pages Section ──────────────── */
/* ── 10b. Landing Pages — Horizontal Scroll ──── */

/* Outer: tall enough for JS to compute scrollable distance */
.lp-section {
  /* Height set dynamically by JS; fallback for no-JS */
}

.lp-scroll-outer {
  position: relative;
  /* Height injected by JS at runtime */
}

/* Sticky viewport — the visible frame */
.lp-scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  /* clip-path instead of overflow:hidden — clips visually without breaking sticky */
  clip-path: inset(0);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
}

/* Section header inside sticky area */
.lp-section-header {
  padding: 0 2rem;
  text-align: center;
  flex-shrink: 0;
  margin-bottom: 2.5rem;
}

.lp-section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 620px;
  margin: 1.5rem auto 0;
}

/* Horizontal strip of cards */
.lp-scroll-track {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  padding: 0 5vw;
  will-change: transform;
  flex-shrink: 0;
  align-items: center;
}

/* Individual card — fills most of the viewport width */
.lp-scroll-card {
  position: relative;
  flex: 0 0 58.5vw;
  max-width: 900px;
  height: 62vh;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  text-decoration: none;
  border: 1px solid var(--border-md);
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.lp-scroll-card:hover {
  border-color: rgba(55, 139, 155, 0.35);
  box-shadow: 0 20px 60px rgba(55, 139, 155, 0.12);
}

.lp-scroll-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.lp-scroll-card:hover .lp-scroll-img {
  transform: scale(1.03);
}

/* Hover overlay with site name */
.lp-scroll-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 13, 0.68);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lp-scroll-card:hover .lp-scroll-overlay {
  opacity: 1;
}

.lp-scroll-name {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.lp-scroll-cta {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
}

/* Mobile: revert to normal vertical scroll */
@media (max-width: 768px) {
  .lp-scroll-outer {
    height: auto !important;
  }
  .lp-scroll-sticky {
    position: static;
    height: auto;
    overflow: visible;
    display: block;
    padding: 80px 0;
  }
  .lp-scroll-track {
    flex-direction: column;
    padding: 0 1.25rem;
    transform: none !important;
  }
  .lp-scroll-card {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

/* ── 10c. Automated Dashboards ───────────────── */
.dash-section {
  overflow: hidden;
}

.dash-section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 620px;
  margin: 1.5rem auto 0;
}

/* Media / press trust bar (used in Case Studies) */
.trust-bar {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0 0 2rem;
}

#case-studies .section-header {
  margin-bottom: 2rem;
}

.trust-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.trust-bar-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 600;
  white-space: nowrap;
}

.trust-bar-logos {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-logo-img {
  height: 26px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.2s;
  filter: brightness(0) invert(1);
}

[data-theme="light"] .trust-logo-img {
  filter: brightness(0) invert(0);
}

.trust-logo-img:hover {
  opacity: 1;
}

.trust-bar-divider {
  width: 1px;
  height: 14px;
  background: var(--border-md);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .trust-bar-inner {
    flex-direction: column;
    gap: 16px;
  }
}

.dash-video-wrap {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  /* Start tilted back and faded, pivot from bottom edge */
  transform-origin: center bottom;
  transform: perspective(1200px) rotateX(24deg) scale(0.88);
  opacity: 0.2;
  transition:
    transform 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity   0.9s ease;
  /* Same orange glow treatment as bio photo */
  border: 1px solid rgba(55, 139, 155, 0.2);
  box-shadow:
    0 0 0 1px rgba(55, 139, 155, 0.12),
    0 8px 48px rgba(55, 139, 155, 0.15),
    0 32px 80px rgba(0, 0, 0, 0.5);
  background: #1a0800;
}

/* Fired by JS IntersectionObserver at 50% visibility */
.dash-video-wrap.dash-tilted-in {
  transform: perspective(1200px) rotateX(0deg) scale(1);
  opacity: 1;
}

/* Orange gradient overlay — top burn + bottom fade, matching bio photo */
.dash-video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 110% 50% at 50% 0%, rgba(255, 80, 0, 0.55) 0%, rgba(180, 40, 0, 0.2) 45%, transparent 70%),
    linear-gradient(to top, rgba(200, 50, 0, 0.25) 0%, transparent 40%);
}

.dash-video {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  position: relative;
  z-index: 2;
}

.dash-showcase {
  padding: 3rem 2rem 5rem;
  display: flex;
  justify-content: center;
  perspective: 1400px;
}

/* Browser mockup wrapper */
.dash-browser {
  width: min(1160px, 95vw);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-md);
  box-shadow:
    0 0 0 1px var(--border),
    0 32px 100px rgba(0, 0, 0, 0.45),
    0 8px 32px rgba(55, 139, 155, 0.06);
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.3s ease;
  cursor: default;
}

.dash-browser:hover {
  box-shadow:
    0 0 0 1px rgba(55, 139, 155, 0.2),
    0 40px 120px rgba(0, 0, 0, 0.55),
    0 12px 48px rgba(55, 139, 155, 0.12);
}

/* Chrome top bar */
.dash-chrome {
  background: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
  padding: 0.625rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  user-select: none;
}

[data-theme="light"] .dash-chrome {
  background: #e8e8ed;
  border-bottom-color: #d0d0d8;
}

.dash-chrome-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.dash-chrome-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dash-chrome-dots span:nth-child(1) { background: #ff5f56; }
.dash-chrome-dots span:nth-child(2) { background: #febc2e; }
.dash-chrome-dots span:nth-child(3) { background: #27c840; }

.dash-chrome-bar {
  flex: 1;
  background: #111111;
  border: 1px solid #2e2e2e;
  border-radius: 6px;
  padding: 0.3125rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  color: #888;
  max-width: 380px;
  margin: 0 auto;
}
.dash-chrome-bar svg { color: #555; flex-shrink: 0; }

[data-theme="light"] .dash-chrome-bar {
  background: #fff;
  border-color: #ccc;
  color: #555;
}
[data-theme="light"] .dash-chrome-bar svg { color: #888; }

.dash-chrome-live {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #4ade80;
  flex-shrink: 0;
}

.dash-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: dashLivePulse 2s ease-in-out infinite;
}

@keyframes dashLivePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  50%       { opacity: 0.8; box-shadow: 0 0 0 4px rgba(74,222,128,0); }
}

/* iframe container */
.dash-viewport {
  height: 580px;
  overflow: hidden;
  position: relative;
  background: #111111;
}

.dash-viewport iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  pointer-events: auto;
}


/* ── 10d. Skills Carousel (Areas of Expertise) ── */
.skills-carousel-section {
  background: var(--surface);
  padding: 80px 0 60px;
}

.skills-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
}

.skills-carousel::before,
.skills-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(max(0px, (100vw - 1240px) / 2) + 2rem);
  z-index: 2;
  pointer-events: none;
}

.skills-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--surface) 0%, transparent 100%);
}

.skills-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--surface) 0%, transparent 100%);
}

.skills-carousel-track {
  display: flex;
  width: max-content;
  animation: skills-marquee 42s linear infinite;
}

.skills-carousel-track--2 {
  margin-top: 1rem;
  animation-direction: reverse;
}

.skills-carousel:hover .skills-carousel-track {
  animation-play-state: paused;
}

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

@media (prefers-reduced-motion: reduce) {
  .skills-carousel-track {
    animation: none;
  }
}

.skill-card {
  flex: 0 0 300px;
  margin-right: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.25s, border-top-color 0.25s, transform 0.25s;
}

.skill-card:hover {
  border-color: rgba(55, 139, 155, 0.3);
  border-top-color: var(--accent-alt);
  transform: translateY(-3px);
}

.skill-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-bottom: 0.875rem;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.skill-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e8e8f2;
  margin-bottom: 0.875rem;
  letter-spacing: -0.01em;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.skill-list li {
  font-size: 0.8rem;
  color: #8080a0;
  padding-left: 1rem;
  position: relative;
  line-height: 1.4;
}

.skill-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--accent);
  font-size: 0.45em;
  line-height: 2;
}

/* ── 11. Bio ──────────────────────────────────── */
.bio {
  background: var(--bg);
}

.bio-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
}

.bio-sidebar {
  position: sticky;
  top: 88px;
}

.bio-photo-wrapper {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(55, 139, 155, 0.2);
  box-shadow: 0 0 0 1px rgba(55, 139, 155, 0.12), 0 8px 48px rgba(55, 139, 155, 0.15);
  background: #1a0800;
}

.bio-photo-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 110% 50% at 50% 0%, rgba(255, 80, 0, 0.55) 0%, rgba(180, 40, 0, 0.2) 45%, transparent 70%),
    linear-gradient(to top, rgba(200, 50, 0, 0.25) 0%, transparent 40%);
}

.bio-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  position: relative;
  z-index: 2;
}

.bio-credentials {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.credential-group {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

/* <details>/<summary> dropdown behaviour */
.credential-group[open] > summary { margin-bottom: 0.875rem; }

.credential-group summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  margin-bottom: 0;
}

/* Remove default browser disclosure triangle */
.credential-group summary::-webkit-details-marker { display: none; }
.credential-group summary::marker              { display: none; }

/* +/– indicator */
.credential-group summary::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.2s;
}
.credential-group[open] summary::after {
  content: '−';
}

/* Smooth open — handled by JS (max-height + opacity transition) */
.credential-group .credential-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.credential-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0; /* controlled by details[open] */
}

.credential-item {
  margin-bottom: 0.75rem;
}

.credential-item:last-child {
  margin-bottom: 0;
}

.credential-role {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.credential-detail {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.bio-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.bio-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bio-text p {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.bio-competencies {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.competencies-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bio-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── 12. FAQ ──────────────────────────────────── */
.faq {
  background: var(--surface);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.5rem 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  gap: 1rem;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.2s, transform 0.3s, background 0.2s;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--text-muted);
  border-radius: 2px;
  transition: opacity 0.25s, transform 0.25s, background 0.2s;
}

.faq-icon::before {
  width: 10px;
  height: 1.5px;
}

.faq-icon::after {
  width: 1.5px;
  height: 10px;
}

.faq-item.open .faq-question {
  color: var(--accent);
}

.faq-item.open .faq-icon {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: rotate(45deg);
}

.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after {
  background: var(--accent);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
  max-height: 600px;
}

.faq-answer-inner {
  padding-bottom: 1.5rem;
}

.faq-answer-inner p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── 13. Contact ──────────────────────────────── */
.contact {
  background: var(--bg);
}

/* Video background variant */
.contact--video-bg {
  position: relative;
  overflow: hidden;
}

.contact-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.75;
}

.contact-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(7, 7, 13, 0.65) 0%,
    rgba(7, 7, 13, 0.50) 100%
  );
  z-index: 1;
}

[data-theme="light"] .contact-bg-overlay {
  background: linear-gradient(
    135deg,
    rgba(243, 243, 251, 0.68) 0%,
    rgba(243, 243, 251, 0.52) 100%
  );
}

.contact--video-bg .container {
  position: relative;
  z-index: 2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--text);
  margin-bottom: 1rem;
}

.contact-description {
  font-size: 0.975rem;
  color: rgba(232, 232, 242, 0.82);
  line-height: 1.7;
  margin-bottom: 2rem;
}

[data-theme="light"] .contact-description {
  color: rgba(13, 13, 26, 0.75);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.875rem 1.125rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.contact-link-item:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-dim);
}

.contact-link-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.8;
  /* Dark mode: invert dark icons to white */
  filter: brightness(0) invert(0.85);
}

[data-theme="light"] .contact-link-icon {
  filter: brightness(0) invert(0.35); /* dark grey on light bg */
  opacity: 0.7;
}

.contact-form-wrapper {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: sticky;
  top: 100px;
}

@media (max-width: 900px) {
  .contact-form-wrapper {
    position: static;
  }
}

.contact-form-wrapper .quote-wizard {
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.required {
  color: var(--accent);
}

.form-input {
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

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

.form-success,
.form-error {
  display: none;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

.form-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #22c55e;
}

.form-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

.form-success.visible,
.form-error.visible {
  display: block;
}

/* ── 14. Footer ───────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-container {
  padding-top: 64px;
  padding-bottom: 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand-logo {
  height: 48px;
  width: auto;
  display: block;
  margin-bottom: 0.75rem;
}

.footer-thanks {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.footer-name {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-signature {
  width: 160px;
  margin-top: 1.25rem;
  opacity: 1;
}

[data-theme="light"] .footer-signature {
  filter: invert(1);
  opacity: 1;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-link-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-link-item:hover {
  color: var(--text);
}

.footer-link-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.75;
  filter: brightness(0) invert(0.75);
}

[data-theme="light"] .footer-link-item img {
  filter: brightness(0) invert(0.4);
  opacity: 0.7;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 32px;
}

.footer-legal {
  font-size: 0.8rem;
  color: var(--text-subtle);
  text-align: left;
}

/* ── 15. Buttons & Tags ───────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
}

.btn-primary:hover {
  background: var(--accent-alt);
  color: #06110f;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(55, 139, 155, 0.35);
}

[data-theme="light"] .btn-primary:hover {
  color: #fff;
}

.btn-primary:hover .btn-arrow {
  filter: brightness(0);
}

[data-theme="light"] .btn-primary:hover .btn-arrow {
  filter: none;
}

.btn-large {
  padding: 0.875rem 1.75rem;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 0.45rem 0.875rem;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-md);
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
}

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

.nav-login {
  opacity: 1;
  color: var(--text);
  border-color: var(--border-md);
}

.btn-arrow {
  width: 16px;
  height: auto;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.65rem;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(55, 139, 155, 0.2);
}

.tag.soft {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-muted);
}

.tag.blue {
  background: var(--blue-dim);
  border-color: var(--blue-border);
  color: var(--blue);
  font-size: 0.8rem;
  padding: 0.4rem 0.875rem;
  border-radius: var(--radius-sm);
}

/* ── 16. Scroll Animations ────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate][data-delay="100"] { transition-delay: 0.10s; }
[data-animate][data-delay="150"] { transition-delay: 0.15s; }
[data-animate][data-delay="200"] { transition-delay: 0.20s; }
[data-animate][data-delay="250"] { transition-delay: 0.25s; }
[data-animate][data-delay="300"] { transition-delay: 0.30s; }
[data-animate][data-delay="350"] { transition-delay: 0.35s; }

/* ── 17a. Light Mode Arrow Fixes ─────────────── */

/* White arrow images are invisible on light backgrounds.
   Invert them to near-black for ghost buttons and cs-cta text links. */
[data-theme="light"] .cs-cta .btn-arrow-sm {
  filter: invert(35%) sepia(90%) saturate(800%) hue-rotate(5deg) brightness(0.85);
}

[data-theme="light"] .btn-ghost .btn-arrow,
[data-theme="light"] .footer-top-btn .btn-arrow {
  filter: invert(1) brightness(0.15);
}

/* Stars are CSS text (★★★★★) with hardcoded orange — no filter needed */

/* Stats bar: ensure it contrasts on light surface */
[data-theme="light"] .stats-bar {
  background: var(--surface);
}

/* Scrollbar accent in light mode */
[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-alt) 0%, var(--accent) 100%);
}

/* ── 17. Mobile ───────────────────────────────── */
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bio-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .bio-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
  }

  .bio-photo-wrapper {
    margin-bottom: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 860px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card.featured {
    grid-column: span 1;
  }

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

  .stats-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .stats-container .stat-item:nth-child(4),
  .stats-container .stat-item:nth-child(5) {
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* ── Navbar ── */
  .nav-container {
    gap: 0; /* remove gap so logo doesn't push items too far */
  }

  .nav-logo {
    padding-right: 0.5rem; /* small gap before the flex spacer */
  }

  .nav-logo-desktop {
    display: none;
  }

  .nav-logo-mobile {
    display: block;
    height: 38px;
    width: auto;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    margin-left: auto; /* push actions to the right, matching container padding */
  }

  /* Show Get In Touch in nav on mobile — compact size */
  .nav-cta {
    display: inline-flex;
    padding: 0.4rem 0.875rem;
    font-size: 0.8rem;
  }

  /* Login moves into the mobile menu; hide the standalone nav button */
  .nav-login {
    display: none;
  }

  .nav-hamburger {
    display: flex;
    margin-right: -8px; /* offset the button's own 8px padding so the icon lines sit flush with the edge, matching the logo's inset on the left */
  }

  /* ── Footer ── */
  .footer-container {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .footer-top {
    flex-direction: column;
    padding-left: 0;
    padding-right: 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
  }

  .footer-legal {
    text-align: center;
  }

  /* ── Hero: keep subtext, shrink it to save space ── */
  .hero-body {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
  }

  /* ── Hero value points: condensed single-row carousel ── */
  .hero-vp-list {
    position: relative;
    min-height: 92px;
    margin-bottom: 1.5rem;
  }

  .hero-vp-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
  }

  .hero-vp-item.hero-vp-active {
    opacity: 1;
    pointer-events: auto;
  }

  .hero-vp-item span:last-child {
    font-size: 0.9rem;
  }

  /* ── Hero + Bio CTA buttons: full width ── */
  .hero-cta-group {
    flex-direction: column;
    gap: 0.875rem;
  }

  .hero-cta-group .btn,
  .hero-cta-group .btn-ghost-link {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.875rem 1.5rem;
    border: 1px solid var(--border-md);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
  }

  .hero-cta-group .btn-ghost-link {
    color: var(--text);
    border-color: var(--border-md);
    border-bottom-width: 1px;
    padding-bottom: 0.875rem;
  }

  .bio-cta-group {
    flex-direction: column;
    gap: 0.875rem;
  }

  .bio-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  /* ── Stats: individual bordered boxes ── */
  .stats-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
    padding: 1rem 0;
  }

  .stat-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 0.75rem;
  }

  .stats-container .stat-item:nth-child(4),
  .stats-container .stat-item:nth-child(5) {
    border-top: 1px solid var(--border); /* match individual box borders */
  }

  /* ── Testimonials: equal-height cards with read-more ── */
  .testimonial-card {
    height: 240px;
    overflow: hidden;
    position: relative;
  }

  .testimonial-card.t-expanded {
    height: auto;
  }

  .testimonial-read-more {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.6rem 1.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-align: left;
    background: var(--card);
    border: none;
    cursor: pointer;
    z-index: 2;
  }

  .testimonial-card.t-expanded .testimonial-read-more {
    position: static;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    margin-top: 0.75rem;
  }

  /* ── Case Studies: 1 per slide handled by JS restructure ── */
  .cs-slider {
    padding: 0 28px;
  }

  .cs-slide--single {
    grid-template-columns: 1fr;
  }

  /* ── Dashboard image: side padding ── */
  .dash-video-wrap {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
  }

  /* ── Skills: 1 column on mobile ── */
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .bio-sidebar {
    grid-template-columns: 1fr;
  }

  .bio-photo-wrapper {
    max-width: 240px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  /* ── Stats: 2-col grid on small screens ── */
  .stats-container {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .stats-container .stat-item:nth-child(5) {
    grid-column: span 2;
  }

  .hero-headline {
    font-size: 1.85rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }
}

/* ================================================
   AI STACK DIAGRAM ("Five specialist tools, one system")
   ================================================ */
.stack-section {
  padding: 100px 24px 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.stack-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 8px;
}
.stack-eyebrow {
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.stack-eyebrow::before,
.stack-eyebrow::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.stack-head h2 {
  font-family: var(--font);
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}
.stack-head p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
}
.stack-panel {
  background: radial-gradient(ellipse 100% 120% at 50% -10%, #10232a 0%, #0a0a0a 55%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 18px 32px 20px;
  margin-top: 48px;
  box-shadow: 0 34px 80px -44px rgba(0, 0, 0, 0.6);
}
.stack-panel-cap {
  text-align: center;
  font-family: var(--font);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.stack-diagram {
  max-width: 980px;
  margin: 0 auto;
}
.stack-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.stack-link-in { fill: none; stroke: rgba(55, 139, 155, 0.30); stroke-width: 1.5; }
.stack-link-out { fill: none; stroke: rgba(254, 225, 1, 0.30); stroke-width: 1.5; }
.stack-run-in {
  fill: none; stroke: #378b9b; stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: 5 150; animation: stackDash 2.6s linear infinite;
}
.stack-run-out {
  fill: none; stroke: #fee101; stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: 5 150; animation: stackDash 2.6s linear infinite;
}
@keyframes stackDash { to { stroke-dashoffset: -155; } }
.stack-pill { fill: rgba(255, 255, 255, 0.05); stroke: rgba(255, 255, 255, 0.16); stroke-width: 1; }
.stack-pill-out { fill: rgba(254, 225, 1, 0.09); stroke: rgba(254, 225, 1, 0.32); stroke-width: 1; }
.stack-txt { fill: #f2f2f7; font-family: var(--font); font-size: 16px; font-weight: 600; }
.stack-cap { fill: rgba(255, 255, 255, 0.45); font-family: var(--font); font-size: 11px; letter-spacing: 0.14em; }
.stack-core-sub { fill: #f2f2f7; font-family: var(--font); font-size: 17px; font-weight: 800; letter-spacing: 0.14em; }

@media (max-width: 768px) {
  .stack-section { padding: 70px 20px 30px; }
  .stack-panel { padding: 14px 14px 18px; }
}

/* ================================================
   SHOWCASE ("The only limit is your imagination")
   ================================================ */
.showcase-section {
  padding: 24px 24px 100px;
}
.showcase-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.showcase-head h2 {
  font-family: var(--font);
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}
.showcase-trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 40px 0 0;
}
.showcase-trust p {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-top: 0;
}
.showcase-trust-row {
  display: flex;
  gap: 36px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.showcase-trust-row img {
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.2s, filter 0.2s;
  align-self: center;
}
.showcase-trust-row .trust-logo-claude {
  height: 20.9px; /* ~13% smaller than the 24px baseline, to match the other marks */
}
[data-theme="light"] .showcase-trust-row img {
  filter: brightness(0) invert(0);
}
.showcase-trust-row img:hover {
  opacity: 1;
  filter: none;
}

.tools-module {
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  margin-top: 48px;
}

.artery-video-banner {
  aspect-ratio: 21 / 6;
  background: #05070a;
}

.artery-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px) {
  .artery-video-banner {
    aspect-ratio: 16 / 9;
  }
}

.showcase-list {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 88px;
}
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.showcase-row.reverse .showcase-media { order: 2; }
.showcase-media-frame {
  aspect-ratio: 16/10;
  border-radius: 20px;
  overflow: hidden;
  background: #05070a;
  border: 1px solid var(--border);
}
.showcase-media-frame video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.showcase-copy .k {
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  background-image: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  display: block;
}
.showcase-copy h3 {
  font-family: var(--font);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 14px;
}
.showcase-copy p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 46ch;
}
.showcase-mini {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.sc-chip {
  font-family: var(--font);
  font-size: 11px;
  padding: 5px 11px;
  border-radius: 100px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.sc-chip.on {
  background: var(--accent-dim);
  border-color: rgba(55, 139, 155, 0.35);
  color: var(--accent);
}
.showcase-copy .btn {
  margin-top: 22px;
}

/* Audio player card */
.sc-player {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.sc-player-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sc-audio-play {
  width: 50px; height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  background: var(--brand-gradient);
  color: #06110f;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  transition: filter 0.15s;
}
.sc-audio-play:hover { filter: brightness(1.08); }
.sc-audio-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex: 1; min-width: 0; }
.sc-audio-meta .t { font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--text); text-align: left; }
.sc-audio-meta .s { font-family: var(--font); font-size: 12px; line-height: 1.4; color: var(--text-subtle); text-align: right; white-space: nowrap; }
.sc-wave {
  display: flex; align-items: center; gap: 3px;
  height: 52px; margin: 20px 0 14px;
}
.sc-wave span {
  flex: 1; min-width: 2px;
  background: var(--brand-gradient);
  border-radius: 100px;
  transform: scaleY(0.22);
  transform-origin: center;
  animation: scWave 1.3s ease-in-out infinite;
  animation-play-state: paused;
  opacity: 0.45;
}
.sc-wave.playing span { animation-play-state: running; opacity: 0.9; }
@keyframes scWave { 0%, 100% { transform: scaleY(0.22); } 50% { transform: scaleY(1); } }
.sc-seek {
  height: 6px; border-radius: 100px;
  background: var(--border-md);
  cursor: pointer; position: relative; overflow: hidden;
}
.sc-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--brand-gradient);
  border-radius: 100px;
}
.sc-time {
  display: flex; justify-content: space-between;
  font-family: var(--font); font-size: 11px; color: var(--text-subtle);
  margin-top: 8px;
}
.sc-list { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.sc-track {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 11px; border-radius: 12px;
  cursor: pointer; border: 1px solid transparent;
  background: transparent; text-align: left; width: 100%;
  font: inherit; color: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.sc-track:hover { background: var(--card-hover); }
.sc-track.active { background: var(--accent-dim); border-color: rgba(55,139,155,0.3); }
.sc-track .tic {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--card-hover); color: var(--accent);
}
.sc-track.active .tic { background: var(--brand-gradient); color: #06110f; }
.sc-track .tic svg { width: 15px; height: 15px; }
.sc-track .track-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sc-track .tt { font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--text); }
.sc-track .ts { font-family: var(--font); font-size: 11px; line-height: 1.4; color: var(--text-subtle); }

@media (max-width: 860px) {
  .showcase-row, .showcase-row.reverse { grid-template-columns: 1fr; }
  .showcase-row.reverse .showcase-media { order: 0; }
  .showcase-media { min-width: 0; } /* let grid item shrink below its content's intrinsic width */
}
@media (max-width: 768px) {
  .showcase-section { padding: 20px 20px 70px; }

  /* Voice & Audio player: keep inside viewport, stack title/subtitle */
  .sc-player {
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box;
  }

  .sc-player-top {
    align-items: flex-start;
  }

  .sc-audio-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
  }

  .sc-audio-meta .t,
  .sc-audio-meta .s {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .sc-audio-meta .s {
    text-align: left;
    white-space: normal;
  }
}

/* ================================================
   CLIENT TOOLS capability grid
   ================================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.tool-card {
  background: var(--bg);
  padding: 40px;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: background 0.3s;
}
.tool-card:hover { background: var(--card); }
.tool-num {
  position: absolute; top: 20px; right: 22px;
  font-family: var(--font); font-size: 12px; color: var(--text-subtle);
}
.tool-icon {
  width: 46px; height: 46px;
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.tool-icon svg { width: 40px; height: 40px; }
.tool-card h4 {
  font-family: var(--font); font-size: 20px; font-weight: 700;
  color: var(--text); margin-bottom: 8px; letter-spacing: -0.01em;
}
.tool-card p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.tool-powered { margin-top: 12px; font-family: var(--font); font-size: 12px; color: var(--text-subtle); }
.tool-powered b { color: var(--text); font-weight: 700; }

@media (max-width: 860px) {
  .tools-grid { grid-template-columns: 1fr; }
}

/* ================================================
   QUOTE WIZARD (modular pricing + multi-step lead form)
   ================================================ */
.quote-section {
  background: var(--surface);
}

.quote-wizard {
  max-width: 720px;
  margin: 56px auto 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.quote-progress {
  height: 4px;
  background: var(--border-md);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 32px;
}

.quote-progress-fill {
  height: 100%;
  width: 16.6667%;
  background: var(--brand-gradient);
  border-radius: 100px;
  transition: width 0.4s cubic-bezier(0.16,1,0.3,1);
}


.quote-step {
  display: none;
  animation: quoteFadeIn 0.35s ease;
}

.quote-step.active {
  display: block;
}

@keyframes quoteFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.quote-step-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.quote-step h3 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.quote-step-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

/* Campaign stepper */
.quote-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.quote-stepper-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-md);
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, transform 0.15s;
}

.quote-stepper-btn:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.quote-stepper-btn:active {
  transform: translateY(0);
}

.quote-stepper-value {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text);
  min-width: 80px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.quote-stepper-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-top: -0.5rem;
}

/* Yes/No toggle */
.quote-toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.quote-toggle-btn {
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-md);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.quote-toggle-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.quote-toggle-btn.selected {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

/* Ad spend input */
.quote-spend-input-wrap {
  position: relative;
  margin-bottom: 1.25rem;
}

.quote-spend-input-wrap .prefix {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.3rem;
  font-weight: 600;
  pointer-events: none;
}

.quote-spend-input {
  width: 100%;
  padding: 1rem 1rem 1rem 2.3rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.quote-spend-input:focus {
  outline: none;
  border-color: var(--accent);
}

.quote-chip-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.quote-chip {
  padding: 0.5rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border-md);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}

.quote-chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

.quote-chip.selected {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

/* Summary breakdown */
.quote-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.75rem;
}

.quote-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.quote-summary-row:last-of-type {
  border-bottom: none;
}

.quote-summary-row .label {
  color: var(--text-muted);
}

.quote-summary-row .value {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.quote-summary-row .value s {
  color: var(--text-subtle);
  font-weight: 500;
  margin-right: 0.35rem;
}

.quote-summary-total {
  margin-top: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-md);
}

.quote-summary-total .label {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 700;
}

.quote-summary-total .value {
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 800;
}

.quote-summary-note {
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-top: 0.75rem;
  line-height: 1.5;
}

.quote-three-month-box {
  display: block;
  margin-top: 0.75rem;
  padding: 0.7rem 0.9rem;
  background: var(--accent-dim);
  border: 1px solid rgba(55, 139, 155, 0.3);
  border-radius: 10px;
  cursor: pointer;
}

.quote-three-month-box .quote-summary-row {
  padding: 0;
  border-bottom: none;
}

.quote-three-month-box .quote-summary-row .label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.quote-three-month-box input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

.quote-summary-disclaimer {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary, var(--text-subtle));
}

.quote-summary-disclaimer strong {
  color: var(--text);
}

/* Nav buttons */
.quote-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.quote-nav .quote-back {
  visibility: hidden;
}

.quote-nav .quote-back.visible {
  visibility: visible;
}

.quote-dots {
  display: flex;
  gap: 6px;
}

.quote-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-md);
  transition: background 0.2s, transform 0.2s;
}

.quote-dot.active {
  background: var(--accent);
  transform: scale(1.4);
}

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

.quote-form-grid .form-group:nth-child(1),
.quote-form-grid .form-group:nth-child(2) {
  grid-column: span 1;
}

@media (max-width: 640px) {
  .quote-wizard { padding: 28px 20px; }
  .quote-toggle-row { grid-template-columns: 1fr; }
  .quote-form-grid { grid-template-columns: 1fr; }
  .quote-stepper-value { font-size: 2.2rem; }
}

/* ── Footer legal links (Privacy / Terms) ───────────── */
.footer-legal-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-legal-links a {
  font-size: 0.8rem;
  color: var(--text-subtle);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .footer-legal-row {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ── Cookie Consent Banner ───────────────────────────── */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 9999;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-consent-banner--visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-consent-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: var(--card);
  border-top: 1px solid var(--border-md);
  box-shadow: var(--shadow);
  padding: 12px 24px;
}

.cookie-consent-text {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-muted);
  margin: 0;
}

.cookie-consent-text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 14px 16px;
    gap: 0.75rem;
  }

  .cookie-consent-text {
    font-size: 0.75rem;
  }

  .cookie-consent-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .cookie-consent-actions .btn {
    flex: 1 1 0;
    justify-content: center;
    text-align: center;
  }
}

/* ── Legal pages (Privacy Policy / Terms) ────────────── */
.legal-page {
  padding: 160px 0 100px;
  min-height: 60vh;
}

.legal-page .container {
  max-width: 860px;
}

.legal-header {
  margin-bottom: 48px;
}

.legal-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 12px;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.legal-content h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 1rem;
  color: var(--text);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--text);
}

.legal-content p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.legal-content ul {
  margin: 0 0 1.25rem 1.25rem;
  padding: 0;
}

.legal-content li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
}

.legal-content strong {
  color: var(--text);
}

.legal-toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 2.5rem;
}

.legal-toc-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  margin: 0 0 0.75rem;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.1rem;
  columns: 2;
  column-gap: 2rem;
}

.legal-toc li {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.legal-toc a {
  color: var(--text-muted);
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .legal-page { padding: 130px 0 70px; }
  .legal-toc ol { columns: 1; }
}
