/* ==========================================================================
   NeuGen.AI — Design System
   --------------------------------------------------------------------------
   Direction: editorial-technical. Derived from the NG monogram, which is a
   high-contrast Didone serif. The type does the work; colour is used sparingly.
   Dominant: ink + ivory. Accent: a single restrained teal at ~3% coverage.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Ink — page and surface layers */
  --ink-900: #08090a;
  --ink-850: #0b0c0e;
  --ink-800: #0e1013;
  --ink-700: #14171b;
  --ink-600: #1c2026;

  /* Ivory — text layers. Warm off-white, matched to the monogram. */
  --paper:    #f4f1ec;
  --paper-2:  #a8a59f;  /* secondary body — 7.4:1 on ink-900 */
  --paper-3:  #85827c;  /* meta / captions — 4.7:1 on ink-900 */

  /* Rules — hairlines carry the structure instead of boxes and glass */
  --line:        rgba(244, 241, 236, 0.10);
  --line-strong: rgba(244, 241, 236, 0.20);
  --line-faint:  rgba(244, 241, 236, 0.05);

  /* Accent */
  --accent:      #4ec3d4;
  --accent-deep: #2a8a99;
  --accent-wash: rgba(78, 195, 212, 0.10);

  /* Support */
  --success: #6fcf97;
  --danger:  #e58c81;

  /* Type
     Source Serif 4 — a transitional serif drawn for screen reading. Keeps the
     editorial, established tone of the logo without the hairline strokes of a
     Didone, which thin out and break up at small sizes.
     Public Sans — open apertures, large x-height, built for public-sector
     legibility. */
  --font-display: "Source Serif 4", Charter, Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Spacing — 4px base */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* Layout */
  --container: 1260px;
  --container-narrow: 760px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(5rem, 10vw, 8.5rem);
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 380ms;

  --radius: 4px;
  --radius-lg: 8px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */

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

* { margin: 0; }

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

body {
  background-color: var(--ink-900);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-synthesis-weight: none;
}

/* Atmosphere: a fine grain and a soft vignette. Depth without glow. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035;
  mix-blend-mode: overlay;
}

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

img { height: auto; }

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

button { background: none; border: none; cursor: pointer; }

::selection {
  background: var(--accent);
  color: var(--ink-900);
}

/* Anchor targets clear the sticky header */
:target { scroll-margin-top: calc(var(--header-h) + 2rem); }

/* Focus: visible, consistent, never removed */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--paper);
  color: var(--ink-900);
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
}

.display-xl,
.display-l,
.display-m {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  letter-spacing: -0.014em;
  color: var(--paper);
}

.display-xl {
  font-size: clamp(2.125rem, 3.5vw, 3.125rem);
  line-height: 1.1;
  font-weight: 600;
}

.display-l {
  font-size: clamp(1.75rem, 2.9vw, 2.5rem);
  line-height: 1.14;
  font-weight: 600;
}

.display-m {
  font-size: clamp(1.375rem, 2.1vw, 1.75rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.008em;
}

h3, .h3 {
  font-family: var(--font-body);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

/* Mono micro-label. Used for section indices, field labels, data captions. */
.label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-3);
}

.lede {
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.6;
  color: var(--paper-2);
  max-width: 56ch;
  text-wrap: pretty;
}

p { text-wrap: pretty; }

.muted { color: var(--paper-2); }
.meta  { color: var(--paper-3); font-size: 0.9375rem; }

a { color: inherit; }

.link {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */

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

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

.section {
  position: relative;
  z-index: 1;
  padding-block: var(--section-y);
  border-top: 1px solid var(--line-faint);
}

.section--flush { border-top: none; }

/* Section head: index number, title, optional lede. Editorial masthead. */
.section-head {
  display: grid;
  gap: var(--s-4);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  max-width: 62ch;
}

.section-index {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.section-index::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 120px;
}

.rule { height: 1px; background: var(--line); border: 0; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform 160ms var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--paper);
  color: var(--ink-900);
}
.btn--primary:hover { background: #fff; }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--paper);
}
.btn--ghost:hover {
  border-color: var(--paper);
  background: rgba(244, 241, 236, 0.04);
}

.btn--accent {
  background: var(--accent);
  color: var(--ink-900);
}
.btn--accent:hover { background: #62d3e3; }

.btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.header.is-scrolled {
  background: rgba(8, 9, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  object-fit: cover;
}

.brand__word {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand__word span { color: var(--paper-3); }

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

.nav__link {
  padding: 0.5rem 0.875rem;
  font-size: 0.9063rem;
  font-weight: 500;
  color: var(--paper-2);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--paper); background: rgba(244, 241, 236, 0.05); }
.nav__link[aria-current="true"] { color: var(--paper); }

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--paper);
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--ink-850);
  padding: var(--s-5) var(--gutter) var(--s-7);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--dur) var(--ease), visibility var(--dur);
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--header-h) - var(--s-5));
  margin-bottom: var(--s-6);
}

.drawer__nav { display: grid; }

.drawer__link {
  padding: var(--s-4) 0;
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line-faint);
  transition: color var(--dur) var(--ease);
}
.drawer__link:hover { color: var(--accent); }

.drawer__actions { display: grid; gap: var(--s-3); margin-top: var(--s-7); }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 4.5vw, 4rem));
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
  overflow: hidden;
}

/* A single soft pool of light, off-centre. Not a neon blob. */
.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: min(900px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(78, 195, 212, 0.07) 0%, transparent 62%);
  pointer-events: none;
  z-index: -1;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  gap: clamp(2.5rem, 4.5vw, 4rem);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: var(--s-5);
}

.hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}

.hero h1 { margin-bottom: var(--s-5); }

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero__lede { margin-bottom: var(--s-6); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin: 0;
  padding: var(--s-5) 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.hero__fact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--paper-2);
}
.hero__fact svg { color: var(--accent); flex-shrink: 0; }

/* Hero panel — an illustration of the product, built in markup. */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--ink-800), var(--ink-850));
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}

.panel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 236, 0.02);
}

.panel__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-2);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(111, 207, 151, 0.15);
}

.panel__body { padding: 1.125rem; display: grid; gap: 0.75rem; }

.msg {
  display: grid;
  gap: 0.3125rem;
  max-width: 88%;
  padding: 0.75rem 0.9375rem;
  border-radius: var(--radius-lg);
  font-size: 0.9063rem;
  line-height: 1.5;
}

.msg--in {
  background: var(--ink-700);
  border: 1px solid var(--line-faint);
  border-bottom-left-radius: 2px;
}

.msg--out {
  margin-left: auto;
  background: var(--accent-wash);
  border: 1px solid rgba(78, 195, 212, 0.25);
  border-bottom-right-radius: 2px;
}

.msg__who {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-3);
}

.panel__foot {
  border-top: 1px solid var(--line);
  padding: 0.9375rem 1.125rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  background: rgba(244, 241, 236, 0.02);
}

.panel__stat { display: grid; gap: 0.25rem; }

.panel__stat b {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  font-variant-numeric: lining-nums tabular-nums;
}

.panel__stat .label { font-size: 0.625rem; letter-spacing: 0.12em; }

.tag-hot { color: var(--accent); }

/* --------------------------------------------------------------------------
   8. Integrations strip
   -------------------------------------------------------------------------- */

.strip {
  position: relative;
  z-index: 1;
  border-block: 1px solid var(--line-faint);
  padding-block: var(--s-6);
}

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

.strip__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-6);
  list-style: none;
  padding: 0;
}

.strip__list li {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--paper-2);
  letter-spacing: 0.005em;
}

/* --------------------------------------------------------------------------
   9. Cards & grids
   -------------------------------------------------------------------------- */

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

.card {
  display: grid;
  align-content: start;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--ink-850);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

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

.card__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--accent);
  margin-bottom: var(--s-2);
}

.card p { color: var(--paper-2); font-size: 0.9688rem; }

/* Spec strip — a run of hairline-separated facts */
.specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.spec {
  display: grid;
  gap: 0.375rem;
  align-content: start;
  padding: var(--s-5) var(--s-5) var(--s-5) 0;
  border-right: 1px solid var(--line);
}
.spec:last-child { border-right: none; padding-right: 0; }
.spec:not(:first-child) { padding-left: var(--s-5); }

.spec dd { margin: 0; color: var(--paper); font-size: 1.0625rem; }

@media (max-width: 860px) {
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec:nth-child(2n) { border-right: none; padding-right: 0; }
  .spec:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .spec:nth-child(odd) { padding-left: 0; }
  .spec:nth-child(even) { padding-left: var(--s-5); }
}

@media (max-width: 480px) {
  .specs { grid-template-columns: 1fr; }
  .spec { border-right: none; padding: var(--s-4) 0 !important; border-bottom: 1px solid var(--line); }
  .spec:last-child { border-bottom: none; }
}

/* Process steps */
.step {
  display: grid;
  align-content: start;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-strong);
}

.step__n {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1;
  color: var(--paper-3);
  font-variant-numeric: lining-nums tabular-nums;
}

.step p { color: var(--paper-2); font-size: 0.9688rem; }

/* Industry cards — typographic, not photographic */
.industry {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--s-3);
  padding: clamp(1.5rem, 2.6vw, 2rem);
  background: var(--ink-850);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}

/* A thin accent edge that lights on hover */
.industry::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.industry:hover {
  border-color: var(--line-strong);
  background: var(--ink-800);
}
.industry:hover::before { opacity: 0.6; }

.industry > p { color: var(--paper-2); font-size: 0.9688rem; }

.industry__tasks {
  display: grid;
  gap: 0;
  list-style: none;
  margin: var(--s-2) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.industry__tasks li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 0.625rem;
  align-items: start;
  padding: 0.6875rem 0;
  font-size: 0.9063rem;
  line-height: 1.45;
  color: var(--paper-2);
  border-bottom: 1px solid var(--line-faint);
}
.industry__tasks li:last-child { border-bottom: none; padding-bottom: 0; }
.industry__tasks svg { color: var(--accent); margin-top: 3px; }

/* Callout panel */
.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  flex-wrap: wrap;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-850);
}

.callout > div { max-width: 62ch; }
.callout p { color: var(--paper-2); margin-top: var(--s-2); }

/* --------------------------------------------------------------------------
   10. Stats
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat {
  background: var(--ink-900);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  align-content: start;
  gap: var(--s-2);
}

.stat__figure {
  font-family: var(--font-display);
  font-size: clamp(2.375rem, 4.2vw, 3.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.018em;
  font-variant-numeric: lining-nums tabular-nums;
}

.stat p { color: var(--paper-2); font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   11. Quotes
   -------------------------------------------------------------------------- */

.quote {
  display: grid;
  gap: var(--s-5);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-850);
}

.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1.7vw, 1.3125rem);
  line-height: 1.52;
  font-weight: 400;
  letter-spacing: -0.003em;
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}

.avatar {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--paper-2);
}

.quote cite { font-style: normal; font-weight: 600; font-size: 0.9375rem; display: block; }

/* --------------------------------------------------------------------------
   12. Pricing
   -------------------------------------------------------------------------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
  align-items: stretch;
}

.plan {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: var(--s-4);
  padding: clamp(1.5rem, 2.6vw, 2rem);
  background: var(--ink-850);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.plan--featured {
  background: var(--ink-800);
  border-color: rgba(78, 195, 212, 0.4);
  position: relative;
}

.plan__badge {
  position: absolute;
  top: 0;
  right: var(--s-5);
  transform: translateY(-50%);
  padding: 0.3125rem 0.75rem;
  background: var(--accent);
  color: var(--ink-900);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan__name {
  font-family: var(--font-display);
  font-size: 1.4375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.plan__who { color: var(--paper-2); font-size: 0.9375rem; min-height: 3em; }

.plan__price {
  display: grid;
  gap: var(--s-1);
  padding-block: var(--s-4);
  border-block: 1px solid var(--line);
}

.plan__amount {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.018em;
  font-variant-numeric: lining-nums tabular-nums;
}

.plan__amount small {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--paper-3);
  letter-spacing: 0;
}

.plan__setup { font-size: 0.875rem; color: var(--paper-2); font-variant-numeric: tabular-nums; }

.plan__list {
  display: grid;
  gap: var(--s-3);
  list-style: none;
  padding: 0;
  margin: 0;
  align-content: start;
}

.plan__list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.625rem;
  font-size: 0.9063rem;
  line-height: 1.5;
  color: var(--paper-2);
}

.plan__list svg { color: var(--accent); margin-top: 4px; }

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  -webkit-overflow-scrolling: touch;
}

.compare {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.9063rem;
}

.compare th,
.compare td {
  padding: 0.875rem 1.125rem;
  text-align: left;
  border-bottom: 1px solid var(--line-faint);
  vertical-align: middle;
}

.compare thead th {
  position: sticky;
  top: 0;
  background: var(--ink-800);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  border-bottom: 1px solid var(--line-strong);
}

.compare tbody th {
  font-weight: 500;
  color: var(--paper);
  width: 42%;
}

.compare td { color: var(--paper-2); text-align: center; }
.compare thead th:not(:first-child) { text-align: center; }

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

.compare tbody tr:hover { background: rgba(244, 241, 236, 0.02); }

.compare .yes { color: var(--accent); }
.compare .no  { color: var(--paper-3); }

.compare caption {
  caption-side: top;
  padding: 0.875rem 1.125rem;
  text-align: left;
  color: var(--paper-3);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--line);
  background: var(--ink-850);
}

/* --------------------------------------------------------------------------
   13. FAQ — native details/summary, works without JS
   -------------------------------------------------------------------------- */

.faq { display: grid; }

.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-of-type { border-top: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.0625rem;
  font-weight: 600;
  transition: color var(--dur) var(--ease);
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }

.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur) var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.faq__answer {
  padding-bottom: var(--s-5);
  color: var(--paper-2);
  max-width: 68ch;
}

/* --------------------------------------------------------------------------
   14. Forms
   -------------------------------------------------------------------------- */

.form {
  display: grid;
  gap: var(--s-4);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--ink-850);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }

.field { display: grid; gap: 0.4375rem; }

.field > label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-2);
}

.field .req { color: var(--accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  background: var(--ink-900);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--paper);
  font-size: 0.9688rem;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--paper-3); }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(244, 241, 236, 0.3); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}

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

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2385827c' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.25rem;
}

.field select option { background: var(--ink-800); color: var(--paper); }

.form__note { font-size: 0.8125rem; color: var(--paper-3); }

.form__msg {
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  border: 1px solid;
}
.form__msg[hidden] { display: none; }
.form__msg--ok {
  color: var(--success);
  border-color: rgba(111, 207, 151, 0.35);
  background: rgba(111, 207, 151, 0.08);
}
.form__msg--err {
  color: var(--danger);
  border-color: rgba(229, 140, 129, 0.35);
  background: rgba(229, 140, 129, 0.08);
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Contact aside */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.info-item {
  display: grid;
  gap: 0.25rem;
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.info-item:first-of-type { border-top: 1px solid var(--line); }
.info-item p { color: var(--paper-2); font-size: 0.9375rem; }

.checklist { display: grid; gap: var(--s-3); list-style: none; padding: 0; margin: 0; }

.checklist li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--paper-2);
  line-height: 1.5;
}
.checklist svg { color: var(--accent); margin-top: 4px; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding-block: var(--s-8) var(--s-6);
  background: var(--ink-850);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-7);
}

.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-3);
  margin-bottom: var(--s-4);
}

.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6875rem; }

.footer a {
  color: var(--paper-2);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--dur) var(--ease);
}
.footer a:hover { color: var(--paper); }

.footer__blurb { color: var(--paper-2); font-size: 0.9375rem; max-width: 34ch; margin-block: var(--s-4); }

.social { display: flex; gap: var(--s-2); }

.social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper-2);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.social a:hover { color: var(--paper); border-color: var(--line-strong); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

.footer__legal { display: flex; gap: var(--s-5); flex-wrap: wrap; }
.footer__bottom p { font-size: 0.875rem; color: var(--paper-3); }

/* --------------------------------------------------------------------------
   16. Prose (legal pages)
   -------------------------------------------------------------------------- */

.prose { max-width: 70ch; }
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.4375rem;
  font-weight: 600;
  margin-top: var(--s-7);
  margin-bottom: var(--s-3);
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--paper-2); margin-bottom: var(--s-4); }
.prose ul { padding-left: 1.25rem; display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.prose li { margin-bottom: 0; }
.prose strong { color: var(--paper); font-weight: 600; }

.page-head {
  padding-top: calc(var(--header-h) + var(--s-8));
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-7);
}

/* --------------------------------------------------------------------------
   17. Motion — one restrained reveal, honouring user preference
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

[data-reveal].is-visible { opacity: 1; transform: none; }

/* Staggered hero entrance */
.hero [data-reveal] { transition-delay: calc(var(--i, 0) * 90ms); }

@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;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .industry:hover img { transform: none; }
}

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; }
  .plan { grid-template-rows: none; }
  .plan--featured { order: -1; }
  .plan__who { min-height: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-7) var(--s-6); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .header__actions .btn--ghost { display: none; }
  .nav-toggle { display: flex; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: flex-start; }
  .hero__actions .btn { flex: 1 1 auto; }
  .panel__foot { grid-template-columns: 1fr 1fr; }
  .callout { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .header__actions { gap: var(--s-2); }
  .header__actions .btn--primary { padding: 0.625rem 0.9375rem; font-size: 0.875rem; }
  .brand__word { font-size: 1.1875rem; }
  .brand__mark { width: 26px; height: 26px; }
}

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