/* ═══════════════════════════════════════════════════════════════════════════
   SIGIL — ob-inspired design. Rainbow gloss, white bg, #333 text.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --page-width: 72rem;
  --rainbow: linear-gradient(135deg, #fde047 0%, #f9a8d4 25%, #c084fc 50%, #60a5fa 75%, #4ade80 100%);
  --accent: #adbce6;
  --text: #333333;
  --text-muted: rgba(51, 51, 51, 0.85);
  --white: #FFFFFF;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

.sigil-page {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

/* ─── Background bubbles ───────────────────────────────────────────────── */
.bg-bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bubble {
  position: absolute;
  border: 3px solid var(--text);
  background: var(--rainbow);
  opacity: 0.12;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: bubble-morph 12s ease-in-out infinite;
}

.bubble-1 { width: 120px; height: 120px; top: 8%; left: 5%; }
.bubble-2 { width: 80px; height: 80px; top: 45%; right: 8%; }
.bubble-3 { width: 100px; height: 100px; bottom: 15%; left: 12%; }
.bubble-4 { width: 60px; height: 60px; top: 25%; right: 25%; }
.bubble-5 { width: 70px; height: 70px; bottom: 35%; right: 15%; }

@keyframes bubble-morph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
  75% { border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%; }
}

@media (prefers-reduced-motion: reduce) {
  .bubble { animation: none; }
}

/* ─── Chat section bubbles (enhanced: float + warp) ─────────────────────── */
.chat-section {
  position: relative;
  overflow: hidden;
}

.chat-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.chat-bubbles .chat-bubble {
  position: absolute;
  border: 3px solid var(--text);
  background: var(--rainbow);
  opacity: 0.12;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: chat-bubble-float 18s ease-in-out infinite, chat-bubble-warp 14s ease-in-out infinite;
}

.cb-1 { width: 140px; height: 140px; top: 5%; left: 3%; animation-delay: 0s, 0s; }
.cb-2 { width: 90px; height: 90px; top: 20%; right: 5%; animation-delay: -2s, -3s; }
.cb-3 { width: 110px; height: 110px; bottom: 35%; left: 8%; animation-delay: -4s, -4s; }
.cb-4 { width: 70px; height: 70px; top: 40%; right: 20%; animation-delay: -6s, -2s; }
.cb-5 { width: 100px; height: 100px; bottom: 15%; right: 10%; animation-delay: -3s, -5s; }
.cb-6 { width: 80px; height: 80px; top: 60%; left: 15%; animation-delay: -5s, -1s; }
.cb-7 { width: 120px; height: 120px; bottom: 5%; left: 25%; animation-delay: -7s, -6s; }
.cb-8 { width: 60px; height: 60px; top: 75%; right: 25%; animation-delay: -1s, -7s; }

@keyframes chat-bubble-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  20% { transform: translate(30px, -40px) scale(1.05); }
  40% { transform: translate(-20px, 25px) scale(0.95); }
  60% { transform: translate(40px, 30px) scale(1.02); }
  80% { transform: translate(-35px, -20px) scale(0.98); }
}

@keyframes chat-bubble-warp {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  16% { border-radius: 30% 70% 60% 40% / 50% 40% 60% 50%; }
  33% { border-radius: 70% 30% 40% 60% / 40% 60% 30% 70%; }
  50% { border-radius: 40% 60% 70% 30% / 60% 50% 40% 50%; }
  66% { border-radius: 50% 50% 40% 60% / 50% 60% 50% 40%; }
  83% { border-radius: 35% 65% 55% 45% / 55% 45% 65% 35%; }
}

@media (prefers-reduced-motion: reduce) {
  .chat-bubbles .chat-bubble { animation: none; }
}

/* ─── Header ──────────────────────────────────────────────────────────── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.5rem, 5vw, 3rem);
  background: var(--white);
  border-bottom: 1px solid rgba(51, 51, 51, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--text);
}

.logo:hover {
  opacity: 0.85;
}

.nav {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.nav-tab {
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border: 2px solid var(--text);
  background: var(--text);
  color: var(--white);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-tab:hover {
  background: rgba(51, 51, 51, 0.9);
  border-color: var(--text);
  transform: translateY(-1px);
}

.nav-tab:active {
  transform: translateY(1px);
}

.nav-tab.is-active {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 4px 0 rgba(51, 51, 51, 0.3);
}

/* ─── Gloss container (ob-style) ───────────────────────────────────────── */
.gloss-container {
  padding: 3px;
  background: var(--rainbow);
  border-radius: 20px;
}

.gloss-inner {
  padding: 6px;
  background: var(--text);
  border-radius: 17px;
}

.gloss-border {
  padding: 3px;
  background: var(--text);
  border-radius: 11px;
}

.gloss-content {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 8px;
  background: var(--text);
  color: var(--white);
}

.gloss-content h2,
.gloss-content p,
.gloss-content .rte { color: var(--white); }
.gloss-content strong { color: var(--white); }
.gloss-content a { color: rgba(255, 255, 255, 0.9); text-decoration: underline; }

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s, box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
  font-family: inherit;
  border: 2px solid;
}

.btn:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

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

.btn-primary {
  background: var(--white);
  color: var(--text);
  border-color: var(--white);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25);
}

.btn-primary:active {
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.gloss-content .btn-primary {
  background: var(--white);
  color: var(--text);
  border-color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
  border-color: var(--white);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ─── Pages (scoped: WP adds .page to <body> on Pages — must not hide the whole site) ─ */
.sigil-page main.page {
  display: none;
}

.sigil-page main.page.is-active {
  display: block;
  animation: page-fade 0.3s ease;
}

@keyframes page-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ─── Hero ────────────────────────────────────────────────────────────── */
.hero {
  padding: clamp(3.5rem, 10vw, 6rem) clamp(1.5rem, 5vw, 3rem);
  text-align: center;
  background: var(--white);
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
}

.hero-line {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.hero-rotating {
  display: block;
  min-height: 1.3em;
}

.hero-rotating-slot {
  display: inline-block;
  transition: opacity 0.6s ease;
}

.hero-rotating-slot.is-fading {
  opacity: 0;
}

.hero-rotating-text {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-tagline {
  margin: 0;
}

.hero-divider {
  opacity: 0.5;
  user-select: none;
}

.hero-beta {
  font-weight: 600;
  color: var(--text);
}

.hero-privacy {
  margin: 0;
}

.gloss-beta {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0 0 0.75rem;
}

/* ─── Research + Philosophy ──────────────────────────────────────────── */
.research-section {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3rem);
  background: rgba(51, 51, 51, 0.03);
}

.research-inner {
  max-width: var(--page-width);
  margin: 0 auto;
}

.research-section .section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

.research-card {
  padding: 1.75rem;
  border-radius: 14px;
  border: 2px solid rgba(51, 51, 51, 0.1);
  background: var(--white);
}

.research-card--stat .research-stat {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.25em;
  line-height: 1;
}

.research-card--stat .research-stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75em;
}

.research-card--stat .research-cite {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.research-card--philosophy h3 {
  font-size: 1.25rem;
  margin: 0 0 0.75em;
  color: var(--text);
}

.research-card--philosophy p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.research-card--philosophy em {
  font-style: italic;
  color: var(--text);
}

/* ─── Power user pain points ───────────────────────────────────────────── */
.pain-section {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3rem);
  background: var(--white);
}

.pain-inner {
  max-width: var(--page-width);
  margin: 0 auto;
}

.pain-section .section-heading {
  text-align: center;
  margin-bottom: 0.5rem;
}

.pain-lead {
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.pain-card {
  padding: 1.25rem;
  font-family: inherit;
  text-align: left;
  border: 2px solid rgba(51, 51, 51, 0.15);
  border-radius: 12px;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pain-card:hover {
  border-color: rgba(51, 51, 51, 0.3);
  background: rgba(51, 51, 51, 0.02);
}

.pain-card.is-active {
  border-color: var(--text);
  background: var(--text);
  color: var(--white);
}

.pain-card.is-active .pain-desc {
  opacity: 0.85;
}

.pain-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.pain-title {
  font-size: 1rem;
  font-weight: 700;
}

.pain-desc {
  font-size: 0.85rem;
  opacity: 0.8;
}

.pain-detail {
  display: none;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(51, 51, 51, 0.15);
}

.pain-card.is-active .pain-detail {
  display: block;
  border-top-color: rgba(255, 255, 255, 0.3);
}

.pain-detail p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.pain-detail p:last-child {
  margin-bottom: 0;
}

.pain-others {
  opacity: 0.9;
}

.pain-sigil {
  font-weight: 600;
}

.pain-cta {
  margin-top: 1.5rem;
}

.pain-link {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  background: var(--text);
  text-decoration: none;
  text-align: center;
  border-radius: 10px;
  border: 2px solid var(--text);
  transition: opacity 0.2s;
}

.pain-link:hover {
  opacity: 0.9;
}

/* ─── Drift (marquee chips) ───────────────────────────────────────────── */
.drift-section {
  padding: 1rem 0;
  background: var(--white);
  overflow: hidden;
}

.drift-row {
  padding: 0.5rem 0;
}

.drift-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: drift-ltr 25s linear infinite;
  will-change: transform;
}

.drift-row--rtl .drift-track {
  animation: drift-rtl 22s linear infinite;
}

.drift-section:hover .drift-track,
.drift-section:focus-within .drift-track {
  animation-play-state: paused;
}

@keyframes drift-ltr {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes drift-rtl {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.drift-chip {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid rgba(51, 51, 51, 0.15);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  white-space: nowrap;
}

/* ─── Rotating gloss ──────────────────────────────────────────────────── */
.rotating-gloss {
  padding: 1.5rem clamp(1.5rem, 5vw, 3rem);
  background: var(--white);
}

.rotating-gloss .gloss-container {
  max-width: var(--page-width);
  margin: 0 auto;
}

.gloss-heading {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--white);
}

.gloss-line {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  line-height: 1.4;
}

.gloss-prefix { letter-spacing: 2px; font-size: 0.95rem; }
.gloss-count { font-weight: 700; font-size: 0.9rem; opacity: 0.9; }
.gloss-dash { opacity: 0.7; }
.gloss-slot { flex: 1 1 260px; min-width: 260px; transition: opacity 0.5s ease, transform 0.5s ease; }
.gloss-slot.is-fading { opacity: 0; transform: translateY(6px); }
.gloss-quote { font-size: 0.95rem; }
.gloss-name { font-size: 0.9rem; font-weight: 700; opacity: 0.85; }

.rotating-gloss .btn { margin-top: 1.25rem; }
.rotating-gloss .gloss-content { display: flex; flex-direction: column; }
.rotating-gloss .btn { width: 100%; }

/* ─── Features ─────────────────────────────────────────────────────────── */
.features {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3rem);
  background: var(--white);
}

.features-inner {
  max-width: var(--page-width);
  margin: 0 auto;
}

.section-heading {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 2rem;
  color: var(--text);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 1.5rem 1.75rem;
  border: 2px solid rgba(51, 51, 51, 0.1);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(173, 216, 230, 0.2);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.feature-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* ─── How Sigil Works ──────────────────────────────────────────────────── */
.how-section {
  padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 5vw, 3rem);
  background: var(--white);
}

.how-inner {
  max-width: var(--page-width);
  margin: 0 auto;
}

.how-lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  max-width: 640px;
}

.how-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.how-card {
  padding: 1.5rem 1.75rem;
  border: 2px solid rgba(51, 51, 51, 0.1);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.how-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(173, 216, 230, 0.15);
}

.how-card-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.how-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.how-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.benchmark-gloss {
  margin-top: 2rem;
}

.benchmark-gloss .gloss-container {
  max-width: var(--page-width);
  margin: 0 auto;
}

.benchmark-label {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.benchmark-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--white);
}

.benchmark-body {
  font-size: 1.1rem;
  line-height: 1.65;
  opacity: 0.95;
  margin: 0;
}

/* ─── Benchmark section (real stats table) ─────────────────────────────── */
.benchmark-section {
  padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 5vw, 3rem);
  background: rgba(51, 51, 51, 0.03);
}

.benchmark-inner {
  max-width: var(--page-width);
  margin: 0 auto;
}

.benchmark-section .section-heading {
  text-align: center;
  margin-bottom: 0.5rem;
}

.benchmark-lead {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.benchmark-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 2px solid rgba(51, 51, 51, 0.12);
  background: var(--white);
  margin-bottom: 1rem;
}

.benchmark-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.benchmark-table th,
.benchmark-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(51, 51, 51, 0.08);
}

.benchmark-table th {
  font-weight: 700;
  color: var(--text);
  background: rgba(51, 51, 51, 0.04);
}

.benchmark-table th.benchmark-sigil {
  background: rgba(26, 95, 74, 0.08);
  color: #1a5f4a;
}

.benchmark-table td.benchmark-sigil {
  font-weight: 700;
  color: #1a5f4a;
}

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

.benchmark-desc {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.9em;
}

.benchmark-cite {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ─── Compare section (animated demo) ───────────────────────────────────── */
.compare-section {
  padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 5vw, 3rem);
  background: rgba(51, 51, 51, 0.03);
}

.compare-inner {
  max-width: var(--page-width);
  margin: 0 auto;
}

.compare-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 720px;
}

.compare-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.compare-scenarios,
.compare-intents,
.compare-length {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.intent-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.intent-btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  border: 2px solid rgba(51, 51, 51, 0.2);
  background: var(--white);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.intent-btn:hover {
  border-color: var(--accent);
  background: rgba(173, 216, 230, 0.12);
}

.intent-btn.is-active {
  border-color: var(--text);
  background: var(--text);
  color: var(--white);
  box-shadow: 0 4px 0 var(--accent);
}

.compare-toggle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.compare-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
}

.compare-toggle-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1;
  pointer-events: auto;
}

.compare-toggle-slider {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  background: rgba(51, 51, 51, 0.15);
  border-radius: 12px;
  transition: background 0.2s;
}

.compare-toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px;
  top: 2px;
  background: var(--white);
  border: 2px solid rgba(51, 51, 51, 0.3);
  border-radius: 50%;
  transition: transform 0.2s;
}

.compare-toggle-input:checked + .compare-toggle-slider {
  background: var(--text);
}

.compare-toggle-input:checked + .compare-toggle-slider::before {
  transform: translateX(20px);
}

.compare-toggle-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.compare-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  width: 100%;
  margin-bottom: 0.25rem;
}

.scenario-btn,
.length-btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  border: 2px solid rgba(51, 51, 51, 0.2);
  background: var(--white);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.scenario-btn:hover,
.length-btn:hover {
  border-color: var(--accent);
  background: rgba(173, 216, 230, 0.12);
}

.scenario-btn.is-active,
.length-btn.is-active {
  border-color: var(--text);
  background: var(--text);
  color: var(--white);
  box-shadow: 0 4px 0 var(--accent);
}

.length-slider {
  display: flex;
  gap: 0.25rem;
}

.compare-stats {
  background: var(--white);
  border: 2px solid rgba(51, 51, 51, 0.1);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.compare-stats-head {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.compare-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 700px) {
  .compare-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.compare-stat-cell {
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(51, 51, 51, 0.03);
  border: 1px solid rgba(51, 51, 51, 0.08);
}

.compare-stat-cell--sigil {
  background: rgba(26, 95, 74, 0.08);
  border-color: rgba(26, 95, 74, 0.2);
}

.compare-stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.compare-stat-cost {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.compare-stat-cost.stat-fails {
  color: #b91c1c;
  font-size: 1rem;
}

.compare-stat-cell--sigil .compare-stat-cost {
  color: #16a34a;
}

.compare-stat-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.compare-run-btn {
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border: 2px solid var(--text);
  background: var(--text);
  color: var(--white);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--accent);
  transition: transform 0.15s, box-shadow 0.15s;
}

.compare-run-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--accent);
}

.compare-run-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--accent);
}

.compare-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 1000px) {
  .compare-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .compare-grid-4 {
    grid-template-columns: 1fr;
  }
}

.compare-cell {
  min-height: 220px;
}

.compare-cell--sigil {
  grid-column: span 1;
}

.compare-cell--sigil.compare-cell--completed {
  animation: sigil-complete-pulse 1.5s ease-out;
}

@keyframes sigil-complete-pulse {
  0% { box-shadow: 0 0 0 0 rgba(26, 95, 74, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(26, 95, 74, 0.15); }
  100% { box-shadow: 0 0 0 0 rgba(26, 95, 74, 0); }
}

@media (max-width: 1000px) {
  .compare-cell--sigil { grid-column: span 2; }
}

@media (max-width: 600px) {
  .compare-cell--sigil { grid-column: span 1; }
}

.compare-cell-inner {
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.competitor-header {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.competitor-logo {
  font-size: 0.95rem;
}

.compare-cell-body {
  padding: 0.75rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
}

.compare-prompt {
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 1.4;
}

.compare-output {
  flex: 1;
  min-height: 100px;
  font-size: 0.8rem;
  line-height: 1.5;
  overflow-y: auto;
}

.compare-status {
  padding: 0.5rem 0;
  font-size: 0.85rem;
}

.compare-status--idle {
  color: var(--text-muted);
  opacity: 0.7;
}

.compare-status--running {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.compare-status--running::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: compare-spin 0.8s linear infinite;
}

@keyframes compare-spin {
  to { transform: rotate(360deg); }
}

.compare-status--done {
  color: inherit;
}

.compare-wordcount {
  font-weight: 700;
  color: #16a34a;
  font-size: 0.9rem;
}

.compare-time {
  display: block;
  font-size: 0.75rem;
  opacity: 0.85;
}

.compare-noloop {
  font-size: 0.7rem;
  opacity: 0.7;
  font-style: italic;
  color: var(--text-muted);
}

.compare-time-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  background: rgba(51, 51, 51, 0.15);
  margin-bottom: 0.4rem;
}

.sigil-demo .compare-time-badge {
  background: rgba(26, 95, 74, 0.2);
  color: #16a34a;
}

.compare-signature {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
}

.compare-signature strong {
  color: var(--text);
  font-style: normal;
}

/* Competitor demo styles (compact) */
.competitor-demo--chatgpt {
  background: #0d0d0d;
}

.competitor-demo--chatgpt .competitor-header {
  background: #0d0d0d;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #10a37f;
}

.competitor-demo--chatgpt .compare-cell-body {
  background: #1a1a1a;
  color: #d1d5db;
}

.competitor-demo--chatgpt .compare-prompt {
  color: rgba(255,255,255,0.7);
}

.competitor-demo--claude {
  background: #eeece2;
  border: 1px solid rgba(0,0,0,0.08);
}

.competitor-demo--claude .competitor-header {
  background: #141413;
  color: #da7756;
}

.competitor-demo--claude .compare-cell-body {
  background: #faf9f5;
  color: #141413;
}

.competitor-demo--manus {
  background: #F8F8F8;
  border: 1px solid rgba(52,50,45,0.15);
}

.competitor-demo--manus .competitor-header {
  background: #34322D;
  color: #FFFFFF;
}

.competitor-demo--manus .compare-cell-body {
  background: #FFFFFF;
  color: #34322D;
}

.sigil-demo {
  background: var(--white);
  border: 2px solid rgba(51, 51, 51, 0.12);
}

.sigil-header {
  background: var(--text);
  color: var(--accent);
}

.sigil-demo .compare-cell-body {
  background: rgba(26, 95, 74, 0.04);
  border-top: 1px solid rgba(26, 95, 74, 0.15);
}

.sigil-demo .compare-output {
  color: var(--text);
}

/* ─── Chat section ─────────────────────────────────────────────────────── */
.chat-section {
  padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 5vw, 3rem);
  background: rgba(51, 51, 51, 0.04);
  position: relative;
  overflow: hidden;
}

.chat-section .chat-inner {
  position: relative;
  z-index: 1;
}

.chat-inner {
  max-width: var(--page-width);
  margin: 0 auto;
}

.chat-heading {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 0.4em;
  color: var(--text);
  text-align: center;
}

.chat-sub {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 auto 2rem;
  max-width: 640px;
  text-align: center;
}

.chat-demo {
  max-width: 960px;
  margin: 0 auto;
  background: var(--white);
  border: 2px solid rgba(51, 51, 51, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.chat-demo-header {
  padding: 1.25rem 1.5rem;
  background: var(--text);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.chat-demo-icon {
  font-size: 1.25rem;
  color: var(--accent);
}

.chat-prompts {
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.prompt-card {
  padding: 1rem 1.1rem;
  font-family: inherit;
  border: 2px solid rgba(51, 51, 51, 0.2);
  background: var(--white);
  color: var(--text);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.prompt-card:hover {
  border-color: var(--accent);
  background: rgba(173, 216, 230, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(51, 51, 51, 0.08);
}

.prompt-card:active {
  transform: translateY(0);
}

.prompt-card.is-active {
  border-color: var(--text);
  background: var(--text);
  color: var(--white);
  box-shadow: 0 4px 0 rgba(51, 51, 51, 0.25);
}

.prompt-card-header {
  font-size: 1rem;
  font-weight: 700;
}

.prompt-card-sub {
  font-size: 0.8rem;
  opacity: 0.85;
  line-height: 1.3;
}

.prompt-card.is-active .prompt-card-sub {
  opacity: 0.9;
}

.chat-tools {
  padding: 0 1.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.chat-tool-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s, transform 0.15s;
}

.chat-tool-toggle:hover {
  color: var(--text);
  transform: scale(1.02);
}

.chat-tool-toggle:has(.chat-tool-input:checked) {
  color: var(--text);
}

.chat-tool-input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--text);
}

.chat-response {
  padding: 1.5rem 1.75rem 1.75rem;
  border-top: 1px solid rgba(51, 51, 51, 0.08);
  min-height: 120px;
}

.chat-response-user {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.chat-response-user strong { color: var(--text); }

.chat-response-ai {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
}

.chat-response-ai p { margin: 0 0 0.6em; }
.chat-response-ai p:last-child { margin-bottom: 0; }
.chat-response-ai strong { color: #1a5f4a; }

/* Code run/compile demo block */
.code-run-block {
  margin: 0.75em 0;
}
.code-run-block .code-block,
.code-run-block .code-run-output {
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 8px;
  overflow: auto;
  font-size: 0.9rem;
  margin: 0;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
}
.code-run-block .code-run-output {
  display: none;
  margin-top: 0.5rem;
  border-left: 3px solid var(--accent);
}
.code-run-block .code-run-output.is-output {
  display: block;
  color: #1a5f4a;
}
.code-run-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.code-run-btn,
.code-compile-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  border: 2px solid rgba(51, 51, 51, 0.3);
  background: var(--white);
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.code-run-btn:hover,
.code-compile-btn:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--white);
  transform: translateY(-1px);
}
.code-run-btn:active,
.code-compile-btn:active {
  transform: translateY(0);
}

/* Media demo blocks (image/video display examples) */
.media-demo-block {
  margin: 1rem 0;
}
.media-demo-preview {
  border-radius: 10px;
  overflow: hidden;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px solid rgba(51, 51, 51, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.media-demo-image .media-demo-preview {
  aspect-ratio: 16/10;
}
.media-demo-video-frame {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a22 0%, #2a2a34 50%, #1e1e28 100%);
}
.media-demo-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.media-demo-image .media-demo-label {
  color: rgba(255, 255, 255, 0.95);
}
.media-demo-icon {
  font-size: 2rem;
  opacity: 0.9;
}
.media-demo-play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  padding-left: 4px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.media-demo-caption {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
}

.chat-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.chat-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.chat-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(51, 51, 51, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

/* ─── CTA section ─────────────────────────────────────────────────────── */
.cta-section {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3rem);
  background: var(--white);
}

.cta-section .gloss-container {
  max-width: var(--page-width);
  margin: 0 auto;
}

.cta-caption {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.cta-heading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--white);
}

.cta-body {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.cta-section .gloss-content { display: flex; flex-direction: column; }
.cta-section .btn { width: 100%; }

/* ─── For Business page ────────────────────────────────────────────────── */
.business-hero {
  padding: clamp(3.5rem, 10vw, 6rem) clamp(1.5rem, 5vw, 3rem);
  text-align: center;
  background: var(--white);
}

.business-heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.business-sub {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 1.5rem auto 0;
  max-width: 28rem;
}

.business-cta {
  display: inline-block;
  width: auto;
}

/* Business CTA buttons — stronger, more interactive */
.btn-business-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  border: 2px solid var(--text);
  background: var(--text);
  color: var(--white);
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 0 rgba(51, 51, 51, 0.25);
}

.btn-business-cta:hover {
  background: rgba(51, 51, 51, 0.92);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(51, 51, 51, 0.3);
}

.btn-business-cta:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(51, 51, 51, 0.3);
}

.btn-business-cta-full {
  width: 100%;
  margin-top: 0.5rem;
}

.btn-business-cta-gloss {
  background: var(--accent) !important;
  color: var(--text) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 4px 0 rgba(51, 51, 51, 0.2) !important;
}

.btn-business-cta-gloss:hover {
  background: rgba(173, 188, 230, 0.95) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(51, 51, 51, 0.25) !important;
}

.business-section {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3rem);
}

.business-section:nth-child(even) {
  background: rgba(51, 51, 51, 0.03);
}

.business-inner {
  max-width: var(--page-width);
  margin: 0 auto;
}

.business-lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 48rem;
}

.business-problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.business-problem-card {
  padding: 1.5rem;
  border: 2px solid rgba(51, 51, 51, 0.12);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.business-problem-card:hover {
  border-color: rgba(51, 51, 51, 0.3);
  box-shadow: 0 4px 12px rgba(51, 51, 51, 0.08);
  transform: translateY(-2px);
}

.business-problem-card.is-active {
  border-color: var(--text);
  box-shadow: 0 4px 0 rgba(51, 51, 51, 0.2);
  background: rgba(51, 51, 51, 0.02);
}

/* Why Sigil outperforms — interactive tabs */
.business-why-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.business-why-tab {
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border: 2px solid rgba(51, 51, 51, 0.2);
  background: var(--white);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.business-why-tab:hover {
  border-color: rgba(51, 51, 51, 0.4);
  background: rgba(51, 51, 51, 0.03);
}

.business-why-tab.is-active {
  border-color: var(--text);
  background: var(--text);
  color: var(--white);
}

.business-why-panels {
  position: relative;
}

.business-why-panel {
  animation: business-panel-fade 0.25s ease;
}

.business-why-panel.is-active {
  display: block;
}

@keyframes business-panel-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.business-benchmark-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 2px solid rgba(51, 51, 51, 0.12);
  background: var(--white);
}

.business-benchmark-table {
  font-size: 0.95rem;
}

.business-benchmark-cite {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 1rem 0 0;
}

.business-why-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.business-why-card {
  padding: 1.5rem;
  border: 2px solid rgba(51, 51, 51, 0.12);
  border-radius: 12px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.business-why-card:hover {
  border-color: rgba(51, 51, 51, 0.25);
  box-shadow: 0 4px 16px rgba(51, 51, 51, 0.06);
}

.business-why-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.business-why-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

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

/* How we start — timeline */
.business-timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 2rem 0 1.5rem;
  max-width: 36rem;
}

.business-timeline-step {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(51, 51, 51, 0.08);
}

.business-timeline-step:last-child {
  border-bottom: none;
}

.business-timeline-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  background: var(--text);
  color: var(--white);
  border-radius: 50%;
}

.business-timeline-content h3 {
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}

.business-timeline-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.business-timeline-cta {
  font-size: 1.1rem;
  text-align: center;
  margin: 2rem 0 0;
  padding: 1.5rem;
  background: rgba(26, 95, 74, 0.06);
  border-radius: 12px;
  border: 2px solid rgba(26, 95, 74, 0.15);
}

.business-timeline-cta strong {
  color: #1a5f4a;
}

.business-timeline-link {
  color: #1a5f4a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.business-timeline-link:hover {
  opacity: 0.85;
}

.business-problem-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.business-problem-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

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

.business-cost-calc,
.business-kpi-calc {
  background: var(--white);
  border: 2px solid rgba(51, 51, 51, 0.12);
  border-radius: 14px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.business-cost-inputs,
.business-kpi-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.business-cost-inputs label,
.business-kpi-inputs label {
  font-size: 0.9rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.35rem;
}

.business-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.business-input-group label span {
  font-weight: 700;
  color: var(--text);
}

.business-slider {
  width: 100%;
  height: 10px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(51, 51, 51, 0.12);
  border-radius: 5px;
  outline: none;
}

.business-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text);
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: 0 2px 6px rgba(51, 51, 51, 0.3);
  transition: transform 0.15s;
}

.business-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.business-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text);
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: 0 2px 6px rgba(51, 51, 51, 0.3);
}

.business-input {
  padding: 0.6rem 0.9rem;
  font-size: 1rem;
  border: 2px solid rgba(51, 51, 51, 0.2);
  border-radius: 8px;
  font-family: inherit;
}

.business-cost-results,
.business-kpi-results {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.business-cost-row,
.business-kpi-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(51, 51, 51, 0.08);
}

.business-cost-net,
.business-kpi-total {
  border-bottom: none;
  font-size: 1.1rem;
  color: #1a5f4a;
}

.business-result-highlight {
  color: #1a5f4a;
  font-size: 1.05rem;
}

.business-cost-savings-row {
  padding: 0.75rem 0;
  border-bottom: 2px solid rgba(26, 95, 74, 0.15);
}

.business-cost-savings-row .business-result-highlight {
  font-size: 1.2rem;
  font-weight: 800;
}

/* Contract tiers grid */
.business-tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.business-tier-card {
  padding: 1.75rem;
  border: 2px solid rgba(51, 51, 51, 0.12);
  border-radius: 14px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.business-tier-card:hover {
  border-color: rgba(51, 51, 51, 0.25);
  box-shadow: 0 4px 16px rgba(51, 51, 51, 0.06);
}

.business-tier-featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(173, 188, 230, 0.08) 0%, rgba(173, 188, 230, 0.02) 100%);
  box-shadow: 0 4px 0 rgba(51, 51, 51, 0.1);
}

.business-tier-featured:hover {
  box-shadow: 0 6px 20px rgba(173, 188, 230, 0.15);
}

.business-tier-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(51, 51, 51, 0.08);
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.business-tier-featured .business-tier-badge {
  background: var(--accent);
  color: var(--text);
}

.business-tier-card h3 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

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

/* KPI grid — all 6 from business plan */
.business-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 1rem;
}

.business-kpi-card {
  padding: 1.25rem;
  border: 2px solid rgba(51, 51, 51, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.business-kpi-card:hover {
  border-color: rgba(51, 51, 51, 0.2);
  box-shadow: 0 2px 12px rgba(51, 51, 51, 0.06);
}

.business-kpi-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.business-kpi-value {
  display: block;
  font-size: 1.15rem;
  color: #1a5f4a;
  margin-bottom: 0.25rem;
}

.business-kpi-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.business-kpi-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(26, 95, 74, 0.06);
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

.business-kpi-total-row strong {
  color: #1a5f4a;
  font-size: 1.2rem;
}

.business-model-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.business-model-card {
  padding: 1.5rem;
  border: 2px solid rgba(51, 51, 51, 0.12);
  border-radius: 12px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.business-model-card:hover {
  border-color: rgba(51, 51, 51, 0.25);
  box-shadow: 0 4px 16px rgba(51, 51, 51, 0.06);
  transform: translateY(-2px);
}

.business-model-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

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

.business-security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.business-security-card {
  padding: 1.5rem;
  border: 2px solid rgba(51, 51, 51, 0.12);
  border-radius: 12px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.business-security-card:hover {
  border-color: rgba(51, 51, 51, 0.25);
  box-shadow: 0 4px 16px rgba(51, 51, 51, 0.06);
  transform: translateY(-2px);
}

.business-security-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

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

/* Sticky CTA bar (neuramod-style) — one consistent button at bottom */
#for-business {
  padding-bottom: 7rem;
}

.business-sticky-cta-wrap {
  position: sticky;
  bottom: 24px;
  z-index: 90;
  padding: 0 clamp(1.5rem, 5vw, 3rem) 1.5rem;
  margin-top: -1rem;
  transition: opacity 0.25s, transform 0.25s;
}

.business-sticky-cta {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 1rem 1.5rem 1.25rem;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  border: 2px solid rgba(51, 51, 51, 0.1);
}

.business-sticky-cta .btn-business-cta-sticky {
  display: block;
  width: 100%;
  text-align: center;
}

/* ─── Covenant page (ethics, security, book funnel) ───────────────────── */
/* Uses native <details> for accordions so global WP / theme button rules cannot flatten layout. */

.covenant-page {
  padding-bottom: clamp(3rem, 8vw, 5rem);
  background: var(--white);
}

.covenant-hero--top {
  padding: clamp(3rem, 10vw, 5rem) clamp(1.5rem, 5vw, 3rem) clamp(2rem, 5vw, 3rem);
  text-align: center;
  background: var(--white);
  max-width: var(--page-width);
  margin: 0 auto;
}

.covenant-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.covenant-heading {
  font-size: clamp(1.85rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.covenant-tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.covenant-lead {
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text-muted);
  text-align: center;
}

.covenant-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.35rem;
}

.covenant-chip {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 2px solid rgba(51, 51, 51, 0.12);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* Section bands — mirror research / pain / features rhythm */
.covenant-section {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3rem);
}

.covenant-section--beliefs {
  background: var(--white);
}

.covenant-section--align {
  background: linear-gradient(180deg, rgba(173, 188, 230, 0.22) 0%, rgba(255, 255, 255, 0.92) 55%, var(--white) 100%);
}

.covenant-section--align .covenant-slider-wrap {
  margin-top: 1.5rem;
}

.covenant-section--roadmap {
  background: rgba(51, 51, 51, 0.03);
}

.covenant-inner {
  max-width: var(--page-width);
  margin: 0 auto;
}

.covenant-section .section-heading {
  text-align: center;
  margin-bottom: 0.5rem;
}

.covenant-intro {
  max-width: 40rem;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Pillars — same visual language as .pain-card / .feature-card */
.covenant-pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 56rem;
  margin: 0 auto;
}

details.covenant-pillar {
  margin: 0;
  border: 2px solid rgba(51, 51, 51, 0.1);
  border-radius: 16px;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

details.covenant-pillar:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(173, 216, 230, 0.22);
}

details.covenant-pillar[open] {
  border-color: var(--text);
  background: var(--text);
  color: var(--white);
  box-shadow: 0 10px 36px rgba(51, 51, 51, 0.14);
}

summary.covenant-pillar-summary {
  list-style: none;
  padding: 1.35rem 2.65rem 1.35rem 1.35rem;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
  position: relative;
  user-select: none;
}

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

summary.covenant-pillar-summary::marker {
  content: '';
}

summary.covenant-pillar-summary::after {
  content: '';
  position: absolute;
  right: 1.2rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  opacity: 0.5;
  transition: transform 0.2s ease;
}

details.covenant-pillar[open] summary.covenant-pillar-summary::after {
  transform: translateY(-25%) rotate(-135deg);
  opacity: 0.75;
}

.covenant-pillar-icon {
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.covenant-pillar-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.covenant-pillar-teaser {
  font-size: 0.88rem;
  opacity: 0.88;
  line-height: 1.45;
}

details.covenant-pillar[open] .covenant-pillar-teaser {
  opacity: 0.9;
}

.covenant-pillar-detail {
  padding: 0 1.35rem 1.35rem;
  border-top: 1px solid rgba(51, 51, 51, 0.1);
}

details.covenant-pillar[open] .covenant-pillar-detail {
  border-top-color: rgba(255, 255, 255, 0.28);
}

.covenant-pillar-detail p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

details.covenant-pillar[open] .covenant-pillar-detail p {
  color: rgba(255, 255, 255, 0.9);
}

details.covenant-pillar[open] .covenant-pillar-detail strong {
  color: var(--white);
}

details.covenant-pillar[open] .covenant-pillar-detail em {
  color: rgba(255, 255, 255, 0.95);
}

/* Values slider */
.covenant-slider-wrap {
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  border: 2px solid rgba(51, 51, 51, 0.1);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.covenant-slider-label {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 1.1rem;
  line-height: 1.55;
  color: var(--text);
}

.covenant-slider {
  width: 100%;
  height: 10px;
  accent-color: var(--text);
  margin-bottom: 1.25rem;
}

.covenant-slider-output {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  min-height: 4.75rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(51, 51, 51, 0.08);
}

.covenant-slider-output strong {
  color: var(--text);
}

/* Roadmap accordion */
.covenant-roadmap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 48rem;
  margin: 0 auto;
}

details.covenant-roadmap-item {
  margin: 0;
  width: 100%;
  border: 2px solid rgba(51, 51, 51, 0.1);
  border-radius: 14px;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

details.covenant-roadmap-item:hover {
  border-color: rgba(51, 51, 51, 0.22);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.07);
}

details.covenant-roadmap-item[open] {
  border-color: var(--text);
  background: var(--text);
  color: var(--white);
  box-shadow: 0 8px 32px rgba(51, 51, 51, 0.12);
}

summary.covenant-roadmap-summary {
  list-style: none;
  padding: 1.2rem 2.65rem 1.2rem 1.25rem;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  position: relative;
  user-select: none;
}

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

summary.covenant-roadmap-summary::marker {
  content: '';
}

summary.covenant-roadmap-summary::after {
  content: '';
  position: absolute;
  right: 1.15rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  opacity: 0.5;
  transition: transform 0.2s ease;
}

details.covenant-roadmap-item[open] summary.covenant-roadmap-summary::after {
  transform: translateY(-25%) rotate(-135deg);
  opacity: 0.75;
}

.covenant-roadmap-phase {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 0.35rem;
}

details.covenant-roadmap-item[open] .covenant-roadmap-phase {
  opacity: 0.85;
}

.covenant-roadmap-title {
  display: block;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}

.covenant-roadmap-body {
  padding: 0 1.25rem 1.2rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.covenant-roadmap-body p {
  margin: 0;
  color: var(--text-muted);
}

details.covenant-roadmap-item[open] .covenant-roadmap-body p {
  color: rgba(255, 255, 255, 0.9);
}

details.covenant-roadmap-item[open] .covenant-roadmap-body {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  margin: 0 1.25rem;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 1.2rem;
}

/* Book CTA */
.covenant-book {
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 5vw, 3rem) clamp(3rem, 8vw, 5rem);
  max-width: calc(var(--page-width) + 2rem);
  margin: 0 auto;
  background: var(--white);
}

.covenant-book .gloss-container {
  max-width: 44rem;
  margin: 0 auto;
}

.covenant-book-inner {
  text-align: center;
}

.covenant-book-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0 0 0.5rem;
}

.covenant-book-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin: 0 0 0.25rem;
}

.covenant-book-meta {
  font-size: 0.95rem;
  opacity: 0.85;
  margin: 0 0 1rem;
}

.covenant-book-quote {
  font-size: 1.08rem;
  font-style: italic;
  opacity: 0.92;
  margin: 0 0 1rem;
}

.covenant-book-desc {
  max-width: 36rem;
  margin: 0 auto 1.25rem;
  font-size: 0.98rem;
  line-height: 1.65;
  opacity: 0.92;
}

.covenant-book-actions {
  margin-bottom: 1rem;
}

.covenant-book-actions .btn {
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.covenant-book-soon {
  cursor: default;
  opacity: 0.95;
  border-style: dashed !important;
}

.covenant-book-soon:hover {
  transform: none;
  opacity: 1;
}

.covenant-book-hint {
  max-width: 28rem;
  margin: 0.75rem auto 0;
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.5;
}

.covenant-book-cta-secondary {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0;
  line-height: 1.6;
}

.gloss-content .covenant-link-like {
  color: rgba(255, 255, 255, 0.95);
}

.covenant-link-like {
  display: inline;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  cursor: pointer;
}

.covenant-link-like:hover {
  opacity: 0.88;
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:active,
  .btn-business-cta:hover, .btn-business-cta:active,
  .nav-tab:hover, .nav-tab:active,
  .prompt-card:hover, .prompt-card:active,
  .chat-tool-toggle:hover,
  .business-problem-card:hover, .business-problem-card.is-active,
  .business-tier-card:hover, .business-tier-featured:hover,
  .business-model-card:hover, .business-security-card:hover,
  .business-kpi-card:hover {
    transform: none;
  }
}
