/* Holix Studio — marketing site */
:root {
  color-scheme: dark;
  --bg: #07090f;
  --bg-elevated: #0d111a;
  --bg-card: rgba(18, 24, 38, 0.72);
  --bg-card-solid: #121826;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e8eef9;
  --text-muted: #94a3b8;
  --text-soft: #64748b;
  --accent: #4f8cff;
  --accent-2: #7c5cff;
  --accent-3: #22d3ee;
  --accent-soft: rgba(79, 140, 255, 0.14);
  --ok: #34d399;
  --danger: #f87171;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --max: 1160px;
  --header-h: 78px;
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

/* Deep links from site chat land below fixed header */
[id] {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* Background atmosphere */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(79, 140, 255, 0.22), transparent 60%),
    radial-gradient(700px 480px at 90% 8%, rgba(124, 92, 255, 0.18), transparent 55%),
    radial-gradient(800px 500px at 50% 100%, rgba(34, 211, 238, 0.08), transparent 50%),
    var(--bg);
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: 0.5;
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Prevent horizontal overflow from long words / tables */
img, video, svg, canvas {
  max-width: 100%;
}

.compare-wrap {
  max-width: 100%;
}

/* Mobile drawer CTAs — hidden on desktop, flex on ≤900px (see media query) */
.nav .nav-mobile-cta {
  display: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(7, 9, 15, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 9, 15, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Logo + version stacked under it */
.brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  flex-shrink: 0;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    url("/studio/assets/brand/logo-mark.png?v=20260801") center / cover no-repeat,
    linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(79, 140, 255, 0.35);
  display: block;
  flex-shrink: 0;
  object-fit: cover;
  color: transparent;
  font-size: 0;
  overflow: hidden;
}
img.brand-mark {
  background: #0b0f17;
}

/* Live Studio version + short commit under logo (site.js ← /studio/api/health) */
.site-version {
  display: block;
  margin: 0;
  padding: 0 0 0 calc(34px + 0.7rem); /* align under “Holix Studio” text, not mark */
  border: none;
  background: none;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.15;
  white-space: nowrap;
  user-select: all;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-version[hidden] {
  display: none !important;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  color: var(--text-muted);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #4f8cff 0%, #6b6bff 55%, #7c5cff 100%);
  box-shadow: 0 10px 30px rgba(79, 140, 255, 0.32);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(79, 140, 255, 0.42);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
}

.btn-lg {
  padding: 0.95rem 1.55rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 3rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid rgba(79, 140, 255, 0.25);
  color: #b7d0ff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 12px var(--accent-3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.hero h1 .grad {
  background: linear-gradient(120deg, #8ec5ff 0%, #a78bfa 45%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.12rem;
  max-width: 34rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stat {
  min-width: 6.5rem;
}

.stat strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.stat span {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  background: radial-gradient(circle, rgba(79, 140, 255, 0.35), transparent 65%);
  filter: blur(30px);
  z-index: 0;
  animation: float-glow 6s ease-in-out infinite;
}

@keyframes float-glow {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
  50% { transform: translateY(-12px) scale(1.05); opacity: 1; }
}

.hero-frame {
  position: relative;
  z-index: 1;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  background: var(--bg-card-solid);
  transform: perspective(1200px) rotateY(-6deg) rotateX(4deg);
  transition: transform 0.6s var(--ease);
}

.hero-frame:hover {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg) scale(1.01);
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.float-badge {
  position: absolute;
  z-index: 2;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  background: rgba(12, 16, 28, 0.82);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  font-size: 0.82rem;
  color: var(--text-muted);
  animation: float-y 5s ease-in-out infinite;
  max-width: min(200px, 46vw);
}

/* Themed page heroes (agent / business / on-prem) */
.hero--agent .hero-visual::before {
  background:
    radial-gradient(circle at 40% 40%, rgba(124, 92, 255, 0.4), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(34, 211, 238, 0.28), transparent 50%);
  animation: float-glow 5.5s ease-in-out infinite;
}

.hero--business .hero-visual::before {
  background:
    radial-gradient(circle at 35% 35%, rgba(79, 140, 255, 0.42), transparent 55%),
    radial-gradient(circle at 75% 65%, rgba(124, 92, 255, 0.28), transparent 50%);
  animation: float-glow 6s ease-in-out infinite;
}

.hero--onprem .hero-visual::before {
  background:
    radial-gradient(circle at 40% 40%, rgba(34, 211, 238, 0.35), transparent 55%),
    radial-gradient(circle at 70% 55%, rgba(79, 140, 255, 0.32), transparent 50%);
  animation: float-glow 5.8s ease-in-out infinite;
}

.hero--agent .float-badge.three,
.hero--business .float-badge.three,
.hero--onprem .float-badge.three {
  left: 4%;
  bottom: 12%;
  animation-delay: -2.4s;
}

.hero--agent .float-badge.three {
  border-color: rgba(34, 211, 238, 0.35);
}

.hero--agent .float-badge.one {
  border-color: rgba(124, 92, 255, 0.4);
}

.hero--agent .float-badge.two {
  border-color: rgba(79, 140, 255, 0.4);
}

.hero--business .float-badge.one {
  border-color: rgba(79, 140, 255, 0.45);
}

.hero--business .float-badge.two {
  border-color: rgba(124, 92, 255, 0.4);
}

.hero--business .float-badge.three {
  border-color: rgba(52, 211, 153, 0.35);
}

.hero--onprem .float-badge.one {
  border-color: rgba(34, 211, 238, 0.4);
}

.hero--onprem .float-badge.two {
  border-color: rgba(124, 92, 255, 0.4);
}

.hero--onprem .float-badge.three {
  border-color: rgba(79, 140, 255, 0.4);
}

.hero--agent .hero-frame {
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(124, 92, 255, 0.2),
    0 0 60px rgba(79, 140, 255, 0.15);
}

.hero--business .hero-frame {
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(79, 140, 255, 0.22),
    0 0 60px rgba(79, 140, 255, 0.18);
}

.hero--onprem .hero-frame {
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(34, 211, 238, 0.22),
    0 0 60px rgba(34, 211, 238, 0.14);
}

/* Agent contact form layout (stable, no overflow) */
.agent-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.25rem 1.5rem;
  align-items: start;
}

.agent-contact-aside {
  min-width: 0;
  padding: 1.35rem 1.3rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(18, 24, 38, 0.94), rgba(12, 16, 26, 0.9));
  box-shadow: var(--shadow-soft);
}

.agent-contact-aside h3 {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.agent-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.agent-link-list li {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(7, 9, 15, 0.4);
}

.agent-link-list span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.agent-link-list a {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.agent-link-list a:hover {
  color: var(--accent-3);
}

.agent-contact-note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.site-contact-card--flush {
  margin-top: 0;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.docs-panel-grid > .site-contact-card {
  margin-top: 0;
  min-width: 0;
  align-self: start;
}

.site-contact-form {
  min-width: 0;
}

.site-contact-form .contact-field,
.site-contact-form .contact-field input,
.site-contact-form .contact-field textarea {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.float-badge strong {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}

.float-badge.one { top: 10%; left: -6%; animation-delay: 0s; }
.float-badge.two { bottom: 12%; right: -4%; animation-delay: 1.2s; }

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-head {
  max-width: 40rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head.left {
  margin-left: 0;
  text-align: left;
}

.section-kicker {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-head h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Feature cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 140, 255, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(79, 140, 255, 0.1);
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0a0e18;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.05);
}

.card-body {
  padding: 1.25rem 1.3rem 1.4rem;
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  background: var(--accent-soft);
  border: 1px solid rgba(79, 140, 255, 0.2);
  font-size: 1.05rem;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Feature rows (detailed) */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  margin-bottom: 4.5rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-row.reverse .feature-media {
  order: 1;
}

.feature-copy {
  min-width: 0;
  overflow-wrap: break-word;
}

.feature-copy h3 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.25;
  overflow-wrap: break-word;
  hyphens: auto;
}

.feature-copy p {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  overflow-wrap: break-word;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.feature-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  color: var(--text-muted);
  min-width: 0;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.feature-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  border-radius: 50%;
  background:
    linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-3)) border-box;
  border: 1.5px solid transparent;
  box-shadow: inset 0 0 0 4px var(--bg-elevated);
}

.feature-media {
  min-width: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background: var(--bg-card-solid);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Documents panels (business page) */
.docs-panel {
  margin-bottom: 2.25rem;
  padding: 1.5rem 1.5rem 1.6rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(18, 24, 38, 0.92), rgba(12, 16, 26, 0.88));
  box-shadow: var(--shadow-soft);
}

.docs-panel--managers {
  margin-bottom: 2rem;
  background:
    linear-gradient(145deg, rgba(79, 140, 255, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(18, 24, 38, 0.95), rgba(12, 16, 26, 0.9));
}

.docs-panel--channels {
  margin-bottom: 0;
  background:
    linear-gradient(145deg, rgba(34, 211, 238, 0.07), transparent 45%),
    linear-gradient(180deg, rgba(18, 24, 38, 0.95), rgba(12, 16, 26, 0.9));
}

.docs-panel--onprem-teaser {
  margin-bottom: 0;
  background:
    linear-gradient(145deg, rgba(124, 92, 255, 0.1), transparent 48%),
    linear-gradient(180deg, rgba(18, 24, 38, 0.95), rgba(12, 16, 26, 0.9));
}

.docs-panel-grid--teaser {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  margin-bottom: 0;
  align-items: stretch;
}

.onprem-teaser-aside {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  align-content: start;
}

.onprem-teaser-aside .onprem-point {
  margin: 0;
}

.docs-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.75rem 2rem;
  align-items: center;
  margin-bottom: 1.35rem;
}

.docs-panel-grid--managers,
.docs-panel-grid--channels {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
}

/* Channels: media first on desktop (like reverse feature-row) */
.docs-panel-grid--channels {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
}

.docs-panel-grid--channels .docs-panel-copy {
  order: 2;
}

.docs-panel-grid--channels .docs-panel-media {
  order: 1;
}

.docs-panel-copy {
  min-width: 0;
}

.docs-panel-copy h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  letter-spacing: -0.025em;
  line-height: 1.22;
  overflow-wrap: break-word;
}

.docs-panel-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.docs-panel-media {
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.docs-panel-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.docs-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.docs-tile {
  min-width: 0;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(7, 9, 15, 0.45);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s;
}

.docs-tile:hover {
  border-color: rgba(79, 140, 255, 0.35);
  background: rgba(79, 140, 255, 0.06);
  transform: translateY(-2px);
}

.docs-tile h4 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.3;
}

.docs-tile p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.docs-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.docs-benefit {
  min-width: 0;
  padding: 1.05rem 1.1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(7, 9, 15, 0.42);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s;
}

.docs-benefit:hover {
  border-color: rgba(124, 92, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.docs-benefit-num {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-3);
}

.docs-benefit h4 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.docs-benefit p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.docs-outcomes {
  margin-top: 0.25rem;
}

/* Logos / trust strip */
.trust {
  padding: 1.5rem 0 0;
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  align-items: center;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

/* Billing term switch (1 / 6 / 12 months) */
.billing-term-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 auto 0.65rem;
  max-width: 44rem;
  padding: 0.35rem;
}
.billing-term-card {
  position: relative;
  flex: 1 1 8.5rem;
  min-width: 7.5rem;
  max-width: 13rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-card, #121826) 88%, transparent);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease, background 0.15s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.billing-term-card:hover {
  border-color: color-mix(in srgb, var(--accent, #4f8cff) 45%, var(--border));
  transform: translateY(-1px);
}
.billing-term-card.is-active {
  border-color: var(--accent, #4f8cff);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent, #4f8cff) 18%, transparent), transparent 70%),
    color-mix(in srgb, var(--bg-card, #121826) 92%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent, #4f8cff) 45%, transparent),
    0 12px 28px color-mix(in srgb, var(--accent, #4f8cff) 18%, transparent);
}
.billing-term-card .term-title {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}
.billing-term-card .term-hint {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}
.billing-term-badge {
  position: absolute;
  top: -0.45rem;
  right: 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #34d399, #059669);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}
.billing-term-card.is-best .billing-term-badge {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}
.billing-term-hint {
  text-align: center;
  margin: 0 auto 1.35rem;
  max-width: 36rem;
  line-height: 1.5;
}
.price-card .price-savings {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #34d399;
}
.price-card .price-list {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: line-through;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 1.4rem 1.2rem 1.3rem;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 140, 255, 0.35);
}

.price-card.featured {
  border-color: rgba(124, 92, 255, 0.55);
  background:
    linear-gradient(180deg, rgba(124, 92, 255, 0.14), rgba(18, 24, 38, 0.85));
  box-shadow: 0 20px 50px rgba(124, 92, 255, 0.18);
  transform: scale(1.03);
}

.price-card.featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.price-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  white-space: nowrap;
}

.price-card h3 {
  margin: 0.3rem 0 0.35rem;
  font-size: 1.2rem;
}

.price-card .desc {
  margin: 0 0 1rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  min-height: 2.4em;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.price .amount {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price .period {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.price-features {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  flex: 1;
}

.price-features li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price-features li::before {
  content: "✓";
  color: var(--ok);
  font-weight: 700;
  flex: 0 0 auto;
}

.price-features li.muted {
  color: var(--text-soft);
}

.price-features li.muted::before {
  content: "–";
  color: var(--text-soft);
}

.price-card .btn {
  width: 100%;
}

.pricing-note {
  margin: 1.5rem auto 0;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.9rem;
  max-width: 42rem;
}

/* Compare matrix */
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  -webkit-overflow-scrolling: touch;
}

.compare-scroll-hint {
  display: none;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.92rem;
}

.compare th,
.compare td {
  padding: 0.9rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.compare th:first-child,
.compare td:first-child {
  text-align: left;
  color: var(--text-muted);
  position: sticky;
  left: 0;
  background: #101624;
  z-index: 1;
}

.compare thead th {
  color: var(--text);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
}

.compare tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.compare .yes { color: var(--ok); font-weight: 700; }
.compare .no { color: var(--text-soft); }
.compare .num { color: var(--text); font-variant-numeric: tabular-nums; }

/* CTA band */
.cta-band {
  padding: 1rem 0 5rem;
}

.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(79, 140, 255, 0.3);
  background:
    radial-gradient(600px 280px at 20% 0%, rgba(79, 140, 255, 0.28), transparent 60%),
    radial-gradient(500px 260px at 90% 100%, rgba(124, 92, 255, 0.22), transparent 55%),
    var(--bg-card-solid);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-card h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.cta-card p {
  margin: 0 auto 1.5rem;
  max-width: 34rem;
  color: var(--text-muted);
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand p {
  margin: 0.75rem 0 0;
  max-width: 18rem;
  line-height: 1.55;
}

.footer-col h4 {
  margin: 0 0 0.85rem;
  color: var(--text);
  font-size: 0.92rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* Page hero (inner pages) */
.page-hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

/* Business page */
.business-hero-media {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background: var(--bg-card-solid);
  max-width: 960px;
  margin: 0 auto;
}

.business-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.value-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 1.4rem 1.45rem 1.5rem;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 140, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.value-num {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.value-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.value-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.scenario-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.scenario {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 1.25rem 1.3rem 1.35rem;
}

.scenario h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.scenario p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.step {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 1.4rem;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 760px;
  margin-inline: auto;
}

.faq details {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 0.95rem 1.15rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 500;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin: 0.75rem 0 0.2rem;
  color: var(--text-muted);
}

/* ========== Responsive / mobile ========== */

/* Safe areas (notch / home indicator) */
@supports (padding: env(safe-area-inset-top)) {
  .site-header {
    padding-top: env(safe-area-inset-top);
    height: calc(var(--header-h) + env(safe-area-inset-top));
  }
  .site-footer {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }
  body.nav-open {
    padding-right: 0;
  }
}

/* Touch-friendly defaults */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .nav a,
  .nav-toggle,
  .faq summary {
    min-height: 44px;
  }

  .card:hover,
  .price-card:hover,
  .value-card:hover,
  .docs-tile:hover,
  .docs-benefit:hover {
    transform: none;
  }

  .card:hover .card-media img {
    transform: none;
  }
}

@media (max-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-card.featured {
    transform: none;
  }

  .price-card.featured:hover {
    transform: translateY(-4px);
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .value-grid {
    grid-template-columns: 1fr 1fr;
  }

  .scenario-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 70px;
  }

  .header-inner {
    width: min(var(--max), calc(100% - 1.25rem));
    gap: 0.5rem;
  }

  .site-version {
    font-size: 0.62rem;
    padding-left: calc(30px + 0.55rem);
    max-width: 11rem;
  }

  .brand {
    font-size: 0.98rem;
    min-width: 0;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .hero-grid,
  .feature-row,
  .feature-row.reverse,
  .cards,
  .steps,
  .value-grid,
  .scenario-list,
  .footer-inner,
  .docs-panel-grid,
  .docs-panel-grid--managers,
  .docs-panel-grid--channels,
  .docs-panel-grid--teaser,
  .agent-contact-layout {
    grid-template-columns: 1fr;
  }

  .docs-panel-grid--channels .docs-panel-copy,
  .docs-panel-grid--channels .docs-panel-media {
    order: initial;
  }

  .feature-row {
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  .feature-row.reverse .feature-copy,
  .feature-row.reverse .feature-media {
    order: initial;
  }

  .docs-panel {
    padding: 1.2rem 1.15rem 1.3rem;
  }

  .docs-panel-grid {
    gap: 1.15rem;
    margin-bottom: 1.1rem;
  }

  .docs-panel-media img {
    aspect-ratio: 16 / 10;
  }

  .docs-tiles,
  .docs-benefits {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.25rem 0 1.75rem;
  }

  .hero-grid {
    gap: 2rem;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 7.5vw, 2.6rem);
  }

  .hero-lead {
    font-size: 1.02rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-stats {
    gap: 1rem 1.25rem;
  }

  .hero-frame {
    transform: none !important;
  }

  .hero-frame:hover {
    transform: none !important;
  }

  .float-badge {
    display: none;
  }

  /* Full-screen drawer menu */
  .nav {
    position: fixed;
    inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 1rem 1.1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    background: rgba(7, 9, 15, 0.97);
    border-bottom: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.3s var(--ease),
      opacity 0.3s var(--ease),
      visibility 0.3s;
  }

  .nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.95rem 1.1rem;
    font-size: 1.05rem;
    border-radius: 14px;
    border: 1px solid transparent;
  }

  .nav a:hover,
  .nav a[aria-current="page"] {
    background: rgba(79, 140, 255, 0.1);
    border-color: rgba(79, 140, 255, 0.2);
  }

  /* Mobile menu also shows login/register for reachability */
  .nav .nav-mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }

  .nav .nav-mobile-cta .btn {
    width: 100%;
  }

  .nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .nav-toggle[aria-expanded="true"] span {
    background: transparent;
  }

  .nav-toggle[aria-expanded="true"] span::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .nav-toggle span,
  .nav-toggle span::before,
  .nav-toggle span::after {
    transition: transform 0.25s var(--ease), top 0.25s var(--ease), background 0.2s;
  }

  /* Keep primary CTA on narrow screens; hide secondary to free space */
  .header-actions .btn-ghost {
    display: none;
  }

  .header-actions .btn-primary {
    padding: 0.55rem 0.9rem;
    font-size: 0.88rem;
  }

  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }

  .section-head {
    margin-bottom: 2rem;
  }

  .section-head h2 {
    font-size: clamp(1.45rem, 5.5vw, 2rem);
  }

  .page-hero {
    padding: 2.25rem 0 1.25rem;
  }

  .page-hero h1 {
    font-size: clamp(1.65rem, 6.5vw, 2.4rem);
  }

  .trust-inner {
    gap: 0.5rem;
    justify-content: flex-start;
  }

  .chip {
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
  }

  .cta-card {
    border-radius: 20px;
    padding: 1.75rem 1.25rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .footer-inner {
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  /* Horizontal scroll hint for compare matrix */
  .compare-wrap {
    margin-inline: -0.25rem;
    border-radius: 14px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .compare-scroll-hint {
    display: block;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-soft);
    padding: 0.45rem 0.5rem 0.15rem;
    letter-spacing: 0.02em;
  }

  .compare th,
  .compare td {
    padding: 0.7rem 0.75rem;
    font-size: 0.85rem;
  }

  .faq details {
    padding: 0.85rem 1rem;
  }

  .faq summary {
    font-size: 0.95rem;
    align-items: center;
    gap: 0.75rem;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(var(--max), calc(100% - 1.25rem));
  }

  .header-inner {
    width: min(var(--max), calc(100% - 1rem));
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .price-card {
    padding: 1.25rem 1.1rem 1.2rem;
  }

  .price .amount {
    font-size: 1.65rem;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .card-body {
    padding: 1.1rem 1.15rem 1.25rem;
  }

  .hero {
    padding-top: 1.75rem;
  }

  section {
    padding: 2.75rem 0;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .stat {
    min-width: 0;
    padding: 0.65rem 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
  }

  .stat strong {
    font-size: 1.1rem;
  }

  .stat span {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  /* Hide header CTA text-heavy button on very small; menu has it */
  .header-actions .btn-primary {
    display: none;
  }

  .reg-card {
    margin: 1.25rem auto 2.5rem !important;
    padding: 1.35rem 1.15rem !important;
    border-radius: 16px !important;
  }

  .reg-card h1 {
    font-size: 1.45rem !important;
  }

  .reg-field input {
    font-size: 16px !important; /* prevent iOS zoom on focus */
    min-height: 48px;
  }

  .bg-grid {
    background-size: 40px 40px;
    opacity: 0.35;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .brand span:not(.brand-mark) {
    /* keep brand readable */
    letter-spacing: -0.03em;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 0.7rem 0.9rem;
  }
}

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

/* Sales contact modal (pricing when checkout is off) */
body.contact-modal-open {
  overflow: hidden;
}
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.contact-modal.hidden {
  display: none;
}
.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 14, 0.72);
  backdrop-filter: blur(6px);
}
.contact-modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-card-solid);
  box-shadow: var(--shadow);
}
.contact-modal-card h2 {
  margin: 0 2rem 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.contact-modal-lead {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.contact-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.contact-modal-close:hover {
  color: var(--text);
  background: var(--accent-soft);
}
.contact-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.contact-field input {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.contact-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-modal-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.9rem;
}
.contact-modal-error.hidden {
  display: none;
}
.contact-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}
.contact-modal-actions .btn {
  flex: 1 1 auto;
  justify-content: center;
  text-align: center;
}

.contact-modal-card--wide {
  width: min(560px, 100%);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
}

.contact-field textarea {
  width: 100%;
  min-height: 6rem;
  resize: vertical;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(7, 9, 15, 0.55);
  color: var(--text);
  font: inherit;
  line-height: 1.45;
}

.contact-field textarea:focus {
  outline: none;
  border-color: rgba(79, 140, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.15);
}

.contact-form-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.4;
}

.contact-form-ok {
  margin: 0;
  color: var(--ok);
  font-size: 0.95rem;
}

.contact-form-ok.hidden,
.contact-form-error.hidden {
  display: none;
}

.contact-form-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.9rem;
}

/* Inline contact card (on-prem section) */
.site-contact-card {
  margin-top: 1.5rem;
  padding: 1.4rem 1.35rem 1.45rem;
  border-radius: var(--radius);
  border: 1px solid rgba(79, 140, 255, 0.28);
  background:
    linear-gradient(145deg, rgba(79, 140, 255, 0.1), transparent 50%),
    rgba(7, 9, 15, 0.5);
}

.site-contact-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.site-contact-card > p {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.site-contact-form .contact-form-grid {
  margin-bottom: 0.75rem;
}

.site-contact-form .contact-modal-actions {
  margin-top: 0.85rem;
}

/* On-prem / franchise section */
.onprem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem 2rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.onprem-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}

.onprem-point {
  min-width: 0;
  padding: 1.05rem 1.1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(18, 24, 38, 0.65);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.onprem-point:hover {
  border-color: rgba(79, 140, 255, 0.35);
  transform: translateY(-2px);
}

.onprem-point h4 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.onprem-point p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.onprem-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.onprem-mode {
  min-width: 0;
  padding: 1.35rem 1.3rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
}

.onprem-mode .section-kicker {
  margin-bottom: 0.55rem;
}

.onprem-mode h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.onprem-mode p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.onprem-mode ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.onprem-mode li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.onprem-mode li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
}

@media (max-width: 1100px) {
  .onprem-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* —— On-prem hardware + calculator —— */
.hw-subtitle {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.hw-note {
  margin: 0.85rem 0 0;
  line-height: 1.5;
  max-width: 52rem;
}
.hw-what-runs {
  margin-bottom: 1.75rem;
}
.hw-stack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.hw-stack-card {
  padding: 1rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.hw-stack-card h4 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}
.hw-stack-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.hw-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0.5rem 0 1.75rem;
}
.hw-tier {
  position: relative;
  padding: 1.35rem 1.2rem 1.3rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.hw-tier--rec {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent),
    0 16px 40px rgba(0, 0, 0, 0.18);
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%),
    var(--bg-card);
}
.hw-tier-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: color-mix(in srgb, var(--bg) 40%, transparent);
}
.hw-tier-badge--rec {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-3, #7c5cff));
}
.hw-tier h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.hw-tier-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.hw-spec {
  list-style: none;
  margin: 0.25rem 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.hw-spec li {
  font-size: 0.92rem;
  line-height: 1.4;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  border: 1px solid var(--border);
}
.hw-spec li strong {
  display: inline-block;
  min-width: 3.2rem;
  color: var(--text);
}
.hw-tier-foot {
  margin: 0.15rem 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.hw-per-user {
  margin-bottom: 0.5rem;
}
.hw-table td:first-child {
  white-space: nowrap;
}

.hw-calc {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.15rem;
  align-items: start;
}
.hw-calc-form {
  padding: 1.25rem 1.2rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hw-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  border: none;
  padding: 0;
}
.hw-field-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.hw-field-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hw-field-row input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
}
.hw-field-row output {
  min-width: 2.2rem;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: right;
}
.hw-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.hw-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.88rem;
  cursor: pointer;
  background: color-mix(in srgb, var(--bg) 40%, transparent);
}
.hw-radio:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.hw-radio input { accent-color: var(--accent); }
.hw-checks {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.hw-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.hw-check input { accent-color: var(--accent); }
.hw-select {
  font: inherit;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.hw-calc-result {
  padding: 1.35rem 1.25rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  background:
    radial-gradient(500px 200px at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    var(--bg-card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: sticky;
  top: 1rem;
}
.hw-result-title {
  margin: 0;
  font-size: 1.15rem;
}
.hw-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.hw-result-item {
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 50%, transparent);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hw-result-item strong {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.hw-result-detail {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.hw-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

@media (max-width: 900px) {
  .onprem-grid,
  .onprem-modes,
  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .onprem-points {
    grid-template-columns: 1fr;
  }

  .hw-stack-grid,
  .hw-tiers,
  .hw-calc {
    grid-template-columns: 1fr;
  }

  .hw-calc-result {
    position: static;
  }
}

@media (hover: none) and (pointer: coarse) {
  .onprem-point:hover {
    transform: none;
  }
}

/* —— Features catalog page —— */
.features-toc-wrap {
  padding: 0 0 0.5rem;
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: linear-gradient(180deg, rgba(7, 9, 15, 0.96) 40%, rgba(7, 9, 15, 0.75));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.features-toc {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.65rem 0 0.85rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.features-toc a {
  flex: 0 0 auto;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(18, 24, 38, 0.7);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.features-toc a:hover {
  color: var(--text);
  border-color: rgba(79, 140, 255, 0.4);
  background: rgba(79, 140, 255, 0.1);
}

.features-catalog {
  padding: 1.25rem 0 2rem;
}

.features-catalog .container {
  display: grid;
  gap: 1.5rem;
}

.feat-panel {
  min-width: 0;
  padding: 1.4rem 1.4rem 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(18, 24, 38, 0.94), rgba(12, 16, 26, 0.9));
  box-shadow: var(--shadow-soft);
}

.feat-panel--alt {
  background:
    linear-gradient(145deg, rgba(79, 140, 255, 0.07), transparent 42%),
    linear-gradient(180deg, rgba(18, 24, 38, 0.95), rgba(12, 16, 26, 0.9));
}

.feat-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.5rem 2rem;
  align-items: center;
  margin-bottom: 1.15rem;
}

.feat-panel-grid--flip {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.feat-panel-grid--flip .feat-panel-copy {
  order: 2;
}

.feat-panel-grid--flip .feat-panel-media {
  order: 1;
}

.feat-panel-copy {
  min-width: 0;
}

.feat-panel-copy h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  letter-spacing: -0.025em;
  line-height: 1.22;
}

.feat-panel-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.feat-panel-media {
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.feat-panel-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.feat-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.feat-tiles--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feat-tile {
  min-width: 0;
  padding: 0.95rem 1rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(7, 9, 15, 0.42);
  transition: border-color 0.25s, transform 0.25s;
}

.feat-tile:hover {
  border-color: rgba(79, 140, 255, 0.35);
  transform: translateY(-2px);
}

.feat-tile h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.feat-tile p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.feat-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  min-width: 0;
}

.feat-mini {
  min-width: 0;
  padding: 1.2rem 1.2rem 1.3rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(18, 24, 38, 0.94), rgba(12, 16, 26, 0.9));
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.feat-mini-media {
  margin: -0.15rem -0.15rem 0.35rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
}

.feat-mini-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.feat-mini h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.feat-mini > p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.feat-mini .feature-list {
  margin-top: 0.25rem;
}

.feat-mini .section-kicker {
  margin: 0;
}

@media (max-width: 1100px) {
  .feat-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feat-tiles--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-contact-layout {
    grid-template-columns: 1fr;
  }

  .hero--agent .float-badge.three,
  .hero--business .float-badge.three,
  .hero--onprem .float-badge.three {
    display: none;
  }
}

@media (max-width: 900px) {
  .features-toc-wrap {
    position: static;
  }

  .feat-panel-grid,
  .feat-panel-grid--flip,
  .feat-pair {
    grid-template-columns: 1fr;
  }

  .feat-panel-grid--flip .feat-panel-copy,
  .feat-panel-grid--flip .feat-panel-media {
    order: initial;
  }

  .feat-tiles,
  .feat-tiles--3 {
    grid-template-columns: 1fr;
  }

  .feat-panel {
    padding: 1.15rem 1.1rem 1.25rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .feat-tile:hover {
    transform: none;
  }
}

/* Privacy consent checkbox */
.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.15rem 0 0.25rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-muted);
  cursor: pointer;
}

.contact-consent input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  accent-color: var(--accent);
  cursor: pointer;
}

.contact-consent a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-consent a:hover {
  color: var(--accent-3);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5000;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 14, 22, 0.96);
  border-top: 1px solid var(--border-strong);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.cookie-banner--hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner-inner {
  width: min(var(--max), calc(100% - 0.5rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
}

.cookie-banner-text {
  flex: 1 1 16rem;
  min-width: 0;
}

.cookie-banner-text strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.98rem;
  letter-spacing: -0.015em;
}

.cookie-banner-text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.cookie-banner-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
}

/* Legal / privacy page */
.legal-meta {
  margin: 0.85rem 0 0 !important;
  color: var(--text-soft) !important;
  font-size: 0.92rem !important;
}

.legal-doc {
  padding-top: 0.5rem;
}

.legal-wrap {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 2rem 2.5rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: grid;
  gap: 0.4rem;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.88rem;
}

.legal-toc strong {
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.legal-toc a {
  color: var(--text-muted);
  line-height: 1.35;
}

.legal-toc a:hover {
  color: var(--accent);
}

.legal-body {
  min-width: 0;
  padding: 0.25rem 0 2rem;
}

.legal-body h2 {
  margin: 2rem 0 0.75rem;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body h3 {
  margin: 1.15rem 0 0.45rem;
  font-size: 1.05rem;
}

.legal-body p,
.legal-body li {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.legal-body p {
  margin: 0 0 0.85rem;
}

.legal-body ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.legal-body a {
  color: var(--accent);
}

.legal-body code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.1);
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.legal-table th {
  background: rgba(18, 24, 38, 0.9);
  color: var(--text);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-note {
  margin-top: 1.5rem !important;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(7, 9, 15, 0.45);
  font-size: 0.9rem !important;
}

@media (max-width: 900px) {
  .legal-wrap {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
