@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/IBMPlexSansVariable.woff2") format("woff2");
}

:root {
  --color-primary: #0f172a;
  --color-on-primary: #ffffff;
  --color-secondary: #334155;
  --color-accent: #0369a1;
  --color-accent-dark: #075985;
  --color-accent-tint: #e0f2fe;
  --color-background: #f8fafc;
  --color-foreground: #020617;
  --color-muted: #eef2f6;
  --color-border: #e2e8f0;
  --color-white: #ffffff;
  --color-destructive: #dc2626;
  --color-destructive-tint: #fee2e2;
  --color-warning: #b45309;
  --color-warning-tint: #fef3c7;
  --color-success: #15803d;
  --color-success-tint: #dcfce7;

  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(2, 6, 23, 0.05), 0 1px 1px rgba(2, 6, 23, 0.03);
  --shadow-md: 0 8px 20px -6px rgba(2, 6, 23, 0.1), 0 2px 6px -2px rgba(2, 6, 23, 0.05);
  --shadow-lg: 0 30px 60px -20px rgba(2, 6, 23, 0.25), 0 10px 20px -10px rgba(2, 6, 23, 0.1);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;

  --max-width: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-foreground);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 16px;
}

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

h1, h2, h3 {
  font-family: var(--font-sans);
  color: var(--color-primary);
  line-height: 1.15;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
p { margin: 0 0 12px; color: var(--color-secondary); }
p:last-child { margin-bottom: 0; }

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

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

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top var(--duration-base) var(--ease-out);
}
.skip-link:focus { top: 12px; }

.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }

/* Fixed bottom action bar — mobile only, see the max-width:720px block */
.mobile-cta-bar { display: none; }

/* Cookie/analytics consent banner — PostHog never loads until the visitor
   accepts (see analytics.js); this is the ask, not a post-hoc notice. Reuses
   the dark .cta-section color language so it reads as a system-level bar,
   distinct from the light mobile-cta-bar underneath it. */
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: var(--color-primary);
  box-shadow: 0 -12px 24px -18px rgba(2, 6, 23, 0.35);
}
.consent-banner[hidden] { display: none; }
.consent-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 16px 24px;
}
.consent-text { font-size: 0.86rem; color: rgba(255, 255, 255, 0.8); margin: 0; max-width: 620px; }
.consent-text a { color: var(--color-white); text-decoration: underline; text-underline-offset: 2px; }
.consent-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.consent-decline {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}
.consent-decline:hover { color: var(--color-white); }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: 90ms; }
.reveal-delay-2.is-visible { transition-delay: 180ms; }
.reveal-delay-3.is-visible { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.02), 0 8px 24px -16px rgba(2, 6, 23, 0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  color: var(--color-primary);
  margin-right: auto;
}
.brand-mark { border-radius: 6px; }
.brand-name { font-size: 1.05rem; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  position: relative;
  padding-bottom: 3px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: right var(--duration-base) var(--ease-out);
}
.nav a:hover { color: var(--color-primary); }
.nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* Language switcher */
.lang-switcher { position: relative; }
.lang-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color var(--duration-base) var(--ease-out);
}
.lang-trigger:hover { border-color: var(--color-secondary); }
.lang-trigger .icon:first-child { width: 1rem; height: 1rem; color: var(--color-secondary); }
.lang-trigger .icon-caret { width: 0.75rem; height: 0.75rem; transition: transform var(--duration-base) var(--ease-out); }
.lang-switcher.open .lang-trigger .icon-caret { transform: rotate(180deg); }
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 6px;
  margin: 0;
  list-style: none;
  z-index: 70;
}
.lang-switcher.open .lang-menu { display: block; }
.lang-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  text-align: left;
}
.lang-menu button:hover { background: var(--color-background); }
.lang-check { width: 1rem; height: 1rem; color: var(--color-accent); opacity: 0; flex-shrink: 0; }
.lang-menu button[aria-selected="true"] .lang-check { opacity: 1; }

/* Prevent a flash of the wrong language before the first translation applies */
html.i18n-loading body { opacity: 0; }
body { opacity: 1; transition: opacity 180ms ease; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-primary);
  padding: 0;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out), transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}
.btn .icon { width: 1em; height: 1em; transition: transform var(--duration-base) var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-lg { padding: 13px 26px; font-size: 0.95rem; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 1px 2px rgba(3, 105, 161, 0.15);
}
.btn-primary:hover { background: var(--color-accent-dark); box-shadow: var(--shadow-md); }
.btn-primary:hover .icon { transform: translateX(3px); }
.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-secondary); background: var(--color-white); }
.btn-invert { background: var(--color-white); color: var(--color-primary); }
.btn-invert:hover { background: var(--color-accent-tint); }
.btn-invert:hover .icon { transform: translateX(3px); }

/* Sections */
.section { padding: 96px 0; scroll-margin-top: 90px; }
.section-alt { background: var(--color-white); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 14px;
}
.section-label-inverse { color: #7dd3fc; }
.section-head h2 { margin-bottom: 14px; }
.section-lead { font-size: 1.05rem; }

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

/* Icon badges */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-accent-tint);
  color: var(--color-accent);
  margin-bottom: 16px;
}
/* Cards */
.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out);
}
.section-alt .feature-card { background: var(--color-background); }
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: #cbd5e1;
}
.feature-card p { font-size: 0.94rem; }

/* Problem list — plain numbered rows instead of icon-badge cards; six short
   pain points read better as an editorial list than a repeated card grid. */
.problem-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
  border-bottom: 1px solid var(--color-border);
}
.problem-row {
  display: flex;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--color-border);
}
.problem-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  flex-shrink: 0;
  min-width: 36px;
}
.problem-body h3 { margin-bottom: 6px; }
.problem-body p { font-size: 0.94rem; }

/* Suite hero panel — a compact "the suite at a glance" list reusing the
   .product-card shell, rows styled to echo .doc-row without being coupled
   to document-status semantics (Live/Coming soon isn't Missing/Requested). */
.suite-row-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.suite-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  transition: background var(--duration-base) var(--ease-out);
}
.suite-row:hover { background: var(--color-background); }
.suite-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-white);
  background: hsl(var(--suite-hue, 210) 55% 45%);
  flex-shrink: 0;
}
.suite-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.suite-name-row { font-weight: 700; font-size: 0.87rem; color: var(--color-primary); }
.suite-tagline-row { font-size: 0.78rem; color: #64748b; }
.suite-status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  white-space: nowrap;
}
.suite-status-pill-live { background: var(--color-success-tint); color: var(--color-success); }
.suite-status-pill-soon { background: var(--color-muted); color: #64748b; }

/* Product atoms shared by the story section and the selector panels below —
   status pill, capability bullets, CTA link, "built on X" tag, icon badge.
   Kept independent of any card/grid wrapper so both contexts can reuse them. */
.suite-product-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: hsl(var(--suite-hue, 210) 85% 95%);
  color: hsl(var(--suite-hue, 210) 55% 40%);
}
.suite-product-status {
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  white-space: nowrap;
}
.suite-product-status-live { background: var(--color-success-tint); color: var(--color-success); }
.suite-product-status-soon { background: var(--color-muted); color: #64748b; }
.suite-product-features { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.suite-product-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--color-secondary); }
.suite-feature-mark { width: 5px; height: 5px; border-radius: 50%; background: var(--color-accent); flex-shrink: 0; margin-top: 7px; }
.suite-product-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.suite-product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-accent);
}
.suite-product-link .icon { width: 1em; height: 1em; transition: transform var(--duration-base) var(--ease-out); }
.suite-product-link:hover .icon { transform: translateX(3px); }
.suite-product-connector {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
}
.suite-product-connector .icon { width: 14px; height: 14px; }

/* Hero hub visual — an abstract "one hub, three products" diagram instead of
   a literal app screenshot, so the suite landing page reads as its own thing
   rather than a reskin of documents.html's hero mockup. Reuses the dashed
   .suite-flow-path connector motif on a hub-and-spoke SVG. */
.hero-visual-hub { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1 / 1; margin: 0 auto; }
.hub-connector-svg { z-index: 1; }
.hub-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  padding: 12px;
}
.hub-core-mark { font-weight: 700; font-size: 1.05rem; color: var(--color-primary); letter-spacing: -0.01em; }
.hub-core-sub { font-size: 0.7rem; color: #64748b; line-height: 1.3; }
.hub-node {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 10px 16px 10px 10px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.hub-node-live { box-shadow: var(--shadow-md), 0 0 0 3px var(--color-accent-tint); }
.hub-node-top { top: 4%; left: 50%; transform: translateX(-50%); }
.hub-node-left { bottom: 6%; left: 2%; }
.hub-node-right { bottom: 6%; right: 2%; }
.hub-node-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: hsl(var(--suite-hue, 210) 85% 95%);
  color: hsl(var(--suite-hue, 210) 55% 40%);
  flex-shrink: 0;
}
.hub-node-icon .icon { width: 20px; height: 20px; }
.hub-node-text { display: flex; flex-direction: column; gap: 2px; }
.hub-node-name { font-size: 0.85rem; font-weight: 700; color: var(--color-primary); }
.hub-node-status { font-size: 0.7rem; font-weight: 600; color: #94a3b8; }
.hub-node-status-live { color: var(--color-success); }

/* Cinematic product story — a full-viewport sticky panel per product where
   scrolling crossfades a relatable pain-point question into the product's
   pitch + CTA, alternating sides per product for rhythm. script.js drives
   --beat-q-opacity/--beat-a-opacity (plus matching -shift vars) as a
   continuous function of scroll position within each .story-product; this
   stylesheet only reacts to them via transform/opacity, and the reduced-
   motion block below fully overrides the mechanism to a plain static stack. */
.story { position: relative; background: var(--color-white); }
.story-product { position: relative; height: 200vh; }
.story-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.story-blob {
  position: absolute;
  top: 50%;
  width: min(58vw, 620px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(var(--suite-hue, 210) 85% 92%) 0%, hsl(var(--suite-hue, 210) 85% 96%) 55%, transparent 78%);
  transform: translateY(-50%);
  z-index: 0;
}
.story-product[data-align="right"] .story-blob { left: -12%; }
.story-product[data-align="left"] .story-blob { right: -12%; }
.story-frame { position: relative; z-index: 1; width: 100%; max-width: 560px; padding: 0 24px; }
.story-product[data-align="right"] .story-frame { margin-left: auto; margin-right: 6%; text-align: right; }
.story-product[data-align="left"] .story-frame { margin-right: auto; margin-left: 6%; text-align: left; }
.story-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin: 0 0 20px;
}
.story-product[data-align="right"] .story-kicker { justify-content: flex-end; }
.story-kicker-num { color: var(--color-accent); }
.story-beat-stack { position: relative; min-height: 300px; }
.story-beat {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  will-change: opacity, transform;
}
.story-product[data-align="right"] .story-beat { align-items: flex-end; }
.story-product[data-align="left"] .story-beat { align-items: flex-start; }
.story-beat-q { opacity: var(--beat-q-opacity, 1); transform: translateY(var(--beat-q-shift, 0px)); }
.story-beat-a { opacity: var(--beat-a-opacity, 0); transform: translateY(var(--beat-a-shift, 24px)); }
.story-question { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.25; margin: 0; }
.story-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: hsl(var(--suite-hue, 210) 85% 92%);
  color: hsl(var(--suite-hue, 210) 55% 40%);
}
.story-icon .icon { width: 24px; height: 24px; }
.story-beat-a h3 { font-size: 1.6rem; margin: 0; }
.story-beat-a p { font-size: 1.05rem; color: var(--color-secondary); max-width: 440px; margin: 0; }
.story-status {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--color-muted);
  color: #64748b;
}
@media (prefers-reduced-motion: reduce) {
  .story-product { height: auto; }
  .story-sticky { position: static; height: auto; display: block; padding: 64px 0; }
  .story-blob { display: none; }
  .story-beat-stack { min-height: 0; }
  .story-beat { position: static; opacity: 1 !important; transform: none !important; margin-bottom: 28px; }
  .story-beat-a { margin-bottom: 0; }
}

/* Product overview selector — a vertical list on the left; clicking an item
   crossfades the panel on the right instead of navigating away, so visitors
   can compare all three products without losing their place on the page. */
.suite-selector {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.suite-selector-list { display: flex; flex-direction: column; border-right: 1px solid var(--color-border); background: var(--color-background); }
.suite-selector-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px 20px;
  border: none;
  border-left: 3px solid transparent;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out);
}
.suite-selector-item + .suite-selector-item { border-top: 1px solid var(--color-border); }
.suite-selector-item:hover { background: var(--color-muted); }
.suite-selector-item.is-active { background: var(--color-white); border-left-color: hsl(var(--suite-hue, 210) 65% 45%); }
.suite-selector-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: hsl(var(--suite-hue, 210) 85% 95%);
  color: hsl(var(--suite-hue, 210) 55% 40%);
  flex-shrink: 0;
}
.suite-selector-icon .icon { width: 18px; height: 18px; }
.suite-selector-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.suite-selector-name { font-size: 0.92rem; font-weight: 700; color: var(--color-primary); }
.suite-selector-short { font-size: 0.78rem; color: #64748b; }
.suite-selector-panels { position: relative; padding: 40px; min-height: 360px; }
.suite-selector-panel { opacity: 0; transform: translateY(6px); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.suite-selector-panel[hidden] { display: none; }
.suite-selector-panel.is-active { opacity: 1; transform: translateY(0); }
.suite-selector-panel .suite-product-status { margin-bottom: 4px; }
.suite-selector-panel h3 { font-size: 1.3rem; margin: 10px 0 8px; }
.suite-selector-panel > p { font-size: 1rem; color: var(--color-secondary); margin: 0 0 20px; max-width: 520px; }
@media (prefers-reduced-motion: reduce) {
  .suite-selector-panel { transition: none; }
}

/* Hero */
.hero { position: relative; padding-top: 72px; overflow: hidden; scroll-margin-top: 90px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding-bottom: 80px;
}
.suite-crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 16px;
  transition: color var(--duration-base) var(--ease-out);
}
.suite-crumb:hover { color: var(--color-accent); }
.suite-crumb-mark { width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); flex-shrink: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent-tint);
  color: var(--color-accent-dark);
  padding: 7px 14px 7px 10px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.5rem); }
.text-accent { color: var(--color-accent); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--color-secondary);
  max-width: 480px;
  margin-top: 22px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }

.trust-strip {
  font-size: 0.82rem;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.trust-tags {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--color-secondary);
}
.trust-tags .dot { color: var(--color-border); font-weight: 400; }

/* Suite connector lines — a dashed SVG path with an animated marching-ants
   offset, reused behind the hero visual and the products grid so the same
   "data flowing between products" motif ties both together. */
.suite-connector-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;
  pointer-events: none;
}
.suite-flow-path {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 5 7;
  opacity: 0.4;
  animation: suiteFlowDash 1.6s linear infinite;
}
@keyframes suiteFlowDash {
  to { stroke-dashoffset: -24; }
}
@media (prefers-reduced-motion: reduce) {
  .suite-flow-path { animation: none; }
}

/* Hero product card mockup */
.hero-visual { position: relative; }
.hero-visual-stack { overflow: visible; }
.suite-peek-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 178px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 10px 14px 10px 10px;
  box-shadow: var(--shadow-md);
}
.suite-peek-card-1 { top: -22px; right: -18px; animation: suitePeekFloat1 6s ease-in-out infinite; }
.suite-peek-card-2 { bottom: -20px; left: -22px; animation: suitePeekFloat2 6s ease-in-out infinite 1.4s; }
@keyframes suitePeekFloat1 {
  0%, 100% { transform: rotate(5deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-6px); }
}
@keyframes suitePeekFloat2 {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .suite-peek-card-1, .suite-peek-card-2 { animation: none; transform: none; }
}
.suite-peek-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: hsl(var(--suite-hue, 210) 85% 95%);
  color: hsl(var(--suite-hue, 210) 55% 40%);
  flex-shrink: 0;
}
.suite-peek-icon .icon { width: 18px; height: 18px; }
.suite-peek-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.suite-peek-name { font-size: 0.8rem; font-weight: 700; color: var(--color-primary); white-space: nowrap; }
.suite-peek-status { font-size: 0.68rem; font-weight: 600; color: #94a3b8; }
.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  position: relative;
  z-index: 2;
}
.product-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.product-card-title { font-weight: 700; color: var(--color-primary); font-size: 0.95rem; }
.product-card-count {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-accent);
  background: var(--color-accent-tint);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.doc-row-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.doc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  transition: background var(--duration-base) var(--ease-out);
}
.doc-row:hover { background: var(--color-background); }
.doc-row-pulse { background: var(--color-accent-tint); }
.doc-info { transition: opacity 200ms var(--ease-out); }
.doc-row-swapping .doc-info { opacity: 0; }
.doc-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-white);
  background: hsl(var(--avatar-hue, 210) 55% 45%);
  flex-shrink: 0;
  transition: background 200ms var(--ease-out);
}
.doc-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.doc-supplier { font-weight: 700; font-size: 0.87rem; color: var(--color-primary); }
.doc-type { font-size: 0.78rem; color: #64748b; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  transition: background var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
}
.status-badge .icon { width: 0.95em; height: 0.95em; }
.status-missing { background: var(--color-destructive-tint); color: var(--color-destructive); }
.status-requested { background: var(--color-warning-tint); color: var(--color-warning); }
.status-received { background: var(--color-success-tint); color: var(--color-success); }
.product-card-note {
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: right;
  margin-top: 14px;
  margin-bottom: 0;
}

.floating-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 9px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
  z-index: 3;
  animation: float 5s ease-in-out infinite;
}
.floating-chip .icon { color: var(--color-accent); }
.floating-chip-1 { top: -14px; right: 18px; animation-delay: 0s; }
.floating-chip-2 { bottom: -16px; left: -10px; animation-delay: 1.2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@media (prefers-reduced-motion: reduce) {
  .floating-chip { animation: none; }
}

/* Stat strip */
.stat-strip { border-top: 1px solid var(--color-border); background: var(--color-white); }
.stat-strip-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 30px 30px 30px 0; border-right: 1px solid var(--color-border); }
.stat:not(:first-child) { padding-left: 32px; }
.stat:last-child { border-right: none; }
.stat-num {
  display: block;
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 0.87rem; color: var(--color-secondary); }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--color-border);
}
.step { position: relative; }
.step-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: block;
  font-weight: 700;
  font-size: 0.76rem;
  color: #94a3b8;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.step p { font-size: 0.92rem; }

/* Step hover demos — a small graphical preview of how each step works.
   Desktop-only: needs real hover, a fine pointer, and the single-row
   4-column layout (the 2-row tablet grid and mobile timeline would collide
   with an absolutely-positioned panel underneath). */
.step-demo {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -124px;
  width: 248px;
  margin-top: 18px;
  padding: 16px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out), visibility var(--duration-base);
  pointer-events: none;
  z-index: 20;
}
.step-demo::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--color-white);
  border-left: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
  transform: translateX(-50%) rotate(45deg);
}
.step-demo-stage { position: relative; height: 92px; overflow: hidden; }

/* Edge columns: anchor to the step's own edge instead of centering, so the
   panel can't overflow past the container. */
.step:first-child .step-demo { left: 0; margin-left: 0; }
.step:first-child .step-demo::before { left: 28px; }
.step:last-child .step-demo { left: auto; right: 0; margin-left: 0; }
.step:last-child .step-demo::before { left: auto; right: 28px; }

@media (max-width: 980px) {
  .step-demo { display: none; }
}

@media (hover: hover) and (pointer: fine) and (min-width: 981px) {
  .step:hover .step-demo,
  .step:focus-within .step-demo {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .step:hover .step-demo *,
  .step:focus-within .step-demo * {
    animation-play-state: running;
  }
}

/* Step 1 demo — requirement rows build up and get checked off */
.demo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 22px;
  margin-bottom: 9px;
  animation-duration: 4.5s;
  animation-iteration-count: infinite;
  animation-timing-function: var(--ease-out);
  animation-play-state: paused;
}
.demo-row:last-child { margin-bottom: 0; }
.demo-dot { width: 15px; height: 15px; border-radius: 50%; background: hsl(var(--mini-hue, 210) 55% 45%); flex-shrink: 0; }
.demo-bar { flex: 1; height: 7px; border-radius: 4px; background: var(--color-border); }
.demo-check {
  width: 15px;
  height: 15px;
  color: var(--color-success);
  flex-shrink: 0;
  animation-duration: 4.5s;
  animation-iteration-count: infinite;
  animation-timing-function: var(--ease-out);
  animation-play-state: paused;
}
.demo-row-a { animation-name: demoRowA; }
.demo-row-b { animation-name: demoRowB; }
.demo-row-c { animation-name: demoRowC; }
.demo-check-a { animation-name: demoCheckA; }
.demo-check-b { animation-name: demoCheckB; }
.demo-check-c { animation-name: demoCheckC; }
@keyframes demoRowA { 0% { opacity: 0; transform: translateY(6px); } 9% { opacity: 1; transform: translateY(0); } 84% { opacity: 1; transform: translateY(0); } 96%, 100% { opacity: 0; transform: translateY(6px); } }
@keyframes demoRowB { 0%, 18% { opacity: 0; transform: translateY(6px); } 27% { opacity: 1; transform: translateY(0); } 84% { opacity: 1; transform: translateY(0); } 96%, 100% { opacity: 0; transform: translateY(6px); } }
@keyframes demoRowC { 0%, 36% { opacity: 0; transform: translateY(6px); } 45% { opacity: 1; transform: translateY(0); } 84% { opacity: 1; transform: translateY(0); } 96%, 100% { opacity: 0; transform: translateY(6px); } }
@keyframes demoCheckA { 0%, 15% { opacity: 0; transform: scale(0.4); } 23% { opacity: 1; transform: scale(1); } 84% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(0.4); } }
@keyframes demoCheckB { 0%, 33% { opacity: 0; transform: scale(0.4); } 41% { opacity: 1; transform: scale(1); } 84% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(0.4); } }
@keyframes demoCheckC { 0%, 51% { opacity: 0; transform: scale(0.4); } 59% { opacity: 1; transform: scale(1); } 84% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(0.4); } }

/* Step 2 demo — a scan line sweeps down the list, calling out each status */
.step-demo-scan { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.demo-scan-row { display: flex; align-items: center; gap: 8px; }
.step-demo-scan .demo-bar { flex: 1; }
.demo-status { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.demo-status-missing { background: var(--color-destructive); }
.demo-status-requested { background: var(--color-warning); }
.demo-status-received { background: var(--color-success); }
.demo-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: -30px;
  height: 30px;
  background: linear-gradient(180deg, transparent, var(--color-accent-tint), transparent);
  animation-name: demoScanSweep;
  animation-duration: 4.5s;
  animation-iteration-count: infinite;
  animation-timing-function: var(--ease-out);
  animation-play-state: paused;
}
@keyframes demoScanSweep {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: 1; }
  50% { transform: translateY(122px); opacity: 1; }
  58%, 100% { transform: translateY(122px); opacity: 0; }
}

/* Step 3 demo — a request travels from you to the supplier, then a reminder pings */
.step-demo-send { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.demo-node { width: 20px; height: 20px; border-radius: 50%; background: var(--color-muted); border: 1px solid var(--color-border); flex-shrink: 0; }
.demo-node-you { background: var(--color-accent-tint); border-color: var(--color-accent); }
.demo-plane {
  position: absolute;
  top: 50%;
  left: 24px;
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  transform: translateY(-50%) translateX(0);
  animation-name: demoPlaneFly;
  animation-duration: 4.5s;
  animation-iteration-count: infinite;
  animation-timing-function: var(--ease-out);
  animation-play-state: paused;
}
.demo-ping {
  position: absolute;
  top: 42%;
  right: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-warning);
  animation-name: demoPing;
  animation-duration: 4.5s;
  animation-iteration-count: infinite;
  animation-timing-function: var(--ease-out);
  animation-play-state: paused;
}
@keyframes demoPlaneFly {
  0%, 6% { opacity: 0; transform: translateY(-50%) translateX(0); }
  14% { opacity: 1; }
  55% { opacity: 1; transform: translateY(-50%) translateX(152px); }
  63%, 100% { opacity: 0; transform: translateY(-50%) translateX(152px); }
}
@keyframes demoPing {
  0%, 60% { opacity: 0; transform: scale(0.6); }
  68% { opacity: 1; transform: scale(1.3); }
  78% { opacity: 1; transform: scale(1); }
  92%, 100% { opacity: 0; transform: scale(1); }
}

/* Step 4 demo — a file settles into place, then its expiry is tracked over time */
.step-demo-store { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.demo-doc {
  width: 26px;
  height: 26px;
  color: var(--color-accent);
  animation-name: demoDocDrop;
  animation-duration: 4.5s;
  animation-iteration-count: infinite;
  animation-timing-function: var(--ease-out);
  animation-play-state: paused;
}
.demo-tray { width: 64px; height: 6px; border-radius: 3px; background: var(--color-border); }
.demo-progress { width: 120px; height: 6px; border-radius: 3px; background: var(--color-muted); overflow: hidden; }
.demo-progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--color-success);
  border-radius: 3px;
  transform-origin: left;
  transform: scaleX(0);
  animation-name: demoProgressFill;
  animation-duration: 4.5s;
  animation-iteration-count: infinite;
  animation-timing-function: var(--ease-out);
  animation-play-state: paused;
}
@keyframes demoDocDrop {
  0% { opacity: 0; transform: translateY(-16px); }
  16% { opacity: 1; transform: translateY(0); }
  24% { transform: translateY(-2px); }
  30%, 84% { opacity: 1; transform: translateY(0); }
  96%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes demoProgressFill {
  0%, 30% { transform: scaleX(0); opacity: 1; }
  84% { transform: scaleX(1); opacity: 1; }
  96%, 100% { transform: scaleX(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .step-demo * { animation: none !important; }
  .demo-row, .demo-check { opacity: 1; transform: none; }
  .demo-scan-line { display: none; }
  .demo-plane { opacity: 0; }
  .demo-ping { opacity: 1; transform: scale(1); }
  .demo-doc { opacity: 1; transform: none; }
  .demo-progress-fill { transform: scaleX(1); opacity: 1; }
}

/* Who it's for — a flat spec-sheet list, not a pill cloud */
.segment-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
  border-bottom: 1px solid var(--color-border);
}
.segment-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--color-primary);
}
.segment-mark {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* CTA — compact banner, not a full hero-sized block */
.cta-section {
  background: var(--color-primary);
  background-image: radial-gradient(circle at 15% 20%, rgba(3, 105, 161, 0.28), transparent 55%);
  padding-top: 56px;
  color: var(--color-white);
  scroll-margin-top: 90px;
}
.cta-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 56px;
  padding-bottom: 40px;
}
.cta-text { max-width: 440px; }
.cta-text h2 { color: var(--color-white); font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 8px; }
.cta-text .section-label { margin-bottom: 8px; }
.cta-sub { color: #94a3b8; font-size: 0.95rem; }
.cta-form-wrap { flex: 0 0 auto; }
.early-access-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  padding: 3px 3px 3px 16px;
  transition: border-color var(--duration-base) var(--ease-out);
}
.input-group:focus-within { border-color: var(--color-white); }
.input-icon { color: #7dd3fc; width: 1rem; height: 1rem; }
.input-group input {
  width: 220px;
  padding: 9px 4px;
  border: none;
  background: transparent;
  color: var(--color-white);
  font-family: inherit;
  font-size: 0.94rem;
}
.input-group input::placeholder { color: #64748b; }
.input-group input:focus { outline: none; }
.form-note { font-size: 0.76rem; color: #64748b; margin: 8px 0 0; }

/* Footer (lives inside the navy CTA section, not a separate white block) */
.site-footer { padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
/* Standalone legal pages have no surrounding navy section, so the footer supplies its own */
.legal-footer { background: var(--color-primary); padding: 32px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; }
.footer-brand .brand-name { font-weight: 700; color: var(--color-white); font-size: 0.92rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a,
.footer-links button {
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}
.footer-links a:hover,
.footer-links button:hover { color: var(--color-white); }
.footer-meta { font-size: 0.82rem; color: #64748b; display: flex; align-items: center; gap: 8px; }
.footer-divider { color: #475569; }
.footer-email { color: #94a3b8; font-weight: 600; }
.footer-email:hover { color: var(--color-white); }

/* Legal pages */
.legal-main { padding: 56px 0 100px; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 28px;
}
.legal-back .icon { width: 1em; height: 1em; }
.legal-header h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 10px; }
.legal-updated { color: #64748b; font-size: 0.9rem; margin-bottom: 40px; }
.legal-content { max-width: 720px; }
.legal-content h2 { font-size: 1.3rem; margin-top: 44px; margin-bottom: 12px; scroll-margin-top: 96px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.02rem; margin-top: 24px; }
.legal-content p, .legal-content li { color: var(--color-secondary); font-size: 0.98rem; }
.legal-content ul { padding-left: 22px; margin: 0 0 12px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { font-weight: 600; }
.legal-note {
  background: var(--color-accent-tint);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 0.9rem;
  color: var(--color-accent-dark);
  margin-bottom: 40px;
}
.legal-note p { color: var(--color-accent-dark); }
.legal-note p:last-child { margin-bottom: 0; }

.legal-toc {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 40px;
  max-width: 720px;
}
.legal-toc-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 14px;
}
.legal-toc ol {
  list-style: decimal;
  margin: 0;
  padding-left: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
}
.legal-toc li { margin-bottom: 9px; font-size: 0.88rem; }
.legal-toc a { color: var(--color-secondary); font-weight: 600; }
.legal-toc a:hover { color: var(--color-accent); }

/* Apply page */
.apply-main { padding: 56px 0 100px; }
.apply-container { max-width: 640px; }
.apply-header { margin-bottom: 40px; }
.apply-header h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 10px; }
.apply-header .section-lead { max-width: 560px; }

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

.apply-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}
.form-section { margin-bottom: 28px; }
.form-section-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row .form-field { margin-bottom: 0; }
.form-section .form-field:last-child { margin-bottom: 0; }
.form-field label { font-size: 0.87rem; font-weight: 700; color: var(--color-primary); }
.form-required { color: var(--color-destructive); }
.form-optional { font-weight: 400; color: #94a3b8; }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-foreground);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  min-height: 44px;
  transition: border-color var(--duration-base) var(--ease-out), background var(--duration-base) var(--ease-out);
}
.form-field textarea { resize: vertical; min-height: 96px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: var(--color-white);
}
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 34px;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.87rem;
  color: var(--color-secondary);
  margin-bottom: 20px;
  cursor: pointer;
}
.form-consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--color-accent); flex-shrink: 0; }

.form-error-banner {
  background: var(--color-destructive-tint);
  color: var(--color-destructive);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.form-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.form-actions .form-note { margin: 0; }
.form-note a { color: var(--color-accent); font-weight: 600; }

.apply-success {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 48px 32px;
  text-align: center;
}
.apply-success .icon-badge { margin: 0 auto 18px; }
.apply-success h2 { margin-bottom: 8px; }
.apply-success p { color: var(--color-secondary); margin-bottom: 24px; }

.icon-badge-success { background: var(--color-success-tint); color: var(--color-success); }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }

  /* Selector — narrower left column so the panel keeps breathing room. */
  .suite-selector { grid-template-columns: 240px 1fr; }
}

/* Mobile — a genuine mobile layout, not a squeezed desktop one:
   horizontal scroll-snap carousels instead of long card stacks, a fixed
   bottom action bar instead of a header button, a real timeline for steps,
   scrollable chip rows instead of wrapped pill blocks. */
@media (max-width: 720px) {
  body { padding-bottom: 76px; }

  /* Consent banner sits above the fixed mobile CTA bar rather than under or
     overlapping it — harmless extra gap on pages that don't have a CTA bar. */
  .consent-banner { bottom: 76px; }
  .consent-banner-inner { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 20px; }
  .consent-actions { justify-content: flex-end; }

  /* Nav */
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-primary { display: none; }
  .site-header.open .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 18px 24px 26px;
    border-bottom: 1px solid var(--color-border);
    gap: 16px;
  }

  /* Fixed bottom action bar replaces the header CTA on mobile */
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -12px 24px -18px rgba(2, 6, 23, 0.3);
  }
  .mobile-cta-bar .btn { width: 100%; padding: 13px 20px; font-size: 0.98rem; }

  /* Hero — tuned for phone, not shrunk desktop */
  .hero { padding-top: 20px; }
  .hero-grid { padding-bottom: 32px; gap: 28px; }
  .eyebrow { font-size: 0.7rem; padding: 5px 12px 5px 8px; margin-bottom: 16px; }
  .hero h1 { font-size: 1.85rem; }
  .hero-sub { font-size: 0.98rem; max-width: none; margin-top: 14px; margin-bottom: 22px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 4px; margin-bottom: 24px; }
  .hero-actions .btn-primary { width: 100%; }
  .hero-actions .btn-ghost {
    border: none;
    background: none;
    color: var(--color-accent);
    padding: 10px 4px;
  }
  .trust-strip { flex-direction: column; align-items: flex-start; gap: 8px; }
  .product-card { padding: 16px; }
  .floating-chip { display: none; }

  /* Stat strip — compact row, not stacked blocks with dividers */
  .stat-strip-inner { display: flex; }
  .stat { flex: 1; padding: 16px 6px; border-right: 1px solid var(--color-border); text-align: center; }
  .stat:last-child { border-right: none; }
  .stat-num { font-size: 1.1rem; }
  .stat-label { font-size: 0.66rem; line-height: 1.3; }

  /* Section rhythm, tighter and distinct from desktop */
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 28px; }
  .section-lead { font-size: 0.94rem; }

  /* Feature cards — horizontal scroll-snap carousel */
  .grid-3 {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin: 0 -24px;
    padding: 4px 24px 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .grid-3::-webkit-scrollbar { display: none; }
  .feature-card { flex: 0 0 80%; scroll-snap-align: start; }

  /* Problem list — single column on narrow screens */
  .problem-list { grid-template-columns: 1fr; }

  /* How it works — a real vertical timeline, not boxed cards */
  .steps { display: block; grid-template-columns: unset; margin-top: 24px; }
  .steps::before { display: none; }
  .step { display: flex; gap: 16px; padding-bottom: 26px; position: relative; }
  .step::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 44px;
    bottom: 0;
    width: 1px;
    background: var(--color-border);
  }
  .step:last-child::before { display: none; }
  .step:last-child { padding-bottom: 0; }
  .step-icon { margin-bottom: 0; flex-shrink: 0; }
  .step-body { flex: 1; min-width: 0; }
  .step-num { margin-bottom: 4px; }

  /* Who it's for — single-column list on narrow screens */
  .segment-grid { grid-template-columns: 1fr; }

  /* Hub visual — same diagram, smaller nodes so labels don't collide once
     the whole thing has shrunk to phone width; connector lines cut, same
     precedent as hiding .floating-chip on mobile elsewhere on this page. */
  .suite-connector-svg { display: none; }
  .hub-core { width: 120px; height: 120px; padding: 8px; }
  .hub-core-mark { font-size: 0.9rem; }
  .hub-core-sub { font-size: 0.62rem; }
  .hub-node { padding: 7px 12px 7px 7px; gap: 7px; }
  .hub-node-icon { width: 30px; height: 30px; }
  .hub-node-icon .icon { width: 16px; height: 16px; }
  .hub-node-name { font-size: 0.74rem; }
  .hub-node-status { font-size: 0.62rem; }

  /* Story — the alternating left/right skew needs room this viewport
     doesn't have; keep the per-product color but read everything flush left. */
  .story-product { height: 170vh; }
  .story-frame, .story-kicker, .story-beat {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }
  .story-blob { width: 80vw; }

  /* Selector — a horizontal scroll-snap tab row instead of a two-column
     layout, matching the .grid-3 carousel pattern used elsewhere on mobile */
  .suite-selector { grid-template-columns: 1fr; }
  .suite-selector-list { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--color-border); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .suite-selector-list::-webkit-scrollbar { display: none; }
  .suite-selector-item {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 16px;
    border-left: none;
    border-bottom: 3px solid transparent;
  }
  .suite-selector-item + .suite-selector-item { border-top: none; border-left: 1px solid var(--color-border); }
  .suite-selector-item.is-active { border-left-color: transparent; border-bottom-color: hsl(var(--suite-hue, 210) 65% 45%); }
  .suite-selector-item .suite-selector-short,
  .suite-selector-item .suite-product-status { display: none; }
  .suite-selector-panels { padding: 24px 20px; min-height: 0; }

  /* CTA + footer */
  .cta-section { padding-top: 40px; }
  .cta-compact { flex-direction: column; align-items: stretch; padding-bottom: 28px; gap: 20px; }
  .cta-text { max-width: none; }
  .early-access-form { flex-direction: column; align-items: stretch; }
  .input-group { width: 100%; }
  .input-group input { width: auto; }
  .early-access-form .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* Apply page */
  .apply-form { padding: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .form-actions { align-items: stretch; }
  .form-actions .btn { width: 100%; }
  .apply-success { padding: 36px 22px; }

  /* Legal page table of contents — single column on narrow screens */
  .legal-toc ol { grid-template-columns: 1fr; }
}
