/* ============================================================
   CADENCE — Design System
   Single stylesheet. All tokens as CSS custom properties.

   Contrast verified (WCAG AA):
   --color-primary (#384931) + white       → 8.6:1  PASS
   --color-surface (#C3CFA5) + black       → 10.5:1 PASS
   --color-accent-cta (#BE6619) + white    → 3.1:1  PASS (large/bold ≥18px only)
   --color-accent-cta-text (#7A3D08) + white → 7.2:1 PASS (small text)
   --color-depth (#361619) + white         → 17.5:1 PASS
   --color-bg-soft (#DFE0CD) + black       → 17:1   PASS
   --color-secondary (#69A57E)             → DECORATIVE ONLY — no text
   ============================================================ */

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

/* ============================================================
   TOKENS
   ============================================================ */

:root {
  /* Colour — brand */
  --color-primary:          #384931;   /* forest green — white text 8.6:1 */
  --color-secondary:        #69A57E;   /* sage — decorative only */
  --color-surface:          #C3CFA5;   /* light sage — black text 10.5:1 */
  --color-accent-cta:       #BE6619;   /* orange — white text ≥18px bold only */
  --color-accent-cta-text:  #7A3D08;   /* dark orange — white text small 7.2:1 */
  --color-depth:            #361619;   /* near-black maroon — white text 17.5:1 */

  /* Colour — neutrals */
  --color-white:            #FFFFFF;
  --color-black:            #000000;
  --color-bg:               #FFFFFF;
  --color-bg-soft:          #DFE0CD;   /* warm off-white — black text 17:1 */
  --color-text:             #1a1a1a;   /* slightly off-black for body readability */
  --color-text-muted:       #4a4a4a;   /* secondary text — passes 7:1 on white */
  --color-border:           #d8d9c9;   /* subtle border on light surfaces */
  --color-border-dark:      rgba(255,255,255,0.15); /* border on dark surfaces */

  /* Typography */
  --font-family:            'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-weight-light:      300;
  --font-weight-regular:    400;
  --font-weight-medium:     500;
  --font-weight-semibold:   600;
  --font-weight-bold:       700;

  /* Type scale — fluid via clamp() */
  --text-xs:    clamp(0.7rem,  0.65rem + 0.25vw, 0.75rem);   /* 11–12px */
  --text-sm:    clamp(0.8rem,  0.75rem + 0.25vw, 0.875rem);  /* 13–14px */
  --text-base:  clamp(1rem,    0.95rem + 0.25vw, 1.0625rem); /* 16–17px */
  --text-md:    clamp(1.0625rem, 1rem + 0.3vw,  1.125rem);   /* 17–18px */
  --text-lg:    clamp(1.125rem, 1rem + 0.6vw,   1.25rem);    /* 18–20px */
  --text-xl:    clamp(1.25rem,  1rem + 1.3vw,   1.5rem);     /* 20–24px */
  --text-2xl:   clamp(1.5rem,   1.1rem + 2vw,   2rem);       /* 24–32px */
  --text-3xl:   clamp(2rem,     1.3rem + 3.5vw, 3rem);       /* 32–48px */
  --text-hero:  clamp(2.75rem,  1.5rem + 6vw,   5rem);       /* 44–80px */

  --leading-tight:  1.2;
  --leading-snug:   1.35;
  --leading-normal: 1.6;
  --leading-loose:  1.8;

  --tracking-tight:  -0.02em;
  --tracking-normal: 0;
  --tracking-wide:   0.06em;
  --tracking-wider:  0.12em;

  /* Spacing scale */
  --space-1:   0.25rem;   /* 4px */
  --space-2:   0.5rem;    /* 8px */
  --space-3:   0.75rem;   /* 12px */
  --space-4:   1rem;      /* 16px */
  --space-5:   1.25rem;   /* 20px */
  --space-6:   1.5rem;    /* 24px */
  --space-8:   2rem;      /* 32px */
  --space-10:  2.5rem;    /* 40px */
  --space-12:  3rem;      /* 48px */
  --space-16:  4rem;      /* 64px */
  --space-20:  5rem;      /* 80px */
  --space-24:  6rem;      /* 96px */
  --space-32:  8rem;      /* 128px */

  --space-section: clamp(4rem, 3rem + 5vw, 8rem);
  --space-section-sm: clamp(2.5rem, 2rem + 3vw, 5rem);

  /* Layout */
  --container-max:   1200px;
  --container-wide:  1400px;
  --container-narrow: 760px;
  --radius-sm:  0.375rem;   /* 6px — matches app card style */
  --radius-md:  0.625rem;   /* 10px */
  --radius-lg:  1rem;       /* 16px */
  --radius-xl:  1.5rem;     /* 24px */
  --radius-pill: 999px;

  /* Motion */
  --duration-fast:    120ms;
  --duration-normal:  250ms;
  --duration-slow:    400ms;
  --ease-out:         cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:      cubic-bezier(0.45, 0, 0.55, 1);

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg:   0 12px 32px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-card: 0 2px 8px rgba(56,73,49,0.08), 0 1px 3px rgba(56,73,49,0.05);
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

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

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open {
  overflow: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: var(--font-weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: inherit;
}

/* ============================================================
   FOCUS — visible keyboard navigation ring
   ============================================================ */

:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px var(--color-white), 0 0 0 6px var(--color-primary);
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 1000;
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  transform: translateY(-160%);
  transition: transform var(--duration-fast) var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

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

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

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

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

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

/* ============================================================
   SURFACE VARIANTS
   Alternate sections use these classes on the <section> element
   ============================================================ */

.surface-white {
  background-color: var(--color-white);
  color: var(--color-text);
}

.surface-soft {
  background-color: var(--color-bg-soft); /* #DFE0CD — black text 17:1 PASS */
  color: var(--color-text);
}

.surface-primary {
  background-color: var(--color-primary); /* #384931 — white text 8.6:1 PASS */
  color: var(--color-white);
}

.surface-depth {
  background-color: var(--color-depth); /* #361619 — white text 17.5:1 PASS */
  color: var(--color-white);
}

.surface-surface {
  background-color: var(--color-surface); /* #C3CFA5 — black text 10.5:1 PASS */
  color: var(--color-text);
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */

.label-overline {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  opacity: 0.65;
}

.text-hero {
  font-size: var(--text-hero);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.text-3xl {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
}

.text-2xl {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--leading-snug);
}

.text-xl {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-snug);
}

.text-lg {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
}

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

.text-muted-inverse {
  color: rgba(255, 255, 255, 0.82);
  opacity: 1;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--radius-md);
  transition: background-color var(--duration-normal) var(--ease-out),
              transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

/* Primary CTA — darker orange tone so standard button text stays WCAG-safe */
.btn-primary {
  background-color: var(--color-accent-cta-text);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(122,61,8,0.28);
}

.btn-primary:hover {
  background-color: #5f2f05;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(95,47,5,0.32);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(95,47,5,0.24);
}

/* Secondary — green outline or filled */
.btn-secondary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: #2d3c28; /* slightly darker primary */
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

/* Ghost — transparent with border, for use on dark surfaces */
.btn-ghost {
  background-color: transparent;
  color: var(--color-white);
  border: 1.5px solid var(--color-border-dark);
}

.btn-ghost:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}

/* Large variant */
.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ============================================================
   BADGE / PILL — matches app's "READY" / "Current" style
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  border-radius: var(--radius-pill);
}

.badge-surface {
  background-color: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

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

.badge-accent {
  background-color: var(--color-accent-cta);
  color: var(--color-white);
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

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

.card--soft {
  background-color: var(--color-bg-soft);
  border-color: transparent;
}

.card--surface {
  background-color: var(--color-surface);
  border-color: transparent;
}

/* ============================================================
   PLACEHOLDER BLOCK
   Visible indicator for authored content placeholders
   ============================================================ */

.placeholder-block {
  border: 2px dashed var(--color-accent-cta);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  background-color: rgba(190,102,25,0.04);
  text-align: center;
}

.placeholder-block__label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent-cta-text);
  margin-bottom: var(--space-3);
}

.placeholder-block__title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.placeholder-block__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 480px;
  margin-inline: auto;
  line-height: var(--leading-normal);
}

.placeholder-block--inverse {
  border-color: rgba(255,255,255,0.25);
  background-color: rgba(255,255,255,0.06);
}

.placeholder-block--inverse .placeholder-block__label {
  color: rgba(255,255,255,0.5);
}

.placeholder-block--inverse .placeholder-block__title {
  color: var(--color-white);
}

.placeholder-block--inverse .placeholder-block__desc {
  color: rgba(255,255,255,0.55);
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(56,73,49,0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__wordmark {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__wordmark-name {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-primary);
  line-height: 1;
}

.nav__wordmark-tagline {
  font-size: 0.65rem;
  font-weight: var(--font-weight-regular);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  line-height: 1;
}

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

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: var(--tracking-wide);
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--duration-normal) var(--ease-out);
  transform-origin: left;
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__link:hover::after,
.nav__link.active::after {
  transform: scaleX(1);
}

.nav__link.active {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

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

/* Mobile menu toggle — hidden by default, shown in mobile query */
.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  padding: var(--space-2);
  cursor: pointer;
  background: none;
  border: none;
}

/* Mobile nav drawer — hidden by default, shown in mobile query */
.nav__mobile-menu {
  display: none;
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 1px;
  transition: transform var(--duration-normal) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out);
}

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

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding-block: var(--space-12) var(--space-8);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-12);
  align-items: start;
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border-dark);
  margin-bottom: var(--space-8);
}

.footer__brand-name {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.78);
  max-width: 280px;
  line-height: var(--leading-normal);
}

.footer__nav {
  display: flex;
  gap: var(--space-8);
}

.footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__nav-label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: var(--space-1);
}

.footer__nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__nav-link:hover {
  color: var(--color-white);
}

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

.footer__copyright {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.78);
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

.footer__legal-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__legal-link:hover {
  color: var(--color-white);
}

/* ============================================================
   SECTION HEADER — shared heading pattern
   ============================================================ */

.section-header {
  margin-bottom: var(--space-12);
}

.section-header--center {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

.section-header__overline {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  display: block;
}

/* on dark surfaces the overline uses opacity rather than the secondary colour */
.surface-primary .section-header__overline,
.surface-depth .section-header__overline {
  color: rgba(255, 255, 255, 0.82);
  opacity: 1;
}

.section-header__title {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-5);
}

.section-header__body {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  opacity: 0.8;
}

/* ============================================================
   DIVIDER
   ============================================================ */

.divider {
  width: 40px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  margin-block: var(--space-5);
}

.divider--center {
  margin-inline: auto;
}

.divider--accent {
  background-color: var(--color-accent-cta);
}

/* ============================================================
   SCROLL REVEAL
   Elements gain .revealed when IntersectionObserver fires
   ============================================================ */

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .reveal.revealed {
    animation: reveal-fade-up var(--duration-slow) var(--ease-out) both;
  }

  /* Stagger delay utilities */
  .reveal-delay-1.revealed { animation-delay: 80ms; }
  .reveal-delay-2.revealed { animation-delay: 160ms; }
  .reveal-delay-3.revealed { animation-delay: 240ms; }
  .reveal-delay-4.revealed { animation-delay: 320ms; }
}

@keyframes reveal-fade-up {
  from {
    opacity: 0.85;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   RESPONSIVE — Mobile first
   Breakpoints: 768px (tablet), 1024px (desktop), 1440px (wide)
   ============================================================ */

@media (max-width: 767px) {
  .nav__links,
  .nav__cta .btn {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  /* Mobile nav drawer */
  .nav__mobile-menu {
    display: flex;
    position: fixed;
    inset: 64px 0 0;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: var(--space-8) var(--space-6);
    flex-direction: column;
    gap: var(--space-6);
    overflow-y: auto;
    z-index: 99;
    transform: translateX(100%);
    transition: transform var(--duration-normal) var(--ease-out);
  }

  .nav__mobile-menu[hidden] {
    display: none;
  }

  .nav__mobile-menu.open {
    transform: translateX(0);
  }

  .nav__mobile-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: var(--text-xl);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    text-decoration: none;
    padding-block: var(--space-3);
    border-bottom: 1px solid var(--color-border);
    transition: color var(--duration-fast) var(--ease-out);
  }

  .nav__mobile-link:hover,
  .nav__mobile-link.active {
    color: var(--color-primary);
  }

  .nav__mobile-cta {
    margin-top: var(--space-4);
    width: 100%;
    justify-content: center;
  }

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

  .footer__nav {
    flex-direction: column;
    gap: var(--space-6);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .container {
    padding-inline: var(--space-5);
  }
}

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

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

/* ============================================================
   HERO — Home page full-height hero
   ============================================================ */

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding-block: var(--space-24) var(--space-20);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(105,165,126,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
}

.hero__content {
  max-width: 560px;
}

.hero__overline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-white);
  opacity: 0.6;
  margin-bottom: var(--space-5);
}

.hero__headline {
  font-size: var(--text-hero);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  color: var(--color-white);
}

.hero__headline em {
  font-style: normal;
  color: var(--color-surface); /* #C3CFA5 — 10.5:1 on primary bg PASS */
}

.hero__subhead {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  opacity: 0.78;
  margin-bottom: var(--space-10);
  max-width: 460px;
}

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

.hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border-dark);
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hero__meta-label {
  font-size: 0.625rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.hero__meta-value {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  opacity: 0.85;
}

/* Module preview widget — right column of hero */
.module-preview {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  max-width: 460px;
  margin-left: auto;
}

.module-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.module-preview__title {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.module-preview__status {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: #6fcf97;
}

.module-card-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  cursor: default;
  transition: background var(--duration-normal) var(--ease-out);
}

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

.module-card-item:hover {
  background: rgba(255,255,255,0.1);
}

.module-card-item__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(195,207,165,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.module-card-item__body {
  flex: 1;
  min-width: 0;
}

.module-card-item__name {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-white);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.module-card-item__desc {
  font-size: var(--text-xs);
  opacity: 0.5;
}

.module-card-item__badge {
  font-size: 0.6rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px var(--space-2);
  border-radius: var(--radius-pill);
  background: rgba(111,207,151,0.2);
  color: #6fcf97;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   PAGE HERO — inner pages (shorter)
   ============================================================ */

.page-hero {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding-block: var(--space-20) var(--space-16);
}

.page-hero__inner {
  max-width: 680px;
}

.page-hero__overline {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-5);
  display: block;
}

.page-hero__title {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-5);
}

.page-hero__body {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  opacity: 0.75;
  max-width: 560px;
}

/* ============================================================
   PROBLEM SECTION — home page pain points
   ============================================================ */

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

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

.problem-card__number {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-surface);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.problem-card__text {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
}

/* ============================================================
   SOLUTION SECTION — two-column text + list
   ============================================================ */

.solution-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.solution-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.solution-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background-color: var(--color-bg-soft);
  border-radius: var(--radius-md);
}

.solution-list__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-white);
  font-size: 0.9rem;
}

.solution-list__text {
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  line-height: var(--leading-snug);
}

/* ============================================================
   AUTOMATION GRID — "What we automate" cards
   ============================================================ */

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

.auto-card {
  padding: var(--space-8);
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

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

.auto-card__icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-4);
  display: block;
}

.auto-card__title {
  font-size: var(--text-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.auto-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

/* ============================================================
   WHO WE SERVE — markets section
   ============================================================ */

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

.serve-markets {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.serve-market {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6);
  background-color: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.serve-market__flag {
  font-size: 2rem;
  flex-shrink: 0;
}

.serve-market__name {
  font-size: var(--text-md);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-1);
}

.serve-market__detail {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================================
   TRUST SIGNALS — dark depth section
   ============================================================ */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.trust-item {
  padding: var(--space-6);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
}

.trust-item__icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
  display: block;
}

.trust-item__title {
  font-size: var(--text-md);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-3);
  color: var(--color-white);
}

.trust-item__desc {
  font-size: var(--text-sm);
  opacity: 0.65;
  line-height: var(--leading-normal);
}

/* ============================================================
   CTA SECTION — centered call to action
   ============================================================ */

.cta-section {
  text-align: center;
}

.cta-section__title {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-5);
}

.cta-section__body {
  font-size: var(--text-lg);
  opacity: 0.75;
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  line-height: var(--leading-normal);
}

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

/* ============================================================
   PROCESS STEPS — product page "How it works"
   ============================================================ */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--color-border) 0,
    var(--color-border) 8px,
    transparent 8px,
    transparent 16px
  );
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  position: relative;
}

.process-step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-wide);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.process-step__title {
  font-size: var(--text-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.process-step__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

/* ============================================================
   AUTOMATION LIST — expanded product page version
   ============================================================ */

.automation-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.automation-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: start;
  padding: var(--space-8);
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.automation-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.automation-item__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.automation-item__title {
  font-size: var(--text-md);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
}

.automation-item__flow {
  font-size: var(--text-sm);
  color: var(--color-accent-cta-text);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-3);
}

.automation-item__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

/* ============================================================
   SECURITY GRID — product page security section
   ============================================================ */

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

.security-item {
  padding: var(--space-6);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
}

.security-item__icon {
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
  display: block;
}

.security-item__title {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.security-item__desc {
  font-size: var(--text-sm);
  opacity: 0.6;
  line-height: var(--leading-normal);
}

/* ============================================================
   WHO MANAGES IT — product page operator section
   ============================================================ */

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

.operator-facts {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.operator-fact {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: var(--leading-snug);
}

.operator-fact::before {
  content: none;
}

/* ============================================================
   CASE STUDY LAYOUT
   ============================================================ */

.case-study-header {
  padding: var(--space-12) 0 var(--space-8);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-12);
}

.case-study-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.case-study-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-16);
  align-items: start;
}

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

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

.case-study-nav__link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast), background var(--duration-fast);
}

.case-study-nav__link:hover {
  color: var(--color-primary);
  background: var(--color-bg-soft);
}

.case-study-content section {
  margin-bottom: var(--space-12);
}

.case-study-content h2 {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-5);
}

.case-study-content h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-3);
}

.case-study-content p {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.case-study-content p:last-child {
  margin-bottom: 0;
}

/* Module detail cards in case study */
.module-detail {
  background-color: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
  border: 1px solid var(--color-border);
}

.module-detail:last-child {
  margin-bottom: 0;
}

.module-detail__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.module-detail__icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.module-detail__name {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
}

.module-detail__flow {
  font-size: var(--text-sm);
  color: var(--color-accent-cta-text);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-4);
}

.module-detail__body {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: var(--leading-normal);
}

/* "More coming soon" block */
.coming-soon-section {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-xl);
}

.coming-soon-section__title {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.coming-soon-section__body {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 480px;
  margin-inline: auto;
  line-height: var(--leading-normal);
}

/* ============================================================
   VALUES GRID — company page
   ============================================================ */

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

.value-card {
  padding: var(--space-8);
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.value-card__number {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent-cta-text);
  margin-bottom: var(--space-3);
  display: block;
}

.value-card__title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-3);
}

.value-card__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

/* ============================================================
   MISSION SECTION — company page
   ============================================================ */

.mission-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.mission-body p {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.mission-body p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   FOUNDING SECTION — company page
   ============================================================ */

.founding-section {
  max-width: 800px;
}

/* ============================================================
   MISSION SECTION — company page
   ============================================================ */

.mission-section {
  max-width: 800px;
}

/* ============================================================
   ABOUT / JAKE section — company page
   ============================================================ */

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.about-jake-section {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-16);
  align-items: start;
}

.jake-contact {
  margin-top: var(--space-8);
}

.photo-placeholder {
  aspect-ratio: 4 / 5;
  background-color: rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(255,255,255,0.2);
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-8);
}

.photo-placeholder__label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.photo-placeholder__hint {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  text-align: center;
}

/* ============================================================
   CONTACT / EMAIL CTA
   ============================================================ */

.contact-section {
  text-align: center;
}

.contact-email {
  display: inline-block;
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 2px;
  transition: color var(--duration-fast), border-color var(--duration-fast);
  margin-top: var(--space-6);
}

.contact-email:hover {
  color: var(--color-accent-cta-text);
  border-color: var(--color-accent-cta-text);
}

/* ============================================================
   RESPONSIVE — Component overrides
   ============================================================ */

@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding-block: var(--space-16) var(--space-12);
  }

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

  .hero__content {
    max-width: none;
  }

  .module-preview {
    max-width: none;
    margin-left: 0;
  }

  .hero__meta {
    gap: var(--space-5);
  }

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

  .solution-split {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

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

  .serve-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

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

  .process-steps {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .process-steps::before {
    display: none;
  }

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

  .operator-split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .case-study-body {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .case-study-sidebar {
    position: static;
  }

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

  .mission-split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .about-split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .about-jake-section {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .about-jake-photo {
    order: -1;
    max-width: 280px;
  }

  .page-hero {
    padding-block: var(--space-12) var(--space-10);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero__inner {
    gap: var(--space-10);
  }

  .auto-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps::before {
    display: none;
  }

  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT FORM
═══════════════════════════════════════════════════════════════ */

.contact-section {
  max-width: 680px;
  margin-inline: auto;
}

.contact-section__header {
  margin-bottom: var(--space-10);
}

.contact-section__header .section-header__overline {
  display: block;
  margin-bottom: var(--space-3);
}

.contact-section__title {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.contact-section__intro {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Honeypot — visually hidden but accessible to screen readers would still tab to it,
   so tabindex=-1 ensures keyboard users never reach it either */
.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.contact-form__label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.contact-form__required {
  color: var(--color-accent-cta-text);
  margin-left: 2px;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid #d0d4c8;
  border-radius: 6px;
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--color-text);
  background: #ffffff;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: #9ca38f;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(56, 73, 49, 0.15);
}

.contact-form__input.has-error,
.contact-form__textarea.has-error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.contact-form__field-error {
  font-size: 0.875rem;
  color: #c0392b;
  min-height: 1.25em;
}

.contact-form__footer {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.contact-form__error {
  font-size: 0.9375rem;
  color: #c0392b;
  flex: 1;
}

/* Submit button loading state */
.contact-form__submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.contact-form__submit-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.contact-form__submit[aria-busy="true"] .contact-form__submit-label {
  opacity: 0.7;
}

.contact-form__submit[aria-busy="true"] .contact-form__submit-spinner {
  display: inline-block;
}

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

/* Success state */
.contact-success {
  text-align: center;
  padding: var(--space-12) var(--space-6);
}

.contact-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 1.5rem;
  font-style: normal;
  margin-bottom: var(--space-5);
}

.contact-success__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.contact-success__body {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .contact-form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }
}

/* ============================================================
   2026 REFACTOR OVERRIDES
   Typography-led layouts, shared trust section, trust/legal pages
   ============================================================ */

.nav__wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.nav__links {
  gap: var(--space-6);
}

.footer__brand {
  max-width: 320px;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: var(--space-10);
}

.footer__legal {
  align-items: center;
}

.module-preview {
  max-width: 500px;
}

.module-preview__status {
  color: rgba(255,255,255,0.72);
}

.module-card-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: var(--space-4);
  text-decoration: none;
  cursor: pointer;
}

.module-card-item__index {
  font-size: 0.7rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  padding-top: 2px;
}

.module-card-item__name {
  display: block;
  white-space: normal;
}

.module-card-item__desc {
  display: block;
  opacity: 0.62;
}

.module-card-item__badge {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.18);
}

.solution-list {
  display: grid;
  gap: var(--space-4);
  margin-top: 0;
}

.solution-list__item {
  display: block;
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
}

.solution-list__eyebrow,
.auto-card__eyebrow,
.serve-market__eyebrow,
.module-detail__eyebrow,
.case-study-highlight__eyebrow,
.info-card__eyebrow,
.resource-card__label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent-cta-text);
}

.security-item__eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-surface);
}

.solution-list__title,
.case-study-highlight__title,
.info-card__title {
  font-size: var(--text-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
}

.solution-list__text {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

.auto-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--space-2);
  box-shadow: var(--shadow-sm);
}

.auto-card__title {
  margin-bottom: var(--space-1);
}

.auto-card__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.serve-markets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.serve-market {
  display: block;
}

.serve-market__name {
  margin-top: var(--space-2);
}

.serve-market__detail {
  line-height: var(--leading-normal);
}

.security-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.security-item {
  background: rgba(255,255,255,0.035);
  min-height: 100%;
}

.security-item__title {
  font-size: var(--text-md);
  margin-top: var(--space-2);
  margin-bottom: var(--space-3);
}

.security-item__desc {
  opacity: 0.72;
}

.process-steps::before {
  display: none;
}

.process-step__number {
  box-shadow: 0 0 0 8px var(--color-white);
}

@media (min-width: 1024px) {
  .process-step::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 24px;
    right: calc((-1 * var(--space-6)) - 24px);
    border-top: 1px dashed var(--color-border);
    z-index: 0;
  }

  .process-step:last-child::after {
    display: none;
  }
}

.automation-item {
  grid-template-columns: 72px 1fr;
}

.automation-item__index {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-wide);
}

.automation-item__flow {
  font-weight: var(--font-weight-semibold);
}

.operator-fact {
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-soft);
}

.operator-fact::before {
  content: none;
}

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

.case-study-content section {
  scroll-margin-top: 96px;
}

.module-detail {
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.module-detail__header {
  display: block;
}

.module-detail__name {
  margin-top: var(--space-2);
}

.module-detail__flow {
  line-height: var(--leading-snug);
}

.case-study-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.case-study-highlight {
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-soft);
}

.case-study-highlight__body,
.info-card__body {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-muted);
}

.coming-soon-section {
  border: 1px solid var(--color-border);
  background: var(--color-white);
}

.case-study-client-intro {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 640px;
  margin-bottom: var(--space-6);
}

.client-quote {
  margin: var(--space-10) 0;
  padding: var(--space-8) var(--space-8);
  border-left: 3px solid var(--color-secondary);
  background: var(--color-bg-soft);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.client-quote__text p {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-light);
  line-height: 1.65;
  color: var(--color-text);
  font-style: italic;
  margin: 0 0 var(--space-4);
}

.client-quote__attr {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.about-profile-section {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-16);
  align-items: start;
}

.profile-contact {
  margin-top: var(--space-8);
}

.founding-body p,
.founder-bio p {
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}

.founding-body p:last-child,
.founder-bio p:last-child {
  margin-bottom: 0;
}

.founder-bio {
  margin-bottom: var(--space-8);
}

.founder-statement {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-10) var(--space-8);
  border-left: 3px solid var(--color-secondary-2);
  margin: 0;
}

.founder-statement__quote {
  margin: 0 0 var(--space-5);
}

.founder-statement__quote p {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-light);
  line-height: 1.5;
  color: var(--color-white);
  font-style: italic;
}

.founder-statement__attr {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-wide);
  color: var(--color-secondary-2);
  text-transform: uppercase;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: var(--space-12);
  align-items: start;
}

.contact-section {
  max-width: none;
  text-align: left;
}

.contact-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.contact-point {
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-soft);
}

.contact-point__label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent-cta-text);
  margin-bottom: var(--space-2);
}

.contact-point__body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

.contact-card {
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--color-white) 0%, #fafaf7 100%);
  box-shadow: var(--shadow-md);
}

.contact-email {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 0;
}

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

.contact-form__hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.contact-form__field-error {
  min-height: 1.5em;
}

.contact-form__footer {
  align-items: center;
  justify-content: space-between;
}

.contact-form__notice {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  max-width: 240px;
  line-height: var(--leading-normal);
}

.contact-form__error {
  flex-basis: 100%;
}

.contact-success {
  text-align: left;
  padding: var(--space-10) 0 0;
  border-top: 1px solid var(--color-border);
}

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

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

.resource-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-soft);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

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

.resource-card__title {
  font-size: var(--text-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.resource-card__body {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-muted);
}

.policy-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.policy-section {
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.policy-section:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.policy-section__title {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-4);
}

.policy-section p {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-4);
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.policy-layout a,
.policy-section a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* ===================== PRICING ===================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: start;
  margin-top: var(--space-10);
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.pricing-card--featured {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  color: var(--color-white);
}

.pricing-card__badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent-cta-text);
  background: var(--color-bg-soft);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-3);
  width: fit-content;
}

.pricing-card--featured .pricing-card__badge {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-secondary-2);
}

.pricing-card__name {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin: 0;
}

.pricing-card--featured .pricing-card__name {
  color: var(--color-white);
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.pricing-card--featured .pricing-card__price {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.pricing-card__amount {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  line-height: 1;
}

.pricing-card--featured .pricing-card__amount {
  color: var(--color-white);
}

.pricing-card__period {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.pricing-card--featured .pricing-card__period {
  color: rgba(255, 255, 255, 0.7);
}

.pricing-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  margin: 0;
}

.pricing-card--featured .pricing-card__desc {
  color: rgba(255, 255, 255, 0.8);
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: var(--leading-normal);
}

.pricing-card--featured .pricing-card__feature {
  color: rgba(255, 255, 255, 0.9);
}

.pricing-card__feature::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2369A57E'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  margin-top: 1px;
}

.pricing-card--featured .pricing-card__feature::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23C3CFA5'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.pricing-card__cta {
  margin-top: auto;
}

/* ===================== FAQ ===================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-10);
}

.faq-item {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-item__question {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: var(--leading-tight);
}

.faq-item__answer {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  margin: 0;
  max-width: 68ch;
}

/* ===================== TRUST STRIP ===================== */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-10);
}

.trust-strip__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
}

.trust-strip__eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-secondary-2);
}

.trust-strip__title {
  font-size: var(--text-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
}

.trust-strip__desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--leading-normal);
}

@media (max-width: 767px) {
  .footer__nav,
  .serve-markets,
  .security-grid,
  .case-study-highlights,
  .info-grid,
  .resource-list,
  .contact-layout,
  .about-profile-section {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    gap: var(--space-8);
  }

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

  .contact-form__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .pricing-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .serve-markets,
  .case-study-highlights,
  .resource-list,
  .contact-layout,
  .about-profile-section {
    grid-template-columns: 1fr;
  }

  .security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
