/* ============================================================
   Self-hosted fonts — Geist (variable), Geist Mono, Instrument Serif.
   No third-party request; ~140 KB total across 8 WOFF2 files.
   Latin + latin-ext subsets cover EN/NL/DE/ES needs.
   Geist is variable, so one file serves weights 300-700.
============================================================ */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/geist-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/geist-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/geist-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-italic-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================
   NEXERA PXM — visual system
   Mercury "command center" aesthetic: deep near-black neutrals
   (#171721 / #1e1e2a), glowing starlight text, a single vivid
   violet-blue accent reserved for primary CTAs, light-weight
   display type, and pill-shaped interactive elements.
   Elevation through light and color — never shadow.
============================================================ */

:root {
  --bg:           #1e1e2a;        /* midnight slate — primary surface */
  --bg-card:      #232331;        /* card surface — one step lighter */
  --bg-alt:       #171721;        /* deep space — alternating sections */
  --bg-dark:      #171721;        /* darkest sections (deep space) */
  --bg-dark-2:    #1e1e2a;
  --bg-soft:      #272735;        /* graphite — interactive surfaces */
  --ink:          #ededf3;        /* starlight — primary text */
  --ink-mid:      #c3c3cc;        /* silver — secondary text */
  --ink-rgb:      237, 237, 243;  /* ink as rgb triple */
  --muted:        #a3a3af;
  --muted-2:      #9696a2;  /* ≥4.5:1 on cards too (was #8b8b97, ~4.9:1 base) */
  --line:         rgba(var(--ink-rgb), .10);
  --line-2:       rgba(var(--ink-rgb), .18);
  --line-light:   rgba(255,255,255,.10);
  --line-light-2: rgba(255,255,255,.22);

  --accent:       #c93d7c;        /* warm aura rose — accents: links, checks, highlights */
  --accent-hover: #b8336f;
  --ghost-blue:   #f3d2e1;        /* secondary interaction tint (warm) */
  --ok:           #54b56a;
  --warn:         #d9a032;
  --err:          #e0604e;
  --info:         #d77ba6;

  --radius:       12px;
  --radius-lg:    18px;
  --radius-sm:    8px;

  /* Elevation via light, not shadow: hairline ring + deep ambient */
  --shadow-sm:    0 0 0 1px rgba(255,255,255,.04);
  --shadow:       0 0 0 1px rgba(255,255,255,.05);
  --shadow-lg:    0 0 0 1px rgba(255,255,255,.06), 0 30px 80px -24px rgba(0,0,0,.6);

  --maxw:         1240px;
  --pad-x:        clamp(20px, 4vw, 56px);
  --section-pad:  clamp(80px, 11vw, 160px);

  --f-sans: "Geist", -apple-system, "Helvetica Neue", system-ui, sans-serif;
  --f-mono: "Geist Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
  --f-serif:"Instrument Serif", "Times New Roman", serif;
}

/* ── White mode ─────────────────────────────────────────────
   Optional light theme: same Mercury system — white surfaces,
   deep-space text, identical blue accent. Dark stays default. */
html[data-theme="light"] {
  --bg:           #f7f7fa;
  --bg-card:      #ffffff;
  --bg-alt:       #efeff5;
  --bg-dark:      #171721;        /* dark sections stay deep space */
  --bg-dark-2:    #1e1e2a;
  --bg-soft:      #ececf2;
  --ink:          #171721;
  --ink-mid:      #3f3f4d;
  --ink-rgb:      23, 23, 33;
  --muted:        #5d5d6b;
  --muted-2:      #64646f;  /* ≥4.5:1 on cards too (was #70707d, ~4.7:1 base) */
  --line:         rgba(var(--ink-rgb), .09);
  --line-2:       rgba(var(--ink-rgb), .16);

  --accent-hover: #b0316a;
  --ok:           #1d8a43;
  --warn:         #a87510;
  --err:          #c4452f;
  --info:         #c25f93;

  --shadow-sm:    0 1px 0 rgba(23,23,33,.04), 0 1px 2px rgba(23,23,33,.04);
  --shadow:       0 2px 4px rgba(23,23,33,.04), 0 12px 30px -10px rgba(23,23,33,.10);
  --shadow-lg:    0 4px 8px rgba(23,23,33,.05), 0 40px 80px -20px rgba(23,23,33,.18);
}

html { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Leave room for the sticky nav when scrolling to #anchors */
  scroll-padding-top: 84px;
  scroll-behavior: smooth;
}
body {
  font-family: var(--f-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01","ss02","cv11";
  letter-spacing: 0.005em;
}
img { max-width: 100%; height: auto; display: block; } /* height:auto keeps aspect ratio when width/height attrs are set (CLS) */
a { color: inherit; }
button { font-family: inherit; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

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

/* Light display weights at large sizes — authority through
   restraint, not volume. Subtle positive tracking for air. */
.display, .h-display {
  font-family: var(--f-sans);
  font-weight: 380;
  letter-spacing: 0.01em;
  line-height: 1.08;
  margin: 0;
}
.display {
  font-size: clamp(44px, 6.6vw, 84px);
}
.h-display {
  font-size: clamp(32px, 4.6vw, 58px);
}
.h-display.center { text-align: center; }
.h-display.small  { font-size: clamp(26px, 3.4vw, 40px); }
.h-md {
  font-family: var(--f-sans);
  font-weight: 420;
  letter-spacing: 0.005em;
  line-height: 1.15;
  font-size: clamp(26px, 2.6vw, 36px);
  margin: 0 0 14px;
}

.serif-em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 640px;
  margin: 28px 0 36px;
  letter-spacing: -0.005em;
}
.section-lead {
  color: var(--muted);
  font-size: clamp(16px, 1.2vw, 19px);
  max-width: 620px;
  margin: 18px 0 0;
}
.section-lead.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
  display: inline-block;
}
.eyebrow-light { color: rgba(255,255,255,0.7); }
.eyebrow-light::before { background: rgba(255,255,255,0.7); }

.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-size: 0.92em; letter-spacing: -0.01em; }
.small { font-size: 12px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn-dark { background: var(--ink); color: var(--bg-dark); position: relative; overflow: hidden; isolation: isolate; }
/* warm-aura brand gradient that fades in on hover (matches the hero) */
.btn-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  transition: opacity .22s ease;
  background:
    radial-gradient(62% 130% at 78% 14%, rgba(236,140,180,0.92), transparent 70%),
    radial-gradient(70% 130% at 20% 18%, rgba(248,196,150,0.90), transparent 72%),
    radial-gradient(85% 150% at 92% 96%, rgba(204,182,232,0.92), transparent 72%),
    radial-gradient(78% 140% at 8% 94%, rgba(236,168,112,0.62), transparent 74%),
    #fbeef1;
}
.btn-dark:hover { transform: translateY(-1px); box-shadow: 0 9px 24px -9px rgba(201,61,124,0.45); }
.btn-dark:hover::before { opacity: 1; }
/* hover shows the light aura, so the label flips dark in every context */
.btn-dark:hover,
html[data-theme="light"] .btn-dark:hover,
.price.featured .btn-dark:hover { color: #171721; }
html[data-theme="light"] .btn-dark { color: #fff; }
/* on the dark "pop" pricing card, invert so the button stays visible */
.price.featured .btn-dark { background: var(--bg-card); color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: rgba(var(--ink-rgb),0.04); }
.btn-light {
  background: var(--bg-card);
  color: var(--ink);
  border-color: var(--line);
}
.btn-light:hover { background: var(--bg-soft); }

.link { font-size: 15px; text-decoration: none; color: var(--ink); }
.link.arrow { font-weight: 500; }
.link.arrow::after { content: ""; }

/* ====================== NAV ====================== */

/* Skip link — keyboard / screen-reader users */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 9px;
  transform: translateY(-200%);
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translateY(0); }
#main:focus { outline: none; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.brand-sub { color: var(--muted); font-weight: 400; }
.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-mid);
  font-size: 14.5px;
  letter-spacing: -0.005em;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

@media (max-width: 860px){
  .nav-links { display: none; }
  .nav-inner { display: flex; align-items: center; gap: 6px; }
  .brand { margin-right: auto; }
  .nav-cta { display: none; }
}

/* ── Mega menu ─────────────────────────────────────────────── */
.ni {
  position: static;
  display: flex;
  align-items: center;
}
.nt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14.5px;
  font-family: var(--f-sans);
  letter-spacing: -0.005em;
  color: var(--ink-mid);
  padding: 5px 0;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.nt:hover, .ni.ni--open .nt { color: var(--ink); }
.nt-chev {
  opacity: 0.45;
  transition: transform 0.32s cubic-bezier(0.16,1,0.3,1), opacity 0.2s ease;
  flex-shrink: 0;
}
.ni--open .nt-chev { transform: rotate(180deg); opacity: 0.8; }
.nt-plain {
  text-decoration: none;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  color: var(--ink-mid);
  padding: 5px 0;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.nt-plain:hover { color: var(--ink); }

/* Panel */
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  box-shadow: 0 16px 56px rgba(var(--ink-rgb),0.08), 0 2px 10px rgba(var(--ink-rgb),0.04);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.38s cubic-bezier(0.16,1,0.3,1),
              transform 0.38s cubic-bezier(0.16,1,0.3,1),
              visibility 0s linear 0.38s;
  z-index: 10;
}
.mega.mega--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.38s cubic-bezier(0.16,1,0.3,1),
              transform 0.38s cubic-bezier(0.16,1,0.3,1),
              visibility 0s;
}
.mega-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px var(--pad-x) 44px;
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.mega-section { flex: 1; min-width: 0; }
.mega-section--sm { flex: 0 0 auto; min-width: 160px; }
.mega-divider {
  width: 1px;
  background: var(--line);
  align-self: stretch;
  margin: 0 36px;
  flex-shrink: 0;
}
.mega-lbl {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  padding: 0 10px;
}
.mega-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.mega-col { display: flex; flex-direction: column; gap: 2px; }

/* Individual items */
.mi {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.14s ease;
}
.mi:hover { background: var(--bg); }
.mi-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: rgba(var(--ink-rgb),0.055);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background 0.14s ease, color 0.14s ease;
}
.mi:hover .mi-icon {
  background: rgba(var(--ink-rgb),0.10);
  color: var(--ink-mid);
}
.mi-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-top: 4px;
}
.mi-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.013em;
  line-height: 1.3;
}
.mi-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.mi--plain {
  align-items: center;
  padding: 7px 10px;
  font-size: 13.5px;
  color: var(--ink-mid);
  transition: color 0.14s ease, background 0.14s ease;
}
.mi--plain:hover { color: var(--ink); }

/* Featured promo card in mega panel */
.mega-section--feature { flex: 0 0 288px; }
.mega-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 20px;
  border-radius: 12px;
  background: var(--bg);
  text-decoration: none;
  transition: background 0.16s ease;
}
.mega-feature:hover { background: var(--bg-alt); }
.mega-feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--bg-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3px;
}
.mega-feature-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.mega-feature-text {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.mega-feature-cta {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 5px;
}
.mega-feature:hover .mega-feature-cta { text-decoration: underline; }

/* Item entrance stagger */
@keyframes megaItemIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mega--open .mi {
  animation: megaItemIn 0.36s cubic-bezier(0.16,1,0.3,1) both;
}
.mega--open .mi:nth-child(1)  { animation-delay: 0.04s; }
.mega--open .mi:nth-child(2)  { animation-delay: 0.07s; }
.mega--open .mi:nth-child(3)  { animation-delay: 0.10s; }
.mega--open .mi:nth-child(4)  { animation-delay: 0.13s; }
.mega--open .mi:nth-child(5)  { animation-delay: 0.16s; }
.mega--open .mi:nth-child(6)  { animation-delay: 0.19s; }

/* Dim overlay */
.mega-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(var(--ink-rgb),0.14);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 45;
}
.mega-backdrop.mega-backdrop--on {
  opacity: 1;
  pointer-events: auto;
}

/* ── Mobile nav ─────────────────────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4.5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 9px;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger span {
  display: block;
  width: 19px;
  height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), opacity 0.18s ease;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(6.1px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6.1px) rotate(-45deg); }

.mnav {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 84px 20px 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.3s ease,
              transform 0.34s cubic-bezier(0.16,1,0.3,1),
              visibility 0s linear 0.34s;
}
.mnav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.3s ease,
              transform 0.34s cubic-bezier(0.16,1,0.3,1),
              visibility 0s;
}
.mnav-sec { border-bottom: 1px solid var(--line); }
.mnav-sec-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 2px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--f-sans);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.mnav-sec-btn svg {
  opacity: 0.5;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.mnav-sec.is-open .mnav-sec-btn svg { transform: rotate(180deg); }
.mnav-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.16,1,0.3,1);
}
.mnav-sec.is-open .mnav-sub { grid-template-rows: 1fr; }
.mnav-sub-inner { overflow: hidden; }
.mnav-sub a {
  display: block;
  padding: 10px 2px 10px 14px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
}
.mnav-sub a:last-child { padding-bottom: 16px; }
.mnav-link {
  display: block;
  padding: 17px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.mnav-cta {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 28px;
}
.mnav-cta .btn { width: 100%; justify-content: center; padding: 14px; }
.mnav-signin {
  text-align: center;
  padding: 13px;
  font-size: 15px;
  color: var(--ink-mid);
  text-decoration: none;
}
@media (max-width: 860px) {
  .nav-burger { display: flex; }
}
@media (min-width: 861px) {
  .mnav { display: none; }
}

/* ====================== HERO ====================== */

.hero {
  padding: clamp(60px, 8vw, 110px) 0 0;
  position: relative;
  overflow: hidden;
}
/* Heroes that carry a product-peek mockup need breathing room below it
   so the panel doesn't butt against the next section. */
.hero:has(.hero-peek) { padding-bottom: clamp(48px, 6vw, 88px); }
/* Twilight atmosphere backdrop for the main landing hero —
   faint violet / ghost-blue glows drifting over deep space */
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% -10% -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 34% at 82% 14%, rgba(214, 96, 150, 0.13), transparent 72%),
    radial-gradient(36% 30% at 14% 38%, rgba(236, 158, 120, 0.08), transparent 74%),
    radial-gradient(50% 40% at 92% 78%, rgba(176, 108, 196, 0.12), transparent 72%),
    radial-gradient(46% 38% at 8% 86%, rgba(236, 186, 132, 0.06), transparent 74%),
    radial-gradient(60% 50% at 50% 50%, rgba(34, 34, 52, 0.5), transparent 82%);
  animation: heroMeshDrift 16s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(var(--ink-rgb),0.012) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(var(--ink-rgb),0.012) 0 1px, transparent 1px 3px);
  opacity: 0.4;
}
/* White mode: luxury pastel mesh + subtle multiplied grid */
html[data-theme="light"] .hero::before {
  background:
    radial-gradient(40% 50% at 80% 16%, rgba(232, 138, 175, 0.50), transparent 72%),
    radial-gradient(40% 46% at 16% 32%, rgba(244, 176, 128, 0.44), transparent 74%),
    radial-gradient(48% 50% at 90% 80%, rgba(228, 150, 90, 0.36), transparent 74%),
    radial-gradient(44% 48% at 10% 86%, rgba(196, 176, 228, 0.46), transparent 76%),
    radial-gradient(60% 54% at 50% 50%, rgba(252, 244, 246, 0.30), transparent 84%);
}
html[data-theme="light"] .hero::after {
  mix-blend-mode: multiply;
  opacity: 0.5;
}
.hero > .container { position: relative; z-index: 1; }
@keyframes heroMeshDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-1.4%, 1%, 0) scale(1.035); }
  100% { transform: translate3d(1.4%, -1%, 0) scale(1.015); }
}
/* ======= HERO TEXT REVEAL ======= */
@keyframes line-rise {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}
@keyframes gradient-fill {
  0%   { background-position: 100% center; }
  42%  { background-position: 86% center; }
  100% { background-position: 0% center; }
}
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rl {
  display: block;
  overflow: hidden;
  padding-bottom: 0.35em;
  margin-bottom: -0.35em;
}
.ri {
  display: block;
  padding-bottom: 0.3em;
  background: linear-gradient(90deg,
    #ededf3 0%,
    #ededf3 30%,
    #f3d2e1 48%,
    #d883ab 60%,
    #7a4860 74%,
    #2c2c40 88%,
    #1e1e2a 100%
  );
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation:
    line-rise 1.3s cubic-bezier(0.16, 1, 0.3, 1) both,
    gradient-fill 2.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}
/* White mode: headline gradient resolves to deep-space text.
   background-image (not shorthand) preserves background-clip:text. */
html[data-theme="light"] .ri {
  background-image: linear-gradient(90deg,
    #171721 0%,
    #171721 30%,
    #a8466f 48%,
    #c97ba0 60%,
    #f0d8e4 74%,
    #ededf3 88%,
    #f7f7fa 100%
  );
  background-size: 280% 100%;
}
.hero-display .rl:nth-child(1) .ri { animation-delay: 0.10s, 0.10s; }
.hero-display .rl:nth-child(2) .ri { animation-delay: 0.32s, 0.32s; }
.hero-display .rl:nth-child(3) .ri { animation-delay: 0.54s, 0.54s; }

.hero .kicker   { animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.00s both; }
.hero .lead     { animation: hero-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.90s both; }
.hero .cta-row  { animation: hero-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.10s both; }
.hero-peek      { animation: hero-fade-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.30s both; }

@media (prefers-reduced-motion: reduce) {
  .rl, .ri, .hero .kicker, .hero .lead, .hero .cta-row, .hero-peek {
    animation: none !important;
    opacity: 1 !important;
  }
  .ri {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: inherit !important;
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: rgba(var(--ink-rgb),0.06);
  border: 1px solid var(--line);
  font-size: 13px;
  font-family: var(--f-mono);
  color: var(--ink-mid);
  letter-spacing: 0.01em;
  margin-bottom: 36px;
}
.kicker .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent);
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.cta-row.center { justify-content: center; }

/* ─── Hero email capture — pill input fused with the primary CTA ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.hero-capture { align-items: center; }
.hc-field {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-card) 60%, transparent);
  padding: 4px 4px 4px 0;
  transition: border-color .15s ease, background .15s ease;
}
.hc-field:focus-within {
  border-color: var(--accent);
  background: var(--bg-card);
}
.hc-field input[type="email"] {
  width: min(280px, 48vw);
  border: none;
  background: transparent;
  padding: 0 10px 0 24px;
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 0.005em;
  color: var(--ink);
  height: 44px;
  outline: none;
}
.hc-field input[type="email"]::placeholder { color: var(--muted-2); }
/* honeypot — visually gone, still in the form for bots */
.hc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 640px) {
  /* Stack the hero email capture vertically — the fused pill is too tight for
     the long CTA label on a phone (input got truncated, button overlapped).
     Full-width input box on top, full-width buttons below. */
  .hero-capture { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-capture .hc-field {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    border: none;
    background: transparent;
    border-radius: 0;
    padding: 0;
  }
  .hc-field:focus-within { border-color: transparent; background: transparent; }
  .hc-field input[type="email"] {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border: 1px solid var(--line-2);
    border-radius: 14px;
    background: color-mix(in srgb, var(--bg-card) 60%, transparent);
  }
  .hc-field input[type="email"]:focus { border-color: var(--accent); background: var(--bg-card); }
  /* All three stacked elements share one height (52px) so the column lines up cleanly. */
  .hc-field input[type="email"],
  .hc-field .btn,
  .hero-capture > .btn {
    width: 100%;
    min-height: 52px;
    box-sizing: border-box;
  }
  .hc-field .btn,
  .hero-capture > .btn { justify-content: center; white-space: normal; }
}

/* ─── Footer trust line ── */
.foot-trust {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

/* Hero peek frame */
.hero-peek {
  position: relative;
  margin: clamp(60px, 9vw, 120px) auto 0;
  max-width: 1180px;
}
.peek-glow {
  position: absolute;
  inset: -10% 5% -20% 5%;
  background: radial-gradient(60% 60% at 50% 0%, rgba(var(--ink-rgb),0.16), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.peek-frame {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.peek-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.tl { display: flex; gap: 6px; }
.tl span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(var(--ink-rgb),0.13);
}
.tl span:nth-child(1) { background: #E66C5C; }
.tl span:nth-child(2) { background: #E0B73C; }
.tl span:nth-child(3) { background: #59B25F; }
.peek-tabs {
  display: flex;
  gap: 4px;
  margin-left: 6px;
}
.peek-tab {
  padding: 6px 12px;
  font-size: 13px;
  color: var(--muted);
  border-radius: 8px;
  background: transparent;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.peek-tab:hover { background: rgba(var(--ink-rgb),0.04); color: var(--ink); }
.peek-tab.active {
  background: rgba(var(--ink-rgb),0.06);
  color: var(--ink);
  font-weight: 500;
}
.peek-tab:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* "Try it" invitation */
.peek-try {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  border: 0;
  font: 500 12px/1 var(--f-sans);
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, opacity .35s ease;
  animation: tryNudge 2.4s ease-in-out infinite;
}
.peek-try:hover { transform: translateY(-1px); }
.peek-try.dismissed { opacity: 0; transform: scale(0.9); animation: none; }
.peek-try .pt-pulse {
  position: absolute;
  left: 10px; top: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bg-card);
  transform: translateY(-50%);
  box-shadow: 0 0 0 0 rgba(255,255,255,0.6);
  animation: tryPulse 1.6s ease-out infinite;
}
@keyframes tryPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
@keyframes tryNudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(3px); }
}
.peek-tools {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  background: rgba(var(--ink-rgb),0.05);
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--f-mono);
  color: var(--ink-mid);
  white-space: nowrap;
}
.chip.dot-live i {
  width: 7px; height: 7px;
  background: var(--ok);
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.92); }
}
.chip.dark {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.10);
}
.chip.dark .dot.pulse {
  width: 7px; height: 7px; background: #6ED27A; border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(110,210,122,0.20);
  animation: pulse 2.4s ease-in-out infinite;
}

.peek-body {
  display: grid;
  grid-template-columns: 1fr;
  height: 460px;
  position: relative;
}

/* tabbed views — all stacked in the same grid cell so height stays constant
   and the workflow canvas always has a measurable size for pre-init.
   Active view fades in via opacity only — no translate, no page reflow. */
.peek-view {
  display: grid;
  grid-area: 1 / 1;
  grid-template-columns: 220px minmax(0, 1fr);
  min-width: 0;
  height: 460px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease;
}
.peek-view.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.peek-side {
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  background: var(--bg-soft);
  font-size: 13px;
}
.side-section { margin-bottom: 22px; }
.side-h {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 6px 8px;
}
.side-item {
  display: flex;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--ink-mid);
  cursor: default;
}
.side-item span { color: var(--muted-2); font-family: var(--f-mono); font-size: 12px; }
.side-item.active { background: rgba(var(--ink-rgb),0.06); color: var(--ink); font-weight: 500; }

.peek-grid { padding: 4px 0 0; }
.grid-h {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 1.4fr .8fr .9fr 1fr;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.grow {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 1.4fr .8fr .9fr 1fr;
  padding: 14px 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink);
  transition: background .15s ease;
}
.grow:hover { background: var(--bg-soft); }
.grow.editing { background: color-mix(in srgb, var(--warn) 9%, transparent); }
.c-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.c-sku { color: var(--muted); }
.c-cat { color: var(--muted); font-size: 13px; }
.c-price { font-weight: 500; }

.tn {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--bg-alt);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.tn::before, .tn::after { content: ""; position: absolute; }
.tn-jacket { background: linear-gradient(135deg, #2A2A26, #4A4A45); }
.tn-jacket::before { inset: 8px 6px 4px 6px; background: rgba(255,255,255,0.10); border-radius: 4px 4px 0 0; }
.tn-bag { background: linear-gradient(135deg, #4A6A3A, #6B8C56); }
.tn-bag::before { inset: 7px 8px 5px 8px; background: rgba(255,255,255,0.12); border-radius: 3px; }
.tn-tent { background: linear-gradient(135deg, #6A4A2C, #8C6A3E); }
.tn-tent::before { inset: 8px 4px 4px 4px; background: rgba(255,255,255,0.10); clip-path: polygon(50% 0%, 0% 100%, 100% 100%); }
.tn-boot { background: linear-gradient(135deg, #3A2A1A, #6B4F2D); }
.tn-boot::before { inset: 14px 4px 5px 4px; background: rgba(255,255,255,0.12); border-radius: 2px 4px 4px 4px; }
.tn-glove { background: linear-gradient(135deg, #1E2A33, #3A4A5A); }
.tn-glove::before { inset: 6px 6px 6px 8px; background: rgba(255,255,255,0.10); border-radius: 4px 8px 8px 4px; }

.pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px;
  background: rgba(var(--ink-rgb),0.06);
  color: var(--ink-mid);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.pill.sm { height: 20px; font-size: 11px; padding: 0 8px; }
.pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 6px;
  opacity: 0.55;
}
.pill-ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
.pill-warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }

.ai-badge {
  font-family: var(--f-mono);
  font-size: 10.5px;
  background: rgba(var(--ink-rgb),0.08);
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.04em;
  margin-left: 6px;
  color: var(--ink-mid);
}

/* ---------- Hero demo-row animation ---------- */
.demo-row {
  position: relative;
  transition: background .4s ease;
}
.demo-row.focused {
  background: linear-gradient(90deg, rgba(255,244,217,.55), rgba(255,244,217,.25));
  box-shadow: inset 2px 0 0 var(--ink);
}
.demo-row.publishing { background: rgba(110,210,122,.10); }
.demo-row.synced     { background: rgba(110,210,122,.06); }
.row-title {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.demo-row .row-title::after {
  /* caret while typing */
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  background: var(--ink);
  vertical-align: -2px;
  margin-left: 2px;
  opacity: 0;
  animation: caret 1s steps(2) infinite;
}
.demo-row.focused .row-title::after { opacity: 1; }
@keyframes caret { 50% { opacity: 0; } }

.demo-aibadge {
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transform: translateY(-2px) scale(0.96);
  transition: opacity .25s ease, transform .25s ease;
}
.demo-aibadge::before {
  content: "✦";
  font-size: 9px;
  display: inline-block;
  animation: spin 1.6s linear infinite;
}
.demo-aibadge.show { opacity: 1; transform: translateY(0) scale(1); }
@keyframes spin { to { transform: rotate(360deg); } }

/* progress bar pinned along the row's bottom edge */
.row-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
}
.row-progress > span {
  display: block;
  height: 100%;
  width: 30%;
  background: var(--ink);
  border-radius: 2px;
  transform: translateX(-100%);
  opacity: 0;
}
.row-progress.running > span {
  opacity: 1;
  animation: rowProg 1.6s cubic-bezier(.5,.05,.5,.95) infinite;
}
.row-progress.done > span {
  width: 100%;
  transform: translateX(0);
  opacity: 1;
  background: var(--ok);
  transition: width .35s ease;
}
@keyframes rowProg {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(360%); }
}

/* channel chip pop-in when published */
.demo-row .cd { transition: opacity .35s ease, transform .35s ease, filter .35s ease; }
.demo-row .cd.dim { opacity: 0.22; filter: grayscale(0.6); }
.demo-row .cd.pop {
  animation: chPop .55s cubic-bezier(.2,.8,.3,1.2) both;
}
@keyframes chPop {
  0%   { transform: scale(0.4); opacity: 0; }
  55%  { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* toast that flies in at the row's right edge */
.row-toast {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translate(8px, -50%);
  background: var(--ink);
  color: #fff;
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--f-mono);
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  box-shadow: 0 6px 18px -6px rgba(var(--ink-rgb),0.35);
}
.row-toast::before {
  content: "✓";
  margin-right: 5px;
  color: #6ED27A;
  font-weight: 700;
}
.row-toast.show {
  animation: toastIn 2.6s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes toastIn {
  0%   { opacity: 0; transform: translate(14px, -50%); }
  10%  { opacity: 1; transform: translate(0, -50%); }
  80%  { opacity: 1; transform: translate(0, -50%); }
  100% { opacity: 0; transform: translate(-6px, -50%); }
}

.c-chan { display: flex; gap: 5px; }
.cd {
  width: 18px; height: 18px;
  border-radius: 5px;
  flex-shrink: 0;
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--line);
  position: relative;
}
.cd.dim { opacity: 0.28; }
.cd.shop { background: #95BF47; border-color: #95BF47; }
.cd.shop::before { content: "S"; color: #fff; font-weight: 700; font-size: 11px; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-sans); }
.cd.bol  { background: #0000A4; border-color: #0000A4; }
.cd.bol::before  { content: "b"; color: #fff; font-weight: 700; font-size: 12px; position: absolute; inset: 0; display: grid; place-items: center; }
.cd.amzn { background: #232F3E; border-color: #232F3E; }
.cd.amzn::before { content: "a"; color: #FF9900; font-weight: 700; font-size: 12px; position: absolute; inset: 0; display: grid; place-items: center; }
.cd.goog { background: var(--bg-card); }
.cd.goog::before { content: "G"; color: #4285F4; font-weight: 700; font-size: 11px; position: absolute; inset: 0; display: grid; place-items: center; }

@media (max-width: 860px){
  .peek-side { display: none; }
  .peek-body { grid-template-columns: 1fr; height: 380px; }
  .peek-view { grid-template-columns: 1fr; height: 380px; }
  .grid-h, .grow { grid-template-columns: 1.6fr 1fr .8fr; }
  .grid-h .c-cat, .grow .c-cat, .grid-h .c-sku, .grow .c-sku, .grow .c-chan, .grid-h .c-chan { display: none; }
}

/* ====================== TRUST / LOGOS ====================== */

.trust { padding: 90px 0 30px; }
.trust-eyebrow {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: -0.005em;
  margin: 0 0 28px;
}
.logo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  opacity: 0.66;
}
.logo-mark {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.logo-mark.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 26px; }
.logo-mark.mono  { font-family: var(--f-mono);  font-weight: 500; font-size: 17px; letter-spacing: 0.06em; }

/* ====================== SECTIONS ====================== */

.section { padding: var(--section-pad) 0; }
.section-tight { padding: clamp(60px, 8vw, 110px) 0; }
.section-cream { background: var(--bg-alt); }
.section-stats { padding: 60px 0 90px; }

.section-head { max-width: 880px; margin-bottom: 64px; }
.section-head.light { color: #fff; }
.section-head.light .h-display { color: #fff; }
.section-head.light .section-lead { color: rgba(255,255,255,0.7); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.two-col-wide {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
@media (max-width: 920px) {
  .two-col, .two-col-wide { grid-template-columns: 1fr; }
}

.problem-list p {
  font-size: 18px;
  color: var(--ink-mid);
  line-height: 1.55;
  margin: 0 0 20px;
  max-width: 520px;
}
.problem-list p:last-child { margin-bottom: 0; }

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 980px) {
  .pillars { grid-template-columns: 1fr; }
}
.pillar { display: flex; flex-direction: column; }
.pillar-visual {
  background: var(--bg-alt);
  height: 320px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 28px;
}
.pillar-body { padding: 32px 32px 36px; }
.pillar-body h3 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.pillar-body > p {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.55;
}

.tick {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.tick li {
  position: relative;
  padding: 7px 0 7px 30px;
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.45;
}
.tick li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}
.tick li::after {
  content: "";
  position: absolute;
  left: 6px; top: 14px;
  width: 7px; height: 4px;
  border-left: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent);
  border-radius: 0 0 0 1px;
  transform: rotate(-45deg);
}

/* --- PIM mock (form) --- */
.form-mock {
  width: 100%;
  max-width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 16px;
  font-size: 13px;
  box-shadow: var(--shadow);
}
.fm-h {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.015em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.fm-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  align-items: baseline;
}
.fm-row label { color: var(--muted); font-size: 12px; }
.fm-row span { color: var(--ink); }
.fm-row.variants { align-items: center; }
.vchips { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.vch {
  display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 24px; height: 24px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-size: 11px;
  font-family: var(--f-mono);
  padding: 0 6px;
  color: var(--muted);
}
.vch.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.vch.dot { padding: 0; min-width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2); }
.vch.dot.c-blk { background: #1A1A17; }
.vch.dot.c-olv { background: #5F6E3D; }
.vch.dot.c-rust { background: #9C4A2B; }
.vch.dot.on { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--ink); }
.vch-sep { color: var(--muted-2); }

/* --- DAM mock (asset grid) --- */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 360px;
}
.asset {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  aspect-ratio: 1/1.05;
  overflow: hidden;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}
.asset.selected { outline: 2px solid var(--ink); outline-offset: 1px; }
.asset.processing { background: var(--bg-soft); }
.ai-fill {
  flex: 1;
  border-radius: 6px;
  background: #F4F2EC;
  position: relative;
  overflow: hidden;
}
.ai-fill.ai-jacket { background: radial-gradient(120% 80% at 50% 60%, #2A2A26 30%, #3A3A35 60%, #5A5A53 100%); }
.ai-fill.ai-jacket.olv { background: radial-gradient(120% 80% at 50% 60%, #4A5A28 30%, #5F6E3D 60%, #7F8E5D 100%); }
.ai-fill.ai-jacket.rust { background: radial-gradient(120% 80% at 50% 60%, #7C3A1F 30%, #9C4A2B 60%, #B86A4A 100%); }
.ai-fill.ai-jacket.alt { background: radial-gradient(120% 80% at 50% 60%, #2A2A26 30%, #3A3A35 60%, #5A5A53 100%); filter: contrast(0.85); }
.ai-fill.ai-3d {
  background:
    linear-gradient(135deg, transparent 49%, rgba(255,255,255,0.1) 50%, transparent 51%) #4A4A45,
    radial-gradient(80% 60% at 50% 50%, #6A6A65, #2A2A26);
}
.ai-fill.ai-3d::before {
  content: ""; position: absolute; inset: 22%;
  border-radius: 8px;
  background: linear-gradient(135deg, #8A8A82, #4A4A45);
  transform: rotate(20deg);
  box-shadow: inset 4px 4px 8px rgba(255,255,255,0.18), inset -4px -4px 8px rgba(0,0,0,0.25);
}
.ai-fill.ai-doc {
  background: #F4F2EC;
}
.ai-fill.ai-doc::before {
  content: ""; position: absolute; inset: 14% 24%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow:
    inset 0 12px 0 0 rgba(var(--ink-rgb),0.04),
    inset 0 22px 0 0 transparent,
    inset 0 26px 0 0 rgba(var(--ink-rgb),0.04),
    inset 0 36px 0 0 transparent,
    inset 0 40px 0 0 rgba(var(--ink-rgb),0.04);
}
.asset-meta {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prog {
  position: absolute;
  left: 6px; right: 6px; bottom: 24px;
  height: 3px; background: rgba(var(--ink-rgb),0.10); border-radius: 2px;
  overflow: hidden;
}
.prog span { display: block; height: 100%; background: var(--ink); border-radius: 2px; }

/* --- Syndication diagram --- */
.syn-diagram {
  position: relative;
  width: 100%;
  height: 260px;
  max-width: 400px;
}
.syn-lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0;
}
.syn-lines path { fill: none; stroke: rgba(var(--ink-rgb),0.16); stroke-width: 1; stroke-dasharray: 3 4; }
.syn-core {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 86px; height: 86px;
  border-radius: 50%;
  background: var(--ink);
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  z-index: 2;
  box-shadow: 0 12px 30px -8px rgba(var(--ink-rgb),0.3);
}
.core-pulse {
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  animation: ringPulse 3s ease-out infinite;
}
@keyframes ringPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}
.syn-node {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px 8px 8px;
  display: flex; align-items: center; gap: 9px;
  font-size: 12px;
  box-shadow: var(--shadow-sm);
  z-index: 2;
  min-width: 132px;
}
.syn-node div { display: flex; flex-direction: column; line-height: 1.25; }
.syn-node b { font-weight: 600; font-size: 12.5px; letter-spacing: -0.01em; }
.syn-node span { color: var(--muted); font-size: 11px; }
.syn-node.n1 { left: -8px; top: 0; }
.syn-node.n2 { right: -8px; top: 0; }
.syn-node.n3 { left: -8px; bottom: 0; }
.syn-node.n4 { right: -8px; bottom: 0; }
.syn-node.n5 { right: 0; top: 50%; transform: translateY(-50%); }
.syn-node.n6 { left: 0;  top: 50%; transform: translateY(-50%); }

.ch-logo {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}
.ch-logo.shop { background: #95BF47; }
.ch-logo.bol  { background: #0000A4; }
.ch-logo.amzn { background: #232F3E; color: #FF9900; }
.ch-logo.goog { background: var(--bg-card); color: #4285F4; border: 1px solid var(--line); }
.ch-logo.feed { background: #4A4A45; }
.ch-logo.portal { background: #5F6E3D; }
.ch-logo.app  { background: var(--accent); }
.ch-logo.lg { width: 40px; height: 40px; font-size: 18px; border-radius: 10px; }

/* ====================== STATS ====================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 60px);
  padding: 60px 0 30px;
  border-top: 1px solid var(--line);
}
@media (max-width: 860px) { .stats-grid { grid-template-columns: 1fr; gap: 40px; } }
.stat-num {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: clamp(56px, 7vw, 96px);
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: 14px;
}
.stat p {
  color: var(--muted);
  font-size: 15px;
  max-width: 320px;
  margin: 0;
}

/* ====================== DARK / AI SECTION ====================== */
.section-dark {
  background: var(--bg-dark);
  color: #fff;
}
.section-dark .eyebrow { color: rgba(255,255,255,0.7); }
.section-dark .eyebrow::before { background: rgba(255,255,255,0.7); }

.ai-feature {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: stretch;
}
@media (max-width: 980px) { .ai-feature { grid-template-columns: 1fr; } }

.ai-window {
  background: var(--bg-dark-2);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.aw-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-light);
  background: rgba(255,255,255,0.02);
}
.aw-top .tl span:nth-child(1) { background: #6E6964; }
.aw-top .tl span:nth-child(2) { background: #6E6964; }
.aw-top .tl span:nth-child(3) { background: #6E6964; }
.aw-title {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-family: var(--f-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}
.aw-top .chip.dark { margin-left: auto; }

.aw-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 480px;
}
@media (max-width: 760px){ .aw-body { grid-template-columns: 1fr; } }
.aw-left {
  padding: 24px;
  border-right: 1px solid var(--line-light);
  display: flex; flex-direction: column; gap: 22px;
}
.aw-right { padding: 24px; }
.aw-h {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 12px;
}

.ai-prog-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.85);
  gap: 10px;
  white-space: nowrap;
}
.ai-prog-row b { font-weight: 500; font-family: var(--f-mono); }
.ai-meta span { white-space: nowrap; display: inline-flex; align-items: center; }
.ai-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.ai-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #fff 0%, #B4B4B4 100%);
  border-radius: 3px;
}
.ai-bar.sm { height: 4px; margin-top: 8px; }
.ai-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 12px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
}
.dt {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  margin-right: 5px;
  vertical-align: middle;
}
.dt.ok { background: #6ED27A; }
.dt.warn { background: #E0B73C; }
.dt.err { background: #E66C5C; }

.ai-cost {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-light);
  border-radius: 12px;
}
.cost-row {
  display: flex; justify-content: space-between;
  font-size: 12.5px;
  padding: 4px 0;
  color: rgba(255,255,255,0.6);
  gap: 8px;
  white-space: nowrap;
}
.cost-row b { color: #fff; font-weight: 500; }

.lang-pills {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.lang {
  font-family: var(--f-mono);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-light);
  color: rgba(255,255,255,0.5);
}
.lang.on { background: var(--bg-card); color: var(--ink); border-color: #fff; }

.diff-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-light);
  border-radius: 14px;
  padding: 18px;
}
.diff-h {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 14px;
}
.prod-tag { font-weight: 500; font-size: 14px; }
.conf {
  font-family: var(--f-mono);
  font-size: 11px;
  background: rgba(110,210,122,0.12);
  color: #6ED27A;
  padding: 3px 9px;
  border-radius: 999px;
}
.diff-block { margin-bottom: 14px; }
.diff-label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 6px;
}
.diff-line {
  font-size: 14px;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 4px;
}
.diff-line del {
  text-decoration: line-through;
  color: rgba(229,108,92,0.7);
  background: rgba(229,108,92,0.08);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
}
.diff-line.ins {
  background: rgba(110,210,122,0.08);
  border-left: 2px solid #6ED27A;
  color: #fff;
}
.diff-p {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.8);
  margin: 0;
  padding: 6px 0;
}
.diff-p.small.mono { font-size: 12px; color: rgba(255,255,255,0.6); }
.diff-actions {
  display: flex; gap: 8px;
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid var(--line-light);
  margin-top: 12px;
}
.section-dark .btn-ghost { border-color: var(--line-light-2); color: rgba(255,255,255,0.85); }
.section-dark .btn-ghost:hover { background: rgba(255,255,255,0.06); }

.ai-side {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ai-side-item {
  padding: 24px 0;
  border-top: 1px solid var(--line-light);
}
.ai-side-item:first-child { padding-top: 0; border-top: none; }
.ai-side-item h4 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: #fff;
}
.ai-side-item p {
  margin: 0;
  font-size: 14.5px;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
}

/* ====================== CHANNELS GRID ====================== */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 18px;
}
.channel-grid .feature {
  grid-column: span 2;
  grid-row: span 1;
}
@media (max-width: 980px){
  .channel-grid { grid-template-columns: 1fr 1fr; }
  .channel-grid .feature { grid-column: span 2; }
}
@media (max-width: 640px){
  .channel-grid { grid-template-columns: 1fr; }
  .channel-grid .feature { grid-column: span 1; }
}
.channel {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.ch-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.ch-head h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.018em;
}
.ch-head .muted { font-size: 13px; }
.ch-head .ml-auto { margin-left: auto; }
.ml-auto { margin-left: auto; }
.ch-feats {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ink-mid);
}
.ch-feats li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.ch-feats li:last-child { border-bottom: none; }
.ch-desc {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
  line-height: 1.5;
}
.ch-stream {
  margin-top: auto;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cs-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  align-items: center;
  color: var(--ink-mid);
}
.cs-row .dt { background: rgba(var(--ink-rgb),0.25); }
.cs-row .dt.ok { background: var(--ok); }

/* ====================== WORKFLOW ====================== */
.wf-copy .btn { margin-top: 20px; }
.wf-canvas {
  background: var(--bg-card);
  padding: 0;
  position: relative;
  overflow: hidden;
  container-type: inline-size; /* lets the board scale to this card's width */
}
.wf-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.wf-tab {
  padding: 6px 12px;
  font-size: 13px;
  color: var(--muted);
  border-radius: 8px;
  font-family: var(--f-mono);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  user-select: none;
}
.wf-tab:hover { color: var(--ink); background: rgba(var(--ink-rgb),0.04); }
.wf-tab.on { background: rgba(var(--ink-rgb),0.06); color: var(--ink); }

.wf-board {
  position: relative;
  /* Fixed 720x360 design surface scaled to fit the card width, so the
     hard-positioned nodes and the SVG wires stay locked together at every
     width (they used to clip/misalign in the narrower column). */
  width: 720px;
  height: 360px;
  --wf-s: min(1, 100cqw / 720px);
  transform-origin: top left;
  transform: scale(var(--wf-s));
  margin-bottom: calc(360px * var(--wf-s) - 360px);
  background:
    radial-gradient(circle, rgba(var(--ink-rgb),0.08) 1px, transparent 1.2px) 0 0 / 22px 22px,
    var(--bg-soft);
}
.wf-wires {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.wf-wires path {
  fill: none;
  stroke: rgba(var(--ink-rgb),0.25);
  stroke-width: 1.4;
  stroke-dasharray: 5 4;
  animation: dashflow 2.2s linear infinite;
}
@keyframes dashflow {
  to { stroke-dashoffset: -18; }
}
.wf-node {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  width: 168px;
  box-shadow: var(--shadow);
  font-size: 12px;
  overflow: hidden;
}
.wf-node.trigger { border-color: rgba(var(--ink-rgb),0.4); }
.wf-node.ai { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(var(--ink-rgb),0.08), var(--shadow); }
.wf-nh {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-family: var(--f-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-soft);
}
.wf-node.ai .wf-nh { background: var(--ink); color: #fff; }
.wf-nb {
  padding: 10px;
  display: flex; flex-direction: column; line-height: 1.3;
}
.wf-nb b { font-weight: 600; font-size: 13px; letter-spacing: -0.015em; }
.wf-nb span { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.wf-pin {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--bg-card);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  top: 50%; transform: translateY(-50%);
}
.wf-pin.pin-in { left: -5px; }
.wf-pin.pin-out { right: -5px; }
.wf-nh .ni {
  width: 14px; height: 14px;
  display: inline-grid; place-items: center;
  border-radius: 3px;
  background: rgba(var(--ink-rgb),0.08);
  font-style: normal;
}
.wf-nh .ni.ai { background: #6ED27A; color: #171721; }
.wf-nh .ni.ai::before { content: "✦"; font-size: 9px; }
.wf-nh .ni.trigger::before { content: "▶"; font-size: 7px; color: var(--ink); }
.wf-nh .ni.img::before { content: "▭"; font-size: 9px; color: var(--ink); }
.wf-nh .ni.gate::before { content: "◇"; font-size: 9px; color: var(--ink); }
.wf-nh .ni.bg::before { content: "◴"; font-size: 9px; color: var(--ink); }

.wf-progress {
  height: 3px;
  background: rgba(var(--ink-rgb),0.08);
  border-radius: 2px;
  margin: 0 10px 10px;
  overflow: hidden;
}
.wf-progress span {
  display: block; height: 100%;
  background: var(--ink);
  animation: prog 3s linear infinite;
}
@keyframes prog {
  0% { transform: translateX(-30%); }
  100% { transform: translateX(20%); }
}

.wf-foot {
  display: flex;
  gap: 18px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.wf-stat.ok { color: var(--ok); }

/* ====================== DATA MODEL CARDS ====================== */
.dm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 820px){ .dm-grid { grid-template-columns: 1fr; } }
.dm {
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
}
.dm-num {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 16px;
}
.dm h4 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}
.dm > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 22px;
}
.dm-mock {
  margin-top: auto;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
}
.lm-row { display: grid; grid-template-columns: 60px 1fr; gap: 10px; padding: 5px 0; }
.lm-k { font-family: var(--f-mono); color: var(--muted); font-size: 12px; }
.lm-v { display: inline-flex; align-items: center; gap: 8px; }
.lt {
  font-family: var(--f-mono);
  font-size: 10px;
  background: var(--ink);
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.dup-row {
  display: grid;
  grid-template-columns: 1.4fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.dup-row.strike .mono { text-decoration: line-through; color: var(--muted-2); }
.dt.ok { background: var(--ok); }
.dt.err { background: var(--err); }

.hm-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.hm-row.hl { background: color-mix(in srgb, var(--warn) 10%, transparent); margin: 0 -8px; padding: 6px 8px; border-radius: 5px; }
.hash { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }

.vm-row {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  padding: 6px 0;
  align-items: flex-start;
}
.vm-row div { display: flex; flex-direction: column; line-height: 1.3; }
.vm-row b { font-family: var(--f-mono); font-size: 12px; font-weight: 500; }
.vm-row .muted { font-size: 11.5px; }
.vdot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(var(--ink-rgb),0.16);
  margin-top: 4px;
  position: relative;
}
.vdot.on { background: var(--ink); }
.vm-row:not(:last-child) .vdot::after {
  content: "";
  position: absolute;
  left: 50%; top: 100%;
  transform: translateX(-50%);
  width: 1px; height: 22px;
  background: rgba(var(--ink-rgb),0.16);
}

/* ====================== CASES ====================== */
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 860px){ .case-grid { grid-template-columns: 1fr; } }
.case {
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
}
.case-tag { margin-bottom: 24px; }
.case-pull {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 36px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 28px;
  color: var(--ink);
}
.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.case-stats > div { display: flex; flex-direction: column; }
.case-stats b {
  font-weight: 500;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.025em;
}
.case-stats span {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* ====================== TRUST GRID ====================== */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
}
.trust-grid b {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.015em;
  display: block;
  margin-bottom: 4px;
}
.trust-grid p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 600px){ .trust-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ====================== AUDIENCE ====================== */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 860px){ .audience-grid { grid-template-columns: 1fr; } }
.aud {
  padding: 44px 40px 40px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.aud .eyebrow { margin-bottom: 16px; }
.aud p { color: var(--muted); font-size: 16px; max-width: 420px; margin: 0 0 24px; }
.link.arrow {
  margin-top: auto;
  font-weight: 500;
  text-decoration: none;
  font-size: 15px;
}
.aud-brands { background: var(--bg-card); }
.aud-retail { background: var(--bg-alt); border-color: transparent; }

/* ====================== CTA BLOCK ====================== */
.cta-block {
  padding: clamp(80px, 11vw, 140px) 0;
  text-align: center;
}
.cta-block .h-display { margin-bottom: 22px; }
.cta-block .cta-row { margin-top: 32px; }

/* ====================== MANIFESTO ====================== */
.manifesto-top {
  max-width: 820px;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.manifesto-h {
  color: #fff;
  margin: 20px 0 36px;
}
.manifesto-story {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 700px;
  margin: 0 0 18px;
}
.manifesto-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-bottom: clamp(56px, 7vw, 96px);
}
.mc {
  padding: clamp(36px, 4vw, 60px) clamp(28px, 3vw, 52px);
  border-right: 1px solid rgba(255,255,255,0.10);
}
.mc:first-child { padding-left: 0; }
.mc:last-child  { border-right: none; }
.mc-img {
  position: relative;
  width: calc(100% + clamp(28px, 3vw, 52px));
  margin-left: calc(-1 * clamp(28px, 3vw, 52px) / 2);
  margin-bottom: 28px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
}
.mc:first-child .mc-img { margin-left: 0; width: 100%; }
.mc-img img,
.mc-img video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.mc-still  { opacity: 1; transition: opacity 0.45s ease; }
.mc-video  { opacity: 0; transition: opacity 0.45s ease; }
.mc-img:hover .mc-still { opacity: 0; }
.mc-img:hover .mc-video { opacity: 1; }
.mc .mc-num {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.28);
  margin-bottom: 22px;
}
.mc .mc-h {
  font-family: var(--f-sans);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 16px;
}
.mc .mc-p {
  font-size: clamp(14px, 1.05vw, 15.5px);
  line-height: 1.7;
  color: rgba(255,255,255,0.50);
  margin: 0;
}
.manifesto-cta {
  text-align: center;
  padding-top: 8px;
}
.manifesto-cta-note {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.30);
  margin: 0 0 24px;
}
@media (max-width: 900px) {
  .manifesto-cols { grid-template-columns: 1fr; }
  .mc { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.10); padding: 36px 0; }
  .mc:last-child { border-bottom: none; }
  .mc:first-child { padding-left: 0; }
}

/* ====================== FAQ ====================== */
.faq-wrap { max-width: 820px; }
.faq-wrap .h-display { margin-bottom: 48px; }
.faq { display: flex; flex-direction: column; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 4px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq .caret {
  font-family: var(--f-sans);
  font-size: 22px;
  color: var(--muted);
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  transition: transform .25s ease;
}
.faq details[open] .caret { transform: rotate(45deg); }
.faq details p {
  margin: 0 0 22px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 720px;
}

/* ====================== FOOTER ====================== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
}
.footer .brand { color: #fff; }
.footer .brand-sub { color: rgba(255,255,255,0.5); }
.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-light);
}
.foot-tag {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 480px;
  text-align: right;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.foot-by {
  margin: 12px 0 0;
  text-align: right;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.foot-by strong { font-weight: 600; color: rgba(255,255,255,0.72); }
.foot-by a { color: rgba(255,255,255,0.72); text-decoration: underline; text-underline-offset: 2px; }
.foot-by a:hover { color: #fff; }
.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 56px 0;
}
@media (max-width: 820px){ .foot-cols { grid-template-columns: repeat(2, 1fr); } }
.foot-cols h5 {
  font-size: 13px;
  font-family: var(--f-mono);
  color: rgba(255,255,255,0.45);
  margin: 0 0 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.foot-cols a {
  display: block;
  padding: 5px 0;
  text-decoration: none;
  color: rgba(255,255,255,0.78);
  font-size: 14.5px;
}
.foot-cols a:hover { color: #fff; }
.foot-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line-light);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 14px;
}
.foot-legal { display: flex; gap: 22px; }
.foot-legal a { color: rgba(255,255,255,0.5); text-decoration: none; }
.foot-legal a:hover { color: rgba(255,255,255,0.85); }

/* Interactive workflow board — drag, click, hover */
.wf-node.drag-ready {
  cursor: grab;
  user-select: none;
  transition: box-shadow .25s ease, border-color .25s ease, transform .15s ease;
}
.wf-node.drag-ready:hover { transform: translateY(-1px); border-color: var(--ink); }
.wf-node.dragging { cursor: grabbing; box-shadow: 0 14px 40px -8px rgba(var(--ink-rgb),0.30); z-index: 5; transition: none; transform: none; }
.wf-node.selected { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(var(--ink-rgb),0.10), var(--shadow); z-index: 4; }
.wf-wires path.selected { stroke: var(--ink); stroke-width: 2; stroke-dasharray: none; opacity: 1; }
.wf-wires path.dim { opacity: 0.20; }

.wf-hint { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.wf-hint kbd {
  font-family: var(--f-mono);
  font-size: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}

/* selection */
::selection { background: var(--ink); color: var(--bg); }

/* ============================================================
   Scroll reveal — subtle luxury entrance
============================================================ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s cubic-bezier(.2,.7,.3,1), transform .9s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
.scroll-reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal { opacity: 1; transform: none; transition: none; }
}

/* ====================== QUALITY FIREWALL ====================== */
.qf-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
@media (max-width: 920px){ .qf-grid { grid-template-columns: 1fr; } }
.qf-copy .h-display { line-height: 0.92; }
.qf-card {
  padding: 28px 28px 26px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
}
.qf-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.qf-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.qf-prod {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.018em;
}
.qf-score {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 26px;
}
.qf-ring { width: 124px; height: 124px; flex-shrink: 0; }
.qf-score-text { display: flex; flex-direction: column; }
.qf-grade {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 64px;
  letter-spacing: -0.05em;
  line-height: 1;
}
.qf-num { font-family: var(--f-mono); font-size: 16px; margin-top: 4px; }
.qf-num span:first-child { color: var(--ink); font-weight: 500; }

.qf-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
@media (max-width: 540px){ .qf-checks { grid-template-columns: 1fr; } }
.qf-check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--ink-mid);
}
.qf-check.warn { color: var(--warn); }
.qf-check.bad  { color: var(--err); }
.qf-check .dt { background: rgba(var(--ink-rgb),0.18); transition: background 0.45s ease; }
.qf-check .dt.ok   { background: var(--ok); }
.qf-check .dt.warn { background: var(--warn); }
.qf-check .dt.bad  { background: var(--err); }
.pill-bad { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
/* content-score animation transitions */
.qf-ring .qf-ring-arc {
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              stroke 0.6s ease;
}
.qf-grade { transition: color 0.5s ease; }

/* ====================== PRICING ====================== */
.section-head.center-head { margin-left: auto; margin-right: auto; text-align: center; }
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 980px){ .price-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .price-grid { grid-template-columns: 1fr; } }

/* Enterprise tier — full-width strip below the 4-card grid */
.price-enterprise {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 22px 28px;
}
.price-enterprise .pe-copy { max-width: 720px; }
.price-enterprise .pe-copy .price-name { margin-bottom: 4px; }
.price-enterprise p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

.price {
  padding: 28px 24px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}
/* Featured plan pops as the single light card on the dark grid */
.price.featured {
  background: var(--ink);
  color: var(--bg-dark);
  border-color: var(--ink);
}
.price.featured .muted,
.price.featured .price-blurb,
.price.featured .price-list { color: rgba(23,23,33,0.68); }
.price.featured .price-list li { border-color: rgba(23,23,33,0.14); }
.price.featured .price-list b { color: var(--bg-dark); }
.price.featured .price-flag {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--bg-card);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}
.price-name {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.price.featured .price-name { color: rgba(255,255,255,0.7); }
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}
.price-amount .amt {
  font-weight: 500;
  font-size: clamp(36px, 3.4vw, 48px);
  letter-spacing: -0.035em;
  line-height: 1;
}
.price-amount .per {
  color: var(--muted);
  font-size: 14px;
}
.price.featured .price-amount .per { color: rgba(255,255,255,0.6); }
.price-blurb {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 22px;
  min-height: 38px;
  line-height: 1.45;
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  font-size: 13.5px;
  color: var(--ink-mid);
  flex: 1;
}
.price-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.4;
}
.price-list li:last-child { border-bottom: none; }
.price .btn {
  width: 100%;
  justify-content: center;
}
.price-foot {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 40px 0 0;
}

/* ============================================================
   Peek tabbed views — Assets · Workflows · Channels
============================================================ */
.pa-h, .pf-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.pa-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pa-tools { display: inline-flex; gap: 8px; align-items: center; }
.chip.sm { height: 22px; padding: 0 9px; font-size: 11px; }

/* Assets */
.peek-assets { display: flex; flex-direction: column; min-width: 0; }
.pa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px 18px;
}
@media (max-width: 860px){ .pa-grid { grid-template-columns: repeat(3, 1fr); } }
.pa-tile {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.pa-tile:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -8px rgba(var(--ink-rgb),0.16); }
.pa-tile.selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pa-tile.processing { border-color: rgba(217,119,87,0.45); }
.pa-tile b { font-size: 12px; font-weight: 500; letter-spacing: -0.01em; }
.pa-tile span { font-size: 11px; color: var(--muted); font-family: var(--f-mono); }
.pat-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: var(--bg-alt);
  margin-bottom: 4px;
  position: relative;
  overflow: hidden;
}
/* Real asset photos in the hero-peek Assets grid (cascades to all locales) */
.peek-assets .pa-grid .pat-thumb {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  opacity: 1 !important;
}
.peek-assets .pa-grid .pat-thumb::before,
.peek-assets .pa-grid .pat-thumb::after { display: none !important; }
.peek-assets .pa-grid .pa-tile:nth-child(1) .pat-thumb { background-image: url(images/peek-jacket-blk.jpg); }
.peek-assets .pa-grid .pa-tile:nth-child(2) .pat-thumb { background-image: url(images/peek-jacket-olv.jpg); }
.peek-assets .pa-grid .pa-tile:nth-child(3) .pat-thumb { background-image: url(images/peek-pack.jpg); }
.peek-assets .pa-grid .pa-tile:nth-child(4) .pat-thumb { background-image: url(images/peek-tent.jpg); }
.peek-assets .pa-grid .pa-tile:nth-child(5) .pat-thumb { background-image: url(images/peek-jacket-rust.jpg); }
.peek-assets .pa-grid .pa-tile:nth-child(6) .pat-thumb { background-image: url(images/peek-3d.jpg); }
.peek-assets .pa-grid .pa-tile:nth-child(7) .pat-thumb { background-image: url(images/peek-hiker.jpg); }
.peek-assets .pa-grid .pa-tile:nth-child(8) .pat-thumb { background-image: url(images/peek-skier.jpg); }
.pat-thumb.tn-jacket { background: linear-gradient(135deg, #2A2A26, #4A4A45); }
.pat-thumb.tn-bag    { background: linear-gradient(135deg, #4A6A3A, #6B8C56); }
.pat-thumb.tn-tent   { background: linear-gradient(135deg, #6A4A2C, #8C6A3E); }
.pat-thumb.tn-boot   { background: linear-gradient(135deg, #3A2A1A, #6B4F2D); }
.pat-thumb.tn-glove  { background: linear-gradient(135deg, #1E2A33, #3A4A5A); }
.pat-thumb.pat-3d    {
  background: repeating-conic-gradient(from 45deg, #2A2A26 0deg 30deg, #44443e 30deg 60deg);
  opacity: 0.85;
}
.pat-thumb.pat-doc {
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.pat-thumb.pat-doc::after {
  content: "PDF";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-mid);
  letter-spacing: 0.05em;
}
.pat-prog {
  position: absolute;
  left: 8px; right: 8px; bottom: 28px;
  height: 3px;
  background: rgba(var(--ink-rgb),0.10);
  border-radius: 2px;
  overflow: hidden;
}
.pat-prog > span {
  display: block;
  height: 100%;
  background: #D97757;
  animation: pulse 1.6s ease-in-out infinite;
}

/* Workflows */
.peek-flow { display: flex; flex-direction: column; min-width: 0; }
.pf-canvas {
  position: relative;
  flex: 1;
  min-height: 380px;
  background:
    radial-gradient(circle, rgba(var(--ink-rgb),0.08) 1px, transparent 1.2px) 0 0 / 22px 22px,
    var(--bg-soft);
  overflow: hidden;
  touch-action: none;
}
.pf-canvas .wfn { width: 168px; font-size: 11.5px; }

/* Workflow node styles (peek view — duplicated from workflows.css so this
   page renders the canvas correctly without pulling in the whole sheet) */
.wfn {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  width: 200px;
  box-shadow: var(--shadow);
  font-size: 12px;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.wfn.ai { border-color: #D97757; }
.wfn.active {
  border-color: #6ED27A;
  box-shadow: 0 0 0 3px rgba(110,210,122,0.20), var(--shadow);
  transform: translateY(-1px);
}
.wfn.n-trig { border-color: rgba(var(--ink-rgb),0.4); }
.wfn.out-node { border-color: var(--ink); }
.wfn-h {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-family: var(--f-mono);
  color: var(--muted);
  background: var(--bg-soft);
}
.wfn.ai .wfn-h { background: rgba(217,119,87,0.10); color: #D97757; }
.wfn.out-node .wfn-h { background: var(--ink); color: #fff; }
.wfn-b {
  padding: 9px 10px;
  display: flex; flex-direction: column; line-height: 1.3;
}
.wfn-b b { font-weight: 600; font-size: 13px; letter-spacing: -0.015em; }
.wfn-b span { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.wfn-pin {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--bg-card);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  top: 50%; transform: translateY(-50%);
}
.wfn-pin.in  { left: -5px; }
.wfn-pin.out { right: -5px; }
.wfn-prog {
  height: 3px;
  background: rgba(var(--ink-rgb),0.08);
  margin: 0 10px 9px;
  border-radius: 2px;
  overflow: hidden;
}
.wfn-prog > span {
  display: block; height: 100%;
  width: 50%;
  background: #D97757;
  animation: progSlide 2.2s ease-in-out infinite;
}
@keyframes progSlide {
  0%   { transform: translateX(-110%); width: 30%; }
  60%  { transform: translateX(120%);  width: 80%; }
  100% { transform: translateX(120%);  width: 80%; }
}
.wni {
  width: 14px; height: 14px;
  display: inline-grid; place-items: center;
  border-radius: 3px;
  background: rgba(var(--ink-rgb),0.07);
  font-style: normal;
  font-size: 9px;
  color: var(--ink);
}
.wni.in::before  { content: "⏵"; }
.wni.ai { background: #D97757; color: #fff; }
.wni.ai::before  { content: "✦"; }
.wni.img::before { content: "◳"; }
.wni.gate::before { content: "◇"; }
.wni.out { background: var(--ink); color: #fff; }
.wni.out::before { content: "↗"; font-size: 10px; }

/* Dynamic SVG wires injected by the workflow engine */
svg.wf-wires-dyn {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
svg.wf-wires-dyn .wf-wire {
  fill: none;
  stroke: rgba(var(--ink-rgb),0.32);
  stroke-width: 1.4;
  stroke-dasharray: 5 4;
  stroke-linecap: round;
  animation: dashflow 2.2s linear infinite;
}
@keyframes dashflow { to { stroke-dashoffset: -18; } }

.wf-draggable { cursor: grab; user-select: none; z-index: 2; }
.wf-draggable.dragging { cursor: grabbing; z-index: 50; }

/* Channels */
.peek-channels { display: flex; flex-direction: column; min-width: 0; }
.pc-list { padding: 8px 0; }
.pc-row {
  display: grid;
  grid-template-columns: 36px 1fr 110px 110px 115px;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.pc-row:last-child { border-bottom: none; }
.pc-logo {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}
.pc-logo.shop { background: #5E8E3E; }
.pc-logo.bol  { background: #0000A4; }
.pc-logo.amzn { background: #1A1A17; }
.pc-logo.goog { background: #4285F4; }
.pc-logo.feed { background: #6B6B62; }
.pc-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pc-name b { font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em; }
.pc-name span { font-size: 11.5px; }
.pc-bar {
  height: 5px;
  background: rgba(var(--ink-rgb),0.08);
  border-radius: 3px;
  overflow: hidden;
}
.pc-bar > span {
  display: block;
  height: 100%;
  background: var(--ok);
  border-radius: 3px;
  transition: width .4s ease;
}
.pc-num { color: var(--muted); font-size: 12px; text-align: right; }

@media (max-width: 860px){
  .pc-row { grid-template-columns: 32px 1fr auto; gap: 10px; padding: 12px 14px; }
  .pc-row .pc-bar, .pc-row .pc-num { display: none; }
}

/* ============== NAV UTILITIES (lang + theme) ============== */
.nav-utils {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Subtle language dropdown (no flags) */
.lang-switch { position: relative; display: inline-flex; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  padding: 6px 9px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.lang-btn:hover { color: var(--ink); background: var(--line); }
.lang-btn[aria-expanded="true"] { color: var(--ink); background: var(--line); border-color: var(--line-2); }
.lang-caret { opacity: .7; transition: transform .18s ease; }
.lang-btn[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 150px;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0,0,0,.16);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lang-menu[hidden] { display: none; }
.lang-opt {
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
  transition: color .12s ease, background .12s ease;
}
.lang-opt:hover { color: var(--ink); background: var(--line); }
.lang-opt.is-active { color: var(--ink); background: var(--line); font-weight: 500; }

/* ====================== THEME TOGGLE ====================== */
.theme-toggle {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-mid);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink); }
.theme-toggle svg { display: block; }
/* dark (default) shows the sun — click to go light */
.theme-toggle .t-moon { display: none; }
html[data-theme="light"] .theme-toggle .t-sun { display: none; }
html[data-theme="light"] .theme-toggle .t-moon { display: block; }

/* ============================================================
   Component fixes
   Surfaces with an --ink background are light surfaces on the
   dark theme (text flips dark), and dark surfaces in white mode
   (text flips back to white).
============================================================ */
.peek-try,
.demo-aibadge,
.row-toast,
.syn-core,
.vch.on,
.lt,
.wf-node.ai .wf-nh,
.wfn.out-node .wfn-h,
.wni.out { color: var(--bg-dark); }

html[data-theme="light"] .peek-try,
html[data-theme="light"] .demo-aibadge,
html[data-theme="light"] .row-toast,
html[data-theme="light"] .syn-core,
html[data-theme="light"] .vch.on,
html[data-theme="light"] .lt,
html[data-theme="light"] .wf-node.ai .wf-nh,
html[data-theme="light"] .wfn.out-node .wfn-h,
html[data-theme="light"] .wni.out { color: #fff; }

.price.featured .price-name,
.price.featured .price-amount .per { color: rgba(23,23,33,0.66); }

/* White mode: featured pricing card is the dark "pop" card */
html[data-theme="light"] .price.featured { color: #fff; }
html[data-theme="light"] .price.featured .muted,
html[data-theme="light"] .price.featured .price-blurb,
html[data-theme="light"] .price.featured .price-list,
html[data-theme="light"] .price.featured .price-name,
html[data-theme="light"] .price.featured .price-amount .per { color: rgba(255,255,255,0.7); }
html[data-theme="light"] .price.featured .price-list b { color: #fff; }
html[data-theme="light"] .price.featured .price-list li { border-color: rgba(255,255,255,0.10); }

/* tick checkmark sits on an --ink dot */
/* .tick check now uses var(--accent) in both themes (see .tick li::after) */

/* dim overlay must stay dark, never become a light tint */
.mega-backdrop { background: rgba(0,0,0,0.55); }

/* ====================== FORM ERROR ====================== */
.form-error {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--err) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--err) 24%, transparent);
  color: var(--err);
  font-size: 14px;
  line-height: 1.5;
}

/* ====================== COOKIE CONSENT ====================== */
.consent-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: auto;
  max-width: 460px;
  z-index: 200;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(20px);
  animation: consentIn 0.42s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}
@keyframes consentIn {
  to { opacity: 1; transform: translateY(0); }
}
.consent-banner.hiding {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  animation: none;
}
.consent-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-mid);
}
.consent-text a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.consent-banner button {
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.consent-banner .consent-essential:hover { background: var(--bg); }
.consent-banner .consent-all {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.consent-banner .consent-all:hover { transform: translateY(-1px); }
@media (max-width: 520px) {
  .consent-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
    max-width: none;
    padding: 14px 16px;
    border-radius: 12px;
  }
  .consent-actions { justify-content: stretch; }
  .consent-banner button { flex: 1; padding: 11px 14px; }
}

/* ============================================================
   Accessibility — visible focus ring for keyboard users.
   Applies to anything except inputs (which have their own
   custom focus style with box-shadow). Mouse clicks do not
   trigger this thanks to :focus-visible.
============================================================ */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
}
#main:focus {
  outline: none;
  outline-offset: 0;
}
/* When user activates the skip link, the main region gets a soft inset cue */
#main:focus-visible {
  outline: 2px dashed var(--ink);
  outline-offset: 6px;
}

/* ============================================================
   No-JS / progressive-enhancement: keep the mobile burger area
   showing the Book a demo CTA even before nav.js boots. The
   nav.js script replaces this with the full burger menu once it
   runs. This protects against JS-blocked / slow-loading users.
============================================================ */
@media (max-width: 860px) {
  .nav-cta { display: flex !important; }
  .nav-cta .link { display: none; }   /* hide "Sign in" but keep the CTA */
  /* Once nav.js boots, the burger sheet carries the CTA — reclaim that space
     so the top bar (brand + language/theme + burger) never overflows. */
  #site-nav.nav-ready .nav-cta { display: none !important; }
  /* Keep the language + theme controls compact on small screens. */
  .nav-utils { gap: 6px; }
  .lang-btn { padding: 5px 7px; }
}

/* Hero lead width — replaces inline style="width:644px" which overflowed on mobile */
.hero .lead.lead-cap {
  max-width: 644px;
  width: 100%;
}
