/* ==========================================================================
   Genexsus — parent company marketing site
   Standalone: no build step, no external dependencies, no web fonts.

   The ten product sites each own a saturated accent. This site keeps its own
   accent (teal) deliberately quiet so that on a product grid the children's
   colours are the only loud things on the page.
   ========================================================================== */

:root {
  /* ---- ground ---- */
  --ink:        #0b1220;
  --ink-soft:   #33415c;
  --muted:      #64748b;
  --faint:      #94a3b8;
  --line:       #e2e8f0;
  --line-soft:  #eef2f6;
  --bg:         #ffffff;
  --bg-alt:     #f8fafc;
  --bg-dark:    #0b1220;
  --bg-dark-2:  #121b2d;

  /* ---- parent accent ---- */
  --accent:     #0f766e;
  --accent-dk:  #115e59;
  --accent-lt:  #ecfdf9;
  --accent-ink: #ffffff;

  /* On dark bands the teal has to lift off the ground instead of sinking. */
  --accent-on-dark: #5eead4;

  /* Per-card override. Each product sets its own --brand; this is the
     fallback so an un-branded card still looks intentional. */
  --brand:      var(--accent);
  --brand-ink:  #ffffff;

  --radius:     14px;
  --radius-sm:  9px;
  --radius-lg:  20px;
  --shadow:     0 1px 2px rgba(11, 18, 32, .04), 0 8px 24px rgba(11, 18, 32, .06);
  --shadow-lg:  0 2px 4px rgba(11, 18, 32, .05), 0 20px 50px rgba(11, 18, 32, .12);

  --wrap:       1140px;
  --gutter:     clamp(20px, 4vw, 28px);
  --section-y:  clamp(56px, 9vw, 96px);

  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:        #e8edf3;
    --ink-soft:   #b3c0d1;
    --muted:      #93a1b5;
    --faint:      #74839a;
    --line:       #22314a;
    --line-soft:  #1a2639;
    --bg:         #0b1220;
    --bg-alt:     #111a2b;
    --bg-dark:    #060b15;
    --bg-dark-2:  #0e1626;

    --accent:     #2dd4bf;
    --accent-dk:  #5eead4;
    --accent-lt:  #0d2b2b;
    --accent-ink: #04201d;

    --shadow:     0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .28);
    --shadow-lg:  0 2px 4px rgba(0, 0, 0, .35), 0 20px 50px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -.021em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 1.25rem + 3vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); }
h3 { font-size: 1.1rem; }
p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* A narrow measure for prose that still starts at the same left edge as .wrap,
   so the page does not shuffle sideways as you scroll between section types. */
.wrap-narrow { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow > * { max-width: 760px; }

/* Except where the section is centred on purpose. */
.cta-band .wrap-narrow > * { margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--bg);
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

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

/* ──────────────────────── per-product brand tokens ─────────────────────────
   Each product owns the accent from its own live stylesheet. Two values per
   product: one that holds AA contrast on white, and one lifted for the dark
   ground. Where a product already ships a light-mode variant of its accent
   (GenXSync's copper, for one) that published value is what is used here.
   -------------------------------------------------------------------------- */

[data-brand="genxai"]      { --brand: #047857; --brand-lift: #34d399; }  /* emerald */
[data-brand="flowstudio"]  { --brand: #2563eb; --brand-lift: #6ea8fe; }  /* blue    */
[data-brand="genxchains"]  { --brand: #1d6fe0; --brand-lift: #66b0ff; }  /* blue    */
[data-brand="genxecon"]    { --brand: #0369a1; --brand-lift: #38bdf8; }  /* sky     */
[data-brand="genxfintel"]  { --brand: #4f46e5; --brand-lift: #a5b4fc; }  /* indigo  */
[data-brand="genxgrid"]    { --brand: #1565c0; --brand-lift: #7ab3f0; }  /* blue    */
[data-brand="genxsync"]    { --brand: #b4620f; --brand-lift: #e08a3c; }  /* copper  */
[data-brand="genxstreams"] { --brand: #a35600; --brand-lift: #f0973a; }  /* amber   */
[data-brand="genxtrim"]    { --brand: #0e7490; --brand-lift: #6ee7f9; }  /* cyan    */
[data-brand="monomon"]     { --brand: #6d28d9; --brand-lift: #a78bfa; }  /* violet  */

/* In dark mode the lifted value becomes the brand, and button text flips dark. */
@media (prefers-color-scheme: dark) {
  [data-brand] { --brand: var(--brand-lift); --brand-ink: #0b1220; }
}

/* A dark band is dark in either theme, so it always takes the lifted value —
   the descendant selector outranks the plain [data-brand] rule above. */
.band-dark,
.band-dark [data-brand] {
  --brand: var(--brand-lift, var(--accent-on-dark));
  --brand-ink: #0b1220;
}

/* ─────────────────────────────── header ────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex; align-items: center; gap: 20px;
  min-height: 68px;
}

.logo {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink); font-weight: 800; font-size: 1.15rem;
  letter-spacing: -.03em; text-decoration: none; white-space: nowrap;
  margin-right: auto;
}
.logo:hover { text-decoration: none; }
.logo .mark { flex: none; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
}
/* :not(.btn) keeps these off the CTA — a plain `.nav-links a` selector
   outranks `.btn-primary` and would strip the button of its own colour. */
.nav-links a:not(.btn) {
  color: var(--ink-soft); font-size: .925rem; font-weight: 550;
  padding: 8px 12px; border-radius: var(--radius-sm);
}
.nav-links a:not(.btn):hover { color: var(--ink); background: var(--bg-alt); text-decoration: none; }
.nav-links a:not(.btn)[aria-current="page"] { color: var(--ink); font-weight: 650; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: var(--bg-alt); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav { flex-wrap: wrap; padding-block: 12px; min-height: 0; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    flex-basis: 100%; flex-direction: column; align-items: stretch;
    gap: 6px; padding-block: 10px 4px;
  }
  .nav[data-open="true"] .nav-links { display: flex; }
  .nav-links a:not(.btn) {
    padding: 11px 13px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--bg-alt);
  }
  .nav-links .btn { justify-content: center; }
}

/* ─────────────────────────────── buttons ───────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  font: inherit; font-size: .95rem; font-weight: 650; line-height: 1.2;
  border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }

.btn-primary {
  background: var(--brand, var(--accent));
  color: var(--brand-ink, var(--accent-ink));
  border-color: var(--brand, var(--accent));
}
.btn-primary:hover { filter: brightness(.93); }

.btn-secondary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.btn-secondary:hover { border-color: var(--muted); }

.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-alt); }

.btn-sm { padding: 9px 15px; font-size: .875rem; }

/* On dark bands the light-mode button colours invert. */
.band-dark .btn-secondary,
.band-dark .btn-ghost {
  background: transparent; color: #e8edf3; border-color: #2a3852; box-shadow: none;
}
.band-dark .btn-secondary:hover,
.band-dark .btn-ghost:hover { background: #182338; border-color: #3b4c6b; }

/* ─────────────────────────────── sections ──────────────────────────────── */

.section     { padding-block: var(--section-y); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.band-dark {
  background: var(--bg-dark);
  color: #dbe3ee;
  border-block: 1px solid #1b273d;
}
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark strong { color: #f2f6fb; }
.band-dark a { color: var(--accent-on-dark); }
.band-dark .lead, .band-dark p { color: #a9b7ca; }
.band-dark .eyebrow { color: var(--accent-on-dark); }

.eyebrow {
  display: block;
  font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.lead {
  font-size: clamp(1.05rem, .99rem + .3vw, 1.2rem);
  color: var(--ink-soft);
  line-height: 1.7;
}

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 48px); }
.section-head p { margin-top: 14px; }

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

/* ─────────────────────────────── hero ──────────────────────────────────── */

.hero {
  padding-block: clamp(56px, 9vw, 104px) clamp(48px, 7vw, 80px);
  position: relative; overflow: hidden;
}
.hero::before {
  /* A single soft wash so the white hero is not a flat sheet. Decorative. */
  content: ""; position: absolute; inset: -40% 30% 40% -20%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 11%, transparent), transparent);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 60ch; margin-top: 20px; }

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

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  margin-top: 34px; padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none;
}

/* ─────────────────────────────── grids ─────────────────────────────────── */

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

/* Main column plus a narrower aside — the contact page uses it. */
.split {
  display: grid; gap: 48px; align-items: start;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 34px; }
}

/* ─────────────────────────────── cards ─────────────────────────────────── */

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .95rem; }

.band-dark .card {
  background: var(--bg-dark-2); border-color: #1f2c44; box-shadow: none;
}
.band-dark .card p { color: #9fb0c6; }

/* --- product card: the accent stripe carries the child brand --- */

.product-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--brand);
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}

.product-card .kicker {
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.product-card h3 {
  font-size: 1.2rem; font-weight: 750; letter-spacing: -.02em;
  margin-bottom: 8px;
}
.product-card h3 a { color: var(--ink); }
.product-card h3 a:hover { text-decoration: none; }
/* Whole card is the click target; the heading link supplies the accessible name. */
.product-card h3 a::after { content: ""; position: absolute; inset: 0; }
.product-card p { color: var(--ink-soft); font-size: .94rem; }
.product-card h3 + p { margin-bottom: 16px; }
/* auto margin pins the audience line to the card floor, so the "For ..."
   rules line up across a row whatever length the descriptions run to. */
.product-card .audience {
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: .85rem; color: var(--muted);
}
.product-card .audience strong { color: var(--ink-soft); font-weight: 600; }

.family-label {
  display: flex; align-items: baseline; gap: 12px;
  margin: clamp(30px, 4vw, 44px) 0 18px;
}
.family-label:first-of-type { margin-top: 0; }
.family-label h3 {
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.family-label .line { flex: 1; height: 1px; background: var(--line); }

/* --- feature list --- */

.feature h3 {
  display: flex; align-items: center; gap: 9px;
  font-size: 1rem; margin-bottom: 8px;
}
.feature h3::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px;
  background: var(--brand, var(--accent));
}
.feature p { font-size: .93rem; color: var(--ink-soft); }

/* --- numbered steps --- */

.steps { counter-reset: step; display: grid; gap: 2px; }
.step {
  display: grid; grid-template-columns: 44px 1fr; gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: .82rem; font-weight: 600;
  color: var(--brand, var(--accent));
  padding-top: 3px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: .95rem; }

/* --- FAQ ---
   Deliberately plain text rather than collapsed <details>: answer engines and
   assistants extract this content, and open prose is the most reliable shape
   for them to quote. */

.faq { display: grid; gap: 0; }
.faq-item {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 {
  font-size: 1.02rem; font-weight: 700; margin-bottom: 8px;
  color: var(--ink);
}
.faq-item p { color: var(--ink-soft); font-size: .95rem; }

.band-dark .faq-item { border-color: #1f2c44; }
.band-dark .faq-item p { color: #a9b7ca; }

/* --- chips --- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  font-size: .82rem; font-weight: 550; color: var(--ink-soft);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.chip-accent {
  color: var(--accent-dk); background: var(--accent-lt);
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
}
.band-dark .chip {
  color: #b9c6d8; background: #16213448; border-color: #29374f;
}

/* --- ticks --- */

.ticks li {
  position: relative;
  padding-left: 26px; margin-bottom: 10px;
  font-size: .95rem; color: var(--ink-soft);
}
.ticks li:last-child { margin-bottom: 0; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .52em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--brand, var(--accent));
  border-bottom: 2px solid var(--brand, var(--accent));
  transform: rotate(-45deg);
}

/* ─────────────────────────── pricing tiers ─────────────────────────────── */

.tier {
  display: flex; flex-direction: column;
  padding: 26px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tier-featured {
  border-color: var(--brand, var(--accent));
  box-shadow: var(--shadow-lg);
}
.tier .tier-name {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.tier .price {
  font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink);
  line-height: 1.1;
}
.tier .price small {
  display: block; margin-top: 4px;
  font-size: .85rem; font-weight: 500; letter-spacing: 0; color: var(--muted);
}
.tier .ticks { margin-top: 18px; }

/* ─────────────────────────── product hero ──────────────────────────────── */

.product-hero {
  padding-block: clamp(44px, 7vw, 78px) clamp(36px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.product-hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--brand);
}
.product-hero .kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.product-hero h1 { max-width: 20ch; }
.product-hero .tagline {
  margin-top: 16px; max-width: 62ch;
  font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem);
  color: var(--ink-soft); line-height: 1.55;
}
.product-hero .summary { margin-top: 18px; max-width: 68ch; color: var(--ink-soft); }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 22px;
  font-size: .85rem; color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { color: var(--faint); }

.ext::after {
  content: "↗"; font-size: .85em; margin-left: 2px;
}

/* ─────────────────────────── foundation diagram ────────────────────────── */

.foundation { display: grid; gap: 14px; }
.foundation-row {
  display: grid; gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 780px) { .foundation-row { grid-template-columns: repeat(2, 1fr); } }

.fnode {
  display: block;
  padding: 16px 16px 15px;
  background: var(--bg-dark-2);
  border: 1px solid #24334c;
  border-top: 2px solid var(--brand, var(--accent-on-dark));
  border-radius: var(--radius-sm);
  color: #dbe3ee !important;
  text-decoration: none;
}
.fnode:hover { background: #17233a; text-decoration: none; }
.fnode strong { display: block; font-size: .95rem; margin-bottom: 3px; color: #f2f6fb; }
.fnode span { font-size: .82rem; color: #93a4bd; }

.fnode-base {
  border-top-width: 3px;
  background: linear-gradient(180deg, #14243a, var(--bg-dark-2));
}

.foundation-link {
  display: flex; align-items: center; gap: 12px;
  font-size: .82rem; color: #7f8fa8; letter-spacing: .04em;
}
.foundation-link::before,
.foundation-link::after {
  content: ""; flex: 1; height: 1px; background: #24334c;
}

/* ─────────────────────────────── forms ─────────────────────────────────── */

.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 7px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: .82rem; color: var(--muted); }
.field .req { color: var(--accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit; font-size: .95rem;
  color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 18px center, right 13px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: #dc2626; }

.field-error {
  font-size: .84rem; color: #dc2626; min-height: 0;
}
.field-error:empty { display: none; }

/* Honeypot: off-screen rather than display:none so bots still fill it. */
.hp {
  position: absolute; left: -9999px; top: 0;
  width: 1px; height: 1px; overflow: hidden;
}

.form-status {
  padding: 13px 16px;
  font-size: .92rem; font-weight: 550;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}
.form-status:empty { display: none; }
.form-status[data-state="ok"]     { background: var(--accent-lt); color: var(--accent-dk); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.form-status[data-state="error"]  { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.form-status[data-state="notice"] { background: #fffbeb; color: #92400e; border-color: #fde68a; }

@media (prefers-color-scheme: dark) {
  .form-status[data-state="error"]  { background: #2a1215; color: #fca5a5; border-color: #5b1d21; }
  .form-status[data-state="notice"] { background: #2a2113; color: #fcd34d; border-color: #5a4517; }
}

/* newsletter: inline on wide, stacked on narrow */
.newsletter {
  display: grid; gap: 12px;
  grid-template-columns: 1fr auto;
  align-items: start;
  max-width: 520px;
}
@media (max-width: 560px) { .newsletter { grid-template-columns: 1fr; } }
.newsletter input {
  padding: 13px 16px; font: inherit; font-size: .95rem;
  color: #e8edf3; background: #162134;
  border: 1px solid #2a3852; border-radius: 999px;
}
.newsletter input::placeholder { color: #7e8ea6; }
.newsletter input:focus {
  outline: none; border-color: var(--accent-on-dark);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, .16);
}
.newsletter .btn-primary {
  background: var(--accent-on-dark); color: #04201d; border-color: var(--accent-on-dark);
}
.newsletter-status { grid-column: 1 / -1; }

/* ─────────────────────────────── CTA band ──────────────────────────────── */

.cta-band { text-align: center; }
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band p { max-width: 58ch; margin: 16px auto 0; }
.cta-band .hero-actions { justify-content: center; }

/* ─────────────────────────────── footer ────────────────────────────────── */

.site-footer {
  background: var(--bg-dark);
  color: #97a6bc;
  border-top: 1px solid #1b273d;
  padding-block: clamp(44px, 6vw, 64px) 28px;
  font-size: .92rem;
}
.site-footer a { color: #b9c6d8; }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid; gap: 34px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .logo { color: #f2f6fb; margin-bottom: 12px; }
.footer-brand p { color: #7f8fa8; font-size: .9rem; max-width: 34ch; }

.footer-col h4 {
  font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #6c7d96; margin: 0 0 14px;
}
.footer-col li { margin-bottom: 9px; }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid #1b273d;
  font-size: .85rem; color: #6c7d96;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }

/* TODO placeholders are meant to be seen, then removed. */
.todo {
  display: inline-block;
  padding: 1px 7px; margin-inline: 2px;
  font-family: var(--mono); font-size: .82em; font-weight: 600;
  color: #92400e; background: #fffbeb;
  border: 1px dashed #fbbf24; border-radius: 4px;
}
@media (prefers-color-scheme: dark) {
  .todo { color: #fcd34d; background: #2a2113; border-color: #7c5a17; }
}

/* ─────────────────────────────── motion ────────────────────────────────── */

.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .product-card:hover { transform: none; }
}

/* ─────────────────────────────── print ─────────────────────────────────── */

@media print {
  .site-header, .site-footer, .hero-actions, .cta-band, .nav-toggle { display: none; }
  body { color: #000; background: #fff; }
  .band-dark { background: #fff; color: #000; border: 1px solid #ccc; }
}
