/* Product module pages – shared styles
   Built to match Orcha marketing site (editorial direction). */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { font-size: var(--text-16); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--ink); color: var(--bg); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--space-32); }
.mono { font-family: var(--mono); }

/* ===== Nav (static, mirrors marketing nav) ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg), transparent 8%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: var(--space-10); font-weight: var(--weight-semibold); font-size: var(--text-19); letter-spacing: -0.025em; }
.logo-mark { width: 22px; height: 22px; border: 1.5px solid var(--accent); border-radius: 50%; display: inline-grid; place-items: center; }
.logo-mark::before { content:""; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.nav-links { display: flex; gap: var(--space-32); font-size: var(--text-14); color: var(--ink-2); align-items: center; position: relative; }
.nav-links > a, .nav-links > .nav-dd > a { padding: var(--space-6) var(--space-2); border-bottom: 1px solid transparent; transition: border-color .15s ease; }
.nav-links > a:hover, .nav-links > .nav-dd > a:hover { border-bottom-color: var(--ink); }
.nav-links > a.current, .nav-links > .nav-dd > a.current { color: var(--ink); border-bottom-color: var(--ink); }
.nav-cta { display: flex; gap: var(--space-10); align-items: center; }

/* Mobile nav: hamburger + drawer base styles (shared across all v3 pages).
   chrome.de.js wraps .nav-links + .nav-cta in <div class="nav-drawer"> and
   adds <button class="nav-toggle">. The @media(<=960px) drawer activation
   lives in responsive.css (currently linked only by de/index.html). */
.nav-drawer { display: contents; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-6);
  width: 40px;
  height: 40px;
  margin-left: var(--space-8);
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: var(--radius-2);
  transition: transform .2s ease, opacity .2s ease;
}
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dropdown (CSS-only) */
.nav-dd { position: relative; }
.nav-dd > a::after {
  content: ""; display: inline-block; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); margin-left: var(--space-6); opacity: 0.65;
}
.nav-dd-panel {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-4px);
  width: 560px;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-12);
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.04);
  padding: var(--space-20);
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 100;
}
.nav-dd-panel::before {
  content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px; background: var(--bg);
  border-left: 1px solid var(--line-2); border-top: 1px solid var(--line-2);
}
/* Invisible hover bridge: extends the panel's hit area up into the 14px gap
   so the cursor can travel from trigger → panel without losing :hover. */
.nav-dd-panel::after {
  content: ""; position: absolute;
  top: -16px; left: 0; right: 0; height: 16px;
}
.nav-dd:hover .nav-dd-panel, .nav-dd:focus-within .nav-dd-panel {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-dd-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--space-6) var(--space-12); margin-bottom: var(--space-10); border-bottom: 1px solid var(--line);
}
.nav-dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
/* Smaller dropdown variant — for menus with only a handful of items
   that don't need the 2-col module grid (e.g. "Why Orcha"). */
.nav-dd--simple .nav-dd-panel { width: 320px; padding: var(--space-12); }
.nav-dd--simple .nav-dd-grid { grid-template-columns: 1fr; }
.nav-dd-item {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-12) var(--space-16); padding-left: var(--space-24);
  border-radius: var(--radius);
  transition: background .15s ease;
}
.nav-dd-item:hover { background: var(--bg-2); }
.nav-dd-item.current { background: var(--bg-2); }
.nav-dd-item-title { font-size: var(--text-14); font-weight: var(--weight-medium); letter-spacing: -0.01em; color: var(--ink); }
.nav-dd-item-hint { font-size: var(--text-12); color: var(--muted); }
.nav-dd-beta {
  display: inline-block;
  margin-left: var(--space-6);
  padding: 1px 6px;
  background: color-mix(in oklab, var(--accent), transparent 90%);
  border: 1px solid color-mix(in oklab, var(--accent), transparent 70%);
  border-radius: var(--radius-pill);
  font-family: var(--mono); font-size: 9px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  vertical-align: middle;
}

/* Mobile-only lang switcher pinned at top of the drawer; the lang-switch
   inside .nav-cta is hidden at <=960px (see media block). */
.lang-switch-mobile { display: none; }
.nav-dd-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: var(--space-10); padding: var(--space-10) var(--space-16); border-radius: var(--radius);
  background: var(--bg-2); font-size: var(--text-13);
  transition: background .15s ease, color .15s ease;
}
.nav-dd-footer:hover { background: var(--ink); color: var(--bg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: var(--space-8); padding: var(--space-10) var(--space-16); border-radius: var(--radius-pill); font-size: var(--text-14); font-weight: var(--weight-medium); transition: transform .15s ease, background .15s ease, color .15s ease; }
.btn-ghost { color: var(--ink); border: 1px solid var(--ink); }
/* Hero "Book a demo" CTA — solid white so the hero dot pattern doesn't show through */
.btn-ghost[href*="calendar.app.google"] { background: var(--bg); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* Hero lede with checkmark bullets – used on all subpages */
.lede-bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-16); }
.lede-bullets li { display: flex; align-items: flex-start; gap: var(--space-16); }
.lede-bullets-icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); margin-top: var(--space-4); }

/* Body-level checklist bullets — smaller checkmark icon for inline feature copy */
.check-li { display: flex; align-items: flex-start; gap: var(--space-10); }
.check-li > svg {
  width: 18px; height: 18px; flex-shrink: 0;
  color: var(--accent); margin-top: var(--space-4);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-arrow::after {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  margin-left: var(--space-6);
  vertical-align: middle;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform .15s ease;
}
.btn:hover.btn-arrow::after { transform: translateX(3px); }

/* ===== Type system ===== */
.eyebrow { font-family: var(--mono); font-size: var(--text-11); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.h-display {
  font-weight: var(--weight-medium);
  font-size: clamp(40px, 4.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  /* Allow long German compounds to wrap at explicit break points (<br/> or &shy;)
     without auto-hyphenation chopping words like "Abschluss" mid-line. */
  overflow-wrap: break-word;
}
.h-section {
  font-weight: var(--weight-medium);
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.h-sub {
  font-weight: var(--weight-medium);
  font-size: var(--text-24);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.lede { font-size: var(--text-19); line-height: 1.5; color: var(--ink-2); max-width: 620px; letter-spacing: -0.005em; }
.italic-swap em { font-style: normal; font-weight: var(--weight-medium); color: var(--ink); background: linear-gradient(transparent 62%, color-mix(in oklab, var(--accent), transparent 78%) 0); padding: 0 0.08em; }

/* ===== Breadcrumb ===== */
.crumb {
  display: inline-flex; align-items: center; gap: var(--space-8);
  font-family: var(--mono); font-size: var(--text-11); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.crumb a { color: var(--muted); border-bottom: 1px dotted transparent; transition: color .15s ease; }
.crumb a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.crumb span.sep { opacity: 0.5; }

/* ===== Hero ===== */
.product-hero { padding: var(--space-80) 0 var(--space-80); }
/* Taller hero variant – fills at least 60% of the viewport, content centered */
.product-hero-tall { min-height: 60vh; display: flex; align-items: center; }
.product-hero-tall > .wrap { width: 100%; }

/* Animated viz: hold the streaming content area at a fixed height so rows
   cycling in/out don't change the mock's size and jump the page. */
[data-control-inbox] { height: 316px; overflow: hidden; }
/* Background contrast separates hero from the first content section on every product page */
.product-hero + section.p-section { background: var(--bg-2); }
.product-hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-80); align-items: start;
}
/* Prevent long words (e.g. "Dokumentenmanagement") from forcing the left column wider
   than its 1.1fr share. Without min-width:0, the grid item's intrinsic min-content
   wins and squeezes the right column. */
.product-hero-grid > * { min-width: 0; }
.product-hero-copy > * + * { margin-top: var(--space-24); }
.product-hero-meta { display: inline-flex; align-items: center; gap: var(--space-10); }
.product-hero-chip {
  display: inline-flex; align-items: center; gap: var(--space-8);
  padding: var(--space-6) var(--space-12); border-radius: var(--radius-pill);
  background: var(--bg-2); border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: var(--text-11); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
}
.product-hero-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.product-hero-ctas { display: inline-flex; gap: var(--space-10); align-items: center; }

/* Stat row */
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat {
  padding: var(--space-32) var(--space-32) var(--space-32) 0;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; padding-right: 0; }
.stat:not(:first-child) { padding-left: var(--space-32); }
.stat-big {
  font-size: clamp(44px, 4.4vw, 64px); font-weight: var(--weight-medium); letter-spacing: -0.03em; line-height: 1;
}
.stat-label { margin-top: var(--space-10); font-size: var(--text-13); color: var(--ink-2); line-height: 1.45; max-width: 280px; }

/* ===== Section ===== */
section.p-section { padding: var(--space-120) 0; }
.section-label { display: inline-flex; align-items: center; gap: var(--space-10); font-family: var(--mono); font-size: var(--text-11); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.section-label::before { content: ""; width: 24px; height: 1px; background: var(--accent); }

/* ===== Capability grid ===== */
.cap-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: var(--space-64);
}
.cap {
  padding: var(--space-40) var(--space-40) var(--space-40);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  position: relative;
}
.cap:nth-child(2n) { border-right: 0; }
.cap:nth-last-child(-n+2) { border-bottom: 0; }
.cap-num {
  font-family: var(--mono); font-size: var(--text-11); color: var(--muted);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.cap-title {
  margin-top: var(--space-10); font-size: var(--text-19); font-weight: var(--weight-medium); letter-spacing: -0.015em;
}
.cap-body {
  margin-top: var(--space-10); color: var(--ink-2); font-size: var(--text-15); line-height: 1.55;
  max-width: 440px;
}

/* ===== Payment-run mock visualization — mobile simplification =====
   The mock packs a header strip, 4 vendor rows, a 2-col stats block, and
   a footer pending-approval row into a feature-viz column. On phones the
   long monospace strings ("3% discount · €1.247 saved") wrap to 2-3
   lines each and the whole card becomes a wall of text. Hide the longer
   vendor rows + collapse the stats to one column. */
@media (max-width: 768px) {
  .mock[data-viz="payrun"] .mock-header { flex-wrap: wrap; gap: var(--space-4); font-size: var(--text-12); }
  .mock[data-viz="payrun"] .mock-header > span:last-child .viz-badge { display: none; }
  .mock[data-viz="payrun"] > div:nth-of-type(2) > div { font-size: var(--text-12); }
  /* Drop the ACME (Net · no discount) and "+ 25 more" rows on phones —
     the two savings rows above already make the point. */
  .mock[data-viz="payrun"] > div:nth-of-type(2) > div > div:nth-child(n+3) { display: none; }
  /* Stats: 2-col → 1-col stack. */
  .mock[data-viz="payrun"] > div:nth-of-type(3) { grid-template-columns: 1fr !important; gap: var(--space-12) !important; }
  .mock[data-viz="payrun"] > div:nth-of-type(3) > div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-12); }
  .mock[data-viz="payrun"] > div:nth-of-type(3) > div > div:last-child { font-size: var(--text-19) !important; }
  /* Footer pending-approval line: shrink. */
  .mock[data-viz="payrun"] > div:nth-of-type(4) { font-size: var(--text-11) !important; }
}

/* ===== Contract review check grid (formal checks + risk signals) ===== */
.check-grid > div + div { border-left: 0; }
@media (max-width: 768px) {
  .check-grid { grid-template-columns: 1fr !important; }
  .check-grid > div { border-right: 0 !important; border-bottom: 1px solid var(--line); padding: var(--space-24) !important; }
  .check-grid > div:last-child { border-bottom: 0; }
}

/* ===== Compliance / trust strip (GDPR · GoBD · DATEV) ===== */
.compliance-strip { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-80); align-items: center; }
.compliance-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.compliance-card { padding: var(--space-32); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--space-16); }
.compliance-card:last-child { border-right: 0; }
@media (max-width: 960px) {
  .compliance-strip { grid-template-columns: 1fr; gap: var(--space-40); }
}
@media (max-width: 600px) {
  .compliance-cards { grid-template-columns: 1fr; }
  .compliance-card { border-right: 0; border-bottom: 1px solid var(--line); padding: var(--space-24); }
  .compliance-card:last-child { border-bottom: 0; }
}

/* ===== Feature visual (large block) ===== */
.feature-block {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-64); align-items: center;
}
.feature-block.reverse { grid-template-columns: 1.1fr 0.9fr; }
.feature-block.reverse .feature-text { order: 2; }
.feature-block.reverse .feature-viz { order: 1; }
.feature-text > * + * { margin-top: var(--space-20); }

/* Mock UI card */
.mock {
  background: var(--bg);
  border-radius: var(--radius-12);
  padding: var(--space-20);
  /* Use inset box-shadow instead of border to avoid the subpixel gap at rounded corners */
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.1), inset 0 0 0 1px var(--line-2);
  font-size: var(--text-13);
}
.mock-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: var(--space-16); border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-16);
  font-family: var(--mono); font-size: var(--text-11); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
}
/* Inline-flex on each header cell so the leading status dot aligns with the uppercase mono text,
   and the trailing viz-badge has consistent spacing from preceding content. */
.mock-header > span { display: inline-flex; align-items: center; }
.mock-header .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); margin-right: var(--space-8); flex: none; }
.mock-header .viz-badge { margin-left: var(--space-10); }

/* "Live" badge for scroll-activated mock visualizations (viz-activate.js).
   Sits idle ("connecting") until the viz scrolls into view and gets .viz-live. */
.viz-badge {
  display: inline-flex; align-items: center; gap: var(--space-6);
  font-family: var(--mono); font-size: var(--text-9); font-weight: var(--weight-medium);
  line-height: 1;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.viz-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted); flex: none;
  animation: viz-badge-idle 1.2s ease-in-out infinite;
}
.viz-badge-on { display: none; }
.viz-live .viz-badge { color: var(--good); }
.viz-live .viz-badge-idle { display: none; }
.viz-live .viz-badge-on { display: inline; }
.viz-live .viz-badge-dot {
  background: var(--good);
  animation: viz-badge-pulse 1.6s ease-in-out infinite;
}
@keyframes viz-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--good), transparent 50%); }
  50%      { box-shadow: 0 0 0 6px color-mix(in oklab, var(--good), transparent 100%); }
}
@keyframes viz-badge-idle {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50%      { opacity: 1;   transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .viz-badge-dot, .viz-live .viz-badge-dot { animation: none; }
}
.kv { display: flex; justify-content: space-between; padding: var(--space-10) 0; border-bottom: 1px dashed var(--line); font-size: var(--text-14); }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--ink-3); }
.kv .v { font-weight: var(--weight-medium); }
.kv .conf {
  margin-left: var(--space-8); font-family: var(--mono); font-size: var(--text-10);
  padding: var(--space-2) var(--space-6); border-radius: var(--radius-4);
  background: color-mix(in oklab, var(--good), transparent 85%);
  color: var(--good);
  letter-spacing: 0.08em;
}
.conf.warn { background: color-mix(in oklab, var(--warn), transparent 85%); color: var(--warn); }
.conf.info { background: color-mix(in oklab, var(--accent), transparent 85%); color: var(--accent); }

/* ===== Supplier-chat animated mock (Lieferantenkommunikation) ===== */
.supplier-chat { padding: var(--space-24); }
.sc-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-12);
  padding-bottom: var(--space-16); border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-16);
}
.sc-head-left {
  display: inline-flex; align-items: center; gap: var(--space-10);
  font-family: var(--sans); font-weight: var(--weight-medium); font-size: var(--text-15);
  color: var(--ink); letter-spacing: -0.01em;
  min-width: 0;
}
.sc-head-left .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex-shrink: 0; }
.sc-head-left > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-head-right {
  display: inline-flex; align-items: center; gap: var(--space-8);
  font-family: var(--mono); font-size: var(--text-11); letter-spacing: 0.08em; color: var(--ink-3);
  flex-shrink: 0;
}
.sc-head-tag {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-4);
  font-family: var(--mono); font-size: var(--text-10); letter-spacing: 0.12em; text-transform: uppercase;
  background: color-mix(in oklab, var(--accent), transparent 88%);
  color: var(--accent);
}

.sc-thread { display: flex; flex-direction: column; gap: var(--space-16); min-height: 360px; }

.sc-day {
  display: flex; align-items: center; gap: var(--space-12);
  font-family: var(--mono); font-size: var(--text-10); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}
.sc-day::before, .sc-day::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

.sc-msg { display: flex; flex-direction: column; gap: var(--space-6); }
.sc-msg-orcha { align-items: flex-end; }
.sc-msg-vendor { align-items: flex-start; }
.sc-msg-meta { font-family: var(--mono); font-size: var(--text-10); letter-spacing: 0.08em; color: var(--muted); }
.sc-msg-body {
  max-width: 86%; padding: var(--space-12) var(--space-16); border-radius: var(--radius-12);
  font-size: var(--text-14); line-height: 1.5;
}
.sc-msg-orcha .sc-msg-body {
  background: color-mix(in oklab, var(--accent), transparent 90%);
  border: 1px solid color-mix(in oklab, var(--accent), transparent 75%);
  border-bottom-right-radius: 4px;
  color: var(--ink);
}
.sc-msg-vendor .sc-msg-body {
  background: var(--bg-2); border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  color: var(--ink-2);
}

.sc-resolution {
  display: flex; gap: var(--space-12); align-items: flex-start;
  margin-top: var(--space-4);
  padding: var(--space-16) var(--space-16);
  background: color-mix(in oklab, var(--good), transparent 92%);
  border: 1px solid color-mix(in oklab, var(--good), transparent 70%);
  border-radius: var(--radius);
}
.sc-res-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%; background: var(--good); color: var(--bg);
  display: grid; place-items: center;
  font-size: var(--text-13); font-weight: var(--weight-semibold);
}
.sc-res-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-12);
  font-family: var(--sans); font-weight: var(--weight-medium); font-size: var(--text-13);
  color: var(--good);
}
.sc-res-head .sc-res-time { font-family: var(--mono); font-size: var(--text-10); letter-spacing: 0.08em; color: var(--ink-3); font-weight: var(--weight-regular); }
.sc-res-body { font-size: var(--text-13); line-height: 1.5; color: var(--ink-2); margin-top: var(--space-4); }

.sc-compare {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: var(--space-20);
  margin-top: var(--space-20);
  padding-top: var(--space-16);
  border-top: 1px solid var(--line);
}
.sc-compare > div { text-align: center; }
.sc-compare .val { font-family: var(--sans); font-weight: var(--weight-medium); letter-spacing: -0.02em; line-height: 1; }
.sc-compare .val.muted  { color: var(--ink-3); font-size: var(--text-19); }
.sc-compare .val.accent { color: var(--accent); font-size: var(--text-24); }
.sc-compare .lbl {
  font-family: var(--mono); font-size: var(--text-10); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-top: var(--space-4);
}
.sc-compare .arrow { color: var(--accent); font-family: var(--mono); font-size: var(--text-19); }

.sc-fade {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
}
.sc-fade.is-visible { opacity: 1; transform: translateY(0); }
.sc-fade.is-hidden { display: none; }

.sc-dots {
  display: flex; justify-content: center; gap: var(--space-8);
  margin-top: var(--space-16);
}
.sc-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--line-2);
  transition: background .3s ease, transform .3s ease;
}
.sc-dot.is-active { background: var(--accent); transform: scale(1.4); }

@media (prefers-reduced-motion: reduce) {
  .sc-fade { transition: none; }
}

/* ===== Hero Agent (shared component) ===== */
.hero-agent { display: flex; flex-direction: column; gap: var(--space-16); }

.hero-agent-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.hero-agent-stat {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-8);
  padding: var(--space-16) var(--space-16) var(--space-12);
}
.hero-agent-stat-big {
  font-size: var(--text-32); font-weight: var(--weight-medium); color: var(--ink);
  letter-spacing: -0.02em; line-height: 1;
}
.hero-agent-stat-lbl {
  font-family: var(--mono); font-size: var(--text-10); color: var(--muted);
  margin-top: var(--space-6); line-height: 1.35; text-transform: uppercase; letter-spacing: 0.1em;
}

.hero-agent-card {
  background: var(--bg); border-radius: var(--radius-12);
  padding: var(--space-20) var(--space-24) var(--space-20);
  /* Inset shadow for the stroke – keeps the corners crisp without a subpixel gap */
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.1), inset 0 0 0 1px var(--line-2);
  /* Baseline height so the hero matches across product pages regardless of feed length */
  min-height: 560px;
}
.hero-agent-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: var(--space-12); border-bottom: 1px solid var(--line);
}
.hero-agent-id {
  display: inline-flex; align-items: center; gap: var(--space-10);
  font-family: var(--mono); font-size: var(--text-11); color: var(--ink-2);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.hero-agent-pulse {
  width: 8px; height: 8px; background: var(--good); border-radius: 50%;
  animation: hero-agent-pulse 1.6s ease-in-out infinite;
}
@keyframes hero-agent-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--good), transparent 50%); }
  50%      { box-shadow: 0 0 0 6px color-mix(in oklab, var(--good), transparent 100%); }
}
.hero-agent-status {
  font-family: var(--mono); font-size: var(--text-10); color: var(--muted);
  letter-spacing: 0.12em; text-transform: uppercase;
}

.hero-agent-task-label {
  font-family: var(--mono); font-size: var(--text-10); color: var(--muted);
  letter-spacing: 0.14em; text-transform: uppercase; margin-top: var(--space-16);
}
.hero-agent-task-name {
  font-size: var(--text-16); font-weight: var(--weight-medium); color: var(--ink);
  letter-spacing: -0.01em; margin-top: var(--space-4); min-height: 24px;
}
.hero-agent-task-meta {
  font-size: var(--text-13); color: var(--ink-3); margin-top: var(--space-2); min-height: 18px;
}

.hero-agent-steps { display: flex; flex-direction: column; margin-top: var(--space-16); }
.hero-agent-step {
  display: flex; align-items: center; gap: var(--space-12);
  padding: var(--space-8) 0; font-size: var(--text-14); color: var(--muted);
  position: relative; transition: color 0.4s;
}
.hero-agent-step::before {
  content: ""; position: absolute; left: 7px; top: 26px; bottom: -2px;
  width: 1px; background: var(--line);
}
.hero-agent-step:last-child::before { display: none; }
.hero-agent-step .icon {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--line-2); background: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: var(--text-9); transition: all 0.4s;
}
.hero-agent-step .meta {
  margin-left: auto; font-family: var(--mono); font-size: var(--text-10); color: var(--muted);
}
.hero-agent-step .sub { color: var(--ink-3); font-weight: var(--weight-regular); font-size: var(--text-13); margin-left: var(--space-4); }
.hero-agent-step.done { color: var(--ink); }
.hero-agent-step.done .icon { background: var(--good); border-color: var(--good); color: var(--accent-ink); }
.hero-agent-step.done .icon::after { content: "✓"; }
.hero-agent-step.active { color: var(--ink); font-weight: var(--weight-medium); }
.hero-agent-step.active .icon {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent), transparent 88%);
  animation: hero-agent-step-pulse 1.6s ease-in-out infinite;
}
@keyframes hero-agent-step-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent), transparent 50%); }
  50%      { box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent), transparent 100%); }
}

.hero-agent-counter-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: var(--space-16) 0 var(--space-4); border-top: 1px solid var(--line); margin-top: var(--space-16);
}
.hero-agent-counter-lbl {
  font-family: var(--mono); font-size: var(--text-10); color: var(--muted);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.hero-agent-counter-val {
  font-size: var(--text-24); font-weight: var(--weight-medium); color: var(--ink); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.hero-agent-feed { display: flex; flex-direction: column; }
.hero-agent-feed-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--text-13); padding: var(--space-8) 0; color: var(--ink-2);
  border-bottom: 1px dashed var(--line);
  animation: hero-agent-feed-in 0.4s ease-out;
}
.hero-agent-feed-row:last-child { border-bottom: 0; }
.hero-agent-feed-row .who { color: var(--ink); }
.hero-agent-feed-row .ago { font-family: var(--mono); font-size: var(--text-10); color: var(--muted); }
.hero-agent-feed-row .check { color: var(--good); margin-right: var(--space-6); }
@keyframes hero-agent-feed-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-agent-config { display: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-agent-pulse, .hero-agent-step.active .icon { animation: none; }
}

/* ===== Callout bar ===== */
.callout {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
}
.callout-item { padding: var(--space-20) var(--space-24); border-right: 1px solid var(--line); }
.callout-item:last-child { border-right: 0; }
.callout-item .k { font-family: var(--mono); font-size: var(--text-10); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.callout-item .v { margin-top: var(--space-6); font-size: var(--text-15); font-weight: var(--weight-medium); letter-spacing: -0.01em; }

/* ===== Other modules cross-link ===== */
.modules-cross {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line);
  margin-top: var(--space-32);
}
.modules-cross-item {
  padding: var(--space-32) var(--space-32) var(--space-32);
  border-right: 1px solid var(--line);
  position: relative;
  transition: background .15s ease;
}
.modules-cross-item:last-child { border-right: 0; }
.modules-cross-item:hover { background: var(--bg-2); }
.modules-cross-item .tag { font-family: var(--mono); font-size: var(--text-10); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.modules-cross-item .t { margin-top: var(--space-8); font-size: var(--text-16); font-weight: var(--weight-medium); letter-spacing: -0.015em; }
.modules-cross-item .b { margin-top: var(--space-6); font-size: var(--text-13); color: var(--ink-3); line-height: 1.5; }
.modules-cross-item .arrow { position: absolute; right: 20px; bottom: 22px; width: 14px; height: 14px; color: var(--muted); transition: transform .15s ease, color .15s ease; }
.modules-cross-item:hover .arrow { color: var(--ink); transform: translate(3px, -3px); }

/* ===== Footer ===== */
footer.site-footer {
  background: var(--ink); color: var(--bg);
  padding: var(--space-80) 0 var(--space-32);
}
footer.site-footer .wrap { display: flex; flex-direction: column; gap: var(--space-48); }
.footer-top { display: flex; justify-content: space-between; align-items: start; gap: var(--space-48); }
.footer-top p { max-width: 420px; font-size: var(--text-15); line-height: 1.5; color: color-mix(in oklab, var(--bg), transparent 30%); margin: var(--space-16) 0 0; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-48); font-size: var(--text-13); }
.footer-nav h5 { margin: 0 0 var(--space-16); font-family: var(--mono); font-size: var(--text-10); letter-spacing: 0.16em; text-transform: uppercase; color: color-mix(in oklab, var(--bg), transparent 50%); font-weight: var(--weight-medium); }
.footer-nav a { display: block; padding: var(--space-6) 0; color: color-mix(in oklab, var(--bg), transparent 15%); }
.footer-nav a:hover { color: var(--bg); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--space-24); border-top: 1px solid color-mix(in oklab, var(--bg), transparent 85%);
  font-size: var(--text-12); color: color-mix(in oklab, var(--bg), transparent 40%);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .product-hero-grid, .feature-block, .feature-block.reverse { grid-template-columns: 1fr; gap: var(--space-40); }
  .stat-row { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: var(--space-24) 0; }
  .stat:last-child { border-bottom: 0; }
  .stat:not(:first-child) { padding-left: 0; }
  .cap-grid { grid-template-columns: 1fr; }
  .cap:nth-child(2n) { border-right: 0; }
  .cap { border-right: 0; }
  .modules-cross, .callout { grid-template-columns: 1fr; }
  .modules-cross-item, .callout-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .modules-cross-item:last-child, .callout-item:last-child { border-bottom: 0; }
  .nav-links > a:not(.nav-links-home) { display: none; }
  .nav-dd-panel { width: 90vw; }
}

/* ═══════════════════════════════════════════════════════════════
   Responsive — site-wide (sub-project A foundation, 2026-05-14)
   Breakpoints: 1024 tablet · 768 large phone · 480 phone · 960 nav.
   Applies to every v3 page (all load product.css). Homepage-section-
   specific responsive rules stay in responsive.css.
═══════════════════════════════════════════════════════════════ */

/* container & section rhythm */
@media (max-width: 768px) {
  .wrap { padding: 0 var(--space-24); }
  section { padding: var(--space-80) 0; }
  section:first-of-type { padding-top: var(--space-64); }
  section.p-section { padding: var(--space-80) 0; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 var(--space-16); }
  section { padding: var(--space-64) 0; }
  section:first-of-type { padding-top: var(--space-40); }
  section.p-section { padding: var(--space-48) 0; }
}

/* mobile nav drawer activation — base styles are above (~line 52).
   Drawer drops below the sticky .nav at <=960px; hamburger toggles .is-open.
   The `.nav-drawer .nav-links > a` rule below intentionally re-displays the
   links hidden by the `.nav-links > a:not(.nav-links-home)` rule in the @960
   block higher up — equal (0,2,1) specificity, wins on source order. */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }

  .nav-drawer {
    display: none;
    /* anchors to .nav (position:sticky); .nav-inner is not positioned */
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    padding: var(--space-12) var(--space-24) var(--space-20);
    /* 100dvh accounts for iOS Safari's collapsing address bar; 100vh
       returns the full viewport and clips the bottom-most content
       (Start-trial button) behind Safari's tab bar. */
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
  }
  .nav.is-open .nav-drawer { display: flex; }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-drawer .nav-links > a,
  .nav-drawer .nav-links > .nav-dd > a {
    display: block;
    padding: var(--space-12) 0;
    border-bottom: 1px solid var(--line);
    font-size: var(--text-16);
  }
  .nav-links > .nav-dd { width: 100%; }
  .nav-dd > a::after { display: none; }   /* hide the dropdown caret */

  /* Produkt dropdown flattens — panel sits inline, always visible.
     The :hover / :focus-within selectors below have higher specificity
     than the bare .nav-dd-panel rule, so on mobile a tap on the trigger
     would otherwise re-apply the desktop translateX(-50%) and the panel
     would slide off-screen to the left. Pin those variants to
     transform:none / position:static too so the drawer stays put. */
  .nav-dd-panel,
  .nav-drawer .nav-dd:hover .nav-dd-panel,
  .nav-drawer .nav-dd:focus-within .nav-dd-panel {
    position: static;
    width: auto;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    border: 0;
    box-shadow: none;
    padding: var(--space-4) 0 var(--space-8);
  }
  .nav-dd-panel::before,
  .nav-dd-panel::after { display: none; }
  .nav-dd-header { display: none; }
  .nav-dd-grid { grid-template-columns: 1fr; }
  /* Two-class selector beats `.nav-links a` (0,1,1) from v3.css so the
     mobile-drawer subpage indent actually applies. */
  .nav-links .nav-dd-item {
    padding: var(--space-10) var(--space-8) var(--space-10) var(--space-20);
  }
  /* Hide subtext hints in drawer — already obvious from the title and
     adds vertical noise on mobile. */
  .nav-drawer .nav-dd-item-hint { display: none; }

  /* Lang switcher placement: hide the bottom (inside .nav-cta) and show
     the mobile copy that chrome.js renders at the top of the drawer. */
  .nav-cta .lang-switch { display: none; }
  .lang-switch-mobile {
    display: flex;
    align-self: flex-start;
    margin-bottom: var(--space-12);
  }

  .nav-cta {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-10);
    margin-top: var(--space-16);
  }
  .nav-cta .btn { justify-content: center; }
}

/* shared template classes — phone tier.
   Note: section:first-of-type (from the container block above) governs the
   hero's padding-top at <=768/480px; this block only tightens its bottom. */
@media (max-width: 480px) {
  .product-hero { padding-bottom: var(--space-40); }
  .product-hero-grid,
  .feature-block,
  .feature-block.reverse { gap: var(--space-32); }
  .product-hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .product-hero-ctas .btn { justify-content: center; }
  .cap-grid { margin-top: var(--space-32); }
  .cap { padding: var(--space-32) 0 var(--space-32); }
  .callout-item { padding: var(--space-16) var(--space-20); }
  .modules-cross-item { padding: var(--space-24) var(--space-20) var(--space-24); }
  .stat { padding: var(--space-20) 0; }

  /* Let the single-column shared grids shrink below their content's
     intrinsic width — grid items default to min-width:auto, so a wide
     child (e.g. a table inside .mock) otherwise forces the grid, and the
     whole page, wider than the viewport. Pair with containing wide mocks. */
  .product-hero-grid > *,
  .feature-block > *,
  .stat-row > *,
  .cap-grid > * { min-width: 0; }
  .mock { max-width: 100%; overflow-x: auto; }
}

/* shared site footer (footer.site-footer, rendered by chrome.de.js) */
@media (max-width: 768px) {
  footer.site-footer { padding: var(--space-64) 0 var(--space-32); }
  .footer-top { flex-direction: column; gap: var(--space-40); }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-8);
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  .footer-nav { grid-template-columns: 1fr 1fr; gap: var(--space-24) var(--space-20); }
}

/* allow long words (notably German compounds) to break rather than
   overflow — a no-op for text that already fits. */
.h-display,
.h-section,
.h-sub,
.italic-swap em { overflow-wrap: break-word; }
