/* ============================================================
   NLIGHTEN — Brand-Faithful Stylesheet
   Colors: #91C3BF (teal), #CCFC53 (lime accent), #1A1A1A (black), #FFFFFF (white)
   Font: Inter (Semibold for headings, Regular for body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300..700&display=swap');

/* ============================================================ TOKENS */
:root {
  /* Brand palette */
  --color-teal:        #91C3BF;
  --color-teal-deep:   #5a9e99;
  --color-teal-light:  #daeeed;
  --color-lime:        #CCFC53;
  --color-lime-dark:   #a8d63a;
  --color-ink:         #1A1A1A;
  --color-ink-soft:    #2c2c2c;
  --color-white:       #FFFFFF;
  --color-offwhite:    #F7F8F6;
  --color-surface:     #F2F4F2;
  --color-border:      #E2E5E2;
  --color-muted:       #6B7070;
  --color-faint:       #9CA8A8;

  /* Semantic */
  --color-bg:          var(--color-offwhite);
  --color-text:        var(--color-ink);
  --color-text-muted:  var(--color-muted);
  --color-accent:      var(--color-teal);
  --color-cta:         var(--color-lime);

  /* Type scale */
  --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl:  clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 7rem);

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

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26,26,26,0.07);
  --shadow-md: 0 4px 16px rgba(26,26,26,0.09);
  --shadow-lg: 0 12px 40px rgba(26,26,26,0.12);

  /* Layout */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Fonts */
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --font-display: 'Inter', 'Helvetica Neue', sans-serif;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 200ms;
}

/* Dark mode */
[data-theme='dark'] {
  --color-bg:         #111312;
  --color-surface:    #181a19;
  --color-border:     #242724;
  --color-text:       #E8EBEA;
  --color-text-muted: #8A9491;
  --color-accent:     var(--color-teal);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:         #111312;
    --color-surface:    #181a19;
    --color-border:     #242724;
    --color-text:       #E8EBEA;
    --color-text-muted: #8A9491;
  }
}

/* ============================================================ RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

p, li, figcaption {
  text-wrap: pretty;
  max-width: 68ch;
}

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

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

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

input, textarea, select {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(145, 195, 191, 0.3);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================ LAYOUT */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding-inline: clamp(var(--space-6), 5vw, var(--space-16));
}

.container--narrow {
  max-width: var(--content-narrow);
}

.container--default {
  max-width: var(--content-default);
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.section--sm {
  padding-block: clamp(var(--space-10), 5vw, var(--space-20));
}

.section--dark {
  background-color: var(--color-ink);
  color: var(--color-white);
}

.section--teal {
  background-color: var(--color-teal-light);
}

.section--lime {
  background-color: var(--color-lime);
  color: var(--color-ink);
}

/* ============================================================ NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 246, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s var(--ease-out), background 0.3s ease;
}

[data-theme='dark'] .nav,
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .nav { } }

[data-theme='dark'] .nav {
  background: rgba(17, 19, 18, 0.92);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  height: 68px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-text {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--color-ink);
  transition: color 0.2s;
}

[data-theme='dark'] .nav__logo-text {
  color: var(--color-white);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav__links a:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.nav__links a.active {
  color: var(--color-teal-deep);
  font-weight: 600;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
  background: none;
  border: none;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border);
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile a {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.nav__mobile a:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
}

/* ============================================================ BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.18s var(--ease-out);
  cursor: pointer;
}

.btn--primary {
  background: var(--color-ink);
  color: var(--color-white);
  border: 2px solid var(--color-ink);
}

.btn--primary:hover {
  background: var(--color-ink-soft);
  border-color: var(--color-ink-soft);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,26,26,0.2);
}

.btn--lime {
  background: var(--color-lime);
  color: var(--color-ink);
  border: 2px solid var(--color-lime);
}

.btn--lime:hover {
  background: var(--color-lime-dark);
  border-color: var(--color-lime-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(204,252,83,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--color-ink);
  border: 2px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-ink);
  background: var(--color-surface);
}

.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn--outline-white:hover {
  border-color: var(--color-white);
  background: rgba(255,255,255,0.08);
}

.btn--sm {
  font-size: var(--text-xs);
  padding: 0.5rem 1.1rem;
}

.btn--lg {
  font-size: var(--text-base);
  padding: 1rem 2rem;
}

/* ============================================================ HERO */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-ink);
  color: var(--color-white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-24);
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: var(--space-6);
}

.hero__label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-teal);
  border-radius: 2px;
}

.hero__headline {
  font-size: var(--text-hero);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--color-white);
  margin-bottom: var(--space-8);
  max-width: 18ch;
}

.hero__headline em {
  color: var(--color-teal);
  font-style: normal;
}

.hero__headline .lime {
  color: var(--color-lime);
}

.hero__subhead {
  font-size: var(--text-lg);
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  max-width: 52ch;
  line-height: 1.55;
  margin-bottom: var(--space-10);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.hero__microcopy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
  max-width: 55ch;
}

.hero__visual {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 45%;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero { min-height: 85vh; }
  .hero__visual { width: 100%; opacity: 0.15; }
}

/* ============================================================ SECTION HEADERS */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal-deep);
  margin-bottom: var(--space-5);
}

.section-label--white {
  color: var(--color-teal);
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.section-headline {
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-6);
}

.section-headline--xl {
  font-size: var(--text-3xl);
}

.section-subhead {
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.55;
  margin-bottom: var(--space-10);
}

/* ============================================================ CARDS */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out), border-color 0.2s;
}

[data-theme='dark'] .card {
  background: var(--color-surface);
  border-color: var(--color-border);
}

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

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--color-teal-deep);
}

.card__number {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-teal);
  line-height: 1;
  margin-bottom: var(--space-4);
  letter-spacing: -0.04em;
}

.card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.card__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================================ GRID LAYOUTS */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  align-items: center;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

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

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

/* ============================================================ FEATURE ROW */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: center;
}

.feature-row--reverse { direction: rtl; }
.feature-row--reverse > * { direction: ltr; }

@media (max-width: 768px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row--reverse { direction: ltr; }
}

/* ============================================================ STATS / PILLARS */
.stat-item {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border);
}

.stat-item:last-child { border-bottom: none; }

.stat-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-teal);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.stat-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================================ PERSONA CARDS */
.persona-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all 0.2s var(--ease-out);
}

[data-theme='dark'] .persona-card {
  background: var(--color-surface);
}

.persona-card:hover {
  border-color: var(--color-teal);
  box-shadow: var(--shadow-md);
}

.persona-card__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--color-teal-light);
  color: var(--color-teal-deep);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.85rem;
  margin-bottom: var(--space-5);
}

.persona-card__title {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.persona-card__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================================ DIFFERENTIATORS */
.diff-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  list-style: none;
}

.diff-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

[data-theme='dark'] .diff-item {
  background: var(--color-surface);
}

.diff-item:hover {
  border-color: var(--color-teal);
  box-shadow: var(--shadow-sm);
}

.diff-item__dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--color-lime);
  margin-top: 7px;
}

.diff-item__text {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
}

/* ============================================================ COMPASS */
.compass-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.compass-point {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}

[data-theme='dark'] .compass-point {
  background: var(--color-surface);
}

.compass-point::before {
  content: attr(data-direction);
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-teal-light);
  letter-spacing: -0.04em;
  line-height: 1;
  pointer-events: none;
}

[data-theme='dark'] .compass-point::before {
  color: rgba(145, 195, 191, 0.12);
}

.compass-point__direction {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-teal-deep);
  margin-bottom: var(--space-2);
}

.compass-point__title {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.compass-point__body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

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

/* ============================================================ QUOTE / CALLOUT */
.callout {
  background: var(--color-teal-light);
  border-left: 4px solid var(--color-teal);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-ink);
  font-style: italic;
  line-height: 1.55;
}

.callout--dark {
  background: var(--color-ink);
  border-color: var(--color-lime);
  color: var(--color-white);
}

.callout--lime {
  background: var(--color-lime);
  border-color: var(--color-ink);
  color: var(--color-ink);
  font-style: normal;
  font-weight: 600;
}

/* ============================================================ CTA SECTION */
.cta-section {
  background: var(--color-ink);
  color: var(--color-white);
  text-align: center;
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
}

.cta-section__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: var(--space-5);
}

.cta-section__headline {
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin-bottom: var(--space-5);
}

.cta-section__body {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.6);
  max-width: 52ch;
  margin: 0 auto var(--space-10);
}

.cta-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* ============================================================ FOOTER */
.footer {
  background: var(--color-ink);
  color: rgba(255,255,255,0.55);
  padding-block: var(--space-16);
  border-top: 1px solid rgba(255,255,255,0.06);
}

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

.footer__brand p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  max-width: 36ch;
  line-height: 1.6;
  margin-top: var(--space-4);
}

.footer__col h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: var(--space-5);
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__col a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}

.footer__col a:hover {
  color: var(--color-teal);
}

.footer__bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

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

/* ============================================================ PAGE HERO (interior) */
.page-hero {
  background: var(--color-ink);
  color: var(--color-white);
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}

.page-hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: var(--space-5);
}

.page-hero__headline {
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 22ch;
  margin-bottom: var(--space-6);
}

.page-hero__subhead {
  font-size: var(--text-lg);
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  max-width: 55ch;
  line-height: 1.55;
}

/* ============================================================ THEME TOGGLE */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

/* ============================================================ VISUAL ELEMENTS */
.big-five-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
}

@media (max-width: 900px) {
  .big-five-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 520px) {
  .big-five-grid { grid-template-columns: 1fr 1fr; }
}

.big-five-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

[data-theme='dark'] .big-five-item {
  background: var(--color-surface);
}

.big-five-item:hover {
  border-color: var(--color-teal);
  box-shadow: var(--shadow-sm);
}

.big-five-item__letter {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-teal);
  line-height: 1;
  margin-bottom: var(--space-3);
  letter-spacing: -0.04em;
}

.big-five-item__name {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.big-five-item__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ============================================================ CONTINUUM */
.continuum {
  position: relative;
  padding: var(--space-8) 0;
}

.continuum__bar {
  height: 6px;
  background: linear-gradient(90deg, #6B7070 0%, #91C3BF 35%, #CCFC53 70%, #1A1A1A 100%);
  border-radius: 3px;
  margin-bottom: var(--space-5);
}

.continuum__labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
}

/* ============================================================ TEAM CARDS */
.team-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

[data-theme='dark'] .team-card {
  background: var(--color-surface);
}

.team-card:hover {
  box-shadow: var(--shadow-md);
}

.team-card__initials {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.team-card__info {
  padding: var(--space-6);
}

.team-card__name {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-1);
}

.team-card__role {
  font-size: var(--text-sm);
  color: var(--color-teal-deep);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.team-card__bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================================ NETWORK ITEMS */
.network-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

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

.network-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-10);
  background: var(--color-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

[data-theme='dark'] .network-item {
  background: var(--color-surface);
}

.network-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-teal);
}

.network-item:hover {
  border-color: var(--color-teal);
  box-shadow: var(--shadow-sm);
}

.network-item__name {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.network-item__body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================================ ANIMATIONS */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fadeInUp {
  animation: fadeInUp 0.7s var(--ease-out) both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ============================================================ UTILITIES */
.text-center { text-align: center; }
.text-teal { color: var(--color-teal); }
.text-lime { color: var(--color-lime); }
.text-muted { color: var(--color-text-muted); }
.text-white { color: var(--color-white); }

.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.w-full { width: 100%; }
.max-w-narrow { max-width: var(--content-narrow); }
.max-w-default { max-width: var(--content-default); }
.mx-auto { margin-inline: auto; }

/* Page transition */
main { opacity: 1; }

/* ── CUSTOMER VOICES COMPONENTS ─────────────────────────── */

/* Voice card - used in 3-col homepage grid & about preview */
.voice-card {
  background: var(--color-surface);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

[data-theme='dark'] .voice-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.voice-card__quote {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-ink);
  font-style: normal;
  margin: 0;
  flex: 1;
}

[data-theme='dark'] .voice-card__quote {
  color: rgba(255,255,255,0.85);
}

.voice-card__author {
  border-top: 1px solid rgba(0,0,0,0.07);
  padding-top: var(--space-4);
}

[data-theme='dark'] .voice-card__author {
  border-color: rgba(255,255,255,0.08);
}

.voice-card__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
  margin: 0 0 2px;
}

[data-theme='dark'] .voice-card__name {
  color: var(--color-white);
}

.voice-card__role {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin: 0;
  letter-spacing: 0.01em;
}

/* Single centred proof quote - used after How It Works */
.section--subtle-teal {
  background: rgba(145,195,191,0.08);
}

[data-theme='dark'] .section--subtle-teal {
  background: rgba(145,195,191,0.06);
}

.voice-quote-single {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.voice-quote-single__text {
  font-size: var(--text-xl);
  line-height: 1.6;
  color: var(--color-ink);
  font-style: normal;
  margin: var(--space-4) 0 var(--space-6);
}

[data-theme='dark'] .voice-quote-single__text {
  color: rgba(255,255,255,0.88);
}

.voice-quote-single__author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* 2-col grid utility */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

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

/* Text link */
.text-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: 0.01em;
  transition: opacity 0.2s;
}

.text-link:hover {
  opacity: 0.65;
}

[data-theme='dark'] .text-link {
  color: var(--color-white);
}

/* Full-page voice cards - 2-col on desktop */
.voices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.voices-grid .voice-card--full .voice-card__quote {
  font-size: var(--text-base);
  line-height: 1.75;
}

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

/* 5th card in voices grid - centred on desktop */
@media (min-width: 761px) {
  .voices-grid .voice-card--last {
    grid-column: 1 / -1;
    max-width: calc(50% - var(--space-3));
    justify-self: start;
  }
}

/* ── PHONE MOCKUP ───────────────────────────────────────── */
.phone-float {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.08);
}

.phone-float__img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

.phone-float::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(ellipse at 50% 50%, rgba(145,195,191,0.18) 0%, transparent 65%);
  z-index: 0;
  pointer-events: none;
}

/* ── DEMO FORM SECTION (homepage) ───────────────────────── */
.demo-section {
  background: #1A1A1A;
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}

.demo-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: start;
}

@media (max-width: 760px) {
  .demo-section__inner {
    grid-template-columns: 1fr;
  }
}

.demo-section__benefits {
  list-style: none;
  padding: 0;
  margin: var(--space-8) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.demo-section__benefits li {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  padding-left: var(--space-6);
  position: relative;
}

.demo-section__benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #CCFC53;
}

/* ── FORM CARD ──────────────────────────────────────────── */
.nlighten-form-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}

.nlighten-form-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 var(--space-6);
  letter-spacing: -0.02em;
}

/* ── SHARED FORM STYLES ──────────────────────────────────── */
.nlighten-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.nlighten-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 480px) {
  .nlighten-form__row {
    grid-template-columns: 1fr;
  }
}

.nlighten-form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.nlighten-form__group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #1A1A1A;
  letter-spacing: 0.01em;
}

.nlighten-form__group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: #1A1A1A;
  background: #fafafa;
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
  box-sizing: border-box;
}

.nlighten-form__group input:focus {
  border-color: #91C3BF;
  box-shadow: 0 0 0 3px rgba(145,195,191,0.2);
  background: #fff;
}

.nlighten-form__group input::placeholder {
  color: #bbb;
}

.nlighten-form__group input.error {
  border-color: #e05c5c;
}

.nlighten-form__submit {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-2);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.nlighten-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.nlighten-form__legal {
  font-size: var(--text-xs);
  color: #999;
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

.nlighten-form__success {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(204,252,83,0.12);
  border: 1px solid rgba(204,252,83,0.35);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #1A1A1A;
}

.nlighten-form__error {
  font-size: var(--text-sm);
  color: #e05c5c;
  font-weight: 500;
  padding: var(--space-2) 0;
}

.nlighten-form__submit-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spin {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── MODAL ──────────────────────────────────────────────── */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.demo-modal[hidden] {
  display: none;
}

.demo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.demo-modal__panel {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 5vw, var(--space-12));
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}

.demo-modal__close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 32px;
  height: 32px;
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.demo-modal__close:hover {
  background: #e0e0e0;
}

.demo-modal__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.02em;
  padding-right: var(--space-8);
}

.demo-modal__sub {
  font-size: var(--text-sm);
  color: #666;
  margin: 0 0 var(--space-6);
  line-height: 1.6;
}

/* Prevent body scroll when modal open */
body.modal-open {
  overflow: hidden;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — COMPREHENSIVE MOBILE & TABLET FIXES
   ════════════════════════════════════════════════════════════ */

/* 1. Kill horizontal overflow at root level */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ── MOBILE (≤ 640px) ────────────────────────────────────── */
@media (max-width: 640px) {

  /* Hero — reduce min-height so content is visible above fold */
  .hero {
    min-height: auto !important;
    padding-top: var(--space-16);
    padding-bottom: var(--space-12);
  }

  .hero__content {
    padding-block: 0 !important;
  }

  .hero__headline {
    font-size: clamp(2.2rem, 9vw, 3rem);
    max-width: 100%;
  }

  .hero__subhead {
    font-size: var(--text-base);
    max-width: 100%;
  }

  .hero__actions {
    flex-direction: column;
    gap: var(--space-3);
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Page heroes (interior pages) */
  .page-hero {
    padding-block: var(--space-16) var(--space-10);
  }

  .page-hero__headline {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  /* Section headings */
  .section-headline {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  /* Sections — reduce padding on mobile */
  .section {
    padding-block: clamp(var(--space-12), 8vw, var(--space-16));
  }

  /* Feature rows — stack */
  .feature-row {
    grid-template-columns: 1fr !important;
    gap: var(--space-8);
  }

  /* Grids — single column */
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
  }

  .grid-2 {
    grid-template-columns: 1fr !important;
  }

  /* Customer Voices 3-col */
  .voices-grid {
    grid-template-columns: 1fr !important;
  }

  /* Demo form section */
  .demo-section__inner {
    grid-template-columns: 1fr !important;
    gap: var(--space-8);
  }

  .nlighten-form-card {
    padding: var(--space-6);
  }

  .nlighten-form__row {
    grid-template-columns: 1fr !important;
  }

  /* CTA section */
  .cta-section .cta-section__actions {
    flex-direction: column;
    gap: var(--space-3);
  }

  .cta-section .cta-section__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-section__headline {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  /* About team cards — stack */
  .team-grid {
    grid-template-columns: 1fr !important;
  }

  /* Credibility / feature-row images */
  .feature-row > div:last-child img,
  .feature-row > figure {
    max-width: 100%;
    width: 100%;
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr !important;
    gap: var(--space-8);
  }

  /* Footer brand */
  .footer__brand {
    margin-bottom: var(--space-4);
  }

  /* Nav — ensure hamburger is visible and desktop links are hidden */
  .nav__links {
    display: none !important;
  }

  .nav__toggle {
    display: flex !important;
  }

  /* Continuum grid */
  [style*="grid-template-columns: repeat(5"] {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: var(--space-2) !important;
  }

  /* Persona cards strip */
  .persona-strip {
    flex-direction: column !important;
    overflow-x: visible !important;
  }

  /* Diff grid */
  [style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Stats row */
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  /* 4-col compass grid on North Star */
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ── TABLET (641px – 900px) ──────────────────────────────── */
@media (min-width: 641px) and (max-width: 900px) {

  .hero {
    min-height: auto;
    padding-block: var(--space-24) var(--space-16);
  }

  .hero__content {
    padding-block: 0;
  }

  .hero__headline {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
  }

  .page-hero__headline {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

  .feature-row {
    grid-template-columns: 1fr !important;
    gap: var(--space-10);
  }

  .demo-section__inner {
    grid-template-columns: 1fr !important;
  }

  .voices-grid {
    grid-template-columns: 1fr !important;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr !important;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr !important;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ── NAV — ensure hamburger at all small sizes ───────────── */
@media (max-width: 900px) {
  .nav__toggle {
    display: flex;
  }
}

/* ── OVERFLOW CLIPPING — decorative elements ─────────────── */
.hero__bg,
.hero,
.page-hero,
[style*="pointer-events:none"],
[style*="pointer-events: none"] {
  overflow: hidden;
}

/* Ensure all sections never overflow horizontally */
section {
  overflow-x: hidden;
  max-width: 100%;
}

/* ── MOBILE FORM MODAL ───────────────────────────────────── */
@media (max-width: 520px) {
  .demo-modal {
    padding: var(--space-3);
    align-items: flex-end;
  }

  .demo-modal__panel {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 85vh;
    padding: var(--space-6);
  }
}

/* ── COGNITIVE LOAD HERO ─────────────────────────────────── */
@media (max-width: 760px) {
  .hero-app__inner {
    flex-direction: column !important;
    gap: var(--space-8);
  }

  .hero-app__text {
    width: 100% !important;
  }

  .hero-app__phone {
    display: none !important;
  }

  .hero-app {
    padding-block: var(--space-16) var(--space-12) !important;
  }
}

/* ── ABOUT TEAM PHOTOS ───────────────────────────────────── */
@media (max-width: 640px) {
  .team-member__photo {
    width: 120px !important;
    height: 120px !important;
  }

  .team-member {
    flex-direction: column !important;
    text-align: center;
  }
}

/* ── NORTH STAR — compass image ──────────────────────────── */
@media (max-width: 640px) {
  figure[style*="max-width:360px"] {
    max-width: 100% !important;
  }

  [style*="max-width:600px"] {
    max-width: 100% !important;
  }
}

/* ── NAV — hide Book a Demo btn on small mobile to prevent overflow ── */
@media (max-width: 640px) {
  /* Hide the nav CTA button; it's accessible via page CTAs */
  .nav__actions .btn--lime {
    display: none !important;
  }

  /* Tighten nav inner padding on very small screens */
  .nav__inner {
    gap: var(--space-3) !important;
  }

  /* Slightly smaller logo on mobile */
  .nav__logo img {
    height: 36px !important;
    max-width: 130px !important;
  }
}

/* ── NAV — contain actions so nothing bleeds past viewport ── */
@media (max-width: 860px) {
  .nav__actions {
    flex-shrink: 0;
    gap: var(--space-2);
  }

  .nav {
    overflow: hidden;
  }
}

/* ── VOICES GRID — single col on mobile ─────────────────── */
@media (max-width: 640px) {
  .voices-grid {
    grid-template-columns: 1fr !important;
  }

  /* Ensure quote cards don't overflow */
  .voice-card,
  [class*="voice"] {
    max-width: 100% !important;
    overflow: hidden !important;
  }
}

/* ── PERSONA CARDS — fix horizontal scroll on mobile ─────── */
@media (max-width: 640px) {
  /* Persona strip scrollable container */
  .persona-strip-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-4);
  }
}

/* ── GENERAL — prevent any inline-width elements from overflowing ── */
@media (max-width: 640px) {
  img {
    max-width: 100%;
    height: auto;
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Wider buttons on mobile for better tap targets */
  .btn--full-mobile {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ── ADAPTIVE MIND + PERSONALITY SCIENCE pages ───────────── */
@media (max-width: 640px) {
  /* Feature row override already exists but ensure it covers inline grids */
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Two-col grids */
  [style*="display:grid"][style*="repeat(2"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── HUBSPOT FORM EMBED STYLING ──────────────────────────── */
/* Targets HubSpot's rendered .hs-form inside our containers  */

#hs-inline-form,
#hs-modal-form {
  width: 100%;
}

/* Field groups */
.hs-nlighten-form .hs-form-field,
#hs-inline-form .hs-form-field,
#hs-modal-form .hs-form-field {
  margin-bottom: var(--space-4);
}

/* Labels */
.hs-nlighten-form label,
#hs-inline-form label,
#hs-modal-form label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink);
  margin-bottom: var(--space-2);
}

/* Inputs & textareas */
.hs-nlighten-form input[type="text"],
.hs-nlighten-form input[type="email"],
.hs-nlighten-form input[type="tel"],
.hs-nlighten-form input[type="number"],
.hs-nlighten-form textarea,
.hs-nlighten-form select,
#hs-inline-form input[type="text"],
#hs-inline-form input[type="email"],
#hs-inline-form input[type="tel"],
#hs-inline-form textarea,
#hs-inline-form select,
#hs-modal-form input[type="text"],
#hs-modal-form input[type="email"],
#hs-modal-form input[type="tel"],
#hs-modal-form textarea,
#hs-modal-form select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-ink);
  font-family: var(--font-base);
  font-size: var(--text-base);
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.hs-nlighten-form input:focus,
.hs-nlighten-form textarea:focus,
.hs-nlighten-form select:focus,
#hs-inline-form input:focus,
#hs-inline-form textarea:focus,
#hs-modal-form input:focus,
#hs-modal-form textarea:focus {
  outline: none;
  border-color: var(--color-teal-deep);
  box-shadow: 0 0 0 3px rgba(145,195,191,0.25);
}

/* Submit button */
.hs-nlighten-form input[type="submit"],
.hs-nlighten-form .hs-button,
#hs-inline-form input[type="submit"],
#hs-inline-form .hs-button,
#hs-modal-form input[type="submit"],
#hs-modal-form .hs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--space-4) var(--space-8);
  background: var(--color-lime);
  color: var(--color-ink) !important;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-base);
  font-size: var(--text-base);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: var(--space-2);
}

.hs-nlighten-form input[type="submit"]:hover,
.hs-nlighten-form .hs-button:hover,
#hs-inline-form input[type="submit"]:hover,
#hs-inline-form .hs-button:hover,
#hs-modal-form input[type="submit"]:hover,
#hs-modal-form .hs-button:hover {
  background: #b8e83a;
  transform: translateY(-1px);
}

/* Error messages */
.hs-nlighten-form .hs-error-msgs,
#hs-inline-form .hs-error-msgs,
#hs-modal-form .hs-error-msgs {
  list-style: none;
  padding: 0;
  margin: var(--space-1) 0 0;
}

.hs-nlighten-form .hs-error-msgs label,
#hs-inline-form .hs-error-msgs label,
#hs-modal-form .hs-error-msgs label {
  color: #e53e3e;
  font-size: var(--text-sm);
  font-weight: 400;
}

/* Legal / GDPR text */
.hs-nlighten-form .hs-richtext,
.hs-nlighten-form .legal-consent-container,
#hs-inline-form .hs-richtext,
#hs-inline-form .legal-consent-container,
#hs-modal-form .hs-richtext,
#hs-modal-form .legal-consent-container {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  line-height: 1.5;
}

/* Two-column field layout on larger screens */
@media (min-width: 480px) {
  .hs-nlighten-form .form-columns-2,
  #hs-inline-form .form-columns-2,
  #hs-modal-form .form-columns-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .hs-nlighten-form .form-columns-2 .hs-form-field,
  #hs-inline-form .form-columns-2 .hs-form-field,
  #hs-modal-form .form-columns-2 .hs-form-field {
    margin-bottom: 0;
  }
}

/* Thank you message (injected by components.js onFormSubmitted) */
.hs-thankyou {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: rgba(204,252,83,0.12);
  border: 1px solid rgba(204,252,83,0.4);
  border-radius: var(--radius-lg);
  font-weight: 500;
  color: var(--color-ink);
}

/* Dark mode adjustments — form card stays white, so keep inputs light
   with black text for readability. */
[data-theme="dark"] .hs-nlighten-form input,
[data-theme="dark"] .hs-nlighten-form textarea,
[data-theme="dark"] .hs-nlighten-form select,
[data-theme="dark"] #hs-inline-form input,
[data-theme="dark"] #hs-inline-form textarea,
[data-theme="dark"] #hs-inline-form select,
[data-theme="dark"] #hs-modal-form input,
[data-theme="dark"] #hs-modal-form textarea,
[data-theme="dark"] #hs-modal-form select {
  background: #ffffff;
  border-color: #e0e0e0;
  color: #1A1A1A;
}

[data-theme="dark"] .hs-nlighten-form input::placeholder,
[data-theme="dark"] .hs-nlighten-form textarea::placeholder,
[data-theme="dark"] #hs-inline-form input::placeholder,
[data-theme="dark"] #hs-inline-form textarea::placeholder,
[data-theme="dark"] #hs-modal-form input::placeholder,
[data-theme="dark"] #hs-modal-form textarea::placeholder {
  color: #999;
}

[data-theme="dark"] .hs-nlighten-form label,
[data-theme="dark"] #hs-inline-form label,
[data-theme="dark"] #hs-modal-form label {
  color: rgba(255,255,255,0.85);
}
