/* ============================================================
   PeopleNova — Design tokens
   Palette sampled directly from the product's own logo/theme
   (people-nova/src/constants/theme.ts, admin/app/globals.css).
   ============================================================ */
:root {
  /* Brand color */
  --color-primary: #1170f2; /* brand blue — logo "P" / Nova */
  --color-primary-text: #0b57c7; /* darkened for small text on light bg (AA) */
  --color-primary-light: #5b9bfa;
  --color-navy: #001860; /* deep navy — "People" wordmark / primary text */
  --color-accent: #04c39b; /* teal/emerald — center figure + swoosh */
  --color-accent-dark: #03a184;

  --gradient-brand: linear-gradient(135deg, #1664fb, #04c39b);
  --gradient-navy: linear-gradient(135deg, #001860, #1170f2);

  --color-success: #04c39b;
  --color-warning: #f5a623;
  --color-danger: #e5484d;
  --color-danger-text: #c22c33; /* darkened: --color-danger is only ~3.9:1 on white, fails AA for text */

  --color-white: #ffffff;
  --color-gray-50: #f8f9fb;
  --color-gray-100: #f1f3f7;
  --color-gray-200: #e4e8ef;
  --color-gray-300: #d0d6e1;
  --color-gray-400: #9aa4b7;
  --color-gray-500: #6b7686;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2733;
  --color-gray-900: #0f1521;

  /* Semantic surface/text roles */
  --color-ink: var(--color-navy); /* primary text on light surfaces */
  --color-body: var(--color-gray-600); /* secondary text on light surfaces */
  --color-paper: #ffffff;
  --color-paper-alt: var(--color-gray-50);
  --color-line: var(--color-gray-200);
  --color-line-on-navy: rgba(255, 255, 255, 0.16);
  --color-body-on-navy: var(--color-gray-300);

  /* Type — Plus Jakarta Sans for display (headlines only — bolder and
     more confident than Geist without the quirkier letterforms of a font
     like Bricolage Grotesque at large sizes), Geist for everything
     functional (matches the product's own UI). */
  --font-display: "Plus Jakarta Sans", "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing (8px base grid) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-card: 0 28px 70px -24px rgba(0, 24, 96, 0.32), 0 8px 20px -12px rgba(17, 112, 242, 0.18);
  --shadow-card-sm: 0 14px 34px -14px rgba(0, 24, 96, 0.26), 0 4px 10px -6px rgba(17, 112, 242, 0.14);
  --shadow-card-lift: 0 36px 80px -20px rgba(0, 24, 96, 0.34), 0 10px 26px -10px rgba(4, 195, 155, 0.22);

  --container-max: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

h1,
h2,
h3,
h4,
p,
blockquote,
ol,
figure {
  margin: 0;
}

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

/* ============================================================
   Type scale
   ============================================================ */
h1,
.display-large {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 1.6rem + 4vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2,
.display-medium {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h3,
.title-large {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink);
  margin-bottom: var(--space-2);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.eyebrow::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.eyebrow-inverse {
  color: var(--color-white);
}

.lede {
  font-size: 1.125rem;
  color: var(--color-body);
  max-width: 42ch;
}

/* Two-tone brand wordmark treatment (mirrors the logo: navy "People" + blue "Nova") */
.brand-word-nova {
  /* accent-dark, not primary: at logo weight/size this qualifies as "large
     text" (20px/700), so accent-dark clears AA large-text 3:1 on white —
     matches the teal "a" in the actual logo instead of defaulting to blue */
  color: var(--color-accent-dark);
}

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

.section {
  padding-block: var(--space-7);
}

#in-action {
  padding-top: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -60px;
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top 0.2s var(--ease);
}

.skip-link:focus-visible {
  top: var(--space-2);
}

:focus-visible {
  outline: 3px solid var(--color-accent-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-sm);
}

.btn-ghost {
  border: 1.5px solid var(--color-line);
  color: var(--color-ink);
}

.btn-ghost:hover {
  background: var(--color-paper-alt);
  border-color: var(--color-accent-dark);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-arrow {
  width: 16px;
  height: 16px;
  fill: none;
  /* icon-arrow is self-sufficient (inline stroke="currentColor"), but
     icon-mail (and any future reused icon) relies on an ancestor to set
     stroke — without this, it's invisible: fill:none + default stroke:none. */
  stroke: currentColor;
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-2);
  gap: var(--space-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-ink);
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 7px;
}

.site-nav {
  position: fixed;
  inset: 64px 0 auto 0;
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-line);
  padding: var(--space-3);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.site-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site-nav a {
  font-weight: 600;
  font-size: 1.0625rem;
  display: block;
  padding: var(--space-1) 0;
}

.site-nav a[aria-current="page"] {
  color: var(--color-primary-text);
}

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

.header-actions .btn-primary {
  display: none;
}

.header-store-badge {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-md);
  color: var(--color-ink);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.header-store-badge:hover {
  background: var(--color-paper-alt);
  border-color: var(--color-accent-dark);
}

.header-store-badge svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: var(--color-accent-dark);
}

.header-store-badge span {
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 840px) {
  .site-nav {
    position: static;
    background: none;
    border: 0;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .site-nav ul {
    flex-direction: row;
    gap: var(--space-4);
  }
  .site-nav a {
    font-size: 0.9375rem;
    padding: 0;
    position: relative;
  }
  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -4px;
    height: 2px;
    background: var(--gradient-brand);
    transition: right 0.25s var(--ease);
  }
  .site-nav a:hover::after,
  .site-nav a[aria-current="page"]::after {
    right: 0;
  }
  .header-actions .btn-primary {
    display: inline-flex;
  }
  .header-store-badge {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-block: var(--space-6) var(--space-7);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 640px;
  height: 640px;
  max-width: 60vw;
  max-height: 60vw;
  background: radial-gradient(circle, rgba(17, 112, 242, 0.16), rgba(4, 195, 155, 0.12) 55%, transparent 72%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translateY(var(--parallax-y, 0px));
}

.hero-grid {
  display: grid;
  gap: var(--space-6);
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  color: var(--color-ink);
}

.hero-copy .lede {
  margin-block: var(--space-3) var(--space-4);
}

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

.hero-trust {
  margin-top: var(--space-3);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-body);
}

.hero-visual {
  position: relative;
  min-height: 320px;
}

/* ============================================================
   Device frames (hold real product screenshots)
   ============================================================ */
.device-frame {
  position: relative;
  background: var(--color-navy);
  box-shadow: var(--shadow-card);
}

.device-laptop {
  border-radius: 14px 14px 4px 4px;
  padding: 14px 14px 30px;
}

.device-laptop::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
}

.device-phone {
  border-radius: 32px;
  padding: 14px;
  border: 2px solid var(--color-navy);
}

.device-phone::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 18px;
  border-radius: 10px;
  background: var(--color-navy);
  z-index: 2;
}

.device-screen {
  overflow: hidden;
  border-radius: 6px;
  background: var(--color-gray-100);
}

.device-laptop .device-screen {
  aspect-ratio: 16 / 10;
}

.device-phone .device-screen {
  aspect-ratio: 9 / 19.5;
  border-radius: 22px;
}

.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* For phone mockups that already render their own bezel/chassis — used
   instead of .device-frame.device-phone so the chassis isn't drawn twice. */
.shot-frame {
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.shot-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-visual .device-laptop {
  width: min(92%, 520px);
}

.hero-visual .shot-frame {
  position: absolute;
  right: -4%;
  bottom: -6%;
  width: 34%;
  min-width: 130px;
  z-index: 1;
}

.hero-visual .device-phone {
  position: absolute;
  right: -4%;
  bottom: -6%;
  width: 34%;
  min-width: 130px;
}

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

/* ============================================================
   Hero slider (4 slides — crossfade, auto-advance, fully
   keyboard/AT accessible, respects prefers-reduced-motion)
   ============================================================ */
.hero-slider {
  position: relative;
}

/* Deliberately never set `display` on .slide.is-active — every slide is
   also a .hero-grid, and .hero-grid's `display: grid` must win uncontested.
   (A previous version set display:block here at (0,0,2,0) specificity,
   which silently beat .hero-grid's (0,0,1,0) grid — the hero was never
   actually a 2-column grid, just stacked blocks with an absolute-positioned
   phone overlapping the headline.) */
.slide:not(.is-active) {
  display: none;
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s var(--ease);
  }
  .slide:not(.is-active) {
    display: block;
  }
  .slide.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
  }
}

.slide-controls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.slide-dots {
  display: flex;
  gap: 0.5rem;
}

.slide-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-gray-300);
  padding: 0;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.slide-dot.is-active {
  background: var(--color-primary);
  transform: scale(1.35);
}

.slide-arrow,
.slide-pause {
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--color-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.slide-arrow {
  width: 36px;
  height: 36px;
}

.slide-arrow svg {
  width: 15px;
  height: 15px;
}

.slide-arrow.prev svg {
  transform: scaleX(-1);
}

.slide-pause {
  width: 30px;
  height: 30px;
  color: var(--color-gray-600);
}

.slide-pause svg {
  width: 13px;
  height: 13px;
}

.slide-arrow:hover,
.slide-pause:hover {
  background: var(--color-paper-alt);
  border-color: var(--color-primary-light);
}

/* Slide 3's industry icon cloud — built from existing icons, no image needed */
.icon-cloud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  max-width: 340px;
  margin-inline: auto;
}

.icon-cloud-item {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-card-sm);
  overflow: hidden;
  padding: var(--space-2);
}

.icon-cloud-item svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-primary);
  fill: none;
}

.icon-cloud-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.icon-cloud-item:nth-child(even) svg {
  stroke: var(--color-accent-dark);
}

.icon-cloud-item:nth-child(even) {
  transform: translateY(var(--space-3));
}

@media (min-width: 840px) {
  .icon-cloud {
    max-width: 100%;
  }
}

/* ============================================================
   Image placeholders — dashed slots for real screenshots/photos.
   Sized via aspect-ratio so drop-in <img> causes zero layout shift.
   ============================================================ */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2);
  background: repeating-linear-gradient(
    135deg,
    var(--color-gray-100),
    var(--color-gray-100) 10px,
    var(--color-gray-50) 10px,
    var(--color-gray-50) 20px
  );
  border: 1.5px dashed var(--color-gray-300);
  color: var(--color-gray-500);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* Custom illustration frame — real finished artwork, not a pending
   placeholder, so no dashed border/label treatment. */
.illustration-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.illustration-frame svg {
  display: block;
  width: 100%;
  height: 100%;
}

.img-placeholder strong {
  display: block;
  color: var(--color-gray-600);
  font-weight: 700;
  margin-bottom: 2px;
}

/* ============================================================
   Industry strip (real org types the product ships with)
   ============================================================ */
.industries {
  background: var(--color-navy);
  padding-block: var(--space-4);
}

.industries-label {
  color: var(--color-body-on-navy);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: var(--space-3);
  text-align: center;
}

.industries-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.industries-row li {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--color-line-on-navy);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

/* Alternating blue/teal tint — still reads as navy chips (the tint sits
   under a mostly-opaque navy section bg), just with real brand color in it */
.industries-row li:nth-child(odd) {
  background: rgba(17, 112, 242, 0.18);
  border-color: rgba(17, 112, 242, 0.4);
}

.industries-row li:nth-child(even) {
  background: rgba(4, 195, 155, 0.16);
  border-color: rgba(4, 195, 155, 0.4);
}

/* ============================================================
   Modules (services)
   ============================================================ */
.services-grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.service-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.service-card:hover {
  transform: translateY(-7px) scale(1.015);
  box-shadow: var(--shadow-card-lift);
  border-color: var(--color-primary-light);
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s var(--ease), border-color 0.25s var(--ease);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* the real brand gradient (blue -> teal). A white stroke would dip below
     3:1 at the teal end, so the icon itself is navy instead — navy holds
     ≥3.5:1 across the whole gradient (non-text/icon contrast, not text). */
  background: var(--gradient-brand);
  margin-bottom: var(--space-3);
}

.service-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-navy);
  fill: none;
}

.service-card h3 {
  margin-bottom: var(--space-1);
}

.service-card p {
  color: var(--color-body);
  font-size: 0.9375rem;
}

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

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

/* ============================================================
   How it works
   ============================================================ */
.hiw-grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.hiw-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.hiw-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  /* light teal tint, navy text — the 3rd logo color, not just blue+navy */
  background: #d6f5ee;
  color: var(--color-navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: var(--space-3);
}

.hiw-card h3 {
  margin-bottom: var(--space-1);
}

.hiw-card p {
  color: var(--color-body);
  font-size: 0.9375rem;
}

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

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

/* ============================================================
   Who it's for
   ============================================================ */
.who-its-for .lede {
  margin-top: var(--space-2);
  max-width: 56ch;
}

.who-its-for .services-grid {
  margin-top: var(--space-4);
}

.service-card p.segment-tags {
  margin-top: var(--space-2);
  font-size: 0.8125rem;
  color: var(--color-gray-600);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-line);
}

/* ============================================================
   Feature spotlight rows (module deep-dives with screenshots)
   ============================================================ */
.spotlight {
  display: grid;
  gap: var(--space-4);
  align-items: center;
  padding-block: var(--space-5);
}

.spotlight:not(:last-child) {
  border-bottom: 1px solid var(--color-line);
}

.spotlight-copy p {
  color: var(--color-body);
  margin-top: var(--space-2);
  max-width: 46ch;
}

.spotlight-list {
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.spotlight-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9375rem;
  color: var(--color-ink);
  font-weight: 500;
}

.spotlight-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  stroke: var(--color-accent-dark);
  fill: none;
}

.spotlight-visual {
  display: flex;
  justify-content: center;
}

.spotlight-visual .device-phone,
.spotlight-visual .shot-frame {
  width: min(70%, 260px);
}

.spotlight-visual .device-laptop {
  width: 100%;
  max-width: 480px;
}

@media (min-width: 840px) {
  .spotlight {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
  .spotlight.reverse .spotlight-copy {
    order: 2;
  }
}

/* ============================================================
   Approach → "One platform, N apps"
   ============================================================ */
.approach {
  background: var(--color-navy);
  color: var(--color-white);
}

.approach h2 {
  color: var(--color-white);
  max-width: 22ch;
}

.steps {
  margin-top: var(--space-5);
  display: grid;
  gap: var(--space-4);
}

.step {
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-line-on-navy);
}

.step-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-1);
}

.step h3 {
  color: var(--color-white);
  margin-bottom: var(--space-1);
}

.step p {
  color: var(--color-body-on-navy);
  font-size: 0.9375rem;
  max-width: 32ch;
}

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

/* ============================================================
   Results (capability facts, not fabricated metrics)
   ============================================================ */
.results {
  background: linear-gradient(180deg, rgba(17, 112, 242, 0.045), rgba(4, 195, 155, 0.06));
}

.results-grid {
  display: grid;
  gap: var(--space-4);
  text-align: left;
}

.result-stat::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient-brand);
  margin-bottom: var(--space-2);
}

.result-stat strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.7rem + 1.2vw, 2.75rem);
  display: block;
  color: var(--color-ink);
}

.result-stat strong.stat-text {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
}

.result-stat span {
  color: var(--color-body);
  font-size: 0.9375rem;
}

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

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

/* ============================================================
   Testimonial (template — mark clearly as sample content)
   ============================================================ */
.testimonial {
  background: var(--color-paper-alt);
}

.testimonial-card {
  max-width: 60ch;
  margin-inline: auto;
  text-align: center;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

/* Testimonial carousel — 8 sample slots. Deliberately never sets `display`
   on .testimonial-slide.is-active (see the .slide fix above); nothing here
   competes with it today, but this keeps the same safe pattern regardless. */
.testimonial-slider {
  position: relative;
  margin-top: var(--space-5);
}

.testimonial-slide:not(.is-active) {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .testimonial-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease);
  }
  .testimonial-slide:not(.is-active) {
    display: block;
  }
  .testimonial-slide.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
  }
}

.testimonial-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray-500);
  background: var(--color-gray-100);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: var(--space-3);
}

.testimonial p.quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  line-height: 1.45;
  color: var(--color-ink);
}

.testimonial-attribution {
  margin-top: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
  flex-shrink: 0;
}

.testimonial-attribution .name-block {
  text-align: left;
  font-size: 0.9375rem;
  color: var(--color-body);
}

.testimonial-attribution .name-block strong {
  display: block;
  color: var(--color-ink);
}

/* ============================================================
   About
   ============================================================ */
.about-grid {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.about-copy p {
  color: var(--color-body);
  margin-top: var(--space-3);
  max-width: 52ch;
}

.about-copy p + p {
  margin-top: var(--space-2);
}

.about-stats {
  display: flex;
  gap: var(--space-5);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

.about-stats strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  display: block;
  color: var(--color-ink);
}

.about-stats span {
  font-size: 0.875rem;
  color: var(--color-body);
}

.about-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (min-width: 840px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   FAQ (native <details>/<summary> — accessible, no JS)
   ============================================================ */
.faq-list {
  max-width: 44rem;
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

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

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

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

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  /* teal-tinted chip, but the glyph itself stays navy: at 18px bold,
     accent-dark text only clears ~2.9:1 against this light a bg — fails
     AA. The tint (mostly-white base) keeps navy's contrast intact. */
  background: rgba(4, 195, 155, 0.14);
  color: var(--color-navy);
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease);
}

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

.faq-item p {
  color: var(--color-body);
  margin-top: var(--space-2);
  font-size: 0.9375rem;
  max-width: 68ch;
}

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  /* navy->blue, not navy->teal: the white H2 in here needs ≥4.5:1, and
     the brand gradient's teal end only clears ~2.3:1 for white text.
     Teal still shows up — as a decorative glow, not the text-bearing bg. */
  background: var(--gradient-navy);
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -8%;
  width: 480px;
  height: 480px;
  max-width: 50vw;
  max-height: 50vw;
  background: radial-gradient(circle, rgba(4, 195, 155, 0.35), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 46ch;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.cta-band h2 {
  color: var(--color-white);
}

.cta-band .btn-primary {
  background: var(--color-white);
  color: var(--color-navy);
}

.cta-band .btn-primary:hover {
  background: var(--color-accent);
  color: var(--color-navy);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.cta-actions p {
  color: var(--color-body-on-navy);
  font-size: 0.9375rem;
}

.cta-actions a.inline-link {
  color: var(--color-white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--color-navy);
  color: var(--color-body-on-navy);
  padding-top: var(--space-6);
}

.footer-grid {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
}

.footer-brand .brand {
  color: var(--color-white);
}

.footer-brand .brand-word-nova {
  color: var(--color-accent);
}

.footer-brand p {
  margin-top: var(--space-2);
  max-width: 32ch;
  font-size: 0.9375rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

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

.footer-col a {
  font-size: 0.9375rem;
}

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

.footer-social {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-line-on-navy);
  border-radius: 50%;
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--color-line-on-navy);
  border-radius: var(--radius-md);
  color: var(--color-white);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.store-badge:hover {
  border-color: var(--color-accent);
  background-color: rgba(255, 255, 255, 0.04);
}

.store-badge svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: var(--color-accent);
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-badge-text small {
  font-size: 0.6875rem;
  color: var(--color-line-on-navy);
}

.store-badge-text strong {
  font-size: 0.9375rem;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid var(--color-line-on-navy);
  padding-block: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  font-size: 0.8125rem;
}

.legal-links {
  display: flex;
  gap: var(--space-3);
}

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

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

/* ============================================================
   Page hero (inner pages — lighter than the home hero, no device mockup)
   ============================================================ */
.page-hero {
  padding-block: var(--space-6) var(--space-5);
  background: var(--color-paper-alt);
  border-bottom: 1px solid var(--color-line);
}

/* Optional 2-column variant — only used on pages where a supporting
   visual genuinely earns its place (not applied uniformly to every
   inner page; several intentionally stay text-only/fast-scanning). */
.page-hero-grid {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

@media (min-width: 840px) {
  .page-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.page-hero h1 {
  color: var(--color-ink);
  max-width: 24ch;
}

.page-hero .lede {
  margin-top: var(--space-3);
  max-width: 60ch;
}

.breadcrumb {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-gray-600);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb a {
  color: var(--color-primary-text);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ============================================================
   Pricing
   ============================================================ */
.pricing-note {
  background: var(--color-white);
  border: 1.5px dashed var(--color-gray-300);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--color-gray-600);
  font-size: 0.9375rem;
  margin-top: var(--space-4);
  max-width: 68ch;
}

.pricing-note strong {
  color: var(--color-ink);
}

.pricing-grid {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
  align-items: stretch;
}

.price-card {
  background: var(--color-white);
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card);
}

.price-card-badge {
  position: absolute;
  top: -14px;
  left: var(--space-4);
  background: var(--gradient-brand);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.price-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-ink);
}

.price-card-audience {
  color: var(--color-gray-600);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  min-height: 2.6em;
}

.price-value {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: var(--space-3);
}

.price-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4rem;
  padding: 0.1rem 0.6rem;
  border: 1.5px dashed var(--color-gray-300);
  border-radius: var(--radius-sm);
  background: var(--color-gray-50);
  color: var(--color-gray-500);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.625rem;
}

.price-unit {
  color: var(--color-gray-600);
  font-size: 0.875rem;
}

.price-card-cta {
  margin-top: var(--space-4);
}

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

.price-features {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex-grow: 1;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9375rem;
  color: var(--color-ink);
}

.price-features svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 3px;
  stroke: var(--color-accent-dark);
  fill: none;
}

@media (min-width: 840px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .price-card.featured {
    transform: translateY(-8px);
  }
}

/* ============================================================
   Contact form (client-side validated; submits via a pre-filled
   mailto — there is no backend to post to, and this is disclosed
   in the form's own hint text rather than implied otherwise)
   ============================================================ */
.contact-form {
  margin-top: var(--space-4);
}

.form-row {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

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

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-3);
}

.form-row .form-field {
  margin-bottom: 0;
}

.form-field label {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-ink);
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 0.9375rem;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  background: var(--color-white);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(17, 112, 242, 0.15);
}

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

.form-field.has-error input,
.form-field.has-error textarea {
  border-color: var(--color-danger);
}

.form-error {
  display: none;
  color: var(--color-danger-text);
  font-size: 0.8125rem;
  margin-top: 0.35rem;
  font-weight: 600;
}

.form-field.has-error .form-error {
  display: block;
}

.contact-form > .btn {
  margin-top: var(--space-2);
}

.form-hint {
  margin-top: var(--space-3);
  font-size: 0.8125rem;
  color: var(--color-gray-600);
}

.form-success {
  display: none;
  margin-top: var(--space-3);
  padding: var(--space-3);
  background: rgba(4, 195, 155, 0.1);
  border: 1px solid rgba(4, 195, 155, 0.35);
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

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

/* ============================================================
   Pricing calculator (real functionality — no backend needed;
   the rate constants are sample/illustrative, the math is live)
   ============================================================ */
.calc-card {
  margin-top: var(--space-5);
  background: var(--color-white);
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: grid;
  gap: var(--space-5);
  box-shadow: var(--shadow-card-sm);
}

.calc-controls label {
  display: block;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: var(--space-3);
}

.calc-controls input[type="range"] {
  width: 100%;
  accent-color: var(--color-primary);
  height: 6px;
  cursor: pointer;
}

.calc-tier-select {
  display: flex;
  gap: 4px;
  margin-top: var(--space-4);
  background: var(--color-gray-100);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.calc-tier-btn {
  flex: 1;
  padding: 0.6rem 0.5rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-gray-600);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.calc-tier-btn.is-active {
  background: var(--color-white);
  color: var(--color-primary-text);
  box-shadow: var(--shadow-card-sm);
}

.calc-result {
  /* teal, not navy/blue — this box is the one place the 3rd logo color
     gets to lead. Navy text throughout clears AA comfortably here
     (7.1:1 at the light end, 4.95:1 at the dark end). */
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.calc-result-label {
  position: relative;
  color: var(--color-navy);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calc-result-value {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1.2;
  color: var(--color-navy);
  margin-top: var(--space-2);
}

.calc-result-note {
  position: relative;
  display: block;
  margin-top: var(--space-2);
  color: var(--color-navy);
  font-size: 0.8125rem;
}

@media (min-width: 840px) {
  .calc-card {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

/* ============================================================
   Feature comparison table
   ============================================================ */
.table-scroll {
  overflow-x: auto;
  margin-top: var(--space-6);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.9375rem;
}

.compare-table th,
.compare-table td {
  padding: var(--space-2) var(--space-3);
  text-align: left;
  border-bottom: 1px solid var(--color-line);
}

.compare-table thead th {
  background: var(--color-paper-alt);
  font-family: var(--font-display);
  color: var(--color-ink);
  font-weight: 700;
}

.compare-table td:not(:first-child),
.compare-table th:not(:first-child) {
  text-align: center;
}

.compare-table tbody th {
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
}

.compare-table svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-accent-dark);
  fill: none;
}

.compare-table td.no {
  color: var(--color-gray-400);
}

.compare-table tbody tr:last-child td,
.compare-table tbody tr:last-child th {
  border-bottom: 0;
}

/* ============================================================
   Old way vs. PeopleNova (competitor-agnostic comparison)
   ============================================================ */
.old-vs-new {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.ovn-card {
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.ovn-card.old {
  background: var(--color-gray-50);
  border: 1px solid var(--color-line);
}

.ovn-card.new {
  background: var(--color-navy);
  color: var(--color-white);
}

.ovn-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  display: block;
}

.ovn-card.old .ovn-label {
  color: var(--color-gray-500);
}

.ovn-card.new .ovn-label {
  color: var(--color-accent);
}

.ovn-card ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ovn-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9375rem;
}

.ovn-card.old li {
  color: var(--color-gray-600);
}

.ovn-card.new li {
  color: var(--color-body-on-navy);
}

.ovn-card svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  fill: none;
}

.ovn-card.old svg {
  stroke: var(--color-danger);
}

.ovn-card.new svg {
  stroke: var(--color-accent);
}

@media (min-width: 840px) {
  .old-vs-new {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   Reveal-on-scroll (opacity/transform only — no CLS impact)
   ============================================================ */
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* Staggered/orchestrated reveal — cards in a grid arrive in sequence
   instead of all fading in at once. Pure CSS, no per-element markup. */
@media (prefers-reduced-motion: no-preference) {
  .services-grid > .reveal:nth-child(1), .hiw-grid > .reveal:nth-child(1), .results-grid > .reveal:nth-child(1),
  .steps > .reveal:nth-child(1), .pricing-grid > .reveal:nth-child(1), .faq-list > .reveal:nth-child(1),
  .old-vs-new > .reveal:nth-child(1) { transition-delay: 0ms; }

  .services-grid > .reveal:nth-child(2), .hiw-grid > .reveal:nth-child(2), .results-grid > .reveal:nth-child(2),
  .steps > .reveal:nth-child(2), .pricing-grid > .reveal:nth-child(2), .faq-list > .reveal:nth-child(2),
  .old-vs-new > .reveal:nth-child(2) { transition-delay: 80ms; }

  .services-grid > .reveal:nth-child(3), .hiw-grid > .reveal:nth-child(3), .results-grid > .reveal:nth-child(3),
  .steps > .reveal:nth-child(3), .pricing-grid > .reveal:nth-child(3), .faq-list > .reveal:nth-child(3) { transition-delay: 160ms; }

  .services-grid > .reveal:nth-child(4), .hiw-grid > .reveal:nth-child(4), .results-grid > .reveal:nth-child(4),
  .steps > .reveal:nth-child(4), .faq-list > .reveal:nth-child(4) { transition-delay: 240ms; }

  .services-grid > .reveal:nth-child(5), .faq-list > .reveal:nth-child(5) { transition-delay: 320ms; }

  .services-grid > .reveal:nth-child(6), .faq-list > .reveal:nth-child(6) { transition-delay: 400ms; }

  .faq-list > .reveal:nth-child(7) { transition-delay: 480ms; }
}

/* ============================================================
   Depth: film-grain texture on dark/colored sections — cheap
   (inline SVG feTurbulence, no image asset) but reads as "designed"
   rather than a flat color fill.
   ============================================================ */
.industries,
.approach,
.site-footer,
.cta-band {
  position: relative;
}

.industries::after,
.approach::after,
.site-footer::after,
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ============================================================
   Asymmetry — bento-style featured card, tilted device mockups
   ============================================================ */
/* Asymmetry through visual weight, not grid-spanning: 6 cards in a 3-col
   grid don't span cleanly (always leaves a orphaned trailing gap) — a
   filled "hero card" treatment breaks the monotony without breaking math. */
.services-grid.bento > .service-card:first-child {
  background: var(--gradient-navy);
  border-color: transparent;
}

.services-grid.bento > .service-card:first-child::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  border-radius: inherit;
}

.services-grid.bento > .service-card:first-child h3,
.services-grid.bento > .service-card:first-child p {
  color: var(--color-white);
  position: relative;
}

.services-grid.bento > .service-card:first-child .service-icon {
  background: rgba(255, 255, 255, 0.14);
  position: relative;
}

.services-grid.bento > .service-card:first-child .service-icon svg {
  stroke: var(--color-white);
}

.services-grid.bento > .service-card:first-child:hover {
  border-color: transparent;
}

/* 7 items, first + last spanning 2 columns: 2+1 / 1+1+1 / 1+2 — three
   clean rows, no orphaned gap. */
.services-grid.bento > .service-card:last-child {
  grid-column: span 2;
}

/* Coming-soon module card — dashed/muted, same visual language as the
   image placeholders: honest about what's live vs. roadmap, not another
   "featured" card pretending to be shipped. */
.service-card.coming-soon {
  background: var(--color-gray-50);
  border: 1.5px dashed var(--color-gray-300);
}

.service-card.coming-soon .service-icon {
  background: var(--color-gray-200);
}

.service-card.coming-soon .service-icon svg {
  stroke: var(--color-gray-500);
}

.service-card.coming-soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--color-gray-300);
}

.coming-soon-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gray-600);
  background: var(--color-gray-200);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: var(--space-2);
}

.hero-visual .device-laptop {
  transform: rotate(-2deg);
}

.hero-visual .device-phone,
.hero-visual .shot-frame {
  transform: rotate(4deg);
}

.hero-visual .device-frame:hover,
.hero-visual .shot-frame:hover {
  transform: rotate(0deg) scale(1.02);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-visual .shot-frame {
    transition: transform 0.4s var(--ease-bounce);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-visual .device-frame {
    transition: transform 0.4s var(--ease-bounce);
  }
}
