:root {
  --paw-red: #c00000;
  --paw-red-bright: #e10600;
  --paw-red-dim: rgba(192, 0, 0, 0.15);
  --paw-red-glow: rgba(192, 0, 0, 0.35);
  --bg-base: #050505;
  --bg-elevated: #0f0f12;
  --bg-card: #141418;
  --bg-card-hover: #1a1a21;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --radius: 14px;
  --radius-sm: 10px;
  --nav-h: 72px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --pixel-opacity: 0.06;
  --surface-alt: #0f0f12;
  --cookie-bg: #1a1f26;
  --cookie-title: #ffffff;
  --cookie-text: rgba(255, 255, 255, 0.78);
  --cookie-border: rgba(255, 255, 255, 0.08);
  --cookie-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

[data-theme='light'] {
  color-scheme: light;
  --bg-base: #ffffff;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border: rgba(15, 20, 25, 0.08);
  --border-strong: rgba(15, 20, 25, 0.14);
  --text: #0f1419;
  --text-muted: #64748b;
  --text-dim: #3d4f5f;
  --shadow: 0 24px 60px rgba(15, 20, 25, 0.12);
  --paw-red-dim: rgba(204, 0, 0, 0.08);
  --paw-red-glow: rgba(204, 0, 0, 0.18);
  --pixel-opacity: 0.04;
  --surface-alt: #f1f5f9;
  --cookie-bg: #ffffff;
  --cookie-title: #0f1419;
  --cookie-text: #3d4f5f;
  --cookie-border: rgba(15, 20, 25, 0.1);
  --cookie-shadow: 0 -8px 40px rgba(15, 20, 25, 0.12), 0 16px 48px rgba(15, 20, 25, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ── Nav ── */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  background: color-mix(in srgb, var(--bg-base) 82%, transparent);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.nav-rpa {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-rpa-logo {
  height: 26px;
  width: auto;
}

.nav-brand-divider {
  width: 1px;
  height: 22px;
  background: var(--border-strong);
  flex-shrink: 0;
}

.nav-product-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.nav-product-link img[data-asset] {
  height: 28px;
  width: auto;
}

.nav-product {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}

.nav-links a.is-active {
  color: var(--paw-red-bright);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.lang-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--bg-card-hover);
}

.lang-toggle__label {
  line-height: 1;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.nav-home {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}

.nav-home:hover {
  color: var(--paw-red-bright);
  background: var(--paw-red-dim);
}

.theme-switcher {
  position: relative;
  display: inline-flex;
}

.theme-switcher__trigger {
  position: relative;
}

.theme-switcher__icon {
  display: none;
}

html[data-theme-preference='light'] .theme-switcher__icon[data-pref-icon='light'],
html[data-theme-preference='system'] .theme-switcher__icon[data-pref-icon='system'],
html[data-theme-preference='dark'] .theme-switcher__icon[data-pref-icon='dark'] {
  display: block;
}

.theme-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  min-width: 160px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.theme-switcher__menu[hidden] {
  display: none !important;
}

.theme-switcher__option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.theme-switcher__option svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.theme-switcher__option:hover,
.theme-switcher__option:focus {
  background: var(--bg-card-hover);
  color: var(--text);
  outline: none;
}

.theme-switcher__option.is-active {
  color: var(--paw-red-bright);
  background: var(--paw-red-dim);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--paw-red);
  color: #fff;
  box-shadow: 0 8px 28px var(--paw-red-glow);
}

.btn-primary:hover {
  background: var(--paw-red-bright);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--bg-card);
}

.nav-cta {
  display: none;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  padding: calc(var(--nav-h) + 1.5rem) 0 4.5rem;
  overflow: hidden;
  box-sizing: border-box;
  scroll-margin-top: 0;
}

.hero > .container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  box-sizing: border-box;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: none;
}

[data-theme='dark'] .hero-gradient {
  background: none;
}

.hero-pixels {
  position: absolute;
  inset: 0;
  opacity: var(--pixel-opacity);
  background-image:
    linear-gradient(var(--paw-red) 1px, transparent 1px),
    linear-gradient(90deg, var(--paw-red) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, black, transparent);
}

[data-theme='dark'] .hero-pixels {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: start;
  width: 100%;
}

.hero-copy {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.85rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--paw-red);
  box-shadow: 0 0 10px var(--paw-red);
}

.hero-logo-wrap {
  margin-bottom: 0;
}

.hero-logo-wrap img {
  height: clamp(40px, 6vw, 56px);
  width: auto;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 700;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: var(--text-dim);
  margin: 0;
  max-width: 52ch;
}

.hero-note {
  margin: 0;
  max-width: 52ch;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
  padding-left: 0.85rem;
  border-left: 2px solid var(--paw-red);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
  margin-top: 0;
}

.hero-cta-group {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  box-shadow: none;
}

[data-theme='dark'] .hero-cta-group {
  box-shadow: none;
}

.hero-cta-group__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, filter 0.2s;
}

.hero-cta-group__icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.hero-cta-group__btn--primary {
  background: var(--paw-red);
  color: #fff;
}

.hero-cta-group__btn--primary:hover {
  background: var(--paw-red-bright);
}

.hero-cta-group__btn--secondary {
  background: transparent;
  color: var(--text);
}

.hero-cta-group__btn--secondary:hover {
  background: var(--bg-elevated);
  color: var(--paw-red-bright);
}

.hero-cta-group__btn + .hero-cta-group__btn {
  border-left: 1px solid var(--border-strong);
}

.hero-cta-group__btn:active {
  filter: brightness(0.96);
}

@media (max-width: 480px) {
  .hero-cta-group {
    width: 100%;
    flex-direction: column;
    border-radius: 14px;
  }

  .hero-cta-group__btn {
    width: 100%;
    padding: 0.85rem 1rem;
  }

  .hero-cta-group__btn + .hero-cta-group__btn {
    border-left: none;
    border-top: 1px solid var(--border-strong);
  }
}

.hero-visual {
  position: relative;
  width: 100%;
  min-width: 0;
  display: flex;
  align-self: stretch;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-card--orch {
  padding: 1.4rem 1.5rem 1.55rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 100%;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  animation: hero-scroll-bounce 2s ease infinite;
  z-index: 2;
}

.hero-scroll-hint:hover {
  color: var(--text-muted);
}

.hero-scroll-hint .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
}

@keyframes hero-scroll-bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.hero-card-title {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
}

.orch-play-btn {
  position: relative;
  margin-left: auto;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.orch-play-btn:hover {
  border-color: var(--paw-red);
  color: var(--paw-red-bright);
  background: var(--paw-red-dim);
}

.orch-play-btn:active {
  transform: scale(0.96);
}

.orch-play-btn::before,
.orch-play-btn::after {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
}

.orch-play-btn::after {
  content: attr(data-tooltip);
  bottom: calc(100% + 10px);
  right: 0;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transform: translateY(4px);
}

.orch-play-btn::before {
  content: '';
  bottom: calc(100% + 4px);
  right: 0.7rem;
  border: 6px solid transparent;
  border-top-color: var(--border-strong);
  transform: translateY(4px);
}

.orch-play-btn:hover::before,
.orch-play-btn:hover::after,
.orch-play-btn:focus-visible::before,
.orch-play-btn:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.orch-play-btn__icon {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}

.hero-card--orch.is-playing .orch-play-btn__icon--play,
.hero-card--orch:not(.is-playing) .orch-play-btn__icon--pause {
  display: none;
}

.hero-card--orch:not(.is-playing) .orch-play-btn__icon--play {
  display: block;
}

.hero-card--orch.is-playing .orch-pill.is-live {
  animation: orch-pill-pulse 1.6s ease-in-out infinite;
}

.hero-card--orch.is-playing .orch-bot.is-active .orch-bot-dot {
  animation: orch-dot-pulse 1.4s ease-in-out infinite;
}

.hero-card--orch.is-playing .orch-job-status.is-run {
  animation: orch-status-pulse 1.8s ease-in-out infinite;
}

@keyframes orch-pill-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.65;
  }
}

@keyframes orch-dot-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    transform: scale(1.08);
  }
}

@keyframes orch-status-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card--orch.is-playing .orch-pill.is-live,
  .hero-card--orch.is-playing .orch-bot.is-active .orch-bot-dot,
  .hero-card--orch.is-playing .orch-job-status.is-run {
    animation: none;
  }
}

.flow-preview {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.flow-node {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.85rem;
}

.flow-node.is-active {
  border-color: var(--paw-red);
  background: var(--paw-red-dim);
}

.flow-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--paw-red-dim);
  color: var(--paw-red);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.flow-connector {
  width: 2px;
  height: 12px;
  background: var(--border-strong);
  margin-left: 1.45rem;
}

/* ── Orchestrator preview ── */
.orch-preview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1 1 auto;
  min-height: 0;
  justify-content: space-between;
}

.orch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.orch-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.orch-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--paw-red-dim);
  color: var(--paw-red);
  white-space: nowrap;
}

.orch-bots {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.orch-bot {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.9rem;
  transition: border-color 0.35s ease, background 0.35s ease;
}

.orch-bot.is-active {
  border-color: var(--paw-red);
  background: var(--paw-red-dim);
}

.orch-bot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
}

.orch-bot.is-active .orch-bot-dot {
  background: #28c840;
  box-shadow: 0 0 0 3px rgba(40, 200, 64, 0.25);
}

.orch-bot-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.orch-bot-name {
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.orch-bot-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orch-bot-pct {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--paw-red);
}

.orch-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.orch-metric {
  text-align: center;
  padding: 0.85rem 0.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.orch-metric-val {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--paw-red);
  line-height: 1.2;
}

.orch-metric-lbl {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.orch-jobs {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.orch-jobs-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

.orch-job {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.orch-job-name {
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orch-job-status {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.orch-job-status.is-run {
  color: var(--paw-red);
  background: var(--paw-red-dim);
}

.orch-job-status.is-queue {
  color: #b45309;
  background: rgba(180, 83, 9, 0.12);
}

.orch-job-status.is-ok {
  color: #15803d;
  background: rgba(21, 128, 61, 0.12);
}

.orch-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.orch-bar-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 0.55rem;
}

.orch-bar-row > span {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.orch-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.orch-bar::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 50%);
  border-radius: inherit;
  background: var(--paw-red);
  transition: width 0.85s ease;
}

.orch-bot-pct,
.orch-metric-val {
  transition: color 0.3s ease;
}

.orch-bar.is-alt::after {
  background: color-mix(in srgb, var(--paw-red) 55%, #64748b);
}

/* ── Portal features ── */
.portal-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.portal-feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.portal-feature:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.portal-feature.is-active {
  border-color: var(--paw-red);
  background: var(--paw-red-dim);
  box-shadow: 0 0 0 1px var(--paw-red);
}

.portal-feature .card-icon {
  margin-bottom: 0.75rem;
}

.portal-feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.portal-feature p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.rpa-support {
  text-align: center;
}

.rpa-support-label {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.rpa-support-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.rpa-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  font-size: 0.9rem;
  font-weight: 600;
}

.rpa-chip--logo {
  box-sizing: border-box;
  width: 180px;
  height: 56px;
  min-width: 180px;
  min-height: 56px;
  padding: 0.55rem 0.9rem;
  background: #0a0a0a;
  border-color: rgba(255, 255, 255, 0.12);
}

.rpa-chip--logo img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 100%;
  max-height: 32px;
  object-fit: contain;
}

.rpa-chip--logo .rpa-logo-light {
  display: none;
}

.rpa-chip--logo[title='PAW Robot'] {
  background: var(--bg-card);
  border-color: var(--border-strong);
}

.rpa-chip--logo[title='PAW Robot'] img {
  height: 26px;
  max-height: 28px;
}

.rpa-chip--logo[title='Blue Prism'] img {
  height: 40px;
  max-height: 44px;
  max-width: 100%;
}

[data-theme='light'] .rpa-chip--logo {
  background: #ffffff;
  border-color: rgba(15, 20, 25, 0.12);
}

[data-theme='light'] .rpa-chip--logo .rpa-logo-dark {
  display: none;
}

[data-theme='light'] .rpa-chip--logo .rpa-logo-light {
  display: block;
}

[data-theme='light'] .rpa-chip--logo[title='PAW Robot'] .rpa-logo-dark,
[data-theme='light'] .rpa-chip--logo[title='PAW Robot'] img {
  display: block;
}

[data-theme='light'] .rpa-chip--logo[title='PAW Robot'] .rpa-logo-light {
  display: none;
}

/* ── Stats ── */
.hero-copy .stats {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 0;
  padding: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  width: 100%;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-value {
  display: block;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 700;
  color: var(--paw-red);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ── Sections / one-page panels ── */
section[data-scroll-index] {
  scroll-margin-top: var(--nav-h);
  box-sizing: border-box;
}

.section {
  padding: 4rem 0;
}

.section.panel {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.panel-contact {
  background: var(--bg-base);
  justify-content: flex-start;
  padding-top: 3.5rem;
  padding-bottom: 0;
}

.panel-contact .contact-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  padding-bottom: 2rem;
}

.panel-contact .cta-box {
  margin-bottom: 1.25rem;
}

.cta-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  background: linear-gradient(135deg, var(--paw-red) 0%, #7a0000 100%);
  color: #fff;
  text-align: center;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.cta-box h2 {
  position: relative;
  margin: 0 0 0.55rem;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
}

.cta-box p {
  position: relative;
  margin: 0 auto 1rem;
  max-width: 52ch;
  opacity: 0.92;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cta-box a.brand-link {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-box a.brand-link:hover {
  opacity: 0.9;
}

.cta-box .btn {
  position: relative;
  background: #fff;
  color: var(--paw-red);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  padding: 0.65rem 1.2rem;
  font-size: 0.9rem;
}

.cta-box .btn:hover {
  background: #f4f4f5;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
  border-color: color-mix(in srgb, var(--paw-red) 40%, var(--border));
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.65rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paw-red);
  color: #fff;
  flex-shrink: 0;
}

.contact-card-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.contact-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.contact-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.contact-card a {
  color: var(--paw-red);
  font-weight: 600;
}

.contact-card a:hover {
  text-decoration: underline;
}

.section-alt {
  background: var(--surface-alt);
  border-block: 1px solid var(--border);
}

.section-header {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paw-red);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.feature-card,
.platform-card,
.enterprise-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover,
.platform-card:hover,
.enterprise-card:hover {
  border-color: color-mix(in srgb, var(--paw-red) 40%, var(--border));
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

/* Light: raised cards like hero stats */
[data-theme='light'] .stat-card,
[data-theme='light'] .feature-card,
[data-theme='light'] .platform-card,
[data-theme='light'] .enterprise-card,
[data-theme='light'] .step,
[data-theme='light'] .contact-card,
[data-theme='light'] .portal-feature,
[data-theme='light'] .hero-card {
  background: #ffffff;
  border-color: rgba(15, 20, 25, 0.12);
  box-shadow:
    0 1px 2px rgba(15, 20, 25, 0.04),
    0 10px 28px rgba(15, 20, 25, 0.08);
}

[data-theme='dark'] .stat-card,
[data-theme='dark'] .feature-card,
[data-theme='dark'] .platform-card,
[data-theme='dark'] .enterprise-card,
[data-theme='dark'] .step,
[data-theme='dark'] .contact-card,
[data-theme='dark'] .portal-feature,
[data-theme='dark'] .hero-card {
  background: #1a1a21;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 12px 32px rgba(0, 0, 0, 0.45);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--paw-red-dim);
  color: var(--paw-red);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.card-icon--logo {
  background: transparent;
  padding: 0;
  overflow: visible;
}

.card-icon--logo img {
  width: auto;
  height: 32px;
  max-width: 52px;
  object-fit: contain;
}

.platform-card .card-icon--logo img[src*='windows'] {
  height: 26px;
  max-width: 26px;
}

.platform-card .card-icon--logo img[src*='browser-tabs'],
.platform-card .card-icon--logo img[src*='code-brackets'],
.platform-card .card-icon--logo img[src*='data-db'],
.platform-card .card-icon--logo img[src*='java'] {
  height: 28px;
  max-width: 28px;
}

.platform-card .card-icon--logo img[src*='sap'] {
  height: 18px;
  max-width: 46px;
  width: auto;
  border-radius: 2px;
  /* Official logo has a bottom-right black wedge; nudge down for optical middle align */
  transform: translateY(1.5px);
}

.feature-card h3,
.platform-card h3,
.enterprise-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.platform-card h3 {
  margin: 0;
  min-width: 0;
  line-height: 1;
}

.feature-card p,
.platform-card p,
.enterprise-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.platform-card-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
  width: 100%;
}

.platform-card .card-icon,
.platform-card .card-icon--logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  width: auto;
  height: auto;
  min-height: 0;
  line-height: 0;
  background: transparent;
  place-items: unset;
}

.platform-card-head > h3 {
  display: block;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 0;
  line-height: 1;
  text-align: left;
}

.platform-card p,
.platform-card .platform-tag {
  margin-left: 0;
  padding-left: 0;
  text-align: left;
}

.platform-card .card-icon--logo img {
  display: block;
  margin: 0;
  height: 28px;
  max-width: 40px;
  object-fit: contain;
  object-position: left center;
}

.platform-tag {
  display: inline-block;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--paw-red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Workflow steps ── */
.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paw-red);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ── Contact panel ── */

/* ── Callback modal ── */
.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1.25rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  margin-top: auto;
  margin-bottom: auto;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem 1.5rem;
  overflow: visible;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}

.modal-close:hover {
  color: var(--text);
}

.modal-dialog h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.modal-lead {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.prefer-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.28rem;
}

.prefer-option {
  margin: 0;
  cursor: pointer;
}

.prefer-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.prefer-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-height: 2.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-muted);
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
  line-height: 1;
}

.prefer-icon {
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.prefer-icon-email {
  transform: translateY(1px);
}

.prefer-icon-phone {
  transform: translateY(2px);
}

.prefer-icon svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

.prefer-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: inherit;
  line-height: 1.1rem;
  display: inline-flex;
  align-items: center;
}

.prefer-option input:checked + .prefer-card {
  border-color: var(--paw-red);
  background: var(--paw-red-dim);
  color: var(--text);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--paw-red) 45%, transparent);
}

.prefer-option:hover .prefer-card {
  border-color: var(--border-strong);
  color: var(--text);
}

.form-field.is-invalid input,
.form-field.is-invalid textarea,
.form-field.is-invalid .phone-country-btn,
.form-field.is-invalid .phone-row > input {
  border-color: #ef4444;
}

.form-field input,
.form-field textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--paw-red);
}

.phone-row {
  display: grid;
  grid-template-columns: 7.25rem 1fr;
  gap: 0.5rem;
  align-items: stretch;
}

.phone-country-wrap {
  position: relative;
  min-width: 0;
}

.phone-country-btn {
  width: 100%;
  height: 100%;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  background-color: var(--bg-card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  background-size: 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 1.55rem 0 0.35rem;
  cursor: pointer;
  outline: none;
}

.phone-country-btn:focus,
.phone-country-wrap.is-open .phone-country-btn {
  border-color: var(--paw-red);
}

.phone-country-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 30;
  width: min(18rem, calc(100vw - 3rem));
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone-country-panel[hidden] {
  display: none !important;
}

.phone-country-filter {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg-card);
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 0.7rem 0.75rem;
  outline: none;
  min-height: auto !important;
}

.phone-country-filter:focus {
  border-color: var(--border);
  box-shadow: inset 0 -1px 0 var(--paw-red);
}

.phone-country-list {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  max-height: 220px;
  overflow-y: auto;
}

.phone-country-list li {
  margin: 0;
}

.phone-country-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  text-align: left;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
}

.phone-country-option:hover,
.phone-country-option.is-active {
  background: var(--paw-red-dim);
}

.phone-country-option.is-selected {
  color: var(--paw-red-bright);
  font-weight: 600;
}

.phone-country-option .dial {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.phone-country-empty {
  padding: 0.85rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.phone-row > input[type='tel'] {
  min-width: 0;
  min-height: 2.75rem;
}

.form-field textarea {
  resize: vertical;
  min-height: 72px;
}

.form-submit {
  width: 100%;
  margin-top: 0.35rem;
}

.form-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-status {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
}

.form-status.is-success {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
}

.form-status.is-error {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

[data-theme='light'] .form-status.is-success {
  color: #15803d;
}

[data-theme='light'] .form-status.is-error {
  color: #b91c1c;
}

/* ── Footer (aligned with rpa.work) ── */
.site-footer {
  position: relative;
  padding: 0;
  border-top: 1px solid var(--border);
}

.site-footer--in-contact {
  margin-top: auto;
  width: 100%;
  background: #ffffff;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
}

[data-theme='dark'] .site-footer--in-contact {
  background: var(--bg-base);
  background-image: linear-gradient(180deg, rgba(192, 0, 0, 0.06) 0%, transparent 42%);
}

.site-footer__accent {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(320px, 60%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--paw-red), transparent);
  opacity: 0.85;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.site-footer__meta {
  text-align: center;
}

.site-footer__tagline {
  margin: 0 0 0.55rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}

.site-footer__tagline strong {
  color: var(--text);
  font-weight: 600;
}

.site-footer__copy {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
}

.site-footer__brand-name {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.site-footer__brand-name:hover {
  color: var(--paw-red);
}

.site-footer__dot {
  margin: 0 0.35em;
  color: var(--text-dim);
  opacity: 0.55;
}

.site-footer__rights {
  color: var(--text-muted);
  font-weight: 400;
}

.site-footer__legal {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

@media (max-height: 820px) {
  .site-footer__inner {
    padding: 14px 0;
  }
}

/* ── Responsive ── */
@media (min-width: 640px) {
  .card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .nav-product {
    display: none;
  }

  .nav-rpa-logo {
    height: 22px;
  }

  .hero,
  .section.panel {
    min-height: 0;
    height: auto;
  }

  .hero {
    padding: calc(var(--nav-h) + 2rem) 0 2rem;
  }

  .section.panel {
    padding: 3.5rem 0;
  }

  .portal-feature-grid {
    grid-template-columns: 1fr;
  }

  .orch-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-scroll-hint {
    display: none;
  }
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: 0.92fr 1.18fr;
    align-items: start;
  }

  .hero-copy {
    gap: 0.5rem;
  }

  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .step {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .step-num {
    margin-inline: auto;
  }
}

@media (min-width: 960px) {
  .card-grid.cols-2 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* ── Cookie consent ── */
.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;
}

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  padding: 16px;
  pointer-events: none;
}

.cookie-consent[hidden],
.cookie-settings[hidden] {
  display: none !important;
}

.cookie-consent__panel {
  pointer-events: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--cookie-border);
  background: var(--cookie-bg);
  color: var(--cookie-text);
  box-shadow: var(--cookie-shadow);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.cookie-consent__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.cookie-consent__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--cookie-title);
  letter-spacing: -0.01em;
}

.cookie-consent__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--cookie-text);
}

.cookie-consent__text-btn,
.cookie-consent__link,
.site-footer__link-btn {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--paw-red-bright);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.cookie-consent__text-btn:hover,
.cookie-consent__link:hover,
.site-footer__link-btn:hover {
  color: var(--paw-red);
}

.cookie-consent__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.cookie-consent__settings-btn {
  border: 0;
  background: none;
  color: var(--paw-red-bright);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  padding: 0;
}

.cookie-consent__settings-btn:hover {
  color: var(--paw-red);
}

.cookie-consent__accept-btn {
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--paw-red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 22px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s, transform 0.25s;
}

.cookie-consent__accept-btn:hover {
  background: var(--paw-red-bright);
}

.cookie-settings {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-settings__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.65);
}

.cookie-settings__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cookie-settings__header,
.cookie-settings__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.cookie-settings__footer {
  border-bottom: 0;
  border-top: 1px solid var(--border);
  justify-content: flex-end;
}

.cookie-settings__title {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text);
}

.cookie-settings__close {
  border: 0;
  background: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.cookie-settings__body {
  padding: 18px 22px;
}

.cookie-settings__intro {
  margin: 0 0 18px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.cookie-settings__item {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.cookie-settings__item:last-child {
  padding-bottom: 0;
}

.cookie-settings__item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cookie-settings__item-title {
  margin: 0 0 6px;
  font-size: 0.9375rem;
  color: var(--text);
}

.cookie-settings__item-desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.cookie-settings__badge {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--paw-red-bright);
  background: var(--paw-red-dim);
  border-radius: 9999px;
  padding: 6px 10px;
  white-space: nowrap;
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-switch__slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #94a3b8;
  border-radius: 9999px;
  transition: background 0.25s;
}

.cookie-switch__slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s;
}

.cookie-switch input:checked + .cookie-switch__slider {
  background: var(--paw-red);
}

.cookie-switch input:checked + .cookie-switch__slider::before {
  transform: translateX(20px);
}

.site-footer__links {
  margin: 10px 0 0;
  font-size: 0.8125rem;
}

.site-footer__links a,
.site-footer__link-btn {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.site-footer__links a:hover,
.site-footer__link-btn:hover {
  color: var(--paw-red-bright);
}

/* Legal / cookie policy page */
.legal-page {
  min-height: 100vh;
  padding-top: var(--nav-h);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(192, 0, 0, 0.1), transparent 60%),
    var(--bg-base);
}

.site-nav--static {
  background: color-mix(in srgb, var(--bg-base) 92%, transparent);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}

.legal-page__main {
  padding: 56px 0 72px;
}

.legal-page__content {
  max-width: 760px;
}

.legal-page__eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paw-red-bright);
}

.legal-page__title {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--text);
}

.legal-page__updated {
  margin: 0 0 36px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal-page__section {
  margin-bottom: 28px;
}

.legal-page__section h2 {
  margin: 0 0 10px;
  font-size: 1.125rem;
  color: var(--text);
}

.legal-page__section p,
.legal-page__section li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.legal-page__section ul {
  margin: 10px 0 0;
  padding-left: 1.2rem;
}

.legal-page__section li + li {
  margin-top: 8px;
}

.legal-page__cta {
  margin-top: 20px;
}

.legal-page__footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 32px;
  text-align: center;
}

.legal-page__footer p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.legal-page__footer-legal {
  margin-top: 4px !important;
  font-size: 0.6875rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .cookie-consent {
    padding: 12px;
  }

  .cookie-consent__panel {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px 16px;
  }

  .cookie-consent__actions {
    justify-content: space-between;
  }

  .cookie-consent__accept-btn {
    flex: 1;
    text-align: center;
  }

  .cookie-settings__item-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
