/* =========================================================================
   K8Box / TCW landing page base — shared across the five domains.
   Per-domain `style.css` overrides the accent variables and gradient stops.
   Fonts: Inter (variable, 100–900) + JetBrains Mono — both OFL-1.1.
   ========================================================================= */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ----- design tokens ---------------------------------------------------- */

:root {
  /* defaults — overridden per domain */
  --accent: #0d9488;
  --accent-soft: #14b8a6;
  --accent-glow: rgba(13, 148, 136, 0.14);
  --accent-tint: rgba(13, 148, 136, 0.06);
  --accent-paper: #f4fbfa;

  --bg: #fbfbfa;
  --bg-elevated: #ffffff;
  --bg-muted: #f1f3f4;
  --bg-terminal: #0f1419;
  --bg-deep: #0c1014;

  --text: #15191d;
  --text-soft: #3d464d;
  --text-muted: #66727a;

  --border: #e3e6e8;
  --border-strong: #c8cdd0;

  --code-bg: #eff1f3;
  --code-text: #15191d;

  --terminal-text: #d8dee4;
  --terminal-soft: #8a939b;
  --terminal-prompt: #5dd6a8;
  --terminal-key: #f1c982;
  --terminal-string: #a8d3ff;
  --terminal-comment: #6a737d;

  --shadow-sm: 0 1px 2px rgba(15, 20, 25, 0.04);
  --shadow-md: 0 1px 2px rgba(15, 20, 25, 0.05),
    0 8px 24px -8px rgba(15, 20, 25, 0.08);
  --shadow-glow: 0 0 0 1px var(--border), 0 12px 36px -12px var(--accent-glow);

  /* Unified desktop canvas — every site (corporate + K8Box family) shares
     the same 1320px max width. The container falls back to viewport
     width on mobile via .container's own padding (and an explicit
     `max-width: none` override below 420px). */
  --max-width: 1320px;
  --max-width-narrow: 720px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono",
    Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent-tint: rgba(255, 255, 255, 0.04);
    --accent-paper: #131820;

    --bg: #0c0f12;
    --bg-elevated: #131820;
    --bg-muted: #1a2028;
    --bg-terminal: #0a0d11;
    --bg-deep: #07090c;

    --text: #ecf0f3;
    --text-soft: #c2cad1;
    --text-muted: #8c97a0;

    --border: #232b34;
    --border-strong: #34404b;

    --code-bg: #1d242c;
    --code-text: #ecf0f3;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.4),
      0 8px 24px -8px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 0 1px var(--border), 0 16px 48px -16px var(--accent-glow);
  }
}

/* ----- reset ----------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11", "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 140ms ease, color 140ms ease;
}

a:hover {
  border-bottom-color: var(--accent);
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: 4px;
}

p {
  margin: 0 0 16px;
}
p:last-child {
  margin-bottom: 0;
}

/* ----- layout shell ---------------------------------------------------- */

.page {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ----- header ---------------------------------------------------------- */

.site-header {
  padding-top: 32px;
  position: relative;
  z-index: 2;
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand .accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.nav-links a {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ----- language switcher (shared across DE-default + /en/ sites) -------- */

/* Pill-button list, identical visual treatment to thechameleonway.com.
   Sits to the right of .nav-links inside .site-header nav. The header's
   flexbox row already centres + space-between's the brand and the nav
   group; the lang-switcher participates in that row.

   Mobile: header nav can wrap, the switcher stays on its own line so
   tap-targets aren't squashed against .nav-links. */

.site-header nav {
  flex-wrap: wrap;
  row-gap: 8px;
}

.lang-switcher {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 4px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.lang-switcher a {
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 3px;
  border-bottom: none;
}

.lang-switcher a:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.lang-switcher a[aria-current="true"] {
  background: var(--accent);
  color: white;
}

/* ----- hero ------------------------------------------------------------ */

.hero {
  position: relative;
  padding: 96px 0 80px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 90%;
  background: radial-gradient(
      60% 70% at 25% 20%,
      var(--accent-glow) 0%,
      transparent 65%
    ),
    radial-gradient(
      55% 60% at 80% 30%,
      color-mix(in oklab, var(--accent-soft) 18%, transparent) 0%,
      transparent 70%
    );
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
  padding: 4px 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent-glow);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 14ch;
  color: var(--text);
}

.hero h1 .accent {
  background: linear-gradient(
    115deg,
    var(--accent) 10%,
    var(--accent-soft) 70%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero__lead {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 56ch;
  margin: 0 0 32px;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-weight: 500;
  font-size: 15px;
  color: var(--bg);
  background: var(--text);
  border-radius: var(--radius-sm);
  border-bottom: none;
}

.hero__cta:hover {
  background: var(--accent);
  border-bottom-color: transparent;
}

.hero__cta-secondary {
  margin-left: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

/* simple entrance animation, respecting reduced-motion */
.hero h1,
.hero__lead,
.hero__eyebrow,
.hero__cta {
  animation: fade-up 720ms ease both;
}
.hero__lead {
  animation-delay: 80ms;
}
.hero__cta {
  animation-delay: 160ms;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero h1,
  .hero__lead,
  .hero__eyebrow,
  .hero__cta {
    animation: none;
  }
}

/* ----- generic section header ------------------------------------------ */

/* `.section` (Style-B landing pages) and `.page-section` (Jinja-built
   corporate sites) share the same vertical rhythm — generous 80px
   padding to match the 1320px desktop canvas. The mobile breakpoint
   below `<720px` collapses this to 56px. */
.section,
.page-section {
  padding: 80px 0;
}

.section--narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.section h2 {
  margin: 0 0 20px;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text);
}

.section__lead {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 62ch;
  margin: 0 0 32px;
}

/* ----- terminal block -------------------------------------------------- */

.terminal {
  margin: 36px 0 0;
  background: var(--bg-terminal);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--terminal-text);
}

.terminal__chrome {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal__dots {
  display: inline-flex;
  gap: 6px;
}
.terminal__dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #4a525c;
}
.terminal__dots span:nth-child(1) {
  background: #ff5f56;
}
.terminal__dots span:nth-child(2) {
  background: #ffbd2e;
}
.terminal__dots span:nth-child(3) {
  background: #27c93f;
}

.terminal__title {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--terminal-soft);
  flex: 1;
  text-align: center;
  padding-right: 60px; /* visually balance the dots */
}

.terminal__copy {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--terminal-soft);
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: transparent;
  cursor: default; /* purely decorative */
  text-transform: uppercase;
}

.terminal__body {
  margin: 0;
  padding: 18px 20px 22px;
  overflow-x: auto;
  white-space: pre;
  tab-size: 2;
  color: var(--terminal-text);
  background: transparent;
}

/* Critical: kill the inherited inline-code background inside the dark
   terminal block. Without this, every <code> wrapper renders with the
   light-mode --code-bg, producing the washed-out "white-on-white" look. */
.terminal__body,
.terminal__body code {
  background: transparent;
  color: var(--terminal-text);
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

/* Token tints — pure colour, no per-span backdrop. The terminal body
   itself supplies the dark surface. */
.terminal__body .prompt {
  color: var(--terminal-prompt);
  background: transparent;
}
.terminal__body .key {
  color: var(--terminal-key);
  background: transparent;
}
.terminal__body .str {
  color: var(--terminal-string);
  background: transparent;
}
.terminal__body .com {
  color: var(--terminal-comment);
  background: transparent;
  font-style: italic;
}
.terminal__body .ok {
  color: #5dd6a8;
  background: transparent;
}
.terminal__body .warn {
  color: #f1c982;
  background: transparent;
}
.terminal__body .dim {
  color: var(--terminal-soft);
  background: transparent;
}

/* ----- feature grid ---------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.feature {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease,
    border-color 180ms ease;
}

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

.feature__icon {
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  color: var(--accent);
  stroke-width: 1.6;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
}

.feature p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ----- prose section --------------------------------------------------- */

.prose {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-soft);
}

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

/* ----- contact card --------------------------------------------------- */

.contact-card {
  margin-top: 36px;
  padding: 28px 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-card__lead {
  font-size: 14px;
  color: var(--text-muted);
}

.contact-card__email {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
  color: var(--accent);
}

/* ----- platform family cards ------------------------------------------ */

.family {
  padding-top: 24px;
}

.family__intro {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.family__intro h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.family__intro span {
  color: var(--text-muted);
  font-size: 14px;
}

.family__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.family__card {
  display: block;
  padding: 16px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: border-color 160ms ease, transform 160ms ease;
}

.family__card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.family__card-name {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.family__card-name::after {
  content: "↗";
  margin-left: auto;
  color: var(--text-muted);
  font-size: 13px;
}

.family__card-tag {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ----- footer ---------------------------------------------------------- */

.site-footer {
  margin-top: 64px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-muted);
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
}

.site-footer a {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
}

.site-footer a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer__legal::before {
  content: "·";
  display: none;
}

.site-footer__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* ----- responsive ------------------------------------------------------ */

@media (max-width: 720px) {
  .hero {
    padding: 64px 0 56px;
  }
  .section,
  .page-section {
    padding: 48px 0;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .family__grid {
    grid-template-columns: 1fr;
  }
  .site-header {
    padding-top: 24px;
  }
  .nav-links {
    display: none;
  }
  .terminal {
    font-size: 12.5px;
  }
  .terminal__title {
    display: none;
  }
  .contact-card {
    padding: 22px 20px;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 18px;
  }
  .hero h1 {
    max-width: none;
  }
}

/* =========================================================================
   Style B — conversion-first waitlist landing components.
   Plus the visual-rhythm primitives shared with Style A:
   color blocks, big-number accents, hero illustration, sketch dividers.
   ========================================================================= */

/* ----- color-block sections ------------------------------------------- */

.color-block {
  position: relative;
  isolation: isolate;
}

.color-block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.color-block--accent::before {
  background: linear-gradient(
      180deg,
      var(--accent-paper) 0%,
      var(--bg) 100%
    ),
    radial-gradient(
      55% 50% at 80% 0%,
      var(--accent-glow) 0%,
      transparent 65%
    );
  background-blend-mode: normal;
}

.color-block--soft::before {
  background: var(--bg-muted);
}

.color-block--paper::before {
  background: var(--accent-paper);
}

.color-block--dark {
  color: #ecf0f3;
}
.color-block--dark::before {
  background: var(--bg-deep);
}
.color-block--dark .section h2,
.color-block--dark h2,
.color-block--dark h3 {
  color: #ecf0f3;
}
.color-block--dark .section__lead,
.color-block--dark .prose,
.color-block--dark p {
  color: #c2cad1;
}

/* sketchy decorative divider — pure SVG, no JS */

.sketch-divider {
  display: block;
  width: 100%;
  height: 28px;
  color: var(--accent);
  opacity: 0.55;
  margin: 0;
}

/* ----- hero with split layout (illustration on the right) -------------- */

.hero--split {
  padding: 80px 0 72px;
}

.hero--split .hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
}

.hero-illustration {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  filter: drop-shadow(0 12px 28px var(--accent-glow));
  animation: fade-up 900ms ease both;
  animation-delay: 220ms;
}

.hero-illustration svg {
  width: 100%;
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  .hero-illustration {
    animation: none;
  }
}

@media (max-width: 880px) {
  .hero--split .hero__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-illustration {
    max-width: 360px;
    margin: 0 auto;
  }
}

/* ----- big-number accent strip ----------------------------------------- */

.bignums {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px 32px;
  padding: 36px 0;
}

.bignum {
  text-align: left;
}

.bignum__value {
  display: block;
  font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(115deg, var(--accent), var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-feature-settings: "ss01", "tnum";
}

.bignum__unit {
  font-size: 0.6em;
  margin-left: 4px;
  background: inherit;
  -webkit-background-clip: inherit;
  background-clip: inherit;
  -webkit-text-fill-color: inherit;
}

.bignum__label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ----- waitlist form (Style B) ----------------------------------------- */

.waitlist {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 460px;
}

.waitlist__label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.waitlist__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: var(--shadow-md);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.waitlist__row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.waitlist__email {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
}

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

.waitlist__email:focus {
  outline: none;
}

.waitlist__submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--bg);
  background: var(--text);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: -0.005em;
  transition: background 160ms ease, transform 120ms ease;
}

.waitlist__submit:hover {
  background: var(--accent);
}

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

.waitlist__submit svg {
  transition: transform 160ms ease;
}

.waitlist__submit:hover svg {
  transform: translateX(2px);
}

.waitlist__hint {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* ----- trust signals row ----------------------------------------------- */

.trust {
  padding: 64px 0;
}

.trust__heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.trust__card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 160ms ease, border-color 160ms ease,
    box-shadow 160ms ease;
}

.trust__card:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.trust__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--accent);
}

.trust__icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

.trust__title {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}

.trust__body {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.trust__body a {
  color: var(--text-muted);
  border-bottom: 1px dotted var(--border-strong);
}

.trust__body a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ----- sticky mobile CTA ----------------------------------------------- */

.sticky-cta {
  position: fixed;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 50;
  display: none;
  padding: 12px 18px;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18),
    0 0 0 1px color-mix(in oklab, var(--text) 50%, transparent);
  border-bottom: none;
}

.sticky-cta:hover {
  background: var(--accent);
  color: #ffffff;
  border-bottom-color: transparent;
}

@media (max-width: 720px) {
  .sticky-cta {
    display: block;
  }
  body {
    padding-bottom: 80px;
  }
}

/* ----- minimal footer (Style B) --------------------------------------- */

.footer-minimal {
  margin-top: 80px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-minimal__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-minimal__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.footer-minimal a {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
}

.footer-minimal a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.footer-minimal__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.footer-minimal__tag svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* ----- hero illustration sketch styling -------------------------------- */

/* All sketch SVGs share these properties — a thin, organic stroke vibe. */
.sketch {
  --ink: var(--text);
  --ink-soft: var(--text-muted);
  --c1: var(--accent);
  --c2: var(--accent-soft);
  /* Halo colour matches the surrounding page background so labels can
     sit on top of dashed connection lines without losing legibility.
     The accent gradient on hero color-blocks fades through these tones
     too; --bg is the closest single colour to use as a knockout. */
  --label-halo: var(--bg);
}

.sketch text {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--ink-soft);
  /* Universal text halo. paint-order=stroke means the stroke is drawn
     first, then the fill on top — the stroke acts as a knockout against
     anything underneath the text (dashed connection lines, wash fills).
     stroke-width 4 creates ~2px halo on each side at the default font.
     Hand-drawn-vibe is preserved because this only affects text fills,
     never the actual sketch strokes. */
  paint-order: stroke fill;
  stroke: var(--label-halo);
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.sketch .label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  fill: var(--ink);
  /* Bold labels keep the same halo treatment, slightly thicker stroke
     so the heavier glyph weight still gets a visible knockout. */
  stroke-width: 4.5;
}

.sketch .stroke {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sketch .accent-stroke {
  fill: none;
  stroke: var(--c1);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sketch .dashed {
  stroke-dasharray: 4 4;
}

.sketch .wash {
  fill: var(--c1);
  fill-opacity: 0.08;
}

.sketch .wash-2 {
  fill: var(--c2);
  fill-opacity: 0.10;
}

.sketch .pulse {
  transform-origin: center;
  animation: sketch-pulse 3.6s ease-in-out infinite;
}

@keyframes sketch-pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sketch .pulse {
    animation: none;
  }
}

/* ----- responsive fixups for the new pieces ---------------------------- */

@media (max-width: 720px) {
  .trust {
    padding: 48px 0;
  }
  .trust__grid {
    grid-template-columns: 1fr;
  }
  .bignums {
    padding: 24px 0;
  }
  .waitlist__row {
    flex-direction: column;
    gap: 6px;
    padding: 8px;
  }
  .waitlist__submit {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================================
   Desktop widening (≥1024px) — `.hero--split`-scoped layout rules.

   The 1320px canvas itself + the .section/.page-section vertical rhythm
   are now defaults at the top of this file (was: scoped here under
   `:root` overrides). Only the rules that genuinely need a `.hero--split`
   markup remain inside this @media block: the two-column hero grid,
   the larger illustration, the H1 width cap, the 3-up grids, and the
   stand-alone waitlist centring.

   Mobile and tablet (<1024px) breakpoints above remain untouched.
   ========================================================================= */

@media (min-width: 1024px) {

  /* Hero (Style-B only): ~57/43 split, more horizontal breathing room,
     illustration materially larger (was 480px max → 600px). The
     `.hero--home` variant has no .hero__grid so these rules naturally
     no-op there. */
  .hero--split {
    padding: 112px 0 96px;
  }

  .hero--split .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 72px;
  }

  .hero-illustration {
    max-width: 600px;
  }

  /* Headline — now that the column is wider, allow the H1 to breathe up
     to ~22ch before wrapping; the lede already caps at 56ch. Style-B
     scope: the corporate sites override .hero--home h1 sizing in their
     own site.css and we don't want to fight with that. */
  body:has(.hero--split) .hero h1 {
    max-width: 22ch;
  }

  /* Trust + features grids — explicitly enforce 3-up at desktop so the
     cards stop stretching across a 1320px container. The corporate
     sites use `.product-grid` / `.offer-grid` instead and keep their
     own auto-fit minmax(240px/260px, 1fr) behaviour, which fits 4–5
     cards nicely at 1320px. */
  .trust__grid,
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  /* Stand-alone waitlist sections (used outside the hero column on the
     K8Box-family pages) stay form-shaped — capped width, centred.
     Corporate sites have no waitlist blocks so this is a no-op for them. */
  body:has(.hero--split) section > .container > .waitlist {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Hero sketch labels can sit a hair larger on the wider canvas — the
   illustration grew, so labels grow proportionally. Style-B-only since
   the sketch SVGs don't appear on the corporate sites. */
@media (min-width: 1280px) {
  body:has(.hero--split) .sketch text {
    font-size: 11.5px;
  }
  body:has(.hero--split) .sketch .label {
    font-size: 12.5px;
  }
}
