/* ============================================================
   Robotmk Design System — CSS Custom Properties
   Single source of truth for all design tokens.
   Source: _bmad-output/planning-artifacts/ux-designs/.../DESIGN.md
   ============================================================ */

:root {
  /* --- Surfaces (Dark Mode Default) --- */
  --color-background:        #1e262e;
  --color-surface:           #2C3843;
  --color-surface-low:       #253039;
  --color-surface-high:      #354552;
  --color-surface-border:    #3d4f5c;

  /* --- Accent / Primary --- */
  --color-primary:           #15D1A0;
  --color-on-primary:        #0d1a14;
  --color-primary-dim:       #0fa87e;

  /* --- Text --- */
  --color-on-surface:        #e8edf2;
  --color-on-surface-variant:#8fa3b1;
  --color-on-surface-muted:  #5a7183;

  /* --- Semantic --- */
  --color-error:             #ff6b6b;
  --color-on-error:          #ffffff;
  --color-success:           #15D1A0;

  /* --- Typography: Font Families --- */
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-code:    'JetBrains Mono', 'Fira Code', monospace;

  /* --- Typography: Display (Hero H1) --- */
  --text-display-size:           56px;
  --text-display-weight:         700;
  --text-display-line-height:    1.05;
  --text-display-letter-spacing: -0.03em;

  /* --- Typography: Headline Large (Section H2) --- */
  --text-headline-lg-size:           40px;
  --text-headline-lg-weight:         700;
  --text-headline-lg-line-height:    1.1;
  --text-headline-lg-letter-spacing: -0.02em;

  /* --- Typography: Headline Medium --- */
  --text-headline-md-size:           28px;
  --text-headline-md-weight:         600;
  --text-headline-md-line-height:    1.2;
  --text-headline-md-letter-spacing: -0.01em;

  /* --- Typography: Headline Small --- */
  --text-headline-sm-size:        20px;
  --text-headline-sm-weight:      600;
  --text-headline-sm-line-height: 1.3;

  /* --- Typography: Body Large --- */
  --text-body-lg-size:        18px;
  --text-body-lg-weight:      400;
  --text-body-lg-line-height: 1.7;

  /* --- Typography: Body Medium --- */
  --text-body-md-size:        16px;
  --text-body-md-weight:      400;
  --text-body-md-line-height: 1.6;

  /* --- Typography: Body Small --- */
  --text-body-sm-size:        14px;
  --text-body-sm-weight:      400;
  --text-body-sm-line-height: 1.5;

  /* --- Typography: Label (Eyebrows, Chips) --- */
  --text-label-size:           16px;
  --text-label-weight:         600;
  --text-label-line-height:    1.4;
  --text-label-letter-spacing: 0.08em;

  /* --- Typography: Code --- */
  --text-code-size:        14px;
  --text-code-weight:      400;
  --text-code-line-height: 1.6;

  /* --- Spacing (8px base grid) --- */
  --space-xs:      4px;
  --space-sm:      8px;
  --space-md:      16px;
  --space-lg:      24px;
  --space-xl:      40px;
  --space-2xl:     64px;
  --space-3xl:     96px;
  --space-section: 120px;

  /* --- Layout --- */
  --max-width:     1280px;
  --content-width: 1100px;

  /* --- Shape: Sharp corners everywhere (no exceptions in v1) --- */
  --radius: 0px;

  /* --- Components --- */
  --nav-height:   64px;
  --nav-z-index:  100;

  /* --- Transitions --- */
  --transition-fast: 150ms ease;
}

/* ============================================================
   Light Mode Overrides
   Applied when the user's OS/browser prefers light mode.
   ============================================================ */
@media (prefers-color-scheme: light) {
  :root {
    --color-background:         #f4f6f8;
    --color-surface:            #ffffff;
    --color-surface-low:        #f0f3f6;
    --color-surface-high:       #e8ecf0;
    --color-surface-border:     #d1dae3;
    --color-on-surface:         #1e262e;
    --color-on-surface-variant: #4a6070;
    --color-on-surface-muted:   #7a94a4;
  }
}
/* ============================================================
   Minimal Modern CSS Reset
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

a {
  color: inherit;
}

ul, ol {
  list-style: none;
}
/* ============================================================
   Self-Hosted Fonts — @font-face Declarations (Story 1.3)
   WOFF2 files in static/fonts/; no Google Fonts CDN requests.
   ============================================================ */

/* Space Grotesk — SemiBold (600) + Bold (700) */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('/fonts/space-grotesk/space-grotesk-latin-ext-semibold-bold.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('/fonts/space-grotesk/space-grotesk-latin-semibold-bold.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

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

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

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

/* ============================================================
   Base Styles — Typography, Body, Global Elements
   ============================================================ */

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body-md-size);
  font-weight: var(--text-body-md-weight);
  line-height: var(--text-body-md-line-height);
  color: var(--color-on-surface);
  background-color: var(--color-background);
}

/* --- Focus Ring (WCAG 2.1 AA) --- */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Never hide focus without an alternative */
:focus:not(:focus-visible) {
  outline: none;
}

/* --- Links --- */
a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- Headings --- */
h1 {
  font-family: var(--font-display);
  font-size: var(--text-display-size);
  font-weight: var(--text-display-weight);
  line-height: var(--text-display-line-height);
  letter-spacing: var(--text-display-letter-spacing);
}

h2 {
  font-family: var(--font-display);
  font-size: var(--text-headline-lg-size);
  font-weight: var(--text-headline-lg-weight);
  line-height: var(--text-headline-lg-line-height);
  letter-spacing: var(--text-headline-lg-letter-spacing);
}

h3 {
  font-family: var(--font-display);
  font-size: var(--text-headline-md-size);
  font-weight: var(--text-headline-md-weight);
  line-height: var(--text-headline-md-line-height);
  letter-spacing: var(--text-headline-md-letter-spacing);
}

h4 {
  font-family: var(--font-display);
  font-size: var(--text-headline-sm-size);
  font-weight: var(--text-headline-sm-weight);
  line-height: var(--text-headline-sm-line-height);
}

/* --- Code --- */
code, pre, kbd, samp {
  font-family: var(--font-code);
  font-size: var(--text-code-size);
  line-height: var(--text-code-line-height);
}

pre {
  overflow-x: auto;
  padding: var(--space-md);
  background-color: var(--color-surface);
  border: 1px solid var(--color-surface-border);
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.content-width {
  max-width: var(--content-width);
  margin-inline: auto;
}

/* --- Section Separator --- */
.section {
  border-top: 1px solid var(--color-surface-border);
  padding-block: var(--space-section);
}

.section--surface {
  background-color: var(--color-surface);
}

.section--accent {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}

@media (max-width: 768px) {
  .section {
    padding-block: 80px;
  }
}

/* ============================================================
   Accessibility — Story 5.4
   WCAG 2.1 AA: Focus rings, skip link, screen-reader utilities
   ============================================================ */

/* Visible focus ring on all interactive elements */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Remove default outline only when :focus-visible is supported */
:focus:not(:focus-visible) {
  outline: none;
}

/* Skip-to-content link for keyboard users */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--color-background);
  color: var(--color-primary);
  padding: var(--space-xs) var(--space-sm);
  border: 2px solid var(--color-primary);
  font-weight: 600;
  z-index: calc(var(--nav-z-index) + 10);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-sm);
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* ============================================================
   Buttons — All variants and states
   border-radius: 0 everywhere (var(--radius))
   No box-shadow on any button
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 12px 24px;
  border: none;
  transition: background-color var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast),
    opacity var(--transition-fast);
}

/* --- Primary Button --- */
.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  border: none;
}

.btn--primary:hover {
  background-color: var(--color-primary-dim);
  color: var(--color-on-primary);
  text-decoration: none;
}

.btn--primary:active {
  transform: scale(0.98);
}

.btn--primary:disabled,
.btn--primary[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Ghost Button --- */
.btn--ghost {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 11px 23px;
}

.btn--ghost:hover {
  background-color: rgba(21, 209, 160, 0.08);
  color: var(--color-primary);
  text-decoration: none;
}

.btn--ghost:active {
  transform: scale(0.98);
}

.btn--ghost:disabled,
.btn--ghost[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Dark Button --- */
.btn--dark {
  background-color: var(--color-on-surface);
  color: var(--color-background);
  border: none;
}

.btn--dark:hover {
  background-color: #d0d8e0;
  color: var(--color-background);
  text-decoration: none;
}

.btn--dark:active {
  transform: scale(0.98);
}

.btn--dark:disabled,
.btn--dark[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
/* ============================================================
   Cards — Surface component with hover border transition
   No box-shadow, no border-radius
   ============================================================ */

.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius);
  padding: var(--space-xl);
  transition: border-color var(--transition-fast);
}

.card:hover {
  border-color: var(--color-primary);
}

.card--accent-top {
  border-top: 2px solid var(--color-primary);
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }
}
/* ============================================================
   Badges — Sharp border, primary color, uppercase label
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  background-color: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: var(--radius);
  padding: 4px 12px;
  font-family: var(--font-body);
  font-size: var(--text-label-size);
  font-weight: var(--text-label-weight);
  letter-spacing: 0.04em;
  line-height: 1.4;
  white-space: nowrap;
}

.badge--muted {
  border-color: var(--color-surface-border);
  color: var(--color-on-surface-variant);
}
/* ============================================================
   Forms — Input, textarea with focus border
   No border-radius, no box-shadow
   ============================================================ */

.input {
  display: block;
  width: 100%;
  background-color: var(--color-background);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius);
  color: var(--color-on-surface);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  outline: none;
  transition: border-color var(--transition-fast);
}

.input:hover {
  border-color: var(--color-on-surface-variant);
}

.input:focus,
.input:focus-visible {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: none;
}

.input::placeholder {
  color: var(--color-on-surface-muted);
}

.input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Inline form row (newsletter) */
.form-row {
  display: flex;
  gap: var(--space-sm);
}

.form-row .input {
  flex: 1;
  min-width: 0;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .input {
    transition: none;
  }
}
/* ============================================================
   Navigation — Sticky Dark Bar
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: var(--nav-z-index);
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-surface-border);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  gap: var(--space-lg);
}

/* --- Logo --- */
.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-on-surface);
}

/* --- Desktop Nav Links --- */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-on-surface-variant);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.nav__link:hover {
  color: var(--color-on-surface);
  text-decoration: none;
}

.nav__link--active {
  color: var(--color-on-surface);
  border-bottom-color: var(--color-primary);
}

/* --- Right side --- */
.nav__right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

/* --- Language Switcher --- */
.nav__lang {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav__lang-link {
  font-family: var(--font-body);
  font-size: var(--text-label-size);
  font-weight: var(--text-label-weight);
  letter-spacing: var(--text-label-letter-spacing);
  color: var(--color-on-surface-muted);
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  transition: color var(--transition-fast);
}

.nav__lang-link:hover {
  color: var(--color-on-surface-variant);
  text-decoration: none;
}

.nav__lang-link--active {
  color: var(--color-primary);
}

.nav__lang-link + .nav__lang-link::before {
  content: '|';
  margin-right: var(--space-sm);
  color: var(--color-surface-border);
}

/* --- Hamburger (mobile only) --- */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--color-on-surface);
}

.nav__hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: currentColor;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav__hamburger[aria-expanded="true"] .nav__hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger[aria-expanded="true"] .nav__hamburger-bar:nth-child(2) {
  opacity: 0;
}
.nav__hamburger[aria-expanded="true"] .nav__hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile Overlay --- */
.nav__overlay {
  display: none;
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background-color: var(--color-background);
  z-index: calc(var(--nav-z-index) - 1);
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: var(--space-2xl);
  overflow-y: auto;
}

.nav__overlay[aria-hidden="false"] {
  display: flex;
}

.nav__overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__overlay-link {
  font-family: var(--font-display);
  font-size: var(--text-headline-lg-size);
  font-weight: 600;
  color: var(--color-on-surface-variant);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav__overlay-link:hover,
.nav__overlay-link.nav__link--active {
  color: var(--color-on-surface);
}

.nav__overlay-cta {
  margin-top: var(--space-lg);
}

/* --- Offset body content below fixed nav --- */
body {
  padding-top: var(--nav-height);
}

/* --- Desktop dropdown --- */
.nav__item--has-children {
  position: relative;
}

.nav__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-on-surface-variant);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0 0 2px;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.nav__dropdown-toggle:hover,
.nav__dropdown-toggle.nav__link--active {
  color: var(--color-on-surface);
}

.nav__dropdown-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--transition-fast);
}

.nav__dropdown-toggle[aria-expanded="true"] .nav__dropdown-caret {
  transform: rotate(180deg);
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + var(--space-sm));
  left: 0;
  min-width: 200px;
  display: none;
  flex-direction: column;
  gap: var(--space-xs);
  list-style: none;
  margin: 0;
  padding: var(--space-sm);
  background-color: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius);
  z-index: var(--nav-z-index);
}

/* Opens on hover AND on click/keyboard — hover alone is unusable by keyboard. */
.nav__item--has-children:hover .nav__dropdown,
.nav__item--has-children:focus-within .nav__dropdown,
.nav__dropdown-toggle[aria-expanded="true"] + .nav__dropdown {
  display: flex;
}

.nav__dropdown-link {
  display: block;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-on-surface-variant);
  text-decoration: none;
  padding: var(--space-xs) var(--space-xs);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav__dropdown-link:hover,
.nav__dropdown-link.nav__link--active {
  color: var(--color-on-surface);
  background-color: var(--color-surface-high);
}

@media (prefers-reduced-motion: reduce) {
  .nav__dropdown-toggle,
  .nav__dropdown-caret,
  .nav__dropdown-link {
    transition: none;
  }
}

/* --- Mobile breakpoint --- */
@media (max-width: 768px) {
  .nav__links,
  .nav__cta,
  .nav__lang {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .nav__link,
  .nav__lang-link,
  .nav__hamburger-bar {
    transition: none;
  }
}

/* --- Mobile accordion inside the overlay --- */
.nav__overlay-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-headline-lg-size);
  font-weight: 600;
  color: var(--color-on-surface-variant);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav__overlay-toggle[aria-expanded="true"] {
  color: var(--color-on-surface);
}

.nav__overlay-sublinks {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
}

.nav__overlay-toggle[aria-expanded="true"] + .nav__overlay-sublinks {
  display: flex;
}

.nav__overlay-sublink {
  font-family: var(--font-body);
  font-size: var(--text-body-lg-size);
  color: var(--color-on-surface-variant);
  text-decoration: none;
}

.nav__overlay-sublink:hover,
.nav__overlay-sublink.nav__link--active {
  color: var(--color-primary);
}
/* ── Tools Ticker ────────────────────────────────────────────────────────── */

.tools-ticker-wrapper {
  overflow: hidden;
  width: 100%;
}

.tools-ticker {
  width: 100%;
  padding: var(--space-6) 0;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.tools-ticker__track {
  display: flex;
  gap: var(--space-6);
  width: max-content;
  animation: tools-ticker-scroll 28s linear infinite;
}

.tools-ticker__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  cursor: default;
}

.tools-ticker__item:hover {
  opacity: 1;
}

.tools-ticker__item img {
  display: block;
  height: 48px;
  width: auto;
}

@keyframes tools-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .tools-ticker__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
}

/* ── Floating tooltip (appended to <body> via JS) ────────────────────────── */

.tools-ticker-tooltip {
  position: absolute;
  z-index: 9999;
  width: 220px;
  background: var(--color-surface, #1e293b);
  color: var(--color-on-surface, #f1f5f9);
  font-size: 0.75rem;
  line-height: 1.45;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--color-on-surface, #f1f5f9) 15%, transparent);
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.35);
  pointer-events: none;
  text-align: center;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.tools-ticker-tooltip--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Arrow pointing down */
.tools-ticker-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-surface, #1e293b);
}
/* ============================================================
   Hero Motif — shared isometric lattice backdrop
   Used by the Why Robotmk and Use Cases heroes.
   Parent must be position:relative + overflow:hidden.
   ============================================================ */

.hero-motif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  color: var(--color-on-surface-variant);
}

.hero-motif__grid {
  stroke-opacity: 0.08;
}
/* ============================================================
   Clarity Call CTA — shared closing block (partials/cta-clarity.html)

   Copy left, portrait right. Both are content-sized and the pair is
   centred as a unit: on a wide monitor a 1fr/auto grid would anchor the
   photo to the far edge and open a canyon between it and the text.
   ============================================================ */

/* Tighter than the site's default 120px section rhythm — this is a closing
   note, not a full section, and it now ends several different page types. */
.cta-clarity.section {
  padding-block: var(--space-2xl);
}

.cta-clarity__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
}

.cta-clarity__body {
  flex: 0 1 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

.cta-clarity__eyebrow {
  font-size: var(--text-label-size);
  font-weight: var(--text-label-weight);
  letter-spacing: var(--text-label-letter-spacing);
  text-transform: uppercase;
  color: var(--color-primary);
}

.cta-clarity__text {
  font-family: var(--font-display);
  font-size: var(--text-headline-md-size);
  font-weight: var(--text-headline-md-weight);
  margin: 0;
  max-width: 20ch;
}

.cta-clarity__subtext {
  margin: 0;
  max-width: 48ch;
  color: var(--color-on-surface-variant);
  line-height: var(--text-body-md-line-height);
}

/* Fixed width so the portrait never dominates the copy; the teal edge ties
   it to the accent language used across the site. */
.cta-clarity__photo {
  flex: 0 0 auto;
  width: 240px;
  border-bottom: 3px solid var(--color-primary);
}

.cta-clarity__photo img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .cta-clarity__container {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  .cta-clarity__body {
    flex-basis: auto;
    align-items: center;
  }

  .cta-clarity__photo {
    width: 180px;
    order: -1;
  }
}
/* ============================================================
   Hero Section — Split layout, Gap Visualization
   ============================================================ */

.hero {
  /* min-height: calc(100vh - var(--nav-height)); */
  min-height: 30px;
  display: flex;
  align-items: center;
  border-top: none;
  padding-block: var(--space-3xl);
}

.hero__container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.hero__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

/* --- Left Column: Text --- */
.hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero__eyebrow {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: var(--text-label-size);
  font-weight: var(--text-label-weight);
  letter-spacing: var(--text-label-letter-spacing);
  text-transform: uppercase;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 4px 12px;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: var(--text-display-size);
  font-weight: var(--text-display-weight);
  line-height: var(--text-display-line-height);
  letter-spacing: var(--text-display-letter-spacing);
  color: var(--color-on-surface);
}

.hero__headline .hero__green {
  color: var(--color-primary);
}

.hero__headline .hero__red {
  color: var(--color-error);
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: var(--text-body-lg-size);
  font-style: italic;
  color: var(--color-on-surface-muted);
  line-height: var(--text-body-lg-line-height);
}

.hero__cta-row {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  align-items: center;
  margin-top: var(--space-sm);
}

/* --- Right Column: Gap Visualization --- */
.hero__viz {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__viz svg {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .hero {
    padding-block: var(--space-2xl);
    min-height: auto;
  }

  .hero__split {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero__headline {
    font-size: 40px;
  }

  .hero__viz {
    order: 2;
  }
}
/* ============================================================
   Homepage Sections — Stats Bar, Die Lösung, Founder,
   Testimonials, Blog Preview, Newsletter CTA
   ============================================================ */

/* ============================================================
   Stats Bar
   ============================================================ */

.stats-bar {
  border-top: 2px solid var(--color-primary);
  padding-block: var(--space-2xl);
}

.stats-bar__heading {
  text-align: center;
  margin-bottom: var(--space-md);
}

.stats-bar__description {
  text-align: center;
  font-size: var(--text-body-md-size);
  color: var(--color-on-surface-variant);
  line-height: var(--text-body-md-line-height);
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.stats-bar__source {
  text-align: center;
  font-size: var(--text-body-sm-size);
  color: var(--color-on-surface-muted);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.stats-bar__source a {
  color: var(--color-on-surface-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.stats-bar__source a:hover {
  color: var(--color-on-surface-variant);
}

.stats-bar__container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.stats-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: var(--space-xl);
}

.stats-bar__item + .stats-bar__item {
  border-left: 1px solid var(--color-surface-border);
}

.stats-bar__number {
  font-family: var(--font-display);
  font-size: var(--text-display-size);
  font-weight: var(--text-display-weight);
  line-height: 1;
  letter-spacing: var(--text-display-letter-spacing);
}

.stats-bar__number--error   { color: var(--color-error); }
.stats-bar__number--primary { color: var(--color-primary); }

.stats-bar__label {
  font-size: var(--text-body-sm-size);
  color: var(--color-on-surface-variant);
  margin-top: var(--space-sm);
  max-width: 180px;
}

@media (max-width: 768px) {
  .stats-bar__container {
    grid-template-columns: 1fr;
  }

  .stats-bar__item + .stats-bar__item {
    border-left: none;
    border-top: 1px solid var(--color-surface-border);
    padding-top: var(--space-xl);
    margin-top: var(--space-xl);
  }
}

/* ============================================================
   Die Lösung Section
   ============================================================ */

.loesung {
  padding-block: var(--space-section);
}

.loesung__container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.loesung__heading {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.loesung__logo {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.loesung__logo-img {
  max-width: 280px;
  width: 10%;
  height: auto;
}

.loesung__rf-pitch-intro,.loesung__rf-pitch-outro {
  max-width: 560px;
  margin: 0 auto var(--space-lg);
  text-align: center;
  font-size: var(--text-body-md-size);
  /* font-weight: 600; */
  color: var(--color-on-surface);
}

.loesung__rf-pitch {
  list-style: none;
  padding: 0;
  margin: 0 auto var(--space-md);
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.loesung__rf-pitch li {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  font-size: var(--text-body-md-size);
  line-height: var(--text-body-md-line-height);
  color: var(--color-on-surface-variant);
}

.loesung__rf-pitch li::before {
  content: "✓";
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.loesung__eyebrow {
  display: block;
  font-size: var(--text-label-size);
  font-weight: var(--text-label-weight);
  letter-spacing: var(--text-label-letter-spacing);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

/* Flow Diagram */
.loesung__flow {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-3xl);
}

.loesung__flow-img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Audience Switcher */
.loesung__switcher {
  max-width: var(--content-width);
  margin-inline: auto;
}

.loesung__tab-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--color-surface-border);
}

.loesung__tab {
  padding: var(--space-md) var(--space-xl);
  background: transparent;
  border: none;
  font-size: var(--text-body-md-size);
  font-weight: 600;
  color: var(--color-on-surface-muted);
  cursor: pointer;
  text-align: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.loesung__tab + .loesung__tab {
  border-left: 1px solid var(--color-surface-border);
}

.loesung__tab--active {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}

.loesung__tab-panel {
  display: none;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-2xl);
  border: 1px solid var(--color-surface-border);
  border-top: none;
}

.loesung__tab-panel--active {
  display: flex;
}

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

.loesung__card-label {
  font-size: var(--text-label-size);
  font-weight: var(--text-label-weight);
  letter-spacing: var(--text-label-letter-spacing);
  text-transform: uppercase;
  color: var(--color-on-surface-variant);
}

.loesung__card-heading {
  font-family: var(--font-display);
  font-size: var(--text-headline-sm-size);
  font-weight: 600;
}

.loesung__card-text {
  font-size: var(--text-body-md-size);
  color: var(--color-on-surface-variant);
  line-height: var(--text-body-md-line-height);
  flex: 1;
}

.loesung__codespace-hint {
  font-size: var(--text-body-sm-size);
  color: var(--color-on-surface-muted);
  margin-top: var(--space-xs);
}

.loesung__cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-xl);
}


/* ============================================================
   Founder Section
   ============================================================ */

.founder {
  padding-block: var(--space-section);
}

.founder__container {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-3xl);
  align-items: center;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.founder__photo {
  aspect-ratio: 3 / 4;
  background-color: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-on-surface-muted);
  font-size: var(--text-body-sm-size);
  overflow: hidden;
}

.founder__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.founder__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.founder__headline {
  font-family: var(--font-display);
  font-size: var(--text-headline-lg-size);
  font-weight: var(--text-headline-lg-weight);
  line-height: var(--text-headline-lg-line-height);
}

.founder__bio {
  font-size: var(--text-body-lg-size);
  line-height: var(--text-body-lg-line-height);
  color: var(--color-on-surface-variant);
}

.founder__badge-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.founder__badge-list li {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  font-size: var(--text-body-md-size);
}

.founder__badge-list li::before {
  content: "↑";
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .founder__container {
    grid-template-columns: 1fr;
  }

  .founder__photo {
    max-width: 280px;
    aspect-ratio: 1 / 1;
  }
}

/* ============================================================
   Testimonials Section
   ============================================================ */

.testimonials {
  padding-block: var(--space-section);
}

.testimonials__container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.testimonials__heading {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

/* Carousel */
.testimonials__carousel {
  overflow: hidden;
  border-radius: var(--radius);
}

.testimonials__track {
  display: flex;
  transition: transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  cursor: grab;
  user-select: none;
}

.testimonials__track:active {
  cursor: grabbing;
}

.testimonials__slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  padding: var(--space-xs) var(--space-xs) var(--space-md);
}

/* Nav */
.testimonials__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.testimonials__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-surface-border);
  background: transparent;
  color: var(--color-on-surface-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.testimonials__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.testimonials__dots {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.testimonials__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--color-surface-border);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.testimonials__dot--active {
  background: var(--color-primary);
  transform: scale(1.4);
}

/* Cards */
.card.testimonial {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.testimonial__stars {
  color: var(--color-primary);
  font-size: 16px;
  letter-spacing: 3px;
}

.testimonial__quote {
  font-style: italic;
  line-height: var(--text-body-md-line-height);
  color: var(--color-on-surface-variant);
  flex: 1;
  font-size: var(--text-body-md-size);
}

.testimonial__footer {
  border-top: 1px solid var(--color-surface-border);
  padding-top: var(--space-sm);
  margin-top: auto;
}

.testimonial__author {
  font-weight: 600;
  font-size: var(--text-body-sm-size);
  color: var(--color-on-surface);
}

.testimonial__company {
  font-size: var(--text-body-sm-size);
  color: var(--color-on-surface-muted);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .testimonials__slide {
    grid-template-columns: 1fr;
  }
}

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

/* ============================================================
   Blog Preview Section
   ============================================================ */

.blog-preview {
  padding-block: var(--space-section);
}

.blog-preview__container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.blog-preview__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
  gap: var(--space-lg);
}

.blog-preview__header--latest {
  margin-top: var(--space-md);
  padding-top: var(--space-3xl);
  border-top: 1px solid var(--color-surface-border);
}

.blog-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.blog-post-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    border-color var(--transition-fast);
}

.blog-post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(21, 209, 160, 0.10);
  border-color: var(--color-primary);
}

@media (prefers-reduced-motion: reduce) {
  .blog-post-card {
    transition: border-color var(--transition-fast);
  }
  .blog-post-card:hover {
    transform: none;
    box-shadow: none;
  }
}

.blog-post-card__date {
  font-size: var(--text-label-size);
  color: var(--color-on-surface-muted);
  letter-spacing: 0.04em;
}

.blog-post-card__title {
  font-family: var(--font-display);
  font-size: var(--text-headline-sm-size);
  font-weight: 600;
  color: var(--color-on-surface);
  text-decoration: none;
  line-height: 1.3;
}

.blog-post-card__title:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.blog-post-card__desc {
  font-size: var(--text-body-sm-size);
  color: var(--color-on-surface-variant);
  line-height: var(--text-body-sm-line-height);
  flex: 1;
}

.blog-post-card__link {
  font-size: var(--text-body-sm-size);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  margin-top: auto;
}

.blog-post-card__link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .blog-preview__header {
    flex-direction: column;
    gap: var(--space-md);
  }

  .blog-preview__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Newsletter CTA Section
   ============================================================ */

.newsletter-cta {
  padding-block: var(--space-2xl);
  background-color: var(--color-primary);
  border-top: 1px solid var(--color-primary);
}

.newsletter-cta__container {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  text-align: center;
}

.newsletter-cta h2 {
  color: var(--color-on-primary);
  margin-bottom: var(--space-sm);
}

.newsletter-cta__subtext {
  color: var(--color-on-primary);
  opacity: 0.85;
  margin-bottom: var(--space-xl);
  font-size: var(--text-body-md-size);
}

.newsletter-cta .input {
  background-color: rgba(0,0,0,0.15);
  border-color: rgba(0,0,0,0.2);
  color: var(--color-on-primary);
}

.newsletter-cta .input::placeholder {
  color: rgba(13,26,20,0.6);
}

.newsletter-cta .input:focus {
  border-color: var(--color-on-primary);
}

.newsletter-cta__legal {
  margin-top: var(--space-sm);
  font-size: var(--text-body-sm-size);
  opacity: 0.7;
}

.newsletter-cta__legal a {
  color: var(--color-on-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.newsletter-cta__legal a:hover {
  opacity: 1;
}

.newsletter-cta__status {
  display: none;
  font-weight: 600;
  font-size: var(--text-body-lg-size);
  padding: var(--space-md) 0;
}

.newsletter-cta__status[data-state] {
  display: block;
}

.newsletter-cta__status[data-state="success"] {
  color: var(--color-on-primary);
}

.newsletter-cta__status[data-state="error"] {
  color: #ff6b6b;
}

.newsletter-cta__status[data-state="pending"] {
  color: var(--color-on-primary);
  opacity: 0.7;
}

.newsletter-form__consent {
  color: var(--color-on-primary);
  opacity: 0.45;
  margin-bottom: var(--space-xl);
  font-size: var(--text-body-sm-size);
}

/* ============================================================
   Section utility — footer area
   ============================================================ */

.footer {
  border-top: 1px solid var(--color-surface-border);
  background-color: var(--color-surface);
  padding-block: var(--space-2xl);
}

.footer__container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer__nav-links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__link {
  font-size: var(--text-body-sm-size);
  color: var(--color-on-surface-variant);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-on-surface);
  text-decoration: none;
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social-link {
  font-size: var(--text-body-sm-size);
  color: var(--color-on-surface-variant);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__social-link:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer__elabit {
  font-size: var(--text-body-sm-size);
  color: var(--color-on-surface-muted);
}

.footer__copyright {
  font-size: var(--text-body-sm-size);
  color: var(--color-on-surface-muted);
}

.footer__legal-links {
  display: flex;
  gap: var(--space-md);
}

.footer__legal-link {
  font-size: var(--text-body-sm-size);
  color: var(--color-on-surface-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__legal-link:hover {
  color: var(--color-on-surface);
  text-decoration: none;
}

@media (max-width: 768px) {
  .footer__container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .footer__link,
  .footer__social-link,
  .footer__legal-link {
    transition: none;
  }
}

/* ============================================================
   Bridge Teaser — Homepage Section
   ============================================================ */

.bridge-teaser {
  text-align: center;
  padding-block: var(--space-2xl);
}

.bridge-teaser__container {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.bridge-teaser__eyebrow {
  font-size: var(--text-label-size);
  font-weight: var(--text-label-weight);
  letter-spacing: var(--text-label-letter-spacing);
  text-transform: uppercase;
  color: var(--color-primary);
}

.bridge-teaser__heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, var(--text-headline-lg-size));
  font-weight: var(--text-headline-lg-weight);
  letter-spacing: var(--text-headline-lg-letter-spacing);
  color: var(--color-on-surface);
  margin: 0;
}

.bridge-teaser__body {
  font-size: var(--text-body-lg-size);
  line-height: var(--text-body-lg-line-height);
  color: var(--color-on-surface-variant);
  max-width: 60ch;
  margin: 0;
}

/* ============================================================
   Why Robotmk Teaser — Homepage Section
   ============================================================ */

.why {
  text-align: center;
  padding-block: var(--space-2xl);
}

.why__container {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.why__eyebrow {
  font-size: var(--text-label-size);
  font-weight: var(--text-label-weight);
  letter-spacing: var(--text-label-letter-spacing);
  text-transform: uppercase;
  color: var(--color-primary);
}

.why__heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, var(--text-headline-lg-size));
  font-weight: var(--text-headline-lg-weight);
  letter-spacing: var(--text-headline-lg-letter-spacing);
  color: var(--color-on-surface);
  margin: 0;
}

.why__body {
  font-size: var(--text-body-lg-size);
  line-height: var(--text-body-lg-line-height);
  color: var(--color-on-surface-variant);
  max-width: 60ch;
  margin: 0;
}

.why__stat-line {
  font-size: var(--text-body-md-size);
  font-weight: 600;
  color: var(--color-primary);
  max-width: 60ch;
  margin: 0;
}

.why__pillars {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: var(--content-width);
  margin: var(--space-md) 0 0;
  padding: 0;
  width: 100%;
}

.why__pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  text-align: center;
}

.why__pillar-icon {
  font-size: 1.5rem;
}

.why__pillar-label {
  font-weight: 600;
  color: var(--color-on-surface);
}

.why__pillar-text {
  font-size: var(--text-body-sm-size);
  color: var(--color-on-surface-variant);
  line-height: var(--text-body-sm-line-height);
}

@media (max-width: 768px) {
  .why__pillars {
    grid-template-columns: 1fr;
  }
}
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-sm);
}

.page-hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 60ch;
  margin: 0;
  line-height: 1.6;
}

.learn-lead-magnets,
.learn-courses,
.services-offerings,
.services-partnerships {
  padding: var(--space-xl) 0;
}

.learn-courses,
.services-partnerships {
  border-top: 1px solid var(--color-border);
}

/* ── Offerings 2×2 Grid ───────────────────────────────────────────────────── */
.offerings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.offering-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    border-color var(--transition-fast);
}

.offering-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(21, 209, 160, 0.10);
  border-color: var(--color-primary);
}

@media (prefers-reduced-motion: reduce) {
  .offering-card {
    transition: border-color var(--transition-fast);
  }
  .offering-card:hover {
    transform: none;
    box-shadow: none;
  }
}

.offering-card__icon {
  font-size: 2.25rem;
  line-height: 1;
}

.offering-card__meta {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
}

.offering-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-on-surface);
  margin: 0;
}

.offering-card__tagline {
  color: var(--color-on-surface-variant);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.offering-card__highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.offering-card__highlights li {
  display: flex;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--color-on-surface-variant);
  line-height: 1.4;
}

.offering-card__note {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
}

.offering-card .btn {
  align-self: flex-start;
  margin-top: var(--space-xs);
}

@media (max-width: 640px) {
  .offerings-grid {
    grid-template-columns: 1fr;
  }
}

/* Courses */
.courses__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-lg);
}

.courses__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.course-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.course-card__header {
  display: flex;
  justify-content: flex-end;
}

.course-card__icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.course-card__icon img {
  width: 48px;
  height: 48px;
}

.course-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}

.course-card__desc {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.course-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.course-card__price {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
}

.course-card__price--free {
  color: var(--color-text-secondary);
}

/* Masterclass Block */
.masterclass-block {
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--color-surface) 0%, color-mix(in srgb, var(--color-primary) 8%, var(--color-surface)) 100%);
}

.masterclass-block__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin: 0 0 var(--space-xs);
}

.masterclass-block__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-sm);
}

.masterclass-block__desc {
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0 0 var(--space-md);
  max-width: 60ch;
}

/* Blueprints Teaser */
.blueprints-teaser {
  margin-bottom: var(--space-lg);
}

.blueprints-teaser__header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-xs);
}

.blueprints-teaser__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-xs);
}

.blueprints-teaser__desc {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.7;
}

/* Codespace CTA */
.codespace-cta {
  text-align: center;
  padding: var(--space-md) 0;
}

/* No-translation banner (Story 4.3) */
.no-translation-banner {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-xs) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.no-translation-banner__close {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0 4px;
}

.no-translation-banner__close:hover {
  color: var(--color-text-primary);
}

/* Newsletter Page */
.newsletter-page {
  padding: var(--space-xl) 0;
}

.newsletter-page__content {
  max-width: 640px;
}

.newsletter-page__content ul {
  padding-left: var(--space-md);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.newsletter-page__content h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-top: var(--space-lg);
}

/* Booking Widget */
.booking-widget {
  max-width: 640px;
}

.booking-widget__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-xs);
}

.booking-widget__desc {
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-md);
}

.booking-widget__placeholder {
  border: 1px dashed var(--color-border);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

.booking-widget__notice {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* Partnerships */
.partnerships__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-xs);
}

.partnerships__intro {
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-lg);
}

.partnerships__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 768px) {
  .partnerships__grid {
    grid-template-columns: 1fr;
  }
}

.partnership-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.partnership-card--recommended {
  border-top: 2px solid var(--color-primary);
}

.partnership-card__header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-xs);
}

.partnership-card__type {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
}

.partnership-card__name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
}

.partnership-card__price {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

.partnership-card__features,
.partnership-card__training-list {
  list-style: none;
  padding: 0;
  margin: var(--space-xs) 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.partnership-card__features li::before {
  content: "✓ ";
  color: var(--color-primary);
  font-weight: 700;
}

.partnership-card__training-list li {
  padding-left: 1.5em;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.partnership-card__training-list li::before {
  content: "→ ";
  color: var(--color-primary);
}

.partnership-card__training-more {
  font-style: italic;
  opacity: 0.7;
}

.partnership-card__training-more::before {
  content: "" !important;
}

.partnership-card__early-access-note {
  background: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface));
  border-left: 3px solid var(--color-primary);
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin: var(--space-xs) 0;
}

.partnership-card > .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Lead Magnets */
.lead-magnets__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-xs);
}

.lead-magnets__intro {
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-lg);
}

.lead-magnets__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.lead-magnet-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.lead-magnet-card__header {
  display: flex;
  justify-content: flex-end;
}

.lead-magnet-card__icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.lead-magnet-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}

.lead-magnet-card__desc {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.lead-magnet-card__action {
  margin-top: var(--space-sm);
}

.lead-magnet-form {
  margin-top: var(--space-sm);
}

.lead-magnet-form__confirm {
  color: var(--color-primary);
  font-weight: 600;
  padding: var(--space-xs) 0;
  margin: 0;
}

/* ============================================================
   Bridge Page
   ============================================================ */

/* Hero — larger title for the triple-rhythm headline */
.bridge-hero__title1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-on-surface);
  margin: var(--space-sm) 0 var(--space-md);
}
.bridge-hero__title2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-on-surface);
  margin: var(--space-sm) 0 var(--space-md);
}
.bridge-hero__title3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin: var(--space-sm) 0 var(--space-md);
}

/* Problem section */
.bridge-problem__heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, var(--text-headline-lg-size));
  font-weight: var(--text-headline-lg-weight);
  letter-spacing: var(--text-headline-lg-letter-spacing);
  color: var(--color-on-surface);
  margin: var(--space-sm) 0 var(--space-xl);
}

.bridge-problem__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 68ch;
}

.bridge-problem__body p {
  font-size: var(--text-body-lg-size);
  line-height: var(--text-body-lg-line-height);
  color: var(--color-on-surface-variant);
  margin: 0;
}

.bridge-problem__body p:first-child {
  color: var(--color-on-surface);
  font-weight: 500;
}

.bridge-problem__pivot {
  margin-top: var(--space-2xl);
  max-width: 68ch;
  font-size: var(--text-body-lg-size);
  line-height: var(--text-body-lg-line-height);
  font-weight: 600;
  color: var(--color-primary);
  padding-left: var(--space-lg);
  border-left: 3px solid var(--color-primary);
}

/* DIY Comparison */
.bridge-diy__heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, var(--text-headline-md-size));
  font-weight: var(--text-headline-md-weight);
  color: var(--color-on-surface);
  margin: var(--space-sm) 0 var(--space-xl);
}

.bridge-diy__callout {
  background: color-mix(in srgb, var(--color-primary) 6%, var(--color-surface));
  border: 1px solid var(--color-surface-border);
  border-left: 4px solid var(--color-primary);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 860px;
}

.bridge-diy__lead {
  font-size: var(--text-body-lg-size);
  line-height: var(--text-body-lg-line-height);
  color: var(--color-on-surface-variant);
  margin: 0;
}

.bridge-diy__pivot {
  font-size: var(--text-body-md-size);
  font-weight: 600;
  color: var(--color-on-surface);
  margin: 0;
  /* text-transform: uppercase; */
  letter-spacing: 0.04em;
  /* font-size: 0.8rem; */
}

.bridge-diy__advantages {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.bridge-diy__advantage {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.bridge-diy__icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.bridge-diy__advantage-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.bridge-diy__advantage-title {
  font-family: var(--font-display);
  font-size: var(--text-headline-sm-size);
  font-weight: var(--text-headline-sm-weight);
  color: var(--color-on-surface);
  line-height: 1.2;
}

.bridge-diy__advantage-body {
  font-size: var(--text-body-md-size);
  line-height: var(--text-body-md-line-height);
  color: var(--color-on-surface-variant);
}

.bridge-diy__closing {
  font-size: var(--text-body-md-size);
  font-style: italic;
  color: var(--color-on-surface);
  margin: 0;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-surface-border);
}

@media (max-width: 640px) {
  .bridge-diy__callout {
    padding: var(--space-lg);
  }
}

.bridge-eyebrow {
  display: block;
  font-size: var(--text-label-size);
  font-weight: var(--text-label-weight);
  letter-spacing: var(--text-label-letter-spacing);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

/* Lead paragraph */
.bridge-intro {
  padding-block: var(--space-2xl);
}

.bridge-intro__text {
  max-width: 65ch;
  margin-inline: auto;
  font-size: var(--text-body-lg-size);
  line-height: var(--text-body-lg-line-height);
  color: var(--color-on-surface-variant);
  text-align: center;
}

/* Section headers */
.bridge-section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.bridge-section-header h2 {
  margin: var(--space-sm) 0 0;
}

/* How it works — 3 steps */
.bridge-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.bridge-step {
  background: var(--color-surface-high);
  border: 1px solid var(--color-surface-border);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.bridge-step__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.35;
}

.bridge-step__title {
  font-family: var(--font-display);
  font-size: var(--text-headline-sm-size);
  font-weight: var(--text-headline-sm-weight);
  color: var(--color-on-surface);
  margin: 0;
}

.bridge-step__body {
  font-size: var(--text-body-md-size);
  line-height: var(--text-body-md-line-height);
  color: var(--color-on-surface-variant);
  margin: 0;
}

@media (max-width: 768px) {
  .bridge-steps {
    grid-template-columns: 1fr;
  }
}

/* Supported tools grid */
.bridge-tools-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs) var(--space-lg);
}

.bridge-tools-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-on-surface) 10%, transparent);
}

.bridge-tools-list__icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1.5;
}

.bridge-tools-list__body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--space-xs);
  min-width: 0;
}

.bridge-tools-list__tool {
  font-weight: 600;
  font-size: var(--text-body-sm-size);
  color: var(--color-on-surface);
  white-space: nowrap;
}

.bridge-tools-list__format {
  font-family: var(--font-code);
  font-size: 0.72rem;
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  border-radius: 3px;
  padding: 1px 5px;
  white-space: nowrap;
}

.bridge-tools-list__desc {
  flex-basis: 100%;
  font-size: 0.78rem;
  line-height: 1.4;
  color: color-mix(in srgb, var(--color-on-surface) 60%, transparent);
  margin-top: 2px;
}

@media (max-width: 640px) {
  .bridge-tools-list {
    grid-template-columns: 1fr;
  }
}

/* Missing handler callout */
.bridge-extend__callout {
  max-width: 720px;
  margin-inline: auto;
  padding: var(--space-xl) var(--space-2xl);
  background: color-mix(in srgb, var(--color-primary) 8%, var(--color-surface));
  border-left: 4px solid var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.bridge-extend__heading {
  font-family: var(--font-display);
  font-size: var(--text-headline-md-size);
  font-weight: var(--text-headline-md-weight);
  color: var(--color-on-surface);
  margin: 0;
}

.bridge-extend__body {
  font-size: var(--text-body-md-size);
  line-height: var(--text-body-md-line-height);
  color: var(--color-on-surface-variant);
  margin: 0;
  max-width: 60ch;
}

@media (max-width: 640px) {
  .bridge-extend__callout {
    padding: var(--space-lg);
  }
}

/* CTA grid */
.bridge-cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.offering-card--muted {
  opacity: 0.65;
}

.offering-card__soon {
  cursor: default;
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 768px) {
  .bridge-cta-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   Why Robotmk — Standalone Page
   ============================================================ */

/* Page-scoped: tighten the vertical rhythm on this page only. The shared
   .section padding (--space-section, 120px) stays intact for every other
   page; here the sections sit closer together. */
.why-hero.section,
.why-pricing.section,
.why-pillars.section {
  /* padding-block: var(--space-3xl); */
  padding-block: var(--space-2xl);
}

@media (max-width: 768px) {
  .why-hero.section,
  .why-pricing.section,
  .why-pillars.section {
    padding-block: var(--space-2xl);
  }
}

.why-hero {
  position: relative;
  text-align: center;
  overflow: hidden; /* the motif must never spill into page horizontal scroll */
}

.why-hero .container {
  position: relative;
  z-index: 1;
}

.why-hero__eyebrow {
  display: block;
  font-size: var(--text-label-size);
  font-weight: var(--text-label-weight);
  letter-spacing: var(--text-label-letter-spacing);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.why-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, var(--text-display-size));
  font-weight: var(--text-display-weight);
  letter-spacing: var(--text-display-letter-spacing);
  color: var(--color-on-surface);
  margin: 0 0 var(--space-md);
}

.why-hero__subtitle {
  font-size: var(--text-body-lg-size);
  line-height: var(--text-body-lg-line-height);
  color: var(--color-on-surface-variant);
  max-width: 60ch;
  margin-inline: auto;
}

.why-pricing__heading,
.why-pillars__heading {
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--text-headline-lg-size);
  font-weight: var(--text-headline-lg-weight);
  margin-bottom: var(--space-md);
}

.why-pricing__intro {
  text-align: center;
  max-width: 70ch;
  margin: 0 auto var(--space-xl);
  color: var(--color-on-surface-variant);
  line-height: var(--text-body-md-line-height);
}

/* ============================================================
   Formula contrast — compact inline callout replacing the old
   "formula vs formula" section heading. Same status-colour logic as
   the explorer: error for usage-based, primary for Checkmk.
   ============================================================ */

.formula-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: var(--space-md);
  max-width: var(--content-width);
  margin: 0 auto var(--space-2xl);
}

.formula-callout__item {
  flex: 1 1 260px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--color-surface-border);
  border-top: 2px solid var(--status-color);
  --status-color: var(--color-surface-border);
}

.formula-callout__item--bad  { --status-color: var(--color-error); }
.formula-callout__item--good { --status-color: var(--color-primary); }

.formula-callout__label {
  font-size: var(--text-label-size);
  font-weight: var(--text-label-weight);
  letter-spacing: var(--text-label-letter-spacing);
  text-transform: uppercase;
  color: var(--color-on-surface-variant);
}

.formula-callout__formula {
  font-family: var(--font-code);
  font-size: var(--text-code-size);
  color: var(--color-on-surface);
}

.formula-callout__item--good .formula-callout__formula { color: var(--color-primary); }

.formula-callout__vs {
  align-self: center;
  font-family: var(--font-code);
  font-size: var(--text-body-sm-size);
  color: var(--color-on-surface-muted);
}

@media (max-width: 640px) {
  .formula-callout__vs { display: none; }
}

/* Narrower than the full content width, centred — table + notes read as a
   compact block under the wide chart rather than spanning the whole page. */
.why-pricing__table-wrapper {
  overflow-x: auto;
  max-width: 680px;
  margin: 0 auto var(--space-md);
}

.why-pricing__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.why-pricing__table caption {
  caption-side: top;
  text-align: left;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-on-surface-muted);
  margin-bottom: var(--space-sm);
}

/* Only the essential rules: a firm line under the header and faint
   separators between rows — no vertical grid, no boxed cells. */
.why-pricing__table th,
.why-pricing__table td {
  border: 0;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-body-sm-size);
}

.why-pricing__table thead th {
  font-family: var(--font-display);
  color: var(--color-on-surface);
  text-align: center;
  border-bottom: 2px solid var(--color-surface-border);
}
.why-pricing__table thead th:first-child { text-align: left; }

.why-pricing__table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--color-on-surface);
}

.why-pricing__table tbody td {
  text-align: center;
  color: var(--color-on-surface-variant);
  font-variant-numeric: tabular-nums;
}

.why-pricing__table tbody tr + tr th,
.why-pricing__table tbody tr + tr td {
  border-top: 1px solid var(--color-surface-border);
}

/* The Robotmk column is the whole point of the table — tint the full column
   and accent its text so the eye lands there. */
.why-pricing__table-checkmk {
  color: var(--color-primary);
  font-weight: 600;
  background: rgba(21, 209, 160, 0.08);
}
.why-pricing__table thead .why-pricing__table-checkmk {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* The slider-label info tooltips live at the top of the controls column, so
   opening upward gets clipped by .explorer's overflow guard (overflow-x:
   hidden makes overflow-y compute to auto). Open these downward instead. */
.explorer__controls .explorer__info-tooltip {
  top: calc(100% + var(--space-sm));
  bottom: auto;
  transform: translateY(-4px);
}
.explorer__controls .explorer__info-btn:hover + .explorer__info-tooltip,
.explorer__controls .explorer__info-btn:focus + .explorer__info-tooltip {
  transform: translateY(0);
}

.why-pricing__source {
  max-width: 680px;
  margin-inline: auto;
  font-size: var(--text-body-sm-size);
  color: var(--color-on-surface-muted);
}

/* The long calculation notes sit a touch smaller than body copy. */
.why-pricing__source--note {
  font-size: 11.5px;
  line-height: 1.55;
}

/* ============================================================
   Fairness note — sits between the pricing table and the pillars.
   A balance: what the cloud vendors include on the left, what you
   take on with Robotmk on the right, and the payoff underneath.
   Same flat-panel + status-colour language as .formula-callout.
   ============================================================ */

.fairness {
  position: relative;
  max-width: 680px;
  margin: var(--space-2xl) auto 0;
  padding: var(--space-lg);
  background: var(--color-surface-low);
  border: 1px solid var(--color-surface-border);
}

/* The two-tone rule reads as the beam of a scale: usage-based red on the
   vendors' side, teal on ours. */
.fairness::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--color-error) 0 50%, var(--color-primary) 50% 100%);
}

.fairness__label {
  display: block;
  font-size: var(--text-label-size);
  font-weight: var(--text-label-weight);
  letter-spacing: var(--text-label-letter-spacing);
  text-transform: uppercase;
  color: var(--color-on-surface-muted);
  margin-bottom: var(--space-xs);
}

.fairness__heading {
  font-family: var(--font-display);
  font-size: var(--text-body-lg-size);
  color: var(--color-on-surface);
  margin: 0 0 var(--space-lg);
}

.fairness__columns {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.fairness__pivot {
  align-self: stretch;
  background: var(--color-surface-border);
}

.fairness__col {
  --status-color: var(--color-surface-border);
  border-left: 2px solid var(--status-color);
  padding-left: var(--space-md);
}

.fairness__col--cloud   { --status-color: var(--color-error); }
.fairness__col--robotmk { --status-color: var(--color-primary); }

.fairness__col-label {
  display: block;
  font-family: var(--font-code);
  font-size: var(--text-body-sm-size);
  color: var(--status-color);
  margin-bottom: var(--space-xs);
}

.fairness__col-text {
  margin: 0;
  font-size: var(--text-body-sm-size);
  line-height: var(--text-body-md-line-height);
  color: var(--color-on-surface-variant);
}

.fairness__col-text b { color: var(--color-on-surface); font-weight: 600; }

.fairness__conclusion {
  margin: var(--space-lg) 0 0;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-surface-border);
  font-size: var(--text-body-md-size);
  line-height: var(--text-body-md-line-height);
  color: var(--color-on-surface);
}

@media (max-width: 640px) {
  .fairness__columns {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .fairness__pivot { display: none; }
}

/* Six columns so cards can sit 3-up (span 2) or 2-up (span 3) in the same
   grid — the closing row needs halves, the rest needs thirds. */
.why-pillars__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-md);
}

.why-pillar-card { grid-column: span 2; }

.why-pillar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Four teal dots inset from the corners — reads as a plaque screwed into
   place. Muted at rest, full teal when the card is hovered. The .card
   component already supplies the border + hover-border transition. */
.why-pillar-card__rivet {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.3;
  transition: opacity var(--transition-fast);
}
.why-pillar-card__rivet:nth-child(1) { top: var(--space-md); left: var(--space-md); }
.why-pillar-card__rivet:nth-child(2) { top: var(--space-md); right: var(--space-md); }
.why-pillar-card__rivet:nth-child(3) { bottom: var(--space-md); left: var(--space-md); }
.why-pillar-card__rivet:nth-child(4) { bottom: var(--space-md); right: var(--space-md); }

.why-pillar-card:hover .why-pillar-card__rivet {
  opacity: 0.9;
}

.why-pillar-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-surface-border);
  color: var(--color-on-surface-variant);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.why-pillar-card:hover .why-pillar-card__icon {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.why-icon {
  width: 22px;
  height: 22px;
}

/* The single filled focal detail per icon — coloured independently of the
   monoline stroke so it stays teal while the stroke follows currentColor. */
.why-icon__accent {
  fill: var(--color-primary);
  stroke: none;
}

.why-pillar-card__body {
  flex: 1;
  min-width: 0;
}

.why-pillar-card__title {
  font-family: var(--font-display);
  font-size: var(--text-headline-sm-size);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-xs);
}

.why-pillar-card__text {
  font-size: var(--text-body-sm-size);
  color: var(--color-on-surface-variant);
  line-height: var(--text-body-sm-line-height);
  margin: 0;
}

/* "Learn more" expander — a native <details> (keyboard-operable and
   readable with no JS); pillar-expand.js layers a height animation on top. */
.why-more {
  margin-top: var(--space-md);
}

.why-more__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  cursor: pointer;
  list-style: none;
  font-size: var(--text-body-sm-size);
  font-weight: 600;
  color: var(--color-primary);
}
.why-more__toggle::-webkit-details-marker { display: none; }

.why-more__toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.why-more__chevron {
  transition: transform var(--transition-fast);
}
.why-more[open] .why-more__chevron {
  transform: rotate(180deg);
}

.why-more__panel {
  overflow: hidden;
}

.why-more__panel p {
  margin: var(--space-sm) 0 0;
  font-size: var(--text-body-sm-size);
  line-height: var(--text-body-sm-line-height);
  color: var(--color-on-surface-variant);
}

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

/* The last two pillars close the list rather than sitting stranded in a
   3-column grid's leftover row: a half-width, horizontal, accent-bordered
   pair — a deliberate "closing reassurance" rather than two more boxes. */
.why-pillar-card--closing {
  grid-column: span 3;
  flex-direction: row;
  align-items: center;
  gap: var(--space-lg);
  border-left: 3px solid var(--color-primary);
  padding-left: calc(var(--space-xl) - 3px);
}

.why-pillar-card--closing .why-pillar-card__icon {
  width: 56px;
  height: 56px;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.why-pillar-card--closing .why-icon {
  width: 28px;
  height: 28px;
}

@media (max-width: 768px) {
  .why-pillars__grid {
    grid-template-columns: 1fr;
  }

  .why-pillar-card,
  .why-pillar-card--closing {
    grid-column: auto;
  }

  .why-pillar-card--closing {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   Explorer — interactive pricing bar chart

   Same status-color logic as the cost chart above: --color-error for
   the three usage-based vendors, --color-primary for Checkmk. Unlike
   the overlapping-lines version this replaced, bars are already
   spatially separated and each carries its own vendor-name label
   underneath, so sharing one hue across the three "bad" bars doesn't
   hurt identification — no dash-pattern/legend trick needed here.
   ============================================================ */

.explorer {
  max-width: var(--content-width);
  margin-inline: auto;
  text-align: left;
  /* Six absolutely-positioned tooltips (2 sliders + 4 vendors) can extend
     past this box's edge even while invisible (opacity:0 doesn't remove
     an element's geometry from the layout) — same class of bug as the
     chart tooltip fixed earlier. Contain it here rather than per-tooltip. */
  overflow-x: hidden;
}

.explorer__body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

/* DOM order is controls-then-chart (so mobile, which needs sliders before
   the graph, needs no override) — flex `order` flips the visual sequence
   on wide viewports where the chart should lead. */
.explorer__chart-col {
  flex: 1 1 420px;
  max-width: 480px;
  order: 1;
}

/* --- Sliders --- */

.explorer__controls {
  flex: 1 1 260px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  padding-top: var(--space-xl);
  order: 2;
}

.explorer__control-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.explorer__slider-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.explorer__slider-label {
  font-size: 13px;
  font-weight: var(--text-label-weight);
  letter-spacing: var(--text-label-letter-spacing);
  text-transform: uppercase;
  color: var(--color-on-surface-variant);
}

.explorer__slider {
  position: relative;
  padding-block: var(--space-sm);
}

.explorer__range {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 24px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.explorer__range:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 50%;
}

/* The fill-gradient is painted directly on the native track (not a separate
   overlaid div) so the thumb — which the browser centers relative to this
   same track — is always correctly seated on top of it, never floating
   above it. */
.explorer__range::-webkit-slider-runnable-track {
  height: 5px;
  background: linear-gradient(
    to right,
    var(--color-primary) 0%,
    var(--color-primary) var(--fill, 0%),
    var(--color-surface-border) var(--fill, 0%),
    var(--color-surface-border) 100%
  );
}

.explorer__range::-moz-range-track {
  height: 5px;
  background: linear-gradient(
    to right,
    var(--color-primary) 0%,
    var(--color-primary) var(--fill, 0%),
    var(--color-surface-border) var(--fill, 0%),
    var(--color-surface-border) 100%
  );
}

/* A round knob is a deliberate, scoped exception to the site's sharp-corners
   token rule — a literal square thumb reads as broken on a slider, and a
   circular knob is the near-universal convention for this control. */
.explorer__range::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8.5px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-background);
  box-shadow: 0 0 0 1px var(--color-surface-border);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  animation: explorer-knob-pulse 2.6s ease-out infinite;
}

.explorer__range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-background);
  box-shadow: 0 0 0 1px var(--color-surface-border);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  animation: explorer-knob-pulse 2.6s ease-out infinite;
}

@keyframes explorer-knob-pulse {
  0%   { box-shadow: 0 0 0 1px var(--color-surface-border), 0 0 0 0 rgba(21, 209, 160, 0.35); }
  70%  { box-shadow: 0 0 0 1px var(--color-surface-border), 0 0 0 11px rgba(21, 209, 160, 0); }
  100% { box-shadow: 0 0 0 1px var(--color-surface-border), 0 0 0 0 rgba(21, 209, 160, 0); }
}

.explorer__range:hover::-webkit-slider-thumb,
.explorer__range:active::-webkit-slider-thumb,
.explorer__range--touched::-webkit-slider-thumb {
  animation: none;
}

.explorer__range:hover::-moz-range-thumb,
.explorer__range:active::-moz-range-thumb,
.explorer__range--touched::-moz-range-thumb {
  animation: none;
}

.explorer__range:hover::-webkit-slider-thumb,
.explorer__range:active::-webkit-slider-thumb {
  transform: scale(1.15);
  box-shadow: 0 0 0 1px var(--color-surface-border), 0 0 0 6px rgba(21, 209, 160, 0.18);
}

.explorer__range:hover::-moz-range-thumb,
.explorer__range:active::-moz-range-thumb {
  transform: scale(1.15);
  box-shadow: 0 0 0 1px var(--color-surface-border), 0 0 0 6px rgba(21, 209, 160, 0.18);
}

.explorer__slider-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-md);
  font-family: var(--font-code);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-on-surface-variant);
}

.explorer__slider-current {
  font-family: var(--font-code);
  font-size: var(--text-headline-sm-size);
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .explorer__range::-webkit-slider-thumb,
  .explorer__range::-moz-range-thumb {
    transition: none;
    animation: none;
  }
}

/* --- Info tooltips (shared: slider labels + vendor bar labels) ---

   Anchored left rather than centered on the trigger button, because a
   centered popup on an edge-adjacent trigger (the first/last vendor
   label, or a slider label near the left of a narrow controls column)
   would overflow its container. The last vendor label gets an explicit
   right-anchor override instead. */

.explorer__label-info {
  position: relative;
  display: inline-flex;
}

.explorer__info-btn {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border: 1px solid var(--color-on-surface-muted);
  border-radius: 50%;
  font-family: var(--font-code);
  font-size: 10px;
  font-style: italic;
  color: var(--color-on-surface-muted);
  cursor: help;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.explorer__info-btn:hover,
.explorer__info-btn:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.explorer__info-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.explorer__info-tooltip {
  position: absolute;
  bottom: calc(100% + var(--space-sm));
  left: 0;
  transform: translateY(4px);
  width: max-content;
  max-width: 240px;
  background: var(--color-surface-high);
  border: 1px solid var(--color-surface-border);
  color: var(--color-on-surface);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.5;
  padding: var(--space-sm) var(--space-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 5;
}

.explorer__bar-label-item--last .explorer__info-tooltip {
  left: auto;
  right: 0;
}

/* Plain :focus (not :focus-visible) here — a tap on touch devices doesn't
   reliably set the focus-visible flag in every mobile browser, but it
   always fires a plain focus event. The visible ring above stays
   keyboard-only via :focus-visible; reveal just needs any focus. */
.explorer__info-btn:hover + .explorer__info-tooltip,
.explorer__info-btn:focus + .explorer__info-tooltip {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

/* --- Chart --- */

.explorer__y-label {
  display: block;
  font-family: var(--font-code);
  font-size: 11px;
  color: var(--color-on-surface-muted);
  margin-bottom: var(--space-xs);
}

.explorer__chart-wrap {
  position: relative;
  overflow: hidden;
}

.explorer__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.explorer__gridlines line {
  stroke: var(--color-surface-border);
  stroke-width: 1;
}

.explorer__axis-y text {
  font-family: var(--font-code);
  font-size: 11px;
  fill: var(--color-on-surface-muted);
}

.explorer__bar {
  transition: y 500ms cubic-bezier(.16, .84, .44, 1), height 500ms cubic-bezier(.16, .84, .44, 1);
}

.explorer__bar--bad  { fill: var(--color-error); }
.explorer__bar--good { fill: var(--color-primary); }

/* Capped-bar indicator: two small chevrons drifting slowly upward and
   fading, in a subtle lighter/translucent red — read as "more, above the
   frame" rather than the harsher zigzag "break" mark this replaced. */
.explorer__bar-cap {
  display: none;
}

.explorer__bar-cap.is-capped {
  display: block;
}

.explorer__bar-cap path {
  fill: none;
  stroke: var(--color-error);
  opacity: 0.5;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: explorer-cap-rise 2.2s ease-in-out infinite;
}

.explorer__bar-cap path:nth-child(2) {
  animation-delay: 0.55s;
}

@keyframes explorer-cap-rise {
  0%   { transform: translateY(7px); opacity: 0; }
  35%  { opacity: 0.5; }
  85%  { opacity: 0.08; }
  100% { transform: translateY(-8px); opacity: 0; }
}

.explorer__bar-value {
  font-family: var(--font-code);
  font-size: 13px;
  font-weight: 600;
  fill: var(--color-on-surface);
  text-anchor: middle;
  transition: y 500ms cubic-bezier(.16, .84, .44, 1);
}

.explorer__bar-value--capped {
  fill: var(--color-error);
  font-weight: 700;
}

/* Vendor names live as an HTML row below the SVG (not SVG <text>) so they
   can carry a real, CSS-styled tooltip — each item's left offset is set by
   JS to match its bar's horizontal center exactly. Width is capped to
   roughly one bar-slot and wrapping is allowed (not nowrap): the longest
   name ("Checkmk with Robotmk") would otherwise overlap its neighbor at
   these tight 4-across positions regardless of exact wording. */
.explorer__bar-labels {
  position: relative;
  height: 40px;
  margin-top: var(--space-sm);
}

.explorer__bar-label-item {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  /* Percentage, not a fixed px, so it shrinks in step with the responsive
     SVG — a fixed width stayed constant while the chart narrowed, so
     labels collided again at phone widths. ~19% comfortably clears the
     ~21% slot pitch (chart width / 4 vendors) with a small gap either side. */
  width: 19%;
  text-align: center;
}

.explorer__bar-label-text {
  font-size: 12px;
  line-height: 1.3;
  color: var(--color-on-surface-variant);
}

.explorer__bar-label-item .explorer__label-info {
  vertical-align: middle;
  margin-left: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .explorer__bar,
  .explorer__bar-value {
    transition: none;
  }

  .explorer__bar-cap path {
    animation: none;
    opacity: 0.5;
    transform: none;
  }
}

.explorer__hint {
  text-align: center;
  font-size: var(--text-body-sm-size);
  color: var(--color-on-surface-muted);
  margin: var(--space-lg) 0 0;
}

.explorer__noscript {
  text-align: center;
  color: var(--color-on-surface-muted);
  font-size: var(--text-body-sm-size);
}

@media (max-width: 860px) {
  .explorer__body {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-lg);
  }

  /* flex-basis meant for width in row-mode becomes a *height* constraint
     once flex-direction switches to column — reset both to full-width,
     content-sized blocks instead of inheriting the row-mode numbers. */
  .explorer__chart-col,
  .explorer__controls {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
  }

  /* Sliders before the graph on narrow viewports — DOM order already
     puts controls first, so just cancel the desktop order flip. */
  .explorer__controls {
    order: 1;
    padding-top: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-xl);
  }

  .explorer__chart-col {
    order: 2;
  }

  .explorer__control {
    flex: 1 1 220px;
  }
}

@media (max-width: 480px) {
  .explorer__controls {
    flex-direction: column;
  }

  /* Narrower popup + right-anchor the last two vendor labels (not just the
     literal last one) — at phone widths four evenly-spread items leave too
     little room right of the third for a left-anchored tooltip to clear
     the edge before it gets clipped by .explorer's overflow guard. */
  .explorer__info-tooltip {
    max-width: 170px;
  }

  .explorer__bar-label-item:nth-last-child(-n+2) .explorer__info-tooltip {
    left: auto;
    right: 0;
  }
}

@media (max-width: 768px) {
  .why-pillars__grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   Use Cases — subpage and overview
   ============================================================ */

/* --- Hero --- */
.use-case__hero {
  position: relative;   /* anchors .hero-motif */
  overflow: hidden;     /* the motif must never cause horizontal scroll */
  text-align: center;
}

.use-case__hero .container {
  position: relative;
  z-index: 1;
}

.use-case__eyebrow {
  display: block;
  font-size: var(--text-label-size);
  font-weight: var(--text-label-weight);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.use-case__title {
  font-family: var(--font-display);
  font-size: var(--text-display-size);
  line-height: 1.1;
  color: var(--color-on-surface);
  max-width: 18ch;
  margin-inline: auto;
}

.use-case__teaser {
  font-size: var(--text-body-lg-size);
  color: var(--color-on-surface-variant);
  max-width: 60ch;
  margin: var(--space-md) auto 0;
}

/* --- Library badges --- */
.use-case__libs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
}

.use-case__lib {
  font-family: var(--font-code);
  font-size: var(--text-label-size);
  color: var(--color-on-surface-variant);
  background-color: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: 999px;
  padding: var(--space-xs) var(--space-sm);
}

/* --- Proof slot --- */
.use-case__proof-media {
  margin: 0;
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-surface-low);
}

.use-case__proof-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Prose body --- */
.use-case__prose {
  max-width: 68ch;
  margin-inline: auto;
  color: var(--color-on-surface-variant);
}

.use-case__prose h2 {
  font-family: var(--font-display);
  font-size: var(--text-headline-md-size);
  color: var(--color-on-surface);
  margin-top: var(--space-2xl);
}

.use-case__prose h2:first-child {
  margin-top: 0;
}

/* Robot Framework code: deliberately not syntax-highlighted.
   Chroma has no RobotFramework lexer, so these blocks are plain text —
   they earn their keep through typography, not colour. */
.use-case__prose pre {
  background-color: var(--color-surface-low);
  border: 1px solid var(--color-surface-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius);
  padding: var(--space-md);
  overflow-x: auto;   /* long keyword lines must scroll, not break the page */
}

.use-case__prose pre code {
  font-family: var(--font-code);
  font-size: var(--text-code-size);
  line-height: 1.7;
  color: var(--color-on-surface);
  white-space: pre;
}

/* --- CTA --- */
.use-case__cta {
  text-align: center;
}

.use-case__cta-text {
  font-family: var(--font-display);
  font-size: var(--text-headline-md-size);
  color: var(--color-on-surface);
  margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
  .use-case__title {
    max-width: none;
  }
}

/* --- Overview --- */
.use-cases__hero {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.use-cases__hero .container {
  position: relative;
  z-index: 1;
}

.use-cases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.use-cases__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  height: 100%;
  padding: var(--space-lg);
  background-color: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.use-cases__card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.use-cases__card-title {
  font-family: var(--font-display);
  font-size: var(--text-label-size);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.use-cases__card-problem {
  font-family: var(--font-display);
  font-size: var(--text-headline-md-size);
  line-height: 1.3;
  color: var(--color-on-surface);
}

.use-cases__card-libs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: auto;   /* badges sit at the card foot regardless of text length */
  padding-top: var(--space-md);
}

@media (prefers-reduced-motion: reduce) {
  .use-cases__card {
    transition: none;
  }
  .use-cases__card:hover {
    transform: none;
  }
}
/* ============================================================
   FAQ page — categorised, collapsible questions
   Native <details> accordions; the search/pill controls are
   revealed by assets/js/faq.js (progressive enhancement).
   ============================================================ */

/* --- Hero ----------------------------------------------------------------- */
/* Mirrors .why-hero: the motif is absolutely positioned and MUST be clipped
   by a positioned, overflow-hidden parent, or it tiles the whole page. */

/* Same rhythm as why-robotmk: the 120px default of .section leaves a dead
   band between the hero rule and the content once the intro moves down. */
.faq-hero.section,
.faq.section {
  padding-block: var(--space-2xl);
}

.faq-hero {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.faq-hero .container {
  position: relative;
  z-index: 1;
}

.faq-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, var(--text-display-size));
  font-weight: var(--text-display-weight);
  letter-spacing: var(--text-display-letter-spacing);
  color: var(--color-on-surface);
  margin: 0;
}

/* --- Body ----------------------------------------------------------------- */

.faq__container {
  max-width: 860px;
}

/* Body copy, not hero copy: it introduces the collection at the point of use,
   directly above the search box. */
.faq__intro {
  max-width: 68ch;
  margin: 0 0 var(--space-lg);
  font-size: var(--text-body-md-size);
  line-height: var(--text-body-lg-line-height);
  color: var(--color-on-surface-variant);
}

/* --- Controls (search + category pills) ---------------------------------- */

.faq__controls {
  margin-bottom: var(--space-2xl);
}

.faq__search {
  width: 100%;
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-body-md-size);
  color: var(--color-on-surface);
  background: var(--color-surface-low);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius);
  transition: border-color var(--transition-fast);
}

.faq__search::placeholder { color: var(--color-on-surface-muted); }

.faq__search:focus {
  outline: none;
  border-color: var(--color-primary);
}

.faq__pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.faq__pill {
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-body-sm-size);
  font-weight: 600;
  color: var(--color-on-surface-variant);
  background: transparent;
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color var(--transition-fast),
              border-color var(--transition-fast),
              background-color var(--transition-fast);
}

.faq__pill:hover {
  color: var(--color-on-surface);
  border-color: var(--color-on-surface-variant);
}

.faq__pill--active,
.faq__pill--active:hover {
  color: var(--color-on-primary);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* --- Empty search state --------------------------------------------------- */

.faq__no-results {
  padding: var(--space-lg) 0;
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md-size);
}

.faq__no-results a { color: var(--color-primary); }

/* --- Categories ----------------------------------------------------------- */

.faq__category {
  margin-bottom: var(--space-2xl);
  /* The sticky nav must not cover the heading on #anchor jumps. */
  scroll-margin-top: calc(var(--nav-height) + var(--space-lg));
}

.faq__category-title {
  font-family: var(--font-display);
  font-size: var(--text-headline-sm-size);
  font-weight: var(--text-headline-sm-weight);
  line-height: var(--text-headline-sm-line-height);
  letter-spacing: var(--text-label-letter-spacing);
  text-transform: uppercase;
  color: var(--color-on-surface-muted);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-surface-border);
}

/* --- Question / answer ---------------------------------------------------- */

.faq__item {
  border-bottom: 1px solid var(--color-surface-border);
}

/* Filtering in faq.js sets the hidden attribute; <details> would otherwise
   keep its display:block and stay visible. */
.faq__item[hidden],
.faq__category[hidden],
.faq__controls[hidden],
.faq__no-results[hidden] {
  display: none;
}

.faq__question {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-body);
  font-size: var(--text-body-lg-size);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-on-surface);
  transition: color var(--transition-fast);
}

/* Suppress the native disclosure triangle — we draw our own chevron. */
.faq__question::-webkit-details-marker { display: none; }
.faq__question::marker { content: ""; }

.faq__question:hover { color: var(--color-primary); }

.faq__question:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.faq__chevron {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-right: 2px solid var(--color-on-surface-muted);
  border-bottom: 2px solid var(--color-on-surface-muted);
  transform: rotate(45deg);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.faq__item[open] .faq__chevron {
  transform: rotate(225deg);
  border-color: var(--color-primary);
}

.faq__answer {
  padding: 0 0 var(--space-lg);
  max-width: 68ch;
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md-size);
  line-height: var(--text-body-lg-line-height);
}

.faq__answer p { margin: 0 0 var(--space-md); }
.faq__answer ul,
.faq__answer ol { margin: 0 0 var(--space-md) var(--space-lg); }
.faq__answer li { margin-bottom: var(--space-xs); }
.faq__answer strong { color: var(--color-on-surface); }
.faq__answer a { color: var(--color-primary); }

/* --- Micro-CTA ------------------------------------------------------------ */
/* Deliberately quiet: present after every answer, but never competing with it. */

.faq__micro-cta {
  margin: var(--space-md) 0 0;
  font-size: var(--text-body-sm-size);
  color: var(--color-on-surface-muted);
}

.faq__micro-cta a {
  color: var(--color-on-surface-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.faq__micro-cta a:hover { color: var(--color-primary); }

@media (prefers-reduced-motion: reduce) {
  .faq__chevron,
  .faq__pill { transition: none; }
}

/* --- Mobile --------------------------------------------------------------- */

@media (max-width: 640px) {
  .faq__question { font-size: var(--text-body-md-size); }
  .faq__pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    /* Let the pill row bleed to the viewport edges so it reads as scrollable. */
    margin: 0 calc(var(--space-lg) * -1);
    padding: 0 var(--space-lg) var(--space-sm);
    -webkit-overflow-scrolling: touch;
  }
  .faq__pill { white-space: nowrap; }
}
/* Blog List */
.blog-list {
  padding: var(--space-xl) 0;
}

.blog-list__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-md);
}

.blog-list__empty {
  color: var(--color-text-secondary);
  text-align: center;
  padding: var(--space-xl) 0;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.blog-card--pinned {
  border-top: 2px solid var(--color-primary);
}

.blog-card {
  position: relative;
}

.blog-card__pin-icon {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  color: var(--color-primary);
  line-height: 0;
  pointer-events: none;
}

.blog-card__thumb-link {
  display: block;
  overflow: hidden;
}

.blog-card__thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-fast);
}

.blog-card:hover .blog-card__thumb {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .blog-card:hover .blog-card__thumb {
    transform: none;
  }
}

.blog-card__body {
  padding: var(--space-sm) var(--space-sm) 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.blog-card__date {
  font-variant-numeric: tabular-nums;
}

.blog-card__cat {
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.blog-card__title a {
  color: var(--color-text-primary);
  text-decoration: none;
}

.blog-card__title a:hover {
  color: var(--color-primary);
}

.blog-card__lead {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.blog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.blog-card__tag {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
  font-size: 0.65rem;
  padding: 2px 8px;
}

.blog-card__footer {
  padding: var(--space-sm);
  margin-top: auto;
}

/* Blog Single Post */
.post__container {
  max-width: 740px;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.post__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.post__date {
  font-variant-numeric: tabular-nums;
}

.post__cat {
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
}

.post__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-sm);
}

.post__lead {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0 0 var(--space-md);
}

.post__thumb {
  margin-bottom: var(--space-lg);
  overflow: hidden;
}

.post__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.post__content {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text-primary);
}

.post__content h2,
.post__content h3,
.post__content h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.post__content h2 { font-size: 1.5rem; }
.post__content h3 { font-size: 1.25rem; }
.post__content h4 { font-size: 1.1rem; }

.post__content p {
  margin-bottom: var(--space-md);
}

.post__content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post__content ul,
.post__content ol {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.post__content ul {
  list-style-type: disc;
}

.post__content ol {
  list-style-type: decimal;
}

.post__content li {
  margin-bottom: 4px;
}

.post__content pre,
.post__content code {
  font-family: var(--font-code);
  font-size: 0.9rem;
}

.post__content pre {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-md);
  overflow-x: auto;
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.post__content :not(pre) > code {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 2px 6px;
  font-size: 0.875em;
}

.post__content img {
  max-width: 100%;
  height: auto;
}

.post__content blockquote {
  border-left: 3px solid var(--color-primary);
  margin: var(--space-md) 0;
  padding: var(--space-xs) var(--space-md);
  color: var(--color-text-secondary);
  font-style: italic;
}

.post__content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
}

.post__content th,
.post__content td {
  border: 1px solid var(--color-border);
  padding: var(--space-xs) var(--space-sm);
  text-align: left;
}

.post__content th {
  background: var(--color-surface);
  font-weight: 600;
}

.post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.post__tag {
  position: relative;
  display: inline-block;
  text-decoration: none;
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
  font-size: 0.65rem;
  padding: 2px 8px 2px 16px;
  clip-path: polygon(6px 0, 100% 0, 100% 100%, 6px 100%, 0 50%);
}

.post__tag::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--color-background, #fff);
  transform: translateY(-50%);
}

/* Table of Contents */
.toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  font-size: 0.875rem;
}

.toc nav ul {
  margin: 0;
  padding-left: var(--space-md);
}

.toc nav a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.toc nav a:hover {
  color: var(--color-primary);
}

/* Taxonomy Pages */
.taxonomy-list {
  padding: var(--space-xl) 0;
}

.taxonomy-list__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-sm);
}

.taxonomy-term {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: border-color var(--transition-fast);
}

.taxonomy-term:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.taxonomy-term__count {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

figure {
  margin-left: var(--space-md);
  margin-bottom: var(--space-xl);
}

figcaption {
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
}

hr {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

/* Author Box */
.authorbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  margin-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.authorbox__avatar {
  flex-shrink: 0;
  border: 2px solid var(--color-border);
  padding: 3px;
  float: none;
  margin: 0;
}

.authorbox__body {
  flex: 1;
}

.authorbox__header {
  margin-bottom: var(--space-xs);
}

.authorbox__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.authorbox__description {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.authorbox__warning {
  color: var(--color-error, #c0392b);
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .authorbox {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
