/* ==========================================================================
   Kulka Systems — main.css
   Hand-rolled dark design system. No frameworks. Follows the Kulka Systems
   homepage design (Claude Design, October 2026): Geist + Geist Mono, a navy
   ground, a teal-to-blue accent, hairline borders and 16-22px radii.
   Layers: 01 tokens · 02 fonts · 03 reset/base · 04 typography · 05 layout
           06 components · 07 home page · 08 page-specific · 09 utilities
           10 motion prefs
   ========================================================================== */

/* --------------------------------------------------------------------------
   01 · TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces, darkest first */
  --bg-deep: #050912;       /* footer */
  --bg-term: #050913;       /* terminal, code */
  --bg-0: #070c18;          /* page */
  --bg-step: #09101f;       /* process steps */
  --bg-1: #0a1222;          /* inputs, stat cells */
  --bg-2: #0b1324;          /* cards */
  --bg-3: #0d1729;          /* hover, featured */
  --surface-glass: rgba(7, 12, 24, 0.78);
  --surface-card: linear-gradient(180deg, rgba(18, 28, 50, 0.7), rgba(10, 16, 30, 0.7));
  --surface-featured: linear-gradient(180deg, #0d1729, #0a1121);
  --surface-panel: linear-gradient(160deg, #0e1a31 0%, #0a1222 60%);

  /* Hairlines */
  --line-1: rgba(148, 170, 200, 0.10);
  --line-2: rgba(148, 170, 200, 0.12);
  --line-3: rgba(148, 170, 200, 0.14);
  --line-4: rgba(148, 170, 200, 0.20);
  --line-strong: rgba(148, 170, 200, 0.22);
  --line-accent: rgba(127, 224, 214, 0.22);
  --line-hover: rgba(127, 224, 214, 0.35);

  /* Brand */
  --teal: #3fd8c4;
  --teal-soft: #7fe0d6;
  --teal-pale: #b5f0ea;
  --blue: #4a7cf7;
  --blue-soft: #8fb3ff;
  --amber: #e8c383;
  --grad-brand: linear-gradient(135deg, #3fd8c4, #4a7cf7);
  --grad-text: linear-gradient(90deg, #3fd8c4, #4a7cf7);

  /* Text */
  --text-1: #f4f7fb;        /* headings */
  --text-2: #e6ebf2;        /* emphasis on dark */
  --text-3: #a3b1c5;        /* body, leads */
  --text-4: #94a2b7;        /* card copy */
  --text-5: #8e9cb2;        /* muted */
  --text-6: #7a889f;        /* captions (the design's #6b7a92, lifted for AA contrast) */
  --text-nav: #b4c0d1;
  --text-on-accent: #06101f;
  --paper: #f2f5f9;         /* light buttons */

  /* Feedback + focus */
  --success: #4ade80;
  --error: #f87171;
  --focus-ring: #7fe0d6;

  /* Type */
  --font-body: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: var(--font-body);
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-display: clamp(2.5rem, 7vw, 5.25rem);       /* 40-84px, home h1 */
  --fs-h1: clamp(2.25rem, 5vw, 3.75rem);           /* 36-60px */
  --fs-h2: clamp(1.875rem, 4vw, 2.875rem);         /* 30-46px */
  --fs-h3: 1.25rem;
  --fs-h4: 1.1875rem;
  --fs-lead: clamp(1.0625rem, 1.6vw, 1.1875rem);   /* 17-19px */
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --section-gap: clamp(56px, 7vw, 96px);           /* between sections, never more */
  --container-max: 1200px;
  --container-pad: clamp(20px, 5vw, 24px);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-btn: 11px;
  --radius-md: 16px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-primary: 0 8px 30px -8px rgba(74, 124, 247, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  --shadow-featured: 0 30px 80px -40px rgba(63, 216, 196, 0.35);
  --shadow-featured-hover: 0 30px 90px -36px rgba(63, 216, 196, 0.5);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur: 200ms;

  /* Layout constants */
  --nav-height: 68px;
}

/* --------------------------------------------------------------------------
   02 · FONTS (self-hosted variable woff2, SIL Open Font License)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('/assets/fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   03 · RESET / BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-3);
  background-color: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* clip (not hidden) never creates a scroll container, so position: sticky
     keeps working. Genuine content overflow is fixed at the source. */
  overflow-x: clip;
}

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

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

[hidden] {
  display: none !important;
}

button {
  cursor: pointer;
}

[id] {
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: #1f6f8b;
  color: #fff;
}

/* --------------------------------------------------------------------------
   04 · TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-1);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h3 { font-size: var(--fs-h3); line-height: 1.3; }
h4, h5 { font-size: var(--fs-h4); }

p {
  margin: 0 0 var(--space-4);
  text-wrap: pretty;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-3);
}

a {
  color: var(--teal-soft);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

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

/* In-content (prose) links carry an underline so they're distinguishable by more
   than colour alone (WCAG 1.4.1 Use of Color). Component links (nav, buttons,
   cards, footer, breadcrumbs) keep their own styling. */
main p a:not(.btn),
main li a:not(.btn):not(.card-link):not(.related-card),
.faq-body a,
article p a:not(.btn),
article li a:not(.btn) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(127, 224, 214, 0.45);
}

main p a:not(.btn):hover,
main li a:not(.btn):not(.card-link):not(.related-card):hover,
.faq-body a:hover,
article p a:not(.btn):hover,
article li a:not(.btn):hover {
  text-decoration-color: currentColor;
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (forced-colors: active) {
  .grad-text {
    background: none;
    color: CanvasText;
  }
}

/* Hero eyebrow: a mono pill with a glowing dot */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 0 0 28px;
  padding: 6px 12px 6px 10px;
  border: 1px solid rgba(127, 224, 214, 0.25);
  border-radius: var(--radius-pill);
  background: rgba(63, 216, 196, 0.06);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9be7de;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}

/* Section label above a heading (WHY KULKA, SERVICES, ...) */
.kicker {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-soft);
}

ul, ol {
  padding-left: 1.4rem;
  margin: 0 0 var(--space-4);
}

li {
  margin-bottom: var(--space-2);
}

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

hr {
  border: 0;
  border-top: 1px solid var(--line-2);
  margin: var(--space-6) 0;
}

blockquote {
  margin: var(--space-5) 0;
  padding: var(--space-4) var(--space-5);
  border-left: 2px solid var(--teal);
  background: var(--bg-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-2);
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(148, 170, 200, 0.08);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  color: var(--teal-soft);
}

/* Command blocks (e.g. the install line on the Tools page) */
pre {
  margin: 0 0 var(--space-4);
  padding: 14px 16px;
  background: var(--bg-term);
  border: 1px solid var(--line-3);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

pre code {
  display: block;
  background: none;
  border: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   05 · LAYOUT
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container-narrow {
  max-width: 820px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Consecutive sections share one --section-gap between them, so the space
   between two blocks of content never exceeds 96px. */
.section {
  padding-block: calc(var(--section-gap) / 2);
}

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

.section-head {
  max-width: 720px;
  margin: 0 0 40px;
}

.section-head h2 {
  margin-bottom: 0;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--text-5);
}

.text-center .section-head,
.section-head.text-center {
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-cards,
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

/* Two-column content + sticky sidebar (strategy session) */
.split-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: var(--space-8);
  align-items: start;
}

/* Let grid children shrink below their content's intrinsic width so wide
   children (e.g. a no-wrap table in .table-wrap) scroll internally instead of
   forcing horizontal overflow on mobile. */
.split-sidebar > * {
  min-width: 0;
}

@media (max-width: 1023px) {
  .split-sidebar {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }
}

/* --------------------------------------------------------------------------
   06 · COMPONENTS
   -------------------------------------------------------------------------- */

/* ---- Brand (mark + wordmark) ---- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
}

.brand:hover {
  color: var(--paper);
}

.brand-mark {
  flex: none;
  width: 30px;
  height: 30px;
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 17px;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-name-1 {
  font-weight: 700;
}

.brand-name-2 {
  font-weight: 400;
  color: #9aa8bd;
}

/* ---- Header / navbar ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line-1);
}

/* The glass lives on a pseudo-element, not on .site-nav itself: a
   backdrop-filter on the header would become the containing block of its
   descendants and change how the mobile panel is positioned and blurred. */
.site-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a:not(.btn) {
  color: var(--text-nav);
  font-size: 14px;
}

.nav-menu a:not(.btn):hover,
.nav-menu a:not(.btn)[aria-current="page"] {
  color: #fff;
}

.nav-menu .nav-cta {
  margin-left: 4px;
}

.nav-toggle {
  display: none;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-4);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-2);
  transition: transform var(--dur) var(--ease);
}

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

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

@media (max-width: 859px) {
  .nav-toggle {
    display: flex;
  }

  /* The menu drops down below the bar, over the page */
  .site-nav nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    padding: 12px var(--container-pad) 24px;
    background: var(--bg-0);
    border-top: 1px solid var(--line-1);
    border-bottom: 1px solid var(--line-1);
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a:not(.btn) {
    display: block;
    padding: 12px 0;
    font-size: 17px;
    color: var(--text-2);
    border-bottom: 1px solid rgba(148, 170, 200, 0.08);
  }

  .nav-menu li:nth-last-child(2) a {
    border-bottom: 0;
  }

  .nav-menu .nav-cta {
    margin: 12px 0 0;
  }

  .nav-menu .nav-cta .btn {
    display: flex;
    width: 100%;
    min-height: 48px;
    border-radius: var(--radius-sm);
    font-size: 15px;
  }

  /* Without JavaScript the toggle can't work: show the links in the bar. */
  .no-js .nav-toggle {
    display: none;
  }

  .no-js .site-nav .container {
    flex-wrap: wrap;
    height: auto;
    padding-block: 14px;
  }

  .no-js .site-nav nav {
    position: static;
  }

  .no-js .nav-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .no-js .nav-menu a:not(.btn) {
    padding: 0;
    border: 0;
    font-size: 15px;
  }
}

/* Campaign landing pages: logo + one CTA, always visible (no menu) */
@media (max-width: 859px) {
  .nav-campaign nav {
    position: static;
  }

  .nav-campaign .nav-menu {
    display: flex;
    flex-direction: row;
    max-height: none;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .nav-campaign .nav-menu .nav-cta {
    margin: 0;
  }

  .nav-campaign .nav-menu .nav-cta .btn {
    width: auto;
    min-height: 38px;
    font-size: 14px;
  }
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  padding-block: 14px;
  border-bottom: 1px solid var(--line-1);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.breadcrumbs li {
  margin: 0;
  color: var(--text-6);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: var(--space-2);
  opacity: 0.6;
}

.breadcrumbs a {
  color: var(--text-5);
}

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

.breadcrumbs [aria-current="page"] {
  color: var(--text-3);
}

/* ---- Hero (every page): a faint grid fading down, and a teal/blue glow ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line-1);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 170, 200, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 170, 200, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 80%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -260px;
  left: 50%;
  width: 1100px;
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(63, 216, 196, 0.16), rgba(74, 124, 247, 0.10) 55%, transparent);
  pointer-events: none;
}

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

.hero h1 {
  max-width: 22ch;
  margin-bottom: 0;
}

.hero .lead {
  max-width: 660px;
  margin: 24px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-center {
  text-align: center;
}

.hero-center h1,
.hero-center .lead {
  margin-inline: auto;
}

.hero-center .hero-actions {
  justify-content: center;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: filter var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease);
}

.btn-primary {
  background: var(--grad-brand);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  color: var(--text-on-accent);
  filter: brightness(1.08);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text-2);
  font-weight: 500;
}

.btn-ghost:hover {
  color: #fff;
  border-color: rgba(148, 170, 200, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.btn-light {
  background: var(--paper);
  color: var(--bg-0);
}

.btn-light:hover {
  background: #fff;
  color: var(--bg-0);
  box-shadow: 0 0 0 4px rgba(63, 216, 196, 0.18);
}

.btn-sm {
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 14px;
}

.btn-lg {
  min-height: 50px;
  padding: 12px 22px;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn:disabled {
  opacity: 0.7;
  cursor: progress;
}

/* ---- Small labels: chips and tags ---- */
.chips,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chips {
  gap: 8px;
}

.chip,
.tags li {
  margin: 0;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  background: rgba(148, 170, 200, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-3);
}

.chip {
  text-transform: uppercase;
}

.chip-accent {
  background: rgba(63, 216, 196, 0.12);
  color: var(--teal-soft);
}

/* ---- Cards ---- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface-card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.card:hover {
  border-color: var(--line-hover);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.card h3 a {
  color: inherit;
}

.card h3 a:hover {
  color: var(--teal-pale);
}

.card p {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--text-4);
}

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

.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: 8px;
  font-size: var(--fs-small);
  font-weight: 500;
}

.card .card-link svg {
  transition: transform var(--dur-fast) var(--ease);
}

.card:hover .card-link svg {
  transform: translateX(3px);
}

/* Icon or number tile at the top of a card */
.icon-tile,
.num-tile {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(127, 224, 214, 0.3);
  background: rgba(63, 216, 196, 0.08);
  color: var(--teal-soft);
}

.icon-tile svg {
  width: 20px;
  height: 20px;
}

.num-tile {
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ---- Service cards (the registry in content/site.yml) ---- */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.service-card:hover,
.service-card:focus-within {
  border-color: rgba(127, 224, 214, 0.4);
  transform: translateY(-2px);
}

.service-card-bar {
  display: block;
  width: 48px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-text);
}

.service-card h3 {
  margin: 28px 0 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.service-card h3 a {
  color: inherit;
}

/* The heading link covers the whole card */
.service-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.service-card p {
  flex: 1;
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--text-4);
}

.service-card .tags {
  margin-top: 20px;
}

.service-card-more {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-1);
  font-size: 14px;
  font-weight: 500;
  color: var(--teal-soft);
}

/* ---- Steps (process): one joined grid, cells split by hairlines ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  background: var(--line-2);
}

/* Tablets: two by two rather than three and an orphan */
@media (min-width: 600px) and (max-width: 1023px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.step {
  padding: 28px;
  background: var(--bg-step);
  transition: background-color var(--dur) var(--ease);
}

.step:hover {
  background: var(--bg-3);
}

.step-num {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal);
}

.step-num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(63, 216, 196, 0.5), transparent);
}

.step h3 {
  margin: 28px 0 0;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.step p {
  margin: 10px 0 0;
  font-size: 14.5px;
  color: var(--text-4);
}

/* ---- Forms ---- */
.form-panel {
  display: grid;
  /* Two columns where there's room for 200px each, else one */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(200px, calc((100% - 14px) / 2))), 1fr));
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(5, 9, 19, 0.6);
  border: 1px solid var(--line-3);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.form-field-full,
.form-panel > button,
.form-panel > .form-alert {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 13px;
  color: var(--text-3);
}

.form-field .required {
  color: var(--teal-soft);
}

.form-control {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: var(--bg-1);
  border: 1px solid var(--line-4);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 15px;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

textarea.form-control {
  height: auto;
  min-height: 104px;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}

.form-control::placeholder {
  color: #5d6b82;
}

.form-control:focus,
.form-control:focus-visible {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(63, 216, 196, 0.18);
}

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

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238e9cb2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* The unchosen "Select a service..." reads as a placeholder */
select.form-control:has(option[value=""]:checked) {
  color: #5d6b82;
}

select.form-control option {
  background: var(--bg-1);
  color: var(--text-1);
}

.field-error {
  display: none;
  margin: 0;
  font-size: 13px;
  color: var(--error);
}

.field-error.show {
  display: block;
}

.form-alert {
  display: none;
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}

.form-alert.show {
  display: block;
}

.form-alert.success {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: var(--success);
}

.form-alert.error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: var(--error);
}

/* Shown in place of the form once a message is delivered */
.form-sent {
  padding: 40px 28px;
  border-radius: var(--radius-md);
  background: rgba(5, 9, 19, 0.6);
  border: 1px solid rgba(127, 224, 214, 0.3);
  text-align: center;
}

.form-sent[hidden] {
  display: none;
}

.form-sent:focus {
  outline: none;
}

.form-sent-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 12px;
  background: rgba(63, 216, 196, 0.15);
  color: var(--teal);
}

.form-sent-title {
  margin: 16px 0 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-1);
}

.form-sent p:last-child {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--text-4);
}

/* ---- Sidebar (strategy session) ---- */
.sidebar-card {
  padding: 28px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
}

.sidebar-card + .sidebar-card {
  margin-top: 16px;
}

.sidebar-card h2,
.sidebar-card h3 {
  font-size: 20px;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-4);
}

.sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
}

.sidebar-card li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin: 0;
  padding-block: 12px;
  border-bottom: 1px solid var(--line-1);
  font-size: 15px;
  color: var(--text-2);
}

.sidebar-card li:last-child {
  border-bottom: 0;
}

.sidebar-card li svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--teal);
}

.sidebar-card p {
  font-size: 15px;
}

@media (min-width: 1024px) {
  .sidebar-sticky {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
  }
}

/* ---- FAQ (native details) ---- */
.faq-item {
  margin-bottom: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 18px 20px;
  font-weight: 600;
  color: var(--text-1);
  list-style: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}

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

.faq-item summary:hover {
  background: var(--bg-3);
}

.faq-item summary svg {
  flex-shrink: 0;
  color: var(--teal-soft);
  transition: transform var(--dur) var(--ease);
}

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

.faq-item .faq-body {
  padding: 0 20px 20px;
  color: var(--text-3);
}

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

/* ---- Tables ---- */
.table-wrap {
  overflow-x: auto;
  margin-bottom: var(--space-5);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-1);
}

thead th {
  color: var(--text-1);
  font-weight: 600;
  background: var(--bg-3);
  border-bottom: 1px solid rgba(63, 216, 196, 0.5);
  white-space: nowrap;
}

tbody tr:nth-child(even) {
  background: rgba(148, 170, 200, 0.03);
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* ---- Blog cards ---- */
.blog-card {
  display: block;
  padding: 28px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  color: inherit;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.blog-card:hover {
  color: inherit;
  transform: translateY(-2px);
  border-color: var(--line-hover);
}

.blog-card.featured {
  background: var(--surface-featured);
  border-color: var(--line-accent);
  box-shadow: var(--shadow-featured);
}

.blog-card h2,
.blog-card h3 {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  letter-spacing: -0.02em;
}

.blog-card h2 a {
  color: inherit;
}

.blog-card h2 a:hover,
.blog-card:hover h3 {
  color: var(--teal-pale);
}

.blog-card p {
  font-size: 15px;
  color: var(--text-4);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-5);
}

.category-pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  background: rgba(63, 216, 196, 0.12);
  color: var(--teal-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 500;
  font-size: var(--fs-small);
}

.blog-card .read-more svg {
  transition: transform var(--dur-fast) var(--ease);
}

.blog-card:hover .read-more svg {
  transform: translateX(3px);
}

/* ---- Article (blog post body) ---- */
.article-body {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.article-body h2 {
  margin-top: 56px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.article-body h3 {
  margin-top: 36px;
}

.article-body img {
  border-radius: var(--radius-md);
  margin-block: var(--space-5);
}

.article-cta {
  margin-block: 48px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--surface-panel);
  border: 1px solid rgba(127, 224, 214, 0.2);
  text-align: center;
}

.article-cta h2,
.article-cta h3 {
  margin-top: 0;
}

.article-cta p {
  color: var(--text-3);
}

/* ---- Closing CTA panel (interior pages) ---- */
.cta-band {
  padding-block: calc(var(--section-gap) / 2) var(--section-gap);
}

.cta-band .container {
  position: relative;
  overflow: hidden;
  width: calc(100% - 2 * var(--container-pad));
  max-width: calc(var(--container-max) - 48px);
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(127, 224, 214, 0.2);
  background: var(--surface-panel);
  text-align: center;
}

.cta-band .container::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -320px;
  width: 760px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(63, 216, 196, 0.14), transparent);
  pointer-events: none;
}

.cta-band .container > * {
  position: relative;
}

.cta-band h2 {
  margin-inline: auto;
  max-width: 22ch;
}

.cta-band p {
  max-width: 56ch;
  margin: 0 auto 28px;
  color: var(--text-3);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line-1);
}

.site-footer > .container {
  padding-block: 64px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
}

.footer-brand {
  max-width: 340px;
}

.footer-brand p {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-5);
}

.footer-brand address {
  margin-top: 16px;
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-nav);
}

.site-footer h2 {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-6);
}

.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0;
}

.site-footer nav a {
  font-size: 14px;
  color: var(--text-nav);
}

.site-footer nav a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-1);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-6);
}

.footer-bottom p {
  margin: 0;
}

.footer-minimal > .container {
  padding-block: 28px;
}

.footer-minimal .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  border: 0;
}

@media (max-width: 899px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 599px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- Feature rows (alternating panel + copy) ---- */
.feature-rows {
  display: grid;
  gap: 40px;
}

.feature-row {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 32px;
  align-items: center;
}

.feature-row.reverse {
  grid-template-columns: 7fr 3fr;
}

/* Let grid children shrink below their content's intrinsic width so wide
   children (e.g. a comparison table in .table-wrap) scroll internally instead
   of forcing horizontal overflow. */
.feature-row > * {
  min-width: 0;
}

.feature-row.reverse .feature-panel {
  order: 2;
}

.feature-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 200px;
  padding: 40px 28px;
  text-align: center;
  border-radius: var(--radius-md);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  overflow: hidden;
}

/* Faint grid, fading toward the bottom (as in the hero) */
.feature-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 170, 200, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 170, 200, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(130% 100% at 50% 0%, #000, transparent 78%);
  mask-image: radial-gradient(130% 100% at 50% 0%, #000, transparent 78%);
  pointer-events: none;
}

.feature-index {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-6);
  pointer-events: none;
}

.feature-panel .icon-tile {
  position: relative;
  width: 56px;
  height: 56px;
  margin-bottom: 0;
  border-radius: 14px;
}

.feature-panel .icon-tile svg {
  width: 26px;
  height: 26px;
}

.feature-panel .feature-kicker {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-soft);
}

.feature-copy h2,
.feature-copy h3 {
  margin-bottom: var(--space-3);
}

.feature-copy h2 {
  font-size: clamp(1.625rem, 3vw, 2.125rem);
}

.feature-copy h3 {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
}

.feature-copy p:last-child,
.feature-copy ul:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-row.reverse .feature-panel {
    order: 0;
  }

  .feature-panel {
    min-height: 0;
    padding: 28px 24px;
  }
}

/* ---- Related services strip ---- */
.related-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-strip li {
  margin: 0;
}

.related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: 100%;
  padding: 22px 24px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 17px;
  color: var(--text-1);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.related-card:hover {
  color: var(--text-1);
  transform: translateY(-2px);
  border-color: var(--line-hover);
}

.related-card svg {
  flex-shrink: 0;
  color: var(--teal-soft);
  transition: transform var(--dur-fast) var(--ease);
}

.related-card:hover svg {
  transform: translateX(3px);
}

/* ---- Media frame (demo animation on the Tools page) ---- */
.media-frame {
  border-radius: var(--radius-md);
  border: 1px solid var(--line-3);
  overflow: hidden;
  background: var(--bg-term);
}

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

/* ---- New Jersey map card (home and About) ---- */
.map-card {
  position: relative;
  min-height: 400px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  overflow: hidden;
  background: #060b17;
  transition: border-color var(--dur) var(--ease);
}

.map-card:hover {
  border-color: var(--line-hover);
}

/* Full-width card (About): 2:1 on wide screens, the 400px minimum below */
@media (min-width: 860px) {
  .map-card-wide {
    min-height: 0;
    aspect-ratio: 2 / 1;
  }
}

.map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* The pin's ring: grows and fades (the stroke keeps its width) */
.map-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: map-pulse 2.4s ease-out infinite;
}

@keyframes map-pulse {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(4); opacity: 0; }
}

.map-inset {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(7, 12, 24, 0.8);
  border: 1px solid var(--line-3);
}

.map-inset svg {
  width: 56px;
  height: 105px;
}

.map-inset span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-6);
}

.map-address {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(7, 12, 24, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(148, 170, 200, 0.16);
}

.map-address address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-4);
}

.map-address strong {
  display: block;
  font-size: 15px;
}

.map-address a {
  font-size: 14px;
  font-weight: 500;
}

/* ---- Back to top ---- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-4);
  border-radius: 12px;
  background: rgba(11, 19, 36, 0.92);
  color: var(--teal-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur-fast) var(--ease), visibility 0s var(--dur);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur-fast) var(--ease);
}

.back-to-top:hover {
  border-color: var(--teal);
}

/* --------------------------------------------------------------------------
   07 · HOME PAGE
   -------------------------------------------------------------------------- */
.hero-home {
  padding-block: clamp(72px, 10vw, 128px) clamp(56px, 7vw, 88px);
}

.hero-home h1 {
  max-width: 980px;
  font-size: var(--fs-display);
  line-height: 1.02;
}

.hero-home .hero-actions {
  margin-top: 40px;
}

/* Stats strip: four cells split by hairlines (2 x 2 below 1024px). The values
   are short phrases ("Direct API rates"), so the type scales with the cell
   to keep each on one line wherever the cell is wide enough. */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(56px, 7vw, 80px);
  overflow: hidden;
  border: 1px solid var(--line-3);
  border-radius: var(--radius-md);
  background: var(--line-3);
}

.stat {
  padding: 24px 24px 22px;
  background: var(--bg-1);
}

.stat-value {
  display: block;
  font-size: clamp(22px, 2.6vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--text-1);
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-5);
}

@media (min-width: 1024px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stat-value {
    font-size: clamp(22px, 2vw, 26px);
  }
}

@media (max-width: 479px) {
  .stat {
    padding: 20px 18px 18px;
  }
}

/* Home sections: the gap sits above each one; the last adds one below */
.home-section {
  padding-top: var(--section-gap);
}

.home-section:last-child {
  padding-bottom: var(--section-gap);
}

.home-head {
  margin-bottom: 40px;
}

.home-head h2 {
  margin: 0;
}

/* Heading on the left, a short note on the right */
.split-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 48px;
}

.split-head h2 {
  max-width: 640px;
}

.split-head > p {
  max-width: 400px;
  margin: 0;
  font-size: 16px;
  color: var(--text-5);
}

/* Tools: the featured AI Desktop card and its companion share one height */
.tools-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 16px;
}

.tool-featured {
  flex: 1.7 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-accent);
  background: var(--surface-featured);
  box-shadow: var(--shadow-featured);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.tool-featured:hover {
  border-color: rgba(127, 224, 214, 0.4);
  box-shadow: var(--shadow-featured-hover);
}

.tool-featured-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 32px 0;
}

.tool-featured h3 {
  margin: 6px 0 0;
  font-size: 30px;
  letter-spacing: -0.025em;
}

.tool-featured h3 a {
  color: inherit;
}

.tool-featured h3 a:hover {
  color: var(--teal-pale);
}

.tool-featured-body > p {
  max-width: 560px;
  margin: 0;
  font-size: 15px;
  color: var(--text-3);
}

.tool-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
}

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

.tool-links a + a:hover {
  color: #fff;
}

/* The terminal: an agent driving a desktop through AI Desktop (HTML/CSS) */
.terminal {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  container-type: inline-size;
  margin: 28px 32px 32px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(148, 170, 200, 0.16);
  background: var(--bg-term);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-1);
  background: #0a1020;
}

.terminal-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a3448;
}

.terminal-title {
  margin-left: 10px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-6);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.terminal-body {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.terminal-log {
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-nav);
  overflow-wrap: anywhere;
}

.terminal-log p {
  margin: 0;
}

.terminal-log .t-gap {
  height: 10px;
}

.t-prompt { color: var(--teal); }
.t-dim { color: var(--text-6); }
.t-ok { color: var(--blue-soft); }
.t-arg { color: var(--amber); }

.t-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--teal);
}

/* The desktop the agent sees: a window under AI Desktop's coordinate grid */
.terminal-screen {
  position: relative;
  min-height: 240px;
  border-left: 1px solid var(--line-1);
  background: #081022;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 14px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line-3);
  background: linear-gradient(180deg, #101b33, #0b1428);
}

.screen-bar {
  height: 18px;
  background: #16233f;
  border-bottom: 1px solid var(--line-2);
}

.screen-area {
  position: absolute;
  inset: 18px 0 0;
}

.screen-line {
  position: absolute;
  left: 12px;
  height: 8px;
  border-radius: 3px;
}

.screen-line-1 { top: 12px; width: 38%; background: #22304e; }
.screen-line-2 { top: 28px; width: 62%; background: #1b2843; }

.screen-pane {
  position: absolute;
  top: 52px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border-radius: 5px;
  background: #0e182e;
  border: 1px solid rgba(148, 170, 200, 0.08);
}

.screen-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(63, 216, 196, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 216, 196, 0.28) 1px, transparent 1px);
  background-size: 12.5% 16.6667%;
}

.screen-origin {
  position: absolute;
  top: 4px;
  left: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
  color: var(--teal-soft);
}

/* The cell the agent clicks: (1320, 630) on a 1920 x 1080 screen */
.screen-cell {
  position: absolute;
  top: 50%;
  left: 62.5%;
  width: 12.5%;
  height: 16.6667%;
  background: rgba(63, 216, 196, 0.18);
  outline: 1.5px solid var(--teal);
  box-shadow: 0 0 24px rgba(63, 216, 196, 0.5);
}

.screen-pointer {
  position: absolute;
  top: 58.3333%;
  left: 68.75%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(63, 216, 196, 0.5);
}

.screen-tag {
  position: absolute;
  top: calc(50% - 22px);
  left: calc(62.5% - 12px);
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--teal);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-on-accent);
  white-space: nowrap;
}

@container (max-width: 520px) {
  .terminal-screen {
    border-left: 0;
    border-top: 1px solid var(--line-1);
  }
}

@media (max-width: 599px) {
  .tool-featured-body {
    padding: 24px 22px 0;
  }

  .terminal {
    margin: 24px 14px 14px;
  }

  .terminal-log {
    padding: 14px;
    font-size: 12px;
  }

  .tool-companion {
    padding: 24px 22px;
  }

  .contact-panel {
    padding: 28px 18px;
  }

  .form-panel {
    padding: 18px;
  }
}

/* The companion card: the internal frameworks, and the way to put them to work */
.tool-companion {
  flex: 1 1 320px;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  transition: border-color var(--dur) var(--ease);
}

.tool-companion:hover {
  border-color: var(--line-hover);
}

.tool-companion::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(closest-side, rgba(74, 124, 247, 0.18), transparent);
  pointer-events: none;
}

.tool-companion > * {
  position: relative;
}

.tool-companion > .chip {
  align-self: flex-start;
}

.tool-companion h3 {
  margin: 20px 0 0;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tool-companion > p {
  margin: 12px 0 28px;
  font-size: 15px;
  color: var(--text-4);
}

.need-box {
  margin-top: auto;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(127, 224, 214, 0.2);
  background: rgba(63, 216, 196, 0.05);
}

.need-box-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
}

.need-box p:not(.need-box-title) {
  margin: 6px 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-4);
}

.need-box .btn {
  padding-inline: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

/* Local: copy card + New Jersey map card */
.local-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 16px;
  align-items: stretch;
}

.local-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  transition: border-color var(--dur) var(--ease);
}

.local-card:hover {
  border-color: var(--line-hover);
}

.local-card h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.12;
}

.local-card > p:not(.kicker) {
  margin: 16px 0 0;
  font-size: 16px;
  color: var(--text-4);
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 15px;
  color: var(--text-2);
}

.check-tile {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(63, 216, 196, 0.15);
  border: 1px solid rgba(63, 216, 196, 0.4);
  color: var(--teal);
}

/* Closing panel with the contact form */
.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(127, 224, 214, 0.2);
  background: var(--surface-panel);
}

.contact-panel::before {
  content: "";
  position: absolute;
  left: -200px;
  bottom: -260px;
  width: 700px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(63, 216, 196, 0.14), transparent);
  pointer-events: none;
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.contact-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.contact-copy p {
  max-width: 440px;
  margin: 18px 0 0;
  font-size: 17px;
  color: var(--text-3);
}

/* --------------------------------------------------------------------------
   08 · PAGE-SPECIFIC
   -------------------------------------------------------------------------- */

/* Legal pages (privacy / terms) */
.legal-content h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
}

.legal-content h2 {
  margin-top: 40px;
  font-size: clamp(1.375rem, 2.6vw, 1.625rem);
  letter-spacing: -0.02em;
}

.legal-content h3 {
  font-size: 1.0625rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-3);
}

/* 404 */
.error-links-heading {
  margin: 56px 0 16px;
  font-size: 1.5rem;
}

.error-links {
  list-style: none;
  padding: 0;
}

.error-code {
  font-family: var(--font-mono);
  font-size: clamp(4.5rem, 3rem + 8vw, 8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--space-4);
}

/* --------------------------------------------------------------------------
   09 · UTILITIES
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-0);
  color: var(--text-1);
  border-radius: var(--radius-sm);
  border: 1px solid var(--teal);
}

/* --------------------------------------------------------------------------
   10 · REDUCED MOTION
   -------------------------------------------------------------------------- */
@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;
  }

  .map-pulse {
    animation: none;
    opacity: 0;
  }
}
